]>
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 RD |
1128 | } |
1129 | { | |
412d302d | 1130 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
1131 | } |
1132 | { | |
1133 | if (temp3) | |
1134 | delete arg3; | |
1135 | } | |
1136 | { | |
1137 | if (temp8) | |
1138 | delete arg8; | |
1139 | } | |
1140 | return resultobj; | |
1141 | fail: | |
1142 | { | |
1143 | if (temp3) | |
1144 | delete arg3; | |
1145 | } | |
1146 | { | |
1147 | if (temp8) | |
1148 | delete arg8; | |
1149 | } | |
1150 | return NULL; | |
1151 | } | |
1152 | ||
1153 | ||
1154 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1155 | PyObject *resultobj; | |
1156 | wxButton *result; | |
1157 | char *kwnames[] = { | |
1158 | NULL | |
1159 | }; | |
1160 | ||
1161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1162 | { | |
e3b71cb8 | 1163 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1165 | result = (wxButton *)new wxButton(); | |
1166 | ||
1167 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1168 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1169 | } |
1170 | { | |
412d302d | 1171 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
1172 | } |
1173 | return resultobj; | |
1174 | fail: | |
1175 | return NULL; | |
1176 | } | |
1177 | ||
1178 | ||
1179 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject *resultobj; | |
1181 | wxButton *arg1 = (wxButton *) 0 ; | |
1182 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1183 | int arg3 = (int) -1 ; |
1184 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1185 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
1186 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1187 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1188 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1189 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1190 | long arg7 = (long) 0 ; | |
1191 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1192 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1193 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1194 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1195 | bool result; | |
e811c8ce | 1196 | bool temp4 = False ; |
d14a1e28 RD |
1197 | wxPoint temp5 ; |
1198 | wxSize temp6 ; | |
e811c8ce | 1199 | bool temp9 = False ; |
d14a1e28 RD |
1200 | PyObject * obj0 = 0 ; |
1201 | PyObject * obj1 = 0 ; | |
994141e6 | 1202 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1203 | PyObject * obj3 = 0 ; |
1204 | PyObject * obj4 = 0 ; | |
1205 | PyObject * obj5 = 0 ; | |
994141e6 | 1206 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1207 | PyObject * obj7 = 0 ; |
1208 | PyObject * obj8 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1211 | }; | |
1212 | ||
248ed943 | 1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1216 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1218 | if (obj2) { |
1219 | arg3 = (int) SWIG_AsInt(obj2); | |
1220 | if (PyErr_Occurred()) SWIG_fail; | |
1221 | } | |
1222 | if (obj3) { | |
1223 | { | |
1224 | arg4 = wxString_in_helper(obj3); | |
1225 | if (arg4 == NULL) SWIG_fail; | |
1226 | temp4 = True; | |
1227 | } | |
d14a1e28 RD |
1228 | } |
1229 | if (obj4) { | |
1230 | { | |
1231 | arg5 = &temp5; | |
1232 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1233 | } | |
1234 | } | |
1235 | if (obj5) { | |
1236 | { | |
1237 | arg6 = &temp6; | |
1238 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1239 | } | |
1240 | } | |
994141e6 | 1241 | if (obj6) { |
15afbcd0 RD |
1242 | arg7 = (long) SWIG_AsLong(obj6); |
1243 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1244 | } |
d14a1e28 | 1245 | if (obj7) { |
15afbcd0 RD |
1246 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1248 | SWIG_fail; | |
d14a1e28 | 1249 | if (arg8 == NULL) { |
15afbcd0 RD |
1250 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1251 | SWIG_fail; | |
d14a1e28 RD |
1252 | } |
1253 | } | |
1254 | if (obj8) { | |
1255 | { | |
1256 | arg9 = wxString_in_helper(obj8); | |
1257 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1258 | temp9 = True; |
d14a1e28 RD |
1259 | } |
1260 | } | |
1261 | { | |
1262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1263 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1264 | ||
1265 | wxPyEndAllowThreads(__tstate); | |
1266 | if (PyErr_Occurred()) SWIG_fail; | |
1267 | } | |
4f89f6a3 RD |
1268 | { |
1269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1270 | } | |
d14a1e28 RD |
1271 | { |
1272 | if (temp4) | |
1273 | delete arg4; | |
1274 | } | |
1275 | { | |
1276 | if (temp9) | |
1277 | delete arg9; | |
1278 | } | |
1279 | return resultobj; | |
1280 | fail: | |
1281 | { | |
1282 | if (temp4) | |
1283 | delete arg4; | |
1284 | } | |
1285 | { | |
1286 | if (temp9) | |
1287 | delete arg9; | |
1288 | } | |
1289 | return NULL; | |
1290 | } | |
1291 | ||
1292 | ||
1293 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject *resultobj; | |
1295 | wxButton *arg1 = (wxButton *) 0 ; | |
1296 | PyObject * obj0 = 0 ; | |
1297 | char *kwnames[] = { | |
1298 | (char *) "self", NULL | |
1299 | }; | |
1300 | ||
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1304 | { |
1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1306 | (arg1)->SetDefault(); | |
1307 | ||
1308 | wxPyEndAllowThreads(__tstate); | |
1309 | if (PyErr_Occurred()) SWIG_fail; | |
1310 | } | |
1311 | Py_INCREF(Py_None); resultobj = Py_None; | |
1312 | return resultobj; | |
1313 | fail: | |
1314 | return NULL; | |
1315 | } | |
1316 | ||
1317 | ||
1318 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1319 | PyObject *resultobj; | |
1320 | wxSize result; | |
1321 | char *kwnames[] = { | |
1322 | NULL | |
1323 | }; | |
1324 | ||
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1326 | { | |
1327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1328 | result = wxButton::GetDefaultSize(); | |
1329 | ||
1330 | wxPyEndAllowThreads(__tstate); | |
1331 | if (PyErr_Occurred()) SWIG_fail; | |
1332 | } | |
1333 | { | |
1334 | wxSize * resultptr; | |
1335 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1336 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1337 | } |
1338 | return resultobj; | |
1339 | fail: | |
1340 | return NULL; | |
1341 | } | |
1342 | ||
1343 | ||
22bfe96c RD |
1344 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1345 | PyObject *resultobj; | |
1346 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1347 | wxVisualAttributes result; | |
1348 | PyObject * obj0 = 0 ; | |
1349 | char *kwnames[] = { | |
1350 | (char *) "variant", NULL | |
1351 | }; | |
1352 | ||
1353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1354 | if (obj0) { | |
1355 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1356 | if (PyErr_Occurred()) SWIG_fail; | |
1357 | } | |
1358 | { | |
110da5b0 | 1359 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
1360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1361 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1362 | ||
1363 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 1364 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
1365 | } |
1366 | { | |
1367 | wxVisualAttributes * resultptr; | |
1368 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1369 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1370 | } | |
1371 | return resultobj; | |
1372 | fail: | |
1373 | return NULL; | |
1374 | } | |
1375 | ||
1376 | ||
d14a1e28 RD |
1377 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1378 | PyObject *obj; | |
1379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1380 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1381 | Py_INCREF(obj); | |
1382 | return Py_BuildValue((char *)""); | |
1383 | } | |
1384 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1385 | PyObject *resultobj; | |
1386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1387 | int arg2 = (int) -1 ; |
1388 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1389 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
1390 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1391 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1392 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1393 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1394 | long arg6 = (long) wxBU_AUTODRAW ; | |
1395 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1396 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1397 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1398 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1399 | wxBitmapButton *result; | |
1400 | wxPoint temp4 ; | |
1401 | wxSize temp5 ; | |
e811c8ce | 1402 | bool temp8 = False ; |
d14a1e28 | 1403 | PyObject * obj0 = 0 ; |
994141e6 | 1404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1405 | PyObject * obj2 = 0 ; |
1406 | PyObject * obj3 = 0 ; | |
1407 | PyObject * obj4 = 0 ; | |
994141e6 | 1408 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1409 | PyObject * obj6 = 0 ; |
1410 | PyObject * obj7 = 0 ; | |
1411 | char *kwnames[] = { | |
1412 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1413 | }; | |
1414 | ||
248ed943 | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1418 | if (obj1) { |
1419 | arg2 = (int) SWIG_AsInt(obj1); | |
1420 | if (PyErr_Occurred()) SWIG_fail; | |
1421 | } | |
1422 | if (obj2) { | |
1423 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1425 | SWIG_fail; |
248ed943 RD |
1426 | if (arg3 == NULL) { |
1427 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1428 | SWIG_fail; | |
1429 | } | |
d14a1e28 RD |
1430 | } |
1431 | if (obj3) { | |
1432 | { | |
1433 | arg4 = &temp4; | |
1434 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1435 | } | |
1436 | } | |
1437 | if (obj4) { | |
1438 | { | |
1439 | arg5 = &temp5; | |
1440 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1441 | } | |
1442 | } | |
994141e6 | 1443 | if (obj5) { |
15afbcd0 RD |
1444 | arg6 = (long) SWIG_AsLong(obj5); |
1445 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1446 | } |
d14a1e28 | 1447 | if (obj6) { |
15afbcd0 RD |
1448 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1450 | SWIG_fail; | |
d14a1e28 | 1451 | if (arg7 == NULL) { |
15afbcd0 RD |
1452 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1453 | SWIG_fail; | |
d14a1e28 RD |
1454 | } |
1455 | } | |
1456 | if (obj7) { | |
1457 | { | |
1458 | arg8 = wxString_in_helper(obj7); | |
1459 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1460 | temp8 = True; |
d14a1e28 RD |
1461 | } |
1462 | } | |
1463 | { | |
e3b71cb8 | 1464 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1466 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1467 | ||
1468 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1469 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1470 | } |
1471 | { | |
412d302d | 1472 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
1473 | } |
1474 | { | |
1475 | if (temp8) | |
1476 | delete arg8; | |
1477 | } | |
1478 | return resultobj; | |
1479 | fail: | |
1480 | { | |
1481 | if (temp8) | |
1482 | delete arg8; | |
1483 | } | |
1484 | return NULL; | |
1485 | } | |
1486 | ||
1487 | ||
1488 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1489 | PyObject *resultobj; | |
1490 | wxBitmapButton *result; | |
1491 | char *kwnames[] = { | |
1492 | NULL | |
1493 | }; | |
1494 | ||
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1496 | { | |
e3b71cb8 | 1497 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1499 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1500 | ||
1501 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1502 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1503 | } |
1504 | { | |
412d302d | 1505 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
1506 | } |
1507 | return resultobj; | |
1508 | fail: | |
1509 | return NULL; | |
1510 | } | |
1511 | ||
1512 | ||
1513 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject *resultobj; | |
1515 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1516 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1517 | int arg3 = (int) -1 ; |
1518 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1519 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
1520 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1521 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1522 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1523 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1524 | long arg7 = (long) wxBU_AUTODRAW ; | |
1525 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1526 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1527 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1528 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1529 | bool result; | |
1530 | wxPoint temp5 ; | |
1531 | wxSize temp6 ; | |
e811c8ce | 1532 | bool temp9 = False ; |
d14a1e28 RD |
1533 | PyObject * obj0 = 0 ; |
1534 | PyObject * obj1 = 0 ; | |
994141e6 | 1535 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1536 | PyObject * obj3 = 0 ; |
1537 | PyObject * obj4 = 0 ; | |
1538 | PyObject * obj5 = 0 ; | |
994141e6 | 1539 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1540 | PyObject * obj7 = 0 ; |
1541 | PyObject * obj8 = 0 ; | |
1542 | char *kwnames[] = { | |
1543 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1544 | }; | |
1545 | ||
248ed943 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1551 | if (obj2) { |
1552 | arg3 = (int) SWIG_AsInt(obj2); | |
1553 | if (PyErr_Occurred()) SWIG_fail; | |
1554 | } | |
1555 | if (obj3) { | |
1556 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1558 | SWIG_fail; |
248ed943 RD |
1559 | if (arg4 == NULL) { |
1560 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1561 | SWIG_fail; | |
1562 | } | |
d14a1e28 RD |
1563 | } |
1564 | if (obj4) { | |
1565 | { | |
1566 | arg5 = &temp5; | |
1567 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1568 | } | |
1569 | } | |
1570 | if (obj5) { | |
1571 | { | |
1572 | arg6 = &temp6; | |
1573 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1574 | } | |
1575 | } | |
994141e6 | 1576 | if (obj6) { |
15afbcd0 RD |
1577 | arg7 = (long) SWIG_AsLong(obj6); |
1578 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1579 | } |
d14a1e28 | 1580 | if (obj7) { |
15afbcd0 RD |
1581 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1583 | SWIG_fail; | |
d14a1e28 | 1584 | if (arg8 == NULL) { |
15afbcd0 RD |
1585 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1586 | SWIG_fail; | |
d14a1e28 RD |
1587 | } |
1588 | } | |
1589 | if (obj8) { | |
1590 | { | |
1591 | arg9 = wxString_in_helper(obj8); | |
1592 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1593 | temp9 = True; |
d14a1e28 RD |
1594 | } |
1595 | } | |
1596 | { | |
1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1598 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1599 | ||
1600 | wxPyEndAllowThreads(__tstate); | |
1601 | if (PyErr_Occurred()) SWIG_fail; | |
1602 | } | |
4f89f6a3 RD |
1603 | { |
1604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1605 | } | |
d14a1e28 RD |
1606 | { |
1607 | if (temp9) | |
1608 | delete arg9; | |
1609 | } | |
1610 | return resultobj; | |
1611 | fail: | |
1612 | { | |
1613 | if (temp9) | |
1614 | delete arg9; | |
1615 | } | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
1620 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject *resultobj; | |
1622 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1623 | wxBitmap result; | |
1624 | PyObject * obj0 = 0 ; | |
1625 | char *kwnames[] = { | |
1626 | (char *) "self", NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1632 | { |
1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1634 | result = (arg1)->GetBitmapLabel(); | |
1635 | ||
1636 | wxPyEndAllowThreads(__tstate); | |
1637 | if (PyErr_Occurred()) SWIG_fail; | |
1638 | } | |
1639 | { | |
1640 | wxBitmap * resultptr; | |
1641 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1642 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1643 | } |
1644 | return resultobj; | |
1645 | fail: | |
1646 | return NULL; | |
1647 | } | |
1648 | ||
1649 | ||
1650 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1651 | PyObject *resultobj; | |
1652 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1653 | wxBitmap result; | |
1654 | PyObject * obj0 = 0 ; | |
1655 | char *kwnames[] = { | |
1656 | (char *) "self", NULL | |
1657 | }; | |
1658 | ||
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1662 | { |
1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1664 | result = (arg1)->GetBitmapDisabled(); | |
1665 | ||
1666 | wxPyEndAllowThreads(__tstate); | |
1667 | if (PyErr_Occurred()) SWIG_fail; | |
1668 | } | |
1669 | { | |
1670 | wxBitmap * resultptr; | |
1671 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1672 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1673 | } |
1674 | return resultobj; | |
1675 | fail: | |
1676 | return NULL; | |
1677 | } | |
1678 | ||
1679 | ||
1680 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1681 | PyObject *resultobj; | |
1682 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1683 | wxBitmap result; | |
1684 | PyObject * obj0 = 0 ; | |
1685 | char *kwnames[] = { | |
1686 | (char *) "self", NULL | |
1687 | }; | |
1688 | ||
1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1692 | { |
1693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1694 | result = (arg1)->GetBitmapFocus(); | |
1695 | ||
1696 | wxPyEndAllowThreads(__tstate); | |
1697 | if (PyErr_Occurred()) SWIG_fail; | |
1698 | } | |
1699 | { | |
1700 | wxBitmap * resultptr; | |
1701 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1703 | } |
1704 | return resultobj; | |
1705 | fail: | |
1706 | return NULL; | |
1707 | } | |
1708 | ||
1709 | ||
1710 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject *resultobj; | |
1712 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1713 | wxBitmap result; | |
1714 | PyObject * obj0 = 0 ; | |
1715 | char *kwnames[] = { | |
1716 | (char *) "self", NULL | |
1717 | }; | |
1718 | ||
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1722 | { |
1723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1724 | result = (arg1)->GetBitmapSelected(); | |
1725 | ||
1726 | wxPyEndAllowThreads(__tstate); | |
1727 | if (PyErr_Occurred()) SWIG_fail; | |
1728 | } | |
1729 | { | |
1730 | wxBitmap * resultptr; | |
1731 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1732 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1733 | } |
1734 | return resultobj; | |
1735 | fail: | |
1736 | return NULL; | |
1737 | } | |
1738 | ||
1739 | ||
1740 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject *resultobj; | |
1742 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1743 | wxBitmap *arg2 = 0 ; | |
1744 | PyObject * obj0 = 0 ; | |
1745 | PyObject * obj1 = 0 ; | |
1746 | char *kwnames[] = { | |
1747 | (char *) "self",(char *) "bitmap", NULL | |
1748 | }; | |
1749 | ||
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1755 | SWIG_fail; | |
d14a1e28 | 1756 | if (arg2 == NULL) { |
15afbcd0 RD |
1757 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1758 | SWIG_fail; | |
d14a1e28 RD |
1759 | } |
1760 | { | |
1761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1762 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1763 | ||
1764 | wxPyEndAllowThreads(__tstate); | |
1765 | if (PyErr_Occurred()) SWIG_fail; | |
1766 | } | |
1767 | Py_INCREF(Py_None); resultobj = Py_None; | |
1768 | return resultobj; | |
1769 | fail: | |
1770 | return NULL; | |
1771 | } | |
1772 | ||
1773 | ||
1774 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1775 | PyObject *resultobj; | |
1776 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1777 | wxBitmap *arg2 = 0 ; | |
1778 | PyObject * obj0 = 0 ; | |
1779 | PyObject * obj1 = 0 ; | |
1780 | char *kwnames[] = { | |
1781 | (char *) "self",(char *) "bitmap", NULL | |
1782 | }; | |
1783 | ||
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1789 | SWIG_fail; | |
d14a1e28 | 1790 | if (arg2 == NULL) { |
15afbcd0 RD |
1791 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1792 | SWIG_fail; | |
d14a1e28 RD |
1793 | } |
1794 | { | |
1795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1796 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1797 | ||
1798 | wxPyEndAllowThreads(__tstate); | |
1799 | if (PyErr_Occurred()) SWIG_fail; | |
1800 | } | |
1801 | Py_INCREF(Py_None); resultobj = Py_None; | |
1802 | return resultobj; | |
1803 | fail: | |
1804 | return NULL; | |
1805 | } | |
1806 | ||
1807 | ||
1808 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1809 | PyObject *resultobj; | |
1810 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1811 | wxBitmap *arg2 = 0 ; | |
1812 | PyObject * obj0 = 0 ; | |
1813 | PyObject * obj1 = 0 ; | |
1814 | char *kwnames[] = { | |
1815 | (char *) "self",(char *) "bitmap", NULL | |
1816 | }; | |
1817 | ||
1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1823 | SWIG_fail; | |
d14a1e28 | 1824 | if (arg2 == NULL) { |
15afbcd0 RD |
1825 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1826 | SWIG_fail; | |
d14a1e28 RD |
1827 | } |
1828 | { | |
1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1830 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1831 | ||
1832 | wxPyEndAllowThreads(__tstate); | |
1833 | if (PyErr_Occurred()) SWIG_fail; | |
1834 | } | |
1835 | Py_INCREF(Py_None); resultobj = Py_None; | |
1836 | return resultobj; | |
1837 | fail: | |
1838 | return NULL; | |
1839 | } | |
1840 | ||
1841 | ||
1842 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject *resultobj; | |
1844 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1845 | wxBitmap *arg2 = 0 ; | |
1846 | PyObject * obj0 = 0 ; | |
1847 | PyObject * obj1 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "self",(char *) "bitmap", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1857 | SWIG_fail; | |
d14a1e28 | 1858 | if (arg2 == NULL) { |
15afbcd0 RD |
1859 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1860 | SWIG_fail; | |
d14a1e28 RD |
1861 | } |
1862 | { | |
1863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1864 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1865 | ||
1866 | wxPyEndAllowThreads(__tstate); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | } | |
1869 | Py_INCREF(Py_None); resultobj = Py_None; | |
1870 | return resultobj; | |
1871 | fail: | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj; | |
1878 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1879 | int arg2 ; | |
1880 | int arg3 ; | |
1881 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1882 | PyObject * obj1 = 0 ; |
1883 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1884 | char *kwnames[] = { |
1885 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1886 | }; | |
1887 | ||
994141e6 | 1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
1889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1891 | arg2 = (int) SWIG_AsInt(obj1); | |
1892 | if (PyErr_Occurred()) SWIG_fail; | |
1893 | arg3 = (int) SWIG_AsInt(obj2); | |
1894 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1895 | { |
1896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1897 | (arg1)->SetMargins(arg2,arg3); | |
1898 | ||
1899 | wxPyEndAllowThreads(__tstate); | |
1900 | if (PyErr_Occurred()) SWIG_fail; | |
1901 | } | |
1902 | Py_INCREF(Py_None); resultobj = Py_None; | |
1903 | return resultobj; | |
1904 | fail: | |
1905 | return NULL; | |
1906 | } | |
1907 | ||
1908 | ||
1909 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject *resultobj; | |
1911 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1912 | int result; | |
1913 | PyObject * obj0 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "self", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1921 | { |
1922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1923 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1924 | ||
1925 | wxPyEndAllowThreads(__tstate); | |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
1927 | } | |
15afbcd0 | 1928 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1929 | return resultobj; |
1930 | fail: | |
1931 | return NULL; | |
1932 | } | |
1933 | ||
1934 | ||
1935 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1936 | PyObject *resultobj; | |
1937 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1938 | int result; | |
1939 | PyObject * obj0 = 0 ; | |
1940 | char *kwnames[] = { | |
1941 | (char *) "self", NULL | |
1942 | }; | |
1943 | ||
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1947 | { |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1949 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1950 | ||
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | } | |
15afbcd0 | 1954 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1955 | return resultobj; |
1956 | fail: | |
1957 | return NULL; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1962 | PyObject *obj; | |
1963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1964 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1965 | Py_INCREF(obj); | |
1966 | return Py_BuildValue((char *)""); | |
1967 | } | |
b2dc1044 RD |
1968 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1969 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1970 | return 1; | |
1971 | } | |
1972 | ||
1973 | ||
1974 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1975 | PyObject *pyobj; | |
1976 | ||
1977 | { | |
1978 | #if wxUSE_UNICODE | |
1979 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1980 | #else | |
1981 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1982 | #endif | |
1983 | } | |
1984 | return pyobj; | |
1985 | } | |
1986 | ||
1987 | ||
d14a1e28 RD |
1988 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1989 | PyObject *resultobj; | |
1990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1991 | int arg2 = (int) -1 ; |
1992 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1993 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1994 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1995 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1996 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1997 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1998 | long arg6 = (long) 0 ; | |
1999 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2000 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2001 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2002 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2003 | wxCheckBox *result; | |
e811c8ce | 2004 | bool temp3 = False ; |
d14a1e28 RD |
2005 | wxPoint temp4 ; |
2006 | wxSize temp5 ; | |
e811c8ce | 2007 | bool temp8 = False ; |
d14a1e28 | 2008 | PyObject * obj0 = 0 ; |
994141e6 | 2009 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2010 | PyObject * obj2 = 0 ; |
2011 | PyObject * obj3 = 0 ; | |
2012 | PyObject * obj4 = 0 ; | |
994141e6 | 2013 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2014 | PyObject * obj6 = 0 ; |
2015 | PyObject * obj7 = 0 ; | |
2016 | char *kwnames[] = { | |
2017 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2018 | }; | |
2019 | ||
248ed943 | 2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2023 | if (obj1) { |
2024 | arg2 = (int) SWIG_AsInt(obj1); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | if (obj2) { | |
2028 | { | |
2029 | arg3 = wxString_in_helper(obj2); | |
2030 | if (arg3 == NULL) SWIG_fail; | |
2031 | temp3 = True; | |
2032 | } | |
d14a1e28 RD |
2033 | } |
2034 | if (obj3) { | |
2035 | { | |
2036 | arg4 = &temp4; | |
2037 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2038 | } | |
2039 | } | |
2040 | if (obj4) { | |
2041 | { | |
2042 | arg5 = &temp5; | |
2043 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2044 | } | |
2045 | } | |
994141e6 | 2046 | if (obj5) { |
15afbcd0 RD |
2047 | arg6 = (long) SWIG_AsLong(obj5); |
2048 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2049 | } |
d14a1e28 | 2050 | if (obj6) { |
15afbcd0 RD |
2051 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2053 | SWIG_fail; | |
d14a1e28 | 2054 | if (arg7 == NULL) { |
15afbcd0 RD |
2055 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2056 | SWIG_fail; | |
d14a1e28 RD |
2057 | } |
2058 | } | |
2059 | if (obj7) { | |
2060 | { | |
2061 | arg8 = wxString_in_helper(obj7); | |
2062 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2063 | temp8 = True; |
d14a1e28 RD |
2064 | } |
2065 | } | |
2066 | { | |
e3b71cb8 | 2067 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2069 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2070 | ||
2071 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2072 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2073 | } |
15afbcd0 | 2074 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2075 | { |
2076 | if (temp3) | |
2077 | delete arg3; | |
2078 | } | |
2079 | { | |
2080 | if (temp8) | |
2081 | delete arg8; | |
2082 | } | |
2083 | return resultobj; | |
2084 | fail: | |
2085 | { | |
2086 | if (temp3) | |
2087 | delete arg3; | |
2088 | } | |
2089 | { | |
2090 | if (temp8) | |
2091 | delete arg8; | |
2092 | } | |
2093 | return NULL; | |
2094 | } | |
2095 | ||
2096 | ||
2097 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2098 | PyObject *resultobj; | |
2099 | wxCheckBox *result; | |
2100 | char *kwnames[] = { | |
2101 | NULL | |
2102 | }; | |
2103 | ||
2104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2105 | { | |
e3b71cb8 | 2106 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2108 | result = (wxCheckBox *)new wxCheckBox(); | |
2109 | ||
2110 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2111 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2112 | } |
15afbcd0 | 2113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2114 | return resultobj; |
2115 | fail: | |
2116 | return NULL; | |
2117 | } | |
2118 | ||
2119 | ||
2120 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2121 | PyObject *resultobj; | |
2122 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2123 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2124 | int arg3 = (int) -1 ; |
2125 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2126 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2127 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2128 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2129 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2130 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2131 | long arg7 = (long) 0 ; | |
2132 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2133 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2134 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2135 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2136 | bool result; | |
e811c8ce | 2137 | bool temp4 = False ; |
d14a1e28 RD |
2138 | wxPoint temp5 ; |
2139 | wxSize temp6 ; | |
e811c8ce | 2140 | bool temp9 = False ; |
d14a1e28 RD |
2141 | PyObject * obj0 = 0 ; |
2142 | PyObject * obj1 = 0 ; | |
994141e6 | 2143 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2144 | PyObject * obj3 = 0 ; |
2145 | PyObject * obj4 = 0 ; | |
2146 | PyObject * obj5 = 0 ; | |
994141e6 | 2147 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2148 | PyObject * obj7 = 0 ; |
2149 | PyObject * obj8 = 0 ; | |
2150 | char *kwnames[] = { | |
2151 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2152 | }; | |
2153 | ||
248ed943 | 2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2159 | if (obj2) { |
2160 | arg3 = (int) SWIG_AsInt(obj2); | |
2161 | if (PyErr_Occurred()) SWIG_fail; | |
2162 | } | |
2163 | if (obj3) { | |
2164 | { | |
2165 | arg4 = wxString_in_helper(obj3); | |
2166 | if (arg4 == NULL) SWIG_fail; | |
2167 | temp4 = True; | |
2168 | } | |
d14a1e28 RD |
2169 | } |
2170 | if (obj4) { | |
2171 | { | |
2172 | arg5 = &temp5; | |
2173 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2174 | } | |
2175 | } | |
2176 | if (obj5) { | |
2177 | { | |
2178 | arg6 = &temp6; | |
2179 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2180 | } | |
2181 | } | |
994141e6 | 2182 | if (obj6) { |
15afbcd0 RD |
2183 | arg7 = (long) SWIG_AsLong(obj6); |
2184 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2185 | } |
d14a1e28 | 2186 | if (obj7) { |
15afbcd0 RD |
2187 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2189 | SWIG_fail; | |
d14a1e28 | 2190 | if (arg8 == NULL) { |
15afbcd0 RD |
2191 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2192 | SWIG_fail; | |
d14a1e28 RD |
2193 | } |
2194 | } | |
2195 | if (obj8) { | |
2196 | { | |
2197 | arg9 = wxString_in_helper(obj8); | |
2198 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2199 | temp9 = True; |
d14a1e28 RD |
2200 | } |
2201 | } | |
2202 | { | |
2203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2204 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2205 | ||
2206 | wxPyEndAllowThreads(__tstate); | |
2207 | if (PyErr_Occurred()) SWIG_fail; | |
2208 | } | |
4f89f6a3 RD |
2209 | { |
2210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2211 | } | |
d14a1e28 RD |
2212 | { |
2213 | if (temp4) | |
2214 | delete arg4; | |
2215 | } | |
2216 | { | |
2217 | if (temp9) | |
2218 | delete arg9; | |
2219 | } | |
2220 | return resultobj; | |
2221 | fail: | |
2222 | { | |
2223 | if (temp4) | |
2224 | delete arg4; | |
2225 | } | |
2226 | { | |
2227 | if (temp9) | |
2228 | delete arg9; | |
2229 | } | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject *resultobj; | |
2236 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2237 | bool result; | |
2238 | PyObject * obj0 = 0 ; | |
2239 | char *kwnames[] = { | |
2240 | (char *) "self", NULL | |
2241 | }; | |
2242 | ||
2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2246 | { |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | result = (bool)(arg1)->GetValue(); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
4f89f6a3 RD |
2253 | { |
2254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2255 | } | |
d14a1e28 RD |
2256 | return resultobj; |
2257 | fail: | |
2258 | return NULL; | |
2259 | } | |
2260 | ||
2261 | ||
2262 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2263 | PyObject *resultobj; | |
2264 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2265 | bool result; | |
2266 | PyObject * obj0 = 0 ; | |
2267 | char *kwnames[] = { | |
2268 | (char *) "self", NULL | |
2269 | }; | |
2270 | ||
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2274 | { |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | result = (bool)(arg1)->IsChecked(); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
4f89f6a3 RD |
2281 | { |
2282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2283 | } | |
d14a1e28 RD |
2284 | return resultobj; |
2285 | fail: | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject *resultobj; | |
2292 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2293 | bool arg2 ; | |
2294 | PyObject * obj0 = 0 ; | |
2295 | PyObject * obj1 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "self",(char *) "state", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2303 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2305 | { |
2306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2307 | (arg1)->SetValue(arg2); | |
2308 | ||
2309 | wxPyEndAllowThreads(__tstate); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
2312 | Py_INCREF(Py_None); resultobj = Py_None; | |
2313 | return resultobj; | |
2314 | fail: | |
2315 | return NULL; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2320 | PyObject *resultobj; | |
2321 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2322 | int result; | |
2323 | PyObject * obj0 = 0 ; | |
2324 | char *kwnames[] = { | |
2325 | (char *) "self", NULL | |
2326 | }; | |
2327 | ||
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2331 | { |
2332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2333 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2334 | ||
2335 | wxPyEndAllowThreads(__tstate); | |
2336 | if (PyErr_Occurred()) SWIG_fail; | |
2337 | } | |
15afbcd0 | 2338 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2339 | return resultobj; |
2340 | fail: | |
2341 | return NULL; | |
2342 | } | |
2343 | ||
2344 | ||
2345 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject *resultobj; | |
2347 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2348 | int arg2 ; | |
2349 | PyObject * obj0 = 0 ; | |
994141e6 | 2350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2351 | char *kwnames[] = { |
2352 | (char *) "self",(char *) "state", NULL | |
2353 | }; | |
2354 | ||
994141e6 | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2358 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2360 | { |
2361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2362 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2363 | ||
2364 | wxPyEndAllowThreads(__tstate); | |
2365 | if (PyErr_Occurred()) SWIG_fail; | |
2366 | } | |
2367 | Py_INCREF(Py_None); resultobj = Py_None; | |
2368 | return resultobj; | |
2369 | fail: | |
2370 | return NULL; | |
2371 | } | |
2372 | ||
2373 | ||
2374 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject *resultobj; | |
2376 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2377 | bool result; | |
2378 | PyObject * obj0 = 0 ; | |
2379 | char *kwnames[] = { | |
2380 | (char *) "self", NULL | |
2381 | }; | |
2382 | ||
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2386 | { |
2387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2388 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2389 | ||
2390 | wxPyEndAllowThreads(__tstate); | |
2391 | if (PyErr_Occurred()) SWIG_fail; | |
2392 | } | |
4f89f6a3 RD |
2393 | { |
2394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2395 | } | |
d14a1e28 RD |
2396 | return resultobj; |
2397 | fail: | |
2398 | return NULL; | |
2399 | } | |
2400 | ||
2401 | ||
2402 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2403 | PyObject *resultobj; | |
2404 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2405 | bool result; | |
2406 | PyObject * obj0 = 0 ; | |
2407 | char *kwnames[] = { | |
2408 | (char *) "self", NULL | |
2409 | }; | |
2410 | ||
2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2414 | { |
2415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2416 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2417 | ||
2418 | wxPyEndAllowThreads(__tstate); | |
2419 | if (PyErr_Occurred()) SWIG_fail; | |
2420 | } | |
4f89f6a3 RD |
2421 | { |
2422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2423 | } | |
d14a1e28 RD |
2424 | return resultobj; |
2425 | fail: | |
2426 | return NULL; | |
2427 | } | |
2428 | ||
2429 | ||
22bfe96c RD |
2430 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2431 | PyObject *resultobj; | |
2432 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2433 | wxVisualAttributes result; | |
2434 | PyObject * obj0 = 0 ; | |
2435 | char *kwnames[] = { | |
2436 | (char *) "variant", NULL | |
2437 | }; | |
2438 | ||
2439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2440 | if (obj0) { | |
2441 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
2444 | { | |
110da5b0 | 2445 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2447 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2448 | ||
2449 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2450 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2451 | } |
2452 | { | |
2453 | wxVisualAttributes * resultptr; | |
2454 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2456 | } | |
2457 | return resultobj; | |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
d14a1e28 RD |
2463 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2464 | PyObject *obj; | |
2465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2466 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2467 | Py_INCREF(obj); | |
2468 | return Py_BuildValue((char *)""); | |
2469 | } | |
b2dc1044 RD |
2470 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2471 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2472 | return 1; | |
2473 | } | |
2474 | ||
2475 | ||
2476 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2477 | PyObject *pyobj; | |
2478 | ||
2479 | { | |
2480 | #if wxUSE_UNICODE | |
2481 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2482 | #else | |
2483 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2484 | #endif | |
2485 | } | |
2486 | return pyobj; | |
2487 | } | |
2488 | ||
2489 | ||
d14a1e28 RD |
2490 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2491 | PyObject *resultobj; | |
2492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2493 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2494 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2495 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2496 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2497 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2498 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2499 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2500 | long arg6 = (long) 0 ; | |
2501 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2502 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2503 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2504 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2505 | wxChoice *result; |
2506 | wxPoint temp3 ; | |
2507 | wxSize temp4 ; | |
3adfb63b | 2508 | bool temp5 = False ; |
e811c8ce | 2509 | bool temp8 = False ; |
d14a1e28 | 2510 | PyObject * obj0 = 0 ; |
994141e6 | 2511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2512 | PyObject * obj2 = 0 ; |
2513 | PyObject * obj3 = 0 ; | |
2514 | PyObject * obj4 = 0 ; | |
994141e6 | 2515 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2516 | PyObject * obj6 = 0 ; |
2517 | PyObject * obj7 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2520 | }; | |
2521 | ||
a95a7133 | 2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2525 | if (obj1) { |
2526 | arg2 = (int) SWIG_AsInt(obj1); | |
2527 | if (PyErr_Occurred()) SWIG_fail; | |
2528 | } | |
d14a1e28 RD |
2529 | if (obj2) { |
2530 | { | |
2531 | arg3 = &temp3; | |
2532 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2533 | } | |
2534 | } | |
2535 | if (obj3) { | |
2536 | { | |
2537 | arg4 = &temp4; | |
2538 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2539 | } | |
2540 | } | |
2541 | if (obj4) { | |
2542 | { | |
4d5c3d91 RD |
2543 | if (! PySequence_Check(obj4)) { |
2544 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2545 | SWIG_fail; | |
2546 | } | |
2547 | arg5 = new wxArrayString; | |
3adfb63b | 2548 | temp5 = True; |
4d5c3d91 RD |
2549 | int i, len=PySequence_Length(obj4); |
2550 | for (i=0; i<len; i++) { | |
2551 | PyObject* item = PySequence_GetItem(obj4, i); | |
2552 | #if wxUSE_UNICODE | |
2553 | PyObject* str = PyObject_Unicode(item); | |
2554 | #else | |
2555 | PyObject* str = PyObject_Str(item); | |
2556 | #endif | |
74a57fcd | 2557 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2558 | arg5->Add(Py2wxString(str)); |
2559 | Py_DECREF(item); | |
2560 | Py_DECREF(str); | |
2561 | } | |
d14a1e28 RD |
2562 | } |
2563 | } | |
994141e6 | 2564 | if (obj5) { |
15afbcd0 RD |
2565 | arg6 = (long) SWIG_AsLong(obj5); |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2567 | } |
d14a1e28 | 2568 | if (obj6) { |
15afbcd0 RD |
2569 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2571 | SWIG_fail; | |
4d5c3d91 | 2572 | if (arg7 == NULL) { |
15afbcd0 RD |
2573 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2574 | SWIG_fail; | |
d14a1e28 RD |
2575 | } |
2576 | } | |
2577 | if (obj7) { | |
2578 | { | |
4d5c3d91 RD |
2579 | arg8 = wxString_in_helper(obj7); |
2580 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2581 | temp8 = True; |
d14a1e28 RD |
2582 | } |
2583 | } | |
2584 | { | |
e3b71cb8 | 2585 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 2587 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2588 | |
2589 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2590 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2591 | } |
15afbcd0 | 2592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2593 | { |
3adfb63b | 2594 | if (temp5) delete arg5; |
d14a1e28 RD |
2595 | } |
2596 | { | |
2597 | if (temp8) | |
4d5c3d91 | 2598 | delete arg8; |
d14a1e28 RD |
2599 | } |
2600 | return resultobj; | |
2601 | fail: | |
2602 | { | |
3adfb63b | 2603 | if (temp5) delete arg5; |
d14a1e28 RD |
2604 | } |
2605 | { | |
2606 | if (temp8) | |
4d5c3d91 | 2607 | delete arg8; |
d14a1e28 RD |
2608 | } |
2609 | return NULL; | |
2610 | } | |
2611 | ||
2612 | ||
2613 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2614 | PyObject *resultobj; | |
2615 | wxChoice *result; | |
2616 | char *kwnames[] = { | |
2617 | NULL | |
2618 | }; | |
2619 | ||
2620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2621 | { | |
e3b71cb8 | 2622 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2624 | result = (wxChoice *)new wxChoice(); | |
2625 | ||
2626 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2627 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2628 | } |
15afbcd0 | 2629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2630 | return resultobj; |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2636 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject *resultobj; | |
2638 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2639 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2640 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2641 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2642 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2643 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2644 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2645 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2646 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2647 | long arg7 = (long) 0 ; | |
2648 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2649 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2650 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2651 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2652 | bool result; |
2653 | wxPoint temp4 ; | |
2654 | wxSize temp5 ; | |
3adfb63b | 2655 | bool temp6 = False ; |
e811c8ce | 2656 | bool temp9 = False ; |
d14a1e28 RD |
2657 | PyObject * obj0 = 0 ; |
2658 | PyObject * obj1 = 0 ; | |
994141e6 | 2659 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2660 | PyObject * obj3 = 0 ; |
2661 | PyObject * obj4 = 0 ; | |
2662 | PyObject * obj5 = 0 ; | |
994141e6 | 2663 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2664 | PyObject * obj7 = 0 ; |
2665 | PyObject * obj8 = 0 ; | |
2666 | char *kwnames[] = { | |
2667 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2668 | }; | |
2669 | ||
a95a7133 | 2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2675 | if (obj2) { |
2676 | arg3 = (int) SWIG_AsInt(obj2); | |
2677 | if (PyErr_Occurred()) SWIG_fail; | |
2678 | } | |
d14a1e28 RD |
2679 | if (obj3) { |
2680 | { | |
2681 | arg4 = &temp4; | |
2682 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2683 | } | |
2684 | } | |
2685 | if (obj4) { | |
2686 | { | |
2687 | arg5 = &temp5; | |
2688 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2689 | } | |
2690 | } | |
2691 | if (obj5) { | |
2692 | { | |
4d5c3d91 RD |
2693 | if (! PySequence_Check(obj5)) { |
2694 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2695 | SWIG_fail; | |
2696 | } | |
2697 | arg6 = new wxArrayString; | |
3adfb63b | 2698 | temp6 = True; |
4d5c3d91 RD |
2699 | int i, len=PySequence_Length(obj5); |
2700 | for (i=0; i<len; i++) { | |
2701 | PyObject* item = PySequence_GetItem(obj5, i); | |
2702 | #if wxUSE_UNICODE | |
2703 | PyObject* str = PyObject_Unicode(item); | |
2704 | #else | |
2705 | PyObject* str = PyObject_Str(item); | |
2706 | #endif | |
74a57fcd | 2707 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2708 | arg6->Add(Py2wxString(str)); |
2709 | Py_DECREF(item); | |
2710 | Py_DECREF(str); | |
2711 | } | |
d14a1e28 RD |
2712 | } |
2713 | } | |
994141e6 | 2714 | if (obj6) { |
15afbcd0 RD |
2715 | arg7 = (long) SWIG_AsLong(obj6); |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2717 | } |
d14a1e28 | 2718 | if (obj7) { |
15afbcd0 RD |
2719 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2721 | SWIG_fail; | |
4d5c3d91 | 2722 | if (arg8 == NULL) { |
15afbcd0 RD |
2723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2724 | SWIG_fail; | |
d14a1e28 RD |
2725 | } |
2726 | } | |
2727 | if (obj8) { | |
2728 | { | |
4d5c3d91 RD |
2729 | arg9 = wxString_in_helper(obj8); |
2730 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2731 | temp9 = True; |
d14a1e28 RD |
2732 | } |
2733 | } | |
2734 | { | |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2736 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2737 | |
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
4f89f6a3 RD |
2741 | { |
2742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2743 | } | |
d14a1e28 | 2744 | { |
3adfb63b | 2745 | if (temp6) delete arg6; |
d14a1e28 RD |
2746 | } |
2747 | { | |
2748 | if (temp9) | |
4d5c3d91 | 2749 | delete arg9; |
d14a1e28 RD |
2750 | } |
2751 | return resultobj; | |
2752 | fail: | |
2753 | { | |
3adfb63b | 2754 | if (temp6) delete arg6; |
d14a1e28 RD |
2755 | } |
2756 | { | |
2757 | if (temp9) | |
4d5c3d91 | 2758 | delete arg9; |
d14a1e28 RD |
2759 | } |
2760 | return NULL; | |
2761 | } | |
2762 | ||
2763 | ||
d14a1e28 RD |
2764 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2765 | PyObject *resultobj; | |
2766 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2767 | int arg2 ; | |
2768 | PyObject * obj0 = 0 ; | |
994141e6 | 2769 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2770 | char *kwnames[] = { |
2771 | (char *) "self",(char *) "n", NULL | |
2772 | }; | |
2773 | ||
994141e6 | 2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2777 | arg2 = (int const) SWIG_AsInt(obj1); | |
2778 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2779 | { |
2780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2781 | (arg1)->SetSelection(arg2); | |
2782 | ||
2783 | wxPyEndAllowThreads(__tstate); | |
2784 | if (PyErr_Occurred()) SWIG_fail; | |
2785 | } | |
2786 | Py_INCREF(Py_None); resultobj = Py_None; | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | return NULL; | |
2790 | } | |
2791 | ||
2792 | ||
2793 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2794 | PyObject *resultobj; | |
2795 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2796 | wxString *arg2 = 0 ; | |
121b9a67 | 2797 | bool result; |
e811c8ce | 2798 | bool temp2 = False ; |
d14a1e28 RD |
2799 | PyObject * obj0 = 0 ; |
2800 | PyObject * obj1 = 0 ; | |
2801 | char *kwnames[] = { | |
2802 | (char *) "self",(char *) "string", NULL | |
2803 | }; | |
2804 | ||
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2808 | { |
2809 | arg2 = wxString_in_helper(obj1); | |
2810 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2811 | temp2 = True; |
d14a1e28 RD |
2812 | } |
2813 | { | |
2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2815 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2816 | |
2817 | wxPyEndAllowThreads(__tstate); | |
2818 | if (PyErr_Occurred()) SWIG_fail; | |
2819 | } | |
121b9a67 RD |
2820 | { |
2821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2822 | } | |
d14a1e28 RD |
2823 | { |
2824 | if (temp2) | |
2825 | delete arg2; | |
2826 | } | |
2827 | return resultobj; | |
2828 | fail: | |
2829 | { | |
2830 | if (temp2) | |
2831 | delete arg2; | |
2832 | } | |
2833 | return NULL; | |
2834 | } | |
2835 | ||
2836 | ||
2837 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject *resultobj; | |
2839 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2840 | int arg2 ; | |
2841 | wxString *arg3 = 0 ; | |
e811c8ce | 2842 | bool temp3 = False ; |
d14a1e28 | 2843 | PyObject * obj0 = 0 ; |
994141e6 | 2844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2845 | PyObject * obj2 = 0 ; |
2846 | char *kwnames[] = { | |
fcafa8a9 | 2847 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2848 | }; |
2849 | ||
994141e6 | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2853 | arg2 = (int) SWIG_AsInt(obj1); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2855 | { |
2856 | arg3 = wxString_in_helper(obj2); | |
2857 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2858 | temp3 = True; |
d14a1e28 RD |
2859 | } |
2860 | { | |
2861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2862 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2863 | ||
2864 | wxPyEndAllowThreads(__tstate); | |
2865 | if (PyErr_Occurred()) SWIG_fail; | |
2866 | } | |
2867 | Py_INCREF(Py_None); resultobj = Py_None; | |
2868 | { | |
2869 | if (temp3) | |
2870 | delete arg3; | |
2871 | } | |
2872 | return resultobj; | |
2873 | fail: | |
2874 | { | |
2875 | if (temp3) | |
2876 | delete arg3; | |
2877 | } | |
2878 | return NULL; | |
2879 | } | |
2880 | ||
2881 | ||
22bfe96c RD |
2882 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2883 | PyObject *resultobj; | |
2884 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2885 | wxVisualAttributes result; | |
2886 | PyObject * obj0 = 0 ; | |
2887 | char *kwnames[] = { | |
2888 | (char *) "variant", NULL | |
2889 | }; | |
2890 | ||
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2892 | if (obj0) { | |
2893 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | { | |
110da5b0 | 2897 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2899 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2902 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2903 | } |
2904 | { | |
2905 | wxVisualAttributes * resultptr; | |
2906 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2908 | } | |
2909 | return resultobj; | |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
d14a1e28 RD |
2915 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2916 | PyObject *obj; | |
2917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2918 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2919 | Py_INCREF(obj); | |
2920 | return Py_BuildValue((char *)""); | |
2921 | } | |
b2dc1044 RD |
2922 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2923 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2924 | return 1; | |
2925 | } | |
2926 | ||
2927 | ||
2928 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2929 | PyObject *pyobj; | |
2930 | ||
2931 | { | |
2932 | #if wxUSE_UNICODE | |
2933 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2934 | #else | |
2935 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2936 | #endif | |
2937 | } | |
2938 | return pyobj; | |
2939 | } | |
2940 | ||
2941 | ||
d14a1e28 RD |
2942 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2943 | PyObject *resultobj; | |
2944 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2945 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2946 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2947 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2948 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2949 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2950 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2951 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2952 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2953 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2954 | long arg7 = (long) 0 ; | |
2955 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2956 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2957 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2958 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2959 | wxComboBox *result; |
e811c8ce | 2960 | bool temp3 = False ; |
d14a1e28 RD |
2961 | wxPoint temp4 ; |
2962 | wxSize temp5 ; | |
3adfb63b | 2963 | bool temp6 = False ; |
e811c8ce | 2964 | bool temp9 = False ; |
d14a1e28 | 2965 | PyObject * obj0 = 0 ; |
994141e6 | 2966 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2967 | PyObject * obj2 = 0 ; |
2968 | PyObject * obj3 = 0 ; | |
2969 | PyObject * obj4 = 0 ; | |
2970 | PyObject * obj5 = 0 ; | |
994141e6 | 2971 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2972 | PyObject * obj7 = 0 ; |
2973 | PyObject * obj8 = 0 ; | |
2974 | char *kwnames[] = { | |
2975 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2976 | }; | |
2977 | ||
a95a7133 | 2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2981 | if (obj1) { |
2982 | arg2 = (int) SWIG_AsInt(obj1); | |
2983 | if (PyErr_Occurred()) SWIG_fail; | |
2984 | } | |
d14a1e28 RD |
2985 | if (obj2) { |
2986 | { | |
2987 | arg3 = wxString_in_helper(obj2); | |
2988 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2989 | temp3 = True; |
d14a1e28 RD |
2990 | } |
2991 | } | |
2992 | if (obj3) { | |
2993 | { | |
2994 | arg4 = &temp4; | |
2995 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2996 | } | |
2997 | } | |
2998 | if (obj4) { | |
2999 | { | |
3000 | arg5 = &temp5; | |
3001 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3002 | } | |
3003 | } | |
3004 | if (obj5) { | |
3005 | { | |
4d5c3d91 RD |
3006 | if (! PySequence_Check(obj5)) { |
3007 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3008 | SWIG_fail; | |
3009 | } | |
3010 | arg6 = new wxArrayString; | |
3adfb63b | 3011 | temp6 = True; |
4d5c3d91 RD |
3012 | int i, len=PySequence_Length(obj5); |
3013 | for (i=0; i<len; i++) { | |
3014 | PyObject* item = PySequence_GetItem(obj5, i); | |
3015 | #if wxUSE_UNICODE | |
3016 | PyObject* str = PyObject_Unicode(item); | |
3017 | #else | |
3018 | PyObject* str = PyObject_Str(item); | |
3019 | #endif | |
74a57fcd | 3020 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3021 | arg6->Add(Py2wxString(str)); |
3022 | Py_DECREF(item); | |
3023 | Py_DECREF(str); | |
3024 | } | |
d14a1e28 RD |
3025 | } |
3026 | } | |
994141e6 | 3027 | if (obj6) { |
15afbcd0 RD |
3028 | arg7 = (long) SWIG_AsLong(obj6); |
3029 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3030 | } |
d14a1e28 | 3031 | if (obj7) { |
15afbcd0 RD |
3032 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3034 | SWIG_fail; | |
4d5c3d91 | 3035 | if (arg8 == NULL) { |
15afbcd0 RD |
3036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3037 | SWIG_fail; | |
d14a1e28 RD |
3038 | } |
3039 | } | |
3040 | if (obj8) { | |
3041 | { | |
4d5c3d91 RD |
3042 | arg9 = wxString_in_helper(obj8); |
3043 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3044 | temp9 = True; |
d14a1e28 RD |
3045 | } |
3046 | } | |
3047 | { | |
e3b71cb8 | 3048 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3050 | 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 |
3051 | |
3052 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3053 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3054 | } |
15afbcd0 | 3055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3056 | { |
3057 | if (temp3) | |
3058 | delete arg3; | |
3059 | } | |
3060 | { | |
3adfb63b | 3061 | if (temp6) delete arg6; |
d14a1e28 RD |
3062 | } |
3063 | { | |
3064 | if (temp9) | |
4d5c3d91 | 3065 | delete arg9; |
d14a1e28 RD |
3066 | } |
3067 | return resultobj; | |
3068 | fail: | |
3069 | { | |
3070 | if (temp3) | |
3071 | delete arg3; | |
3072 | } | |
3073 | { | |
3adfb63b | 3074 | if (temp6) delete arg6; |
d14a1e28 RD |
3075 | } |
3076 | { | |
3077 | if (temp9) | |
4d5c3d91 | 3078 | delete arg9; |
d14a1e28 RD |
3079 | } |
3080 | return NULL; | |
3081 | } | |
3082 | ||
3083 | ||
3084 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3085 | PyObject *resultobj; | |
3086 | wxComboBox *result; | |
3087 | char *kwnames[] = { | |
3088 | NULL | |
3089 | }; | |
3090 | ||
3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3092 | { | |
e3b71cb8 | 3093 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3095 | result = (wxComboBox *)new wxComboBox(); | |
3096 | ||
3097 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3099 | } |
15afbcd0 | 3100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3101 | return resultobj; |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
3107 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3108 | PyObject *resultobj; | |
3109 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3110 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3111 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3112 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3113 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3114 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3115 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3116 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3117 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3118 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3119 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3120 | long arg8 = (long) 0 ; | |
3121 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3122 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3123 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3124 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3125 | bool result; |
e811c8ce | 3126 | bool temp4 = False ; |
d14a1e28 RD |
3127 | wxPoint temp5 ; |
3128 | wxSize temp6 ; | |
3adfb63b | 3129 | bool temp7 = False ; |
e811c8ce | 3130 | bool temp10 = False ; |
d14a1e28 RD |
3131 | PyObject * obj0 = 0 ; |
3132 | PyObject * obj1 = 0 ; | |
994141e6 | 3133 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3134 | PyObject * obj3 = 0 ; |
3135 | PyObject * obj4 = 0 ; | |
3136 | PyObject * obj5 = 0 ; | |
3137 | PyObject * obj6 = 0 ; | |
994141e6 | 3138 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3139 | PyObject * obj8 = 0 ; |
3140 | PyObject * obj9 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3143 | }; | |
3144 | ||
a95a7133 | 3145 | 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 |
3146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
3150 | if (obj2) { |
3151 | arg3 = (int) SWIG_AsInt(obj2); | |
3152 | if (PyErr_Occurred()) SWIG_fail; | |
3153 | } | |
d14a1e28 RD |
3154 | if (obj3) { |
3155 | { | |
3156 | arg4 = wxString_in_helper(obj3); | |
3157 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3158 | temp4 = True; |
d14a1e28 RD |
3159 | } |
3160 | } | |
3161 | if (obj4) { | |
3162 | { | |
3163 | arg5 = &temp5; | |
3164 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3165 | } | |
3166 | } | |
3167 | if (obj5) { | |
3168 | { | |
3169 | arg6 = &temp6; | |
3170 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3171 | } | |
3172 | } | |
3173 | if (obj6) { | |
3174 | { | |
4d5c3d91 RD |
3175 | if (! PySequence_Check(obj6)) { |
3176 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3177 | SWIG_fail; | |
3178 | } | |
3179 | arg7 = new wxArrayString; | |
3adfb63b | 3180 | temp7 = True; |
4d5c3d91 RD |
3181 | int i, len=PySequence_Length(obj6); |
3182 | for (i=0; i<len; i++) { | |
3183 | PyObject* item = PySequence_GetItem(obj6, i); | |
3184 | #if wxUSE_UNICODE | |
3185 | PyObject* str = PyObject_Unicode(item); | |
3186 | #else | |
3187 | PyObject* str = PyObject_Str(item); | |
3188 | #endif | |
74a57fcd | 3189 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3190 | arg7->Add(Py2wxString(str)); |
3191 | Py_DECREF(item); | |
3192 | Py_DECREF(str); | |
3193 | } | |
d14a1e28 RD |
3194 | } |
3195 | } | |
994141e6 | 3196 | if (obj7) { |
15afbcd0 RD |
3197 | arg8 = (long) SWIG_AsLong(obj7); |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3199 | } |
d14a1e28 | 3200 | if (obj8) { |
15afbcd0 RD |
3201 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3203 | SWIG_fail; | |
4d5c3d91 | 3204 | if (arg9 == NULL) { |
15afbcd0 RD |
3205 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3206 | SWIG_fail; | |
d14a1e28 RD |
3207 | } |
3208 | } | |
3209 | if (obj9) { | |
3210 | { | |
4d5c3d91 RD |
3211 | arg10 = wxString_in_helper(obj9); |
3212 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 3213 | temp10 = True; |
d14a1e28 RD |
3214 | } |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3218 | 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 |
3219 | |
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
4f89f6a3 RD |
3223 | { |
3224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3225 | } | |
d14a1e28 RD |
3226 | { |
3227 | if (temp4) | |
3228 | delete arg4; | |
3229 | } | |
3230 | { | |
3adfb63b | 3231 | if (temp7) delete arg7; |
d14a1e28 RD |
3232 | } |
3233 | { | |
3234 | if (temp10) | |
4d5c3d91 | 3235 | delete arg10; |
d14a1e28 RD |
3236 | } |
3237 | return resultobj; | |
3238 | fail: | |
3239 | { | |
3240 | if (temp4) | |
3241 | delete arg4; | |
3242 | } | |
3243 | { | |
3adfb63b | 3244 | if (temp7) delete arg7; |
d14a1e28 RD |
3245 | } |
3246 | { | |
3247 | if (temp10) | |
4d5c3d91 | 3248 | delete arg10; |
d14a1e28 RD |
3249 | } |
3250 | return NULL; | |
3251 | } | |
3252 | ||
3253 | ||
3254 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3255 | PyObject *resultobj; | |
3256 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3257 | wxString result; | |
3258 | PyObject * obj0 = 0 ; | |
3259 | char *kwnames[] = { | |
3260 | (char *) "self", NULL | |
3261 | }; | |
3262 | ||
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3266 | { |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
3273 | { | |
3274 | #if wxUSE_UNICODE | |
3275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3276 | #else | |
3277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3278 | #endif | |
3279 | } | |
3280 | return resultobj; | |
3281 | fail: | |
3282 | return NULL; | |
3283 | } | |
3284 | ||
3285 | ||
3286 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject *resultobj; | |
3288 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3289 | wxString *arg2 = 0 ; | |
e811c8ce | 3290 | bool temp2 = False ; |
d14a1e28 RD |
3291 | PyObject * obj0 = 0 ; |
3292 | PyObject * obj1 = 0 ; | |
3293 | char *kwnames[] = { | |
3294 | (char *) "self",(char *) "value", NULL | |
3295 | }; | |
3296 | ||
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3300 | { |
3301 | arg2 = wxString_in_helper(obj1); | |
3302 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3303 | temp2 = True; |
d14a1e28 RD |
3304 | } |
3305 | { | |
3306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3307 | (arg1)->SetValue((wxString const &)*arg2); | |
3308 | ||
3309 | wxPyEndAllowThreads(__tstate); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
3311 | } | |
3312 | Py_INCREF(Py_None); resultobj = Py_None; | |
3313 | { | |
3314 | if (temp2) | |
3315 | delete arg2; | |
3316 | } | |
3317 | return resultobj; | |
3318 | fail: | |
3319 | { | |
3320 | if (temp2) | |
3321 | delete arg2; | |
3322 | } | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
3327 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject *resultobj; | |
3329 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3330 | PyObject * obj0 = 0 ; | |
3331 | char *kwnames[] = { | |
3332 | (char *) "self", NULL | |
3333 | }; | |
3334 | ||
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3338 | { |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | (arg1)->Copy(); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
3345 | Py_INCREF(Py_None); resultobj = Py_None; | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
3352 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject *resultobj; | |
3354 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3355 | PyObject * obj0 = 0 ; | |
3356 | char *kwnames[] = { | |
3357 | (char *) "self", NULL | |
3358 | }; | |
3359 | ||
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3363 | { |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | (arg1)->Cut(); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject *resultobj; | |
3379 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3380 | PyObject * obj0 = 0 ; | |
3381 | char *kwnames[] = { | |
3382 | (char *) "self", NULL | |
3383 | }; | |
3384 | ||
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3388 | { |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | (arg1)->Paste(); | |
3391 | ||
3392 | wxPyEndAllowThreads(__tstate); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | Py_INCREF(Py_None); resultobj = Py_None; | |
3396 | return resultobj; | |
3397 | fail: | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3405 | long arg2 ; | |
3406 | PyObject * obj0 = 0 ; | |
994141e6 | 3407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3408 | char *kwnames[] = { |
3409 | (char *) "self",(char *) "pos", NULL | |
3410 | }; | |
3411 | ||
994141e6 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | arg2 = (long) SWIG_AsLong(obj1); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3417 | { |
3418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3419 | (arg1)->SetInsertionPoint(arg2); | |
3420 | ||
3421 | wxPyEndAllowThreads(__tstate); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | Py_INCREF(Py_None); resultobj = Py_None; | |
3425 | return resultobj; | |
3426 | fail: | |
3427 | return NULL; | |
3428 | } | |
3429 | ||
3430 | ||
3431 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3432 | PyObject *resultobj; | |
3433 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3434 | long result; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | char *kwnames[] = { | |
3437 | (char *) "self", NULL | |
3438 | }; | |
3439 | ||
3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3443 | { |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3445 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3446 | ||
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
15afbcd0 | 3450 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3451 | return resultobj; |
3452 | fail: | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
3457 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3458 | PyObject *resultobj; | |
3459 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3460 | long result; | |
3461 | PyObject * obj0 = 0 ; | |
3462 | char *kwnames[] = { | |
3463 | (char *) "self", NULL | |
3464 | }; | |
3465 | ||
3466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3469 | { |
3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3471 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3472 | ||
3473 | wxPyEndAllowThreads(__tstate); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
15afbcd0 | 3476 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3477 | return resultobj; |
3478 | fail: | |
3479 | return NULL; | |
3480 | } | |
3481 | ||
3482 | ||
3483 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject *resultobj; | |
3485 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3486 | long arg2 ; | |
3487 | long arg3 ; | |
3488 | wxString *arg4 = 0 ; | |
e811c8ce | 3489 | bool temp4 = False ; |
d14a1e28 | 3490 | PyObject * obj0 = 0 ; |
994141e6 RD |
3491 | PyObject * obj1 = 0 ; |
3492 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3493 | PyObject * obj3 = 0 ; |
3494 | char *kwnames[] = { | |
3495 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3496 | }; | |
3497 | ||
994141e6 | 3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3501 | arg2 = (long) SWIG_AsLong(obj1); | |
3502 | if (PyErr_Occurred()) SWIG_fail; | |
3503 | arg3 = (long) SWIG_AsLong(obj2); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3505 | { |
3506 | arg4 = wxString_in_helper(obj3); | |
3507 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3508 | temp4 = True; |
d14a1e28 RD |
3509 | } |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | Py_INCREF(Py_None); resultobj = Py_None; | |
3518 | { | |
3519 | if (temp4) | |
3520 | delete arg4; | |
3521 | } | |
3522 | return resultobj; | |
3523 | fail: | |
3524 | { | |
3525 | if (temp4) | |
3526 | delete arg4; | |
3527 | } | |
3528 | return NULL; | |
3529 | } | |
3530 | ||
3531 | ||
fd3f2efe RD |
3532 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3533 | PyObject *resultobj; | |
3534 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3535 | int arg2 ; | |
3536 | PyObject * obj0 = 0 ; | |
994141e6 | 3537 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3538 | char *kwnames[] = { |
3539 | (char *) "self",(char *) "n", NULL | |
3540 | }; | |
3541 | ||
994141e6 | 3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3545 | arg2 = (int) SWIG_AsInt(obj1); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
fd3f2efe RD |
3547 | { |
3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3549 | (arg1)->SetSelection(arg2); | |
3550 | ||
3551 | wxPyEndAllowThreads(__tstate); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | } | |
3554 | Py_INCREF(Py_None); resultobj = Py_None; | |
3555 | return resultobj; | |
3556 | fail: | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
d14a1e28 RD |
3561 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3562 | PyObject *resultobj; | |
3563 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3564 | long arg2 ; | |
3565 | long arg3 ; | |
3566 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3567 | PyObject * obj1 = 0 ; |
3568 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3569 | char *kwnames[] = { |
3570 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3571 | }; | |
3572 | ||
994141e6 | 3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3576 | arg2 = (long) SWIG_AsLong(obj1); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | arg3 = (long) SWIG_AsLong(obj2); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3580 | { |
3581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3582 | (arg1)->SetSelection(arg2,arg3); | |
3583 | ||
3584 | wxPyEndAllowThreads(__tstate); | |
3585 | if (PyErr_Occurred()) SWIG_fail; | |
3586 | } | |
3587 | Py_INCREF(Py_None); resultobj = Py_None; | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | return NULL; | |
3591 | } | |
3592 | ||
3593 | ||
121b9a67 RD |
3594 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3595 | PyObject *resultobj; | |
3596 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3597 | wxString *arg2 = 0 ; | |
3598 | bool result; | |
3599 | bool temp2 = False ; | |
3600 | PyObject * obj0 = 0 ; | |
3601 | PyObject * obj1 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "self",(char *) "string", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3609 | { | |
3610 | arg2 = wxString_in_helper(obj1); | |
3611 | if (arg2 == NULL) SWIG_fail; | |
3612 | temp2 = True; | |
3613 | } | |
3614 | { | |
3615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3616 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3617 | ||
3618 | wxPyEndAllowThreads(__tstate); | |
3619 | if (PyErr_Occurred()) SWIG_fail; | |
3620 | } | |
3621 | { | |
3622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3623 | } | |
3624 | { | |
3625 | if (temp2) | |
3626 | delete arg2; | |
3627 | } | |
3628 | return resultobj; | |
3629 | fail: | |
3630 | { | |
3631 | if (temp2) | |
3632 | delete arg2; | |
3633 | } | |
3634 | return NULL; | |
3635 | } | |
3636 | ||
3637 | ||
3638 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject *resultobj; | |
3640 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3641 | int arg2 ; | |
3642 | wxString *arg3 = 0 ; | |
3643 | bool temp3 = False ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | PyObject * obj1 = 0 ; | |
3646 | PyObject * obj2 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3654 | arg2 = (int) SWIG_AsInt(obj1); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | { | |
3657 | arg3 = wxString_in_helper(obj2); | |
3658 | if (arg3 == NULL) SWIG_fail; | |
3659 | temp3 = True; | |
3660 | } | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | Py_INCREF(Py_None); resultobj = Py_None; | |
3669 | { | |
3670 | if (temp3) | |
3671 | delete arg3; | |
3672 | } | |
3673 | return resultobj; | |
3674 | fail: | |
3675 | { | |
3676 | if (temp3) | |
3677 | delete arg3; | |
3678 | } | |
3679 | return NULL; | |
3680 | } | |
3681 | ||
3682 | ||
d14a1e28 RD |
3683 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3684 | PyObject *resultobj; | |
3685 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3686 | bool arg2 ; | |
3687 | PyObject * obj0 = 0 ; | |
3688 | PyObject * obj1 = 0 ; | |
3689 | char *kwnames[] = { | |
3690 | (char *) "self",(char *) "editable", NULL | |
3691 | }; | |
3692 | ||
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3696 | arg2 = (bool) SWIG_AsBool(obj1); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3698 | { |
3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3700 | (arg1)->SetEditable(arg2); | |
3701 | ||
3702 | wxPyEndAllowThreads(__tstate); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | } | |
3705 | Py_INCREF(Py_None); resultobj = Py_None; | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | return NULL; | |
3709 | } | |
3710 | ||
3711 | ||
3712 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3713 | PyObject *resultobj; | |
3714 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3715 | PyObject * obj0 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "self", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3723 | { |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | (arg1)->SetInsertionPointEnd(); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | Py_INCREF(Py_None); resultobj = Py_None; | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
3737 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3738 | PyObject *resultobj; | |
3739 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3740 | long arg2 ; | |
3741 | long arg3 ; | |
3742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3743 | PyObject * obj1 = 0 ; |
3744 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3745 | char *kwnames[] = { |
3746 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3747 | }; | |
3748 | ||
994141e6 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3752 | arg2 = (long) SWIG_AsLong(obj1); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | arg3 = (long) SWIG_AsLong(obj2); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3756 | { |
3757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3758 | (arg1)->Remove(arg2,arg3); | |
3759 | ||
3760 | wxPyEndAllowThreads(__tstate); | |
3761 | if (PyErr_Occurred()) SWIG_fail; | |
3762 | } | |
3763 | Py_INCREF(Py_None); resultobj = Py_None; | |
3764 | return resultobj; | |
3765 | fail: | |
3766 | return NULL; | |
3767 | } | |
3768 | ||
3769 | ||
22bfe96c RD |
3770 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3771 | PyObject *resultobj; | |
3772 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3773 | wxVisualAttributes result; | |
3774 | PyObject * obj0 = 0 ; | |
3775 | char *kwnames[] = { | |
3776 | (char *) "variant", NULL | |
3777 | }; | |
3778 | ||
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3780 | if (obj0) { | |
3781 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | { | |
110da5b0 | 3785 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3787 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3788 | ||
3789 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3790 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3791 | } |
3792 | { | |
3793 | wxVisualAttributes * resultptr; | |
3794 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3796 | } | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
d14a1e28 RD |
3803 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3804 | PyObject *obj; | |
3805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3806 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3807 | Py_INCREF(obj); | |
3808 | return Py_BuildValue((char *)""); | |
3809 | } | |
b2dc1044 RD |
3810 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3811 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3812 | return 1; | |
3813 | } | |
3814 | ||
3815 | ||
3816 | static PyObject *_wrap_GaugeNameStr_get() { | |
3817 | PyObject *pyobj; | |
3818 | ||
3819 | { | |
3820 | #if wxUSE_UNICODE | |
3821 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3822 | #else | |
3823 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3824 | #endif | |
3825 | } | |
3826 | return pyobj; | |
3827 | } | |
3828 | ||
3829 | ||
d14a1e28 RD |
3830 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3831 | PyObject *resultobj; | |
3832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3833 | int arg2 = (int) -1 ; |
3834 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
3835 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3836 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3837 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3838 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3839 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3840 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3841 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3842 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3843 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3844 | wxGauge *result; | |
3845 | wxPoint temp4 ; | |
3846 | wxSize temp5 ; | |
e811c8ce | 3847 | bool temp8 = False ; |
d14a1e28 | 3848 | PyObject * obj0 = 0 ; |
994141e6 RD |
3849 | PyObject * obj1 = 0 ; |
3850 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3851 | PyObject * obj3 = 0 ; |
3852 | PyObject * obj4 = 0 ; | |
994141e6 | 3853 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3854 | PyObject * obj6 = 0 ; |
3855 | PyObject * obj7 = 0 ; | |
3856 | char *kwnames[] = { | |
3857 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3858 | }; | |
3859 | ||
248ed943 | 3860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3863 | if (obj1) { |
3864 | arg2 = (int) SWIG_AsInt(obj1); | |
3865 | if (PyErr_Occurred()) SWIG_fail; | |
3866 | } | |
3867 | if (obj2) { | |
3868 | arg3 = (int) SWIG_AsInt(obj2); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
d14a1e28 RD |
3871 | if (obj3) { |
3872 | { | |
3873 | arg4 = &temp4; | |
3874 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3875 | } | |
3876 | } | |
3877 | if (obj4) { | |
3878 | { | |
3879 | arg5 = &temp5; | |
3880 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3881 | } | |
3882 | } | |
994141e6 | 3883 | if (obj5) { |
15afbcd0 RD |
3884 | arg6 = (long) SWIG_AsLong(obj5); |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3886 | } |
d14a1e28 | 3887 | if (obj6) { |
15afbcd0 RD |
3888 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3890 | SWIG_fail; | |
d14a1e28 | 3891 | if (arg7 == NULL) { |
15afbcd0 RD |
3892 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3893 | SWIG_fail; | |
d14a1e28 RD |
3894 | } |
3895 | } | |
3896 | if (obj7) { | |
3897 | { | |
3898 | arg8 = wxString_in_helper(obj7); | |
3899 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3900 | temp8 = True; |
d14a1e28 RD |
3901 | } |
3902 | } | |
3903 | { | |
e3b71cb8 | 3904 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3906 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3907 | ||
3908 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3909 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3910 | } |
15afbcd0 | 3911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3912 | { |
3913 | if (temp8) | |
3914 | delete arg8; | |
3915 | } | |
3916 | return resultobj; | |
3917 | fail: | |
3918 | { | |
3919 | if (temp8) | |
3920 | delete arg8; | |
3921 | } | |
3922 | return NULL; | |
3923 | } | |
3924 | ||
3925 | ||
3926 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3927 | PyObject *resultobj; | |
3928 | wxGauge *result; | |
3929 | char *kwnames[] = { | |
3930 | NULL | |
3931 | }; | |
3932 | ||
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3934 | { | |
e3b71cb8 | 3935 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3937 | result = (wxGauge *)new wxGauge(); | |
3938 | ||
3939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3940 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3941 | } |
15afbcd0 | 3942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3943 | return resultobj; |
3944 | fail: | |
3945 | return NULL; | |
3946 | } | |
3947 | ||
3948 | ||
3949 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3950 | PyObject *resultobj; | |
3951 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3952 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3953 | int arg3 = (int) -1 ; |
3954 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
3955 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3956 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3957 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3958 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3959 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3960 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3961 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3962 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3963 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3964 | bool result; | |
3965 | wxPoint temp5 ; | |
3966 | wxSize temp6 ; | |
e811c8ce | 3967 | bool temp9 = False ; |
d14a1e28 RD |
3968 | PyObject * obj0 = 0 ; |
3969 | PyObject * obj1 = 0 ; | |
994141e6 RD |
3970 | PyObject * obj2 = 0 ; |
3971 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3972 | PyObject * obj4 = 0 ; |
3973 | PyObject * obj5 = 0 ; | |
994141e6 | 3974 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3975 | PyObject * obj7 = 0 ; |
3976 | PyObject * obj8 = 0 ; | |
3977 | char *kwnames[] = { | |
3978 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3979 | }; | |
3980 | ||
248ed943 | 3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3986 | if (obj2) { |
3987 | arg3 = (int) SWIG_AsInt(obj2); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | } | |
3990 | if (obj3) { | |
3991 | arg4 = (int) SWIG_AsInt(obj3); | |
3992 | if (PyErr_Occurred()) SWIG_fail; | |
3993 | } | |
d14a1e28 RD |
3994 | if (obj4) { |
3995 | { | |
3996 | arg5 = &temp5; | |
3997 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3998 | } | |
3999 | } | |
4000 | if (obj5) { | |
4001 | { | |
4002 | arg6 = &temp6; | |
4003 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4004 | } | |
4005 | } | |
994141e6 | 4006 | if (obj6) { |
15afbcd0 RD |
4007 | arg7 = (long) SWIG_AsLong(obj6); |
4008 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4009 | } |
d14a1e28 | 4010 | if (obj7) { |
15afbcd0 RD |
4011 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4013 | SWIG_fail; | |
d14a1e28 | 4014 | if (arg8 == NULL) { |
15afbcd0 RD |
4015 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4016 | SWIG_fail; | |
d14a1e28 RD |
4017 | } |
4018 | } | |
4019 | if (obj8) { | |
4020 | { | |
4021 | arg9 = wxString_in_helper(obj8); | |
4022 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4023 | temp9 = True; |
d14a1e28 RD |
4024 | } |
4025 | } | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4f89f6a3 RD |
4033 | { |
4034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4035 | } | |
d14a1e28 RD |
4036 | { |
4037 | if (temp9) | |
4038 | delete arg9; | |
4039 | } | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | { | |
4043 | if (temp9) | |
4044 | delete arg9; | |
4045 | } | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
4050 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4051 | PyObject *resultobj; | |
4052 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4053 | int arg2 ; | |
4054 | PyObject * obj0 = 0 ; | |
994141e6 | 4055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4056 | char *kwnames[] = { |
4057 | (char *) "self",(char *) "range", NULL | |
4058 | }; | |
4059 | ||
994141e6 | 4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4063 | arg2 = (int) SWIG_AsInt(obj1); | |
4064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4065 | { |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | (arg1)->SetRange(arg2); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | Py_INCREF(Py_None); resultobj = Py_None; | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4082 | int result; | |
4083 | PyObject * obj0 = 0 ; | |
4084 | char *kwnames[] = { | |
4085 | (char *) "self", NULL | |
4086 | }; | |
4087 | ||
4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4091 | { |
4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4093 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4094 | ||
4095 | wxPyEndAllowThreads(__tstate); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | } | |
15afbcd0 | 4098 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4099 | return resultobj; |
4100 | fail: | |
4101 | return NULL; | |
4102 | } | |
4103 | ||
4104 | ||
4105 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4106 | PyObject *resultobj; | |
4107 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4108 | int arg2 ; | |
4109 | PyObject * obj0 = 0 ; | |
994141e6 | 4110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4111 | char *kwnames[] = { |
4112 | (char *) "self",(char *) "pos", NULL | |
4113 | }; | |
4114 | ||
994141e6 | 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4118 | arg2 = (int) SWIG_AsInt(obj1); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4120 | { |
4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4122 | (arg1)->SetValue(arg2); | |
4123 | ||
4124 | wxPyEndAllowThreads(__tstate); | |
4125 | if (PyErr_Occurred()) SWIG_fail; | |
4126 | } | |
4127 | Py_INCREF(Py_None); resultobj = Py_None; | |
4128 | return resultobj; | |
4129 | fail: | |
4130 | return NULL; | |
4131 | } | |
4132 | ||
4133 | ||
4134 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4135 | PyObject *resultobj; | |
4136 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4137 | int result; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | char *kwnames[] = { | |
4140 | (char *) "self", NULL | |
4141 | }; | |
4142 | ||
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4146 | { |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
4152 | } | |
15afbcd0 | 4153 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4154 | return resultobj; |
4155 | fail: | |
4156 | return NULL; | |
4157 | } | |
4158 | ||
4159 | ||
4160 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4161 | PyObject *resultobj; | |
4162 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4163 | bool result; | |
4164 | PyObject * obj0 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4172 | { |
4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4174 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4175 | ||
4176 | wxPyEndAllowThreads(__tstate); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4f89f6a3 RD |
4179 | { |
4180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4181 | } | |
d14a1e28 RD |
4182 | return resultobj; |
4183 | fail: | |
4184 | return NULL; | |
4185 | } | |
4186 | ||
4187 | ||
4188 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4189 | PyObject *resultobj; | |
4190 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4191 | int arg2 ; | |
4192 | PyObject * obj0 = 0 ; | |
994141e6 | 4193 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4194 | char *kwnames[] = { |
4195 | (char *) "self",(char *) "w", NULL | |
4196 | }; | |
4197 | ||
994141e6 | 4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4201 | arg2 = (int) SWIG_AsInt(obj1); | |
4202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4203 | { |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | (arg1)->SetShadowWidth(arg2); | |
4206 | ||
4207 | wxPyEndAllowThreads(__tstate); | |
4208 | if (PyErr_Occurred()) SWIG_fail; | |
4209 | } | |
4210 | Py_INCREF(Py_None); resultobj = Py_None; | |
4211 | return resultobj; | |
4212 | fail: | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
4217 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject *resultobj; | |
4219 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4220 | int result; | |
4221 | PyObject * obj0 = 0 ; | |
4222 | char *kwnames[] = { | |
4223 | (char *) "self", NULL | |
4224 | }; | |
4225 | ||
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4229 | { |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
15afbcd0 | 4236 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4237 | return resultobj; |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4246 | int arg2 ; | |
4247 | PyObject * obj0 = 0 ; | |
994141e6 | 4248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4249 | char *kwnames[] = { |
4250 | (char *) "self",(char *) "w", NULL | |
4251 | }; | |
4252 | ||
994141e6 | 4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4256 | arg2 = (int) SWIG_AsInt(obj1); | |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4258 | { |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | (arg1)->SetBezelFace(arg2); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | Py_INCREF(Py_None); resultobj = Py_None; | |
4266 | return resultobj; | |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
4272 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject *resultobj; | |
4274 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4275 | int result; | |
4276 | PyObject * obj0 = 0 ; | |
4277 | char *kwnames[] = { | |
4278 | (char *) "self", NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4284 | { |
4285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4286 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4287 | ||
4288 | wxPyEndAllowThreads(__tstate); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | } | |
15afbcd0 | 4291 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4292 | return resultobj; |
4293 | fail: | |
4294 | return NULL; | |
4295 | } | |
4296 | ||
4297 | ||
22bfe96c RD |
4298 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4299 | PyObject *resultobj; | |
4300 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4301 | wxVisualAttributes result; | |
4302 | PyObject * obj0 = 0 ; | |
4303 | char *kwnames[] = { | |
4304 | (char *) "variant", NULL | |
4305 | }; | |
4306 | ||
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4308 | if (obj0) { | |
4309 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4310 | if (PyErr_Occurred()) SWIG_fail; | |
4311 | } | |
4312 | { | |
110da5b0 | 4313 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4315 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4316 | ||
4317 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4318 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4319 | } |
4320 | { | |
4321 | wxVisualAttributes * resultptr; | |
4322 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4324 | } | |
4325 | return resultobj; | |
4326 | fail: | |
4327 | return NULL; | |
4328 | } | |
4329 | ||
4330 | ||
d14a1e28 RD |
4331 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4332 | PyObject *obj; | |
4333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4334 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4335 | Py_INCREF(obj); | |
4336 | return Py_BuildValue((char *)""); | |
4337 | } | |
b2dc1044 RD |
4338 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
4339 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4340 | return 1; | |
4341 | } | |
4342 | ||
4343 | ||
4344 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4345 | PyObject *pyobj; | |
4346 | ||
4347 | { | |
4348 | #if wxUSE_UNICODE | |
4349 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4350 | #else | |
4351 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4352 | #endif | |
4353 | } | |
4354 | return pyobj; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4359 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4360 | return 1; | |
4361 | } | |
4362 | ||
4363 | ||
4364 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4365 | PyObject *pyobj; | |
4366 | ||
4367 | { | |
4368 | #if wxUSE_UNICODE | |
4369 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4370 | #else | |
4371 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4372 | #endif | |
4373 | } | |
4374 | return pyobj; | |
4375 | } | |
4376 | ||
4377 | ||
4378 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4380 | return 1; | |
4381 | } | |
4382 | ||
4383 | ||
4384 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4385 | PyObject *pyobj; | |
4386 | ||
4387 | { | |
4388 | #if wxUSE_UNICODE | |
4389 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4390 | #else | |
4391 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4392 | #endif | |
4393 | } | |
4394 | return pyobj; | |
4395 | } | |
4396 | ||
4397 | ||
d14a1e28 RD |
4398 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4399 | PyObject *resultobj; | |
4400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4401 | int arg2 = (int) -1 ; |
4402 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4403 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4404 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4405 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4406 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4407 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4408 | long arg6 = (long) 0 ; | |
4409 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4410 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4411 | wxStaticBox *result; | |
e811c8ce | 4412 | bool temp3 = False ; |
d14a1e28 RD |
4413 | wxPoint temp4 ; |
4414 | wxSize temp5 ; | |
e811c8ce | 4415 | bool temp7 = False ; |
d14a1e28 | 4416 | PyObject * obj0 = 0 ; |
994141e6 | 4417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4418 | PyObject * obj2 = 0 ; |
4419 | PyObject * obj3 = 0 ; | |
4420 | PyObject * obj4 = 0 ; | |
994141e6 | 4421 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4422 | PyObject * obj6 = 0 ; |
4423 | char *kwnames[] = { | |
4424 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4425 | }; | |
4426 | ||
248ed943 | 4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4430 | if (obj1) { |
4431 | arg2 = (int) SWIG_AsInt(obj1); | |
4432 | if (PyErr_Occurred()) SWIG_fail; | |
4433 | } | |
4434 | if (obj2) { | |
4435 | { | |
4436 | arg3 = wxString_in_helper(obj2); | |
4437 | if (arg3 == NULL) SWIG_fail; | |
4438 | temp3 = True; | |
4439 | } | |
d14a1e28 RD |
4440 | } |
4441 | if (obj3) { | |
4442 | { | |
4443 | arg4 = &temp4; | |
4444 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4445 | } | |
4446 | } | |
4447 | if (obj4) { | |
4448 | { | |
4449 | arg5 = &temp5; | |
4450 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4451 | } | |
4452 | } | |
994141e6 | 4453 | if (obj5) { |
15afbcd0 RD |
4454 | arg6 = (long) SWIG_AsLong(obj5); |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4456 | } |
d14a1e28 RD |
4457 | if (obj6) { |
4458 | { | |
4459 | arg7 = wxString_in_helper(obj6); | |
4460 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4461 | temp7 = True; |
d14a1e28 RD |
4462 | } |
4463 | } | |
4464 | { | |
e3b71cb8 | 4465 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4467 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4470 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4471 | } |
4472 | { | |
412d302d | 4473 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
4474 | } |
4475 | { | |
4476 | if (temp3) | |
4477 | delete arg3; | |
4478 | } | |
4479 | { | |
4480 | if (temp7) | |
4481 | delete arg7; | |
4482 | } | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | { | |
4486 | if (temp3) | |
4487 | delete arg3; | |
4488 | } | |
4489 | { | |
4490 | if (temp7) | |
4491 | delete arg7; | |
4492 | } | |
4493 | return NULL; | |
4494 | } | |
4495 | ||
4496 | ||
4497 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4498 | PyObject *resultobj; | |
4499 | wxStaticBox *result; | |
4500 | char *kwnames[] = { | |
4501 | NULL | |
4502 | }; | |
4503 | ||
4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4505 | { | |
e3b71cb8 | 4506 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4508 | result = (wxStaticBox *)new wxStaticBox(); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4512 | } |
4513 | { | |
412d302d | 4514 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
4515 | } |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4526 | int arg3 = (int) -1 ; |
4527 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4528 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
4529 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4530 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4531 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4532 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4533 | long arg7 = (long) 0 ; | |
4534 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4535 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4536 | bool result; | |
e811c8ce | 4537 | bool temp4 = False ; |
d14a1e28 RD |
4538 | wxPoint temp5 ; |
4539 | wxSize temp6 ; | |
e811c8ce | 4540 | bool temp8 = False ; |
d14a1e28 RD |
4541 | PyObject * obj0 = 0 ; |
4542 | PyObject * obj1 = 0 ; | |
994141e6 | 4543 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4544 | PyObject * obj3 = 0 ; |
4545 | PyObject * obj4 = 0 ; | |
4546 | PyObject * obj5 = 0 ; | |
994141e6 | 4547 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4548 | PyObject * obj7 = 0 ; |
4549 | char *kwnames[] = { | |
4550 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4551 | }; | |
4552 | ||
248ed943 | 4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4558 | if (obj2) { |
4559 | arg3 = (int) SWIG_AsInt(obj2); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | } | |
4562 | if (obj3) { | |
4563 | { | |
4564 | arg4 = wxString_in_helper(obj3); | |
4565 | if (arg4 == NULL) SWIG_fail; | |
4566 | temp4 = True; | |
4567 | } | |
d14a1e28 RD |
4568 | } |
4569 | if (obj4) { | |
4570 | { | |
4571 | arg5 = &temp5; | |
4572 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4573 | } | |
4574 | } | |
4575 | if (obj5) { | |
4576 | { | |
4577 | arg6 = &temp6; | |
4578 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4579 | } | |
4580 | } | |
994141e6 | 4581 | if (obj6) { |
15afbcd0 RD |
4582 | arg7 = (long) SWIG_AsLong(obj6); |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4584 | } |
d14a1e28 RD |
4585 | if (obj7) { |
4586 | { | |
4587 | arg8 = wxString_in_helper(obj7); | |
4588 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4589 | temp8 = True; |
d14a1e28 RD |
4590 | } |
4591 | } | |
4592 | { | |
4593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4594 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4595 | ||
4596 | wxPyEndAllowThreads(__tstate); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4f89f6a3 RD |
4599 | { |
4600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4601 | } | |
d14a1e28 RD |
4602 | { |
4603 | if (temp4) | |
4604 | delete arg4; | |
4605 | } | |
4606 | { | |
4607 | if (temp8) | |
4608 | delete arg8; | |
4609 | } | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | { | |
4613 | if (temp4) | |
4614 | delete arg4; | |
4615 | } | |
4616 | { | |
4617 | if (temp8) | |
4618 | delete arg8; | |
4619 | } | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
22bfe96c RD |
4624 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4625 | PyObject *resultobj; | |
4626 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4627 | wxVisualAttributes result; | |
4628 | PyObject * obj0 = 0 ; | |
4629 | char *kwnames[] = { | |
4630 | (char *) "variant", NULL | |
4631 | }; | |
4632 | ||
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4634 | if (obj0) { | |
4635 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
4638 | { | |
110da5b0 | 4639 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4641 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4642 | ||
4643 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4644 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4645 | } |
4646 | { | |
4647 | wxVisualAttributes * resultptr; | |
4648 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4650 | } | |
4651 | return resultobj; | |
4652 | fail: | |
4653 | return NULL; | |
4654 | } | |
4655 | ||
4656 | ||
d14a1e28 RD |
4657 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4658 | PyObject *obj; | |
4659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4660 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4661 | Py_INCREF(obj); | |
4662 | return Py_BuildValue((char *)""); | |
4663 | } | |
4664 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4667 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4668 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4669 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4670 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4671 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4672 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4673 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4674 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4675 | wxStaticLine *result; | |
4676 | wxPoint temp3 ; | |
4677 | wxSize temp4 ; | |
e811c8ce | 4678 | bool temp6 = False ; |
d14a1e28 | 4679 | PyObject * obj0 = 0 ; |
994141e6 | 4680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4681 | PyObject * obj2 = 0 ; |
4682 | PyObject * obj3 = 0 ; | |
994141e6 | 4683 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4684 | PyObject * obj5 = 0 ; |
4685 | char *kwnames[] = { | |
4686 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4687 | }; | |
4688 | ||
248ed943 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4692 | if (obj1) { |
4693 | arg2 = (int) SWIG_AsInt(obj1); | |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
4695 | } | |
d14a1e28 RD |
4696 | if (obj2) { |
4697 | { | |
4698 | arg3 = &temp3; | |
4699 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4700 | } | |
4701 | } | |
4702 | if (obj3) { | |
4703 | { | |
4704 | arg4 = &temp4; | |
4705 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4706 | } | |
4707 | } | |
994141e6 | 4708 | if (obj4) { |
15afbcd0 RD |
4709 | arg5 = (long) SWIG_AsLong(obj4); |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4711 | } |
d14a1e28 RD |
4712 | if (obj5) { |
4713 | { | |
4714 | arg6 = wxString_in_helper(obj5); | |
4715 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4716 | temp6 = True; |
d14a1e28 RD |
4717 | } |
4718 | } | |
4719 | { | |
e3b71cb8 | 4720 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4722 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4725 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4726 | } |
15afbcd0 | 4727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4728 | { |
4729 | if (temp6) | |
4730 | delete arg6; | |
4731 | } | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | { | |
4735 | if (temp6) | |
4736 | delete arg6; | |
4737 | } | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
4742 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4743 | PyObject *resultobj; | |
4744 | wxStaticLine *result; | |
4745 | char *kwnames[] = { | |
4746 | NULL | |
4747 | }; | |
4748 | ||
4749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4750 | { | |
e3b71cb8 | 4751 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4753 | result = (wxStaticLine *)new wxStaticLine(); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4756 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4757 | } |
15afbcd0 | 4758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4759 | return resultobj; |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
4765 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject *resultobj; | |
4767 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4768 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4769 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4770 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4771 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4772 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4773 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4774 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4775 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4776 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4777 | bool result; | |
4778 | wxPoint temp4 ; | |
4779 | wxSize temp5 ; | |
e811c8ce | 4780 | bool temp7 = False ; |
d14a1e28 RD |
4781 | PyObject * obj0 = 0 ; |
4782 | PyObject * obj1 = 0 ; | |
994141e6 | 4783 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4784 | PyObject * obj3 = 0 ; |
4785 | PyObject * obj4 = 0 ; | |
994141e6 | 4786 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4787 | PyObject * obj6 = 0 ; |
4788 | char *kwnames[] = { | |
4789 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4790 | }; | |
4791 | ||
248ed943 | 4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4797 | if (obj2) { |
4798 | arg3 = (int) SWIG_AsInt(obj2); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
d14a1e28 RD |
4801 | if (obj3) { |
4802 | { | |
4803 | arg4 = &temp4; | |
4804 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4805 | } | |
4806 | } | |
4807 | if (obj4) { | |
4808 | { | |
4809 | arg5 = &temp5; | |
4810 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4811 | } | |
4812 | } | |
994141e6 | 4813 | if (obj5) { |
15afbcd0 RD |
4814 | arg6 = (long) SWIG_AsLong(obj5); |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4816 | } |
d14a1e28 RD |
4817 | if (obj6) { |
4818 | { | |
4819 | arg7 = wxString_in_helper(obj6); | |
4820 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4821 | temp7 = True; |
d14a1e28 RD |
4822 | } |
4823 | } | |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4f89f6a3 RD |
4831 | { |
4832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4833 | } | |
d14a1e28 RD |
4834 | { |
4835 | if (temp7) | |
4836 | delete arg7; | |
4837 | } | |
4838 | return resultobj; | |
4839 | fail: | |
4840 | { | |
4841 | if (temp7) | |
4842 | delete arg7; | |
4843 | } | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
4848 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4849 | PyObject *resultobj; | |
4850 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4851 | bool result; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4860 | { |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4f89f6a3 RD |
4867 | { |
4868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4869 | } | |
d14a1e28 RD |
4870 | return resultobj; |
4871 | fail: | |
4872 | return NULL; | |
4873 | } | |
4874 | ||
4875 | ||
4876 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4877 | PyObject *resultobj; | |
4878 | int result; | |
4879 | char *kwnames[] = { | |
4880 | NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4884 | { | |
4885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4886 | result = (int)wxStaticLine::GetDefaultSize(); | |
4887 | ||
4888 | wxPyEndAllowThreads(__tstate); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | } | |
15afbcd0 | 4891 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4892 | return resultobj; |
4893 | fail: | |
4894 | return NULL; | |
4895 | } | |
4896 | ||
4897 | ||
22bfe96c RD |
4898 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4899 | PyObject *resultobj; | |
4900 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4901 | wxVisualAttributes result; | |
4902 | PyObject * obj0 = 0 ; | |
4903 | char *kwnames[] = { | |
4904 | (char *) "variant", NULL | |
4905 | }; | |
4906 | ||
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4908 | if (obj0) { | |
4909 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4910 | if (PyErr_Occurred()) SWIG_fail; | |
4911 | } | |
4912 | { | |
110da5b0 | 4913 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4915 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4916 | ||
4917 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4918 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4919 | } |
4920 | { | |
4921 | wxVisualAttributes * resultptr; | |
4922 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4924 | } | |
4925 | return resultobj; | |
4926 | fail: | |
4927 | return NULL; | |
4928 | } | |
4929 | ||
4930 | ||
d14a1e28 RD |
4931 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4932 | PyObject *obj; | |
4933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4934 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4935 | Py_INCREF(obj); | |
4936 | return Py_BuildValue((char *)""); | |
4937 | } | |
4938 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4939 | PyObject *resultobj; | |
4940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4941 | int arg2 = (int) -1 ; |
4942 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4943 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4944 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4945 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4946 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4947 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4948 | long arg6 = (long) 0 ; | |
4949 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4950 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4951 | wxStaticText *result; | |
e811c8ce | 4952 | bool temp3 = False ; |
d14a1e28 RD |
4953 | wxPoint temp4 ; |
4954 | wxSize temp5 ; | |
e811c8ce | 4955 | bool temp7 = False ; |
d14a1e28 | 4956 | PyObject * obj0 = 0 ; |
994141e6 | 4957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4958 | PyObject * obj2 = 0 ; |
4959 | PyObject * obj3 = 0 ; | |
4960 | PyObject * obj4 = 0 ; | |
994141e6 | 4961 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4962 | PyObject * obj6 = 0 ; |
4963 | char *kwnames[] = { | |
4964 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4965 | }; | |
4966 | ||
248ed943 | 4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4970 | if (obj1) { |
4971 | arg2 = (int) SWIG_AsInt(obj1); | |
4972 | if (PyErr_Occurred()) SWIG_fail; | |
4973 | } | |
4974 | if (obj2) { | |
4975 | { | |
4976 | arg3 = wxString_in_helper(obj2); | |
4977 | if (arg3 == NULL) SWIG_fail; | |
4978 | temp3 = True; | |
4979 | } | |
d14a1e28 RD |
4980 | } |
4981 | if (obj3) { | |
4982 | { | |
4983 | arg4 = &temp4; | |
4984 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4985 | } | |
4986 | } | |
4987 | if (obj4) { | |
4988 | { | |
4989 | arg5 = &temp5; | |
4990 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4991 | } | |
4992 | } | |
994141e6 | 4993 | if (obj5) { |
15afbcd0 RD |
4994 | arg6 = (long) SWIG_AsLong(obj5); |
4995 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4996 | } |
d14a1e28 RD |
4997 | if (obj6) { |
4998 | { | |
4999 | arg7 = wxString_in_helper(obj6); | |
5000 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5001 | temp7 = True; |
d14a1e28 RD |
5002 | } |
5003 | } | |
5004 | { | |
e3b71cb8 | 5005 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5007 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5008 | ||
5009 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5010 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5011 | } |
15afbcd0 | 5012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5013 | { |
5014 | if (temp3) | |
5015 | delete arg3; | |
5016 | } | |
5017 | { | |
5018 | if (temp7) | |
5019 | delete arg7; | |
5020 | } | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | { | |
5024 | if (temp3) | |
5025 | delete arg3; | |
5026 | } | |
5027 | { | |
5028 | if (temp7) | |
5029 | delete arg7; | |
5030 | } | |
5031 | return NULL; | |
5032 | } | |
5033 | ||
5034 | ||
5035 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject *resultobj; | |
5037 | wxStaticText *result; | |
5038 | char *kwnames[] = { | |
5039 | NULL | |
5040 | }; | |
5041 | ||
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5043 | { | |
e3b71cb8 | 5044 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5046 | result = (wxStaticText *)new wxStaticText(); | |
5047 | ||
5048 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5049 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5050 | } |
15afbcd0 | 5051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5052 | return resultobj; |
5053 | fail: | |
5054 | return NULL; | |
5055 | } | |
5056 | ||
5057 | ||
5058 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj; | |
5060 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5061 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5062 | int arg3 = (int) -1 ; |
5063 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5064 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
5065 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5066 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5067 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5068 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5069 | long arg7 = (long) 0 ; | |
5070 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5071 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5072 | bool result; | |
e811c8ce | 5073 | bool temp4 = False ; |
d14a1e28 RD |
5074 | wxPoint temp5 ; |
5075 | wxSize temp6 ; | |
e811c8ce | 5076 | bool temp8 = False ; |
d14a1e28 RD |
5077 | PyObject * obj0 = 0 ; |
5078 | PyObject * obj1 = 0 ; | |
994141e6 | 5079 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5080 | PyObject * obj3 = 0 ; |
5081 | PyObject * obj4 = 0 ; | |
5082 | PyObject * obj5 = 0 ; | |
994141e6 | 5083 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5084 | PyObject * obj7 = 0 ; |
5085 | char *kwnames[] = { | |
5086 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5087 | }; | |
5088 | ||
248ed943 | 5089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5094 | if (obj2) { |
5095 | arg3 = (int) SWIG_AsInt(obj2); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | if (obj3) { | |
5099 | { | |
5100 | arg4 = wxString_in_helper(obj3); | |
5101 | if (arg4 == NULL) SWIG_fail; | |
5102 | temp4 = True; | |
5103 | } | |
d14a1e28 RD |
5104 | } |
5105 | if (obj4) { | |
5106 | { | |
5107 | arg5 = &temp5; | |
5108 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5109 | } | |
5110 | } | |
5111 | if (obj5) { | |
5112 | { | |
5113 | arg6 = &temp6; | |
5114 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5115 | } | |
5116 | } | |
994141e6 | 5117 | if (obj6) { |
15afbcd0 RD |
5118 | arg7 = (long) SWIG_AsLong(obj6); |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5120 | } |
d14a1e28 RD |
5121 | if (obj7) { |
5122 | { | |
5123 | arg8 = wxString_in_helper(obj7); | |
5124 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5125 | temp8 = True; |
d14a1e28 RD |
5126 | } |
5127 | } | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
4f89f6a3 RD |
5135 | { |
5136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5137 | } | |
d14a1e28 RD |
5138 | { |
5139 | if (temp4) | |
5140 | delete arg4; | |
5141 | } | |
5142 | { | |
5143 | if (temp8) | |
5144 | delete arg8; | |
5145 | } | |
5146 | return resultobj; | |
5147 | fail: | |
5148 | { | |
5149 | if (temp4) | |
5150 | delete arg4; | |
5151 | } | |
5152 | { | |
5153 | if (temp8) | |
5154 | delete arg8; | |
5155 | } | |
5156 | return NULL; | |
5157 | } | |
5158 | ||
5159 | ||
22bfe96c RD |
5160 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5161 | PyObject *resultobj; | |
5162 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5163 | wxVisualAttributes result; | |
5164 | PyObject * obj0 = 0 ; | |
5165 | char *kwnames[] = { | |
5166 | (char *) "variant", NULL | |
5167 | }; | |
5168 | ||
5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5170 | if (obj0) { | |
5171 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | { | |
110da5b0 | 5175 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5177 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5178 | ||
5179 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5180 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5181 | } |
5182 | { | |
5183 | wxVisualAttributes * resultptr; | |
5184 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5186 | } | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | return NULL; | |
5190 | } | |
5191 | ||
5192 | ||
d14a1e28 RD |
5193 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5194 | PyObject *obj; | |
5195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5196 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5197 | Py_INCREF(obj); | |
5198 | return Py_BuildValue((char *)""); | |
5199 | } | |
5200 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5201 | PyObject *resultobj; | |
5202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5203 | int arg2 = (int) -1 ; |
5204 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5205 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
5206 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5207 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5208 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5209 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5210 | long arg6 = (long) 0 ; | |
5211 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5212 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5213 | wxStaticBitmap *result; | |
5214 | wxPoint temp4 ; | |
5215 | wxSize temp5 ; | |
e811c8ce | 5216 | bool temp7 = False ; |
d14a1e28 | 5217 | PyObject * obj0 = 0 ; |
994141e6 | 5218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5219 | PyObject * obj2 = 0 ; |
5220 | PyObject * obj3 = 0 ; | |
5221 | PyObject * obj4 = 0 ; | |
994141e6 | 5222 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5223 | PyObject * obj6 = 0 ; |
5224 | char *kwnames[] = { | |
5225 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5226 | }; | |
5227 | ||
248ed943 | 5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5231 | if (obj1) { |
5232 | arg2 = (int) SWIG_AsInt(obj1); | |
5233 | if (PyErr_Occurred()) SWIG_fail; | |
5234 | } | |
5235 | if (obj2) { | |
5236 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5237 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5238 | SWIG_fail; |
248ed943 RD |
5239 | if (arg3 == NULL) { |
5240 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5241 | SWIG_fail; | |
5242 | } | |
d14a1e28 RD |
5243 | } |
5244 | if (obj3) { | |
5245 | { | |
5246 | arg4 = &temp4; | |
5247 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5248 | } | |
5249 | } | |
5250 | if (obj4) { | |
5251 | { | |
5252 | arg5 = &temp5; | |
5253 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5254 | } | |
5255 | } | |
994141e6 | 5256 | if (obj5) { |
15afbcd0 RD |
5257 | arg6 = (long) SWIG_AsLong(obj5); |
5258 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5259 | } |
d14a1e28 RD |
5260 | if (obj6) { |
5261 | { | |
5262 | arg7 = wxString_in_helper(obj6); | |
5263 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5264 | temp7 = True; |
d14a1e28 RD |
5265 | } |
5266 | } | |
5267 | { | |
e3b71cb8 | 5268 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5270 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5273 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5274 | } |
15afbcd0 | 5275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5276 | { |
5277 | if (temp7) | |
5278 | delete arg7; | |
5279 | } | |
5280 | return resultobj; | |
5281 | fail: | |
5282 | { | |
5283 | if (temp7) | |
5284 | delete arg7; | |
5285 | } | |
5286 | return NULL; | |
5287 | } | |
5288 | ||
5289 | ||
5290 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5291 | PyObject *resultobj; | |
5292 | wxStaticBitmap *result; | |
5293 | char *kwnames[] = { | |
5294 | NULL | |
5295 | }; | |
5296 | ||
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5298 | { | |
e3b71cb8 | 5299 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5301 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5304 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5305 | } |
15afbcd0 | 5306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5307 | return resultobj; |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5316 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5317 | int arg3 = (int) -1 ; |
5318 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5319 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
5320 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5321 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5322 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5323 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5324 | long arg7 = (long) 0 ; | |
5325 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5326 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5327 | bool result; | |
5328 | wxPoint temp5 ; | |
5329 | wxSize temp6 ; | |
e811c8ce | 5330 | bool temp8 = False ; |
d14a1e28 RD |
5331 | PyObject * obj0 = 0 ; |
5332 | PyObject * obj1 = 0 ; | |
994141e6 | 5333 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5334 | PyObject * obj3 = 0 ; |
5335 | PyObject * obj4 = 0 ; | |
5336 | PyObject * obj5 = 0 ; | |
994141e6 | 5337 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5338 | PyObject * obj7 = 0 ; |
5339 | char *kwnames[] = { | |
5340 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5341 | }; | |
5342 | ||
248ed943 | 5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5348 | if (obj2) { |
5349 | arg3 = (int) SWIG_AsInt(obj2); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | if (obj3) { | |
5353 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5355 | SWIG_fail; |
248ed943 RD |
5356 | if (arg4 == NULL) { |
5357 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5358 | SWIG_fail; | |
5359 | } | |
d14a1e28 RD |
5360 | } |
5361 | if (obj4) { | |
5362 | { | |
5363 | arg5 = &temp5; | |
5364 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5365 | } | |
5366 | } | |
5367 | if (obj5) { | |
5368 | { | |
5369 | arg6 = &temp6; | |
5370 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5371 | } | |
5372 | } | |
994141e6 | 5373 | if (obj6) { |
15afbcd0 RD |
5374 | arg7 = (long) SWIG_AsLong(obj6); |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5376 | } |
d14a1e28 RD |
5377 | if (obj7) { |
5378 | { | |
5379 | arg8 = wxString_in_helper(obj7); | |
5380 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5381 | temp8 = True; |
d14a1e28 RD |
5382 | } |
5383 | } | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
4f89f6a3 RD |
5391 | { |
5392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5393 | } | |
d14a1e28 RD |
5394 | { |
5395 | if (temp8) | |
5396 | delete arg8; | |
5397 | } | |
5398 | return resultobj; | |
5399 | fail: | |
5400 | { | |
5401 | if (temp8) | |
5402 | delete arg8; | |
5403 | } | |
5404 | return NULL; | |
5405 | } | |
5406 | ||
5407 | ||
5408 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5409 | PyObject *resultobj; | |
5410 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5411 | wxBitmap result; | |
5412 | PyObject * obj0 = 0 ; | |
5413 | char *kwnames[] = { | |
5414 | (char *) "self", NULL | |
5415 | }; | |
5416 | ||
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5420 | { |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | result = (arg1)->GetBitmap(); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
5426 | } | |
5427 | { | |
5428 | wxBitmap * resultptr; | |
5429 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5431 | } |
5432 | return resultobj; | |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
5438 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject *resultobj; | |
5440 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5441 | wxBitmap *arg2 = 0 ; | |
5442 | PyObject * obj0 = 0 ; | |
5443 | PyObject * obj1 = 0 ; | |
5444 | char *kwnames[] = { | |
5445 | (char *) "self",(char *) "bitmap", NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5451 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5452 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5453 | SWIG_fail; | |
d14a1e28 | 5454 | if (arg2 == NULL) { |
15afbcd0 RD |
5455 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5456 | SWIG_fail; | |
d14a1e28 RD |
5457 | } |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5461 | ||
5462 | wxPyEndAllowThreads(__tstate); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | } | |
5465 | Py_INCREF(Py_None); resultobj = Py_None; | |
5466 | return resultobj; | |
5467 | fail: | |
5468 | return NULL; | |
5469 | } | |
5470 | ||
5471 | ||
5472 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5473 | PyObject *resultobj; | |
5474 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5475 | wxIcon *arg2 = 0 ; | |
5476 | PyObject * obj0 = 0 ; | |
5477 | PyObject * obj1 = 0 ; | |
5478 | char *kwnames[] = { | |
5479 | (char *) "self",(char *) "icon", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5487 | SWIG_fail; | |
d14a1e28 | 5488 | if (arg2 == NULL) { |
15afbcd0 RD |
5489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5490 | SWIG_fail; | |
d14a1e28 RD |
5491 | } |
5492 | { | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5495 | ||
5496 | wxPyEndAllowThreads(__tstate); | |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
5498 | } | |
5499 | Py_INCREF(Py_None); resultobj = Py_None; | |
5500 | return resultobj; | |
5501 | fail: | |
5502 | return NULL; | |
5503 | } | |
5504 | ||
5505 | ||
22bfe96c RD |
5506 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5507 | PyObject *resultobj; | |
5508 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5509 | wxVisualAttributes result; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | char *kwnames[] = { | |
5512 | (char *) "variant", NULL | |
5513 | }; | |
5514 | ||
5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5516 | if (obj0) { | |
5517 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5518 | if (PyErr_Occurred()) SWIG_fail; | |
5519 | } | |
5520 | { | |
110da5b0 | 5521 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5523 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5524 | ||
5525 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5526 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5527 | } |
5528 | { | |
5529 | wxVisualAttributes * resultptr; | |
5530 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5532 | } | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
d14a1e28 RD |
5539 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5540 | PyObject *obj; | |
5541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5542 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5543 | Py_INCREF(obj); | |
5544 | return Py_BuildValue((char *)""); | |
5545 | } | |
b2dc1044 RD |
5546 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
5547 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5548 | return 1; | |
5549 | } | |
5550 | ||
5551 | ||
5552 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5553 | PyObject *pyobj; | |
5554 | ||
5555 | { | |
5556 | #if wxUSE_UNICODE | |
5557 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5558 | #else | |
5559 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5560 | #endif | |
5561 | } | |
5562 | return pyobj; | |
5563 | } | |
5564 | ||
5565 | ||
d14a1e28 RD |
5566 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5567 | PyObject *resultobj; | |
5568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5569 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5570 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5571 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5572 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5573 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5574 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5575 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5576 | long arg6 = (long) 0 ; | |
5577 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5578 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5579 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5580 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5581 | wxListBox *result; |
5582 | wxPoint temp3 ; | |
5583 | wxSize temp4 ; | |
3adfb63b | 5584 | bool temp5 = False ; |
e811c8ce | 5585 | bool temp8 = False ; |
d14a1e28 | 5586 | PyObject * obj0 = 0 ; |
994141e6 | 5587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5588 | PyObject * obj2 = 0 ; |
5589 | PyObject * obj3 = 0 ; | |
5590 | PyObject * obj4 = 0 ; | |
994141e6 | 5591 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5592 | PyObject * obj6 = 0 ; |
5593 | PyObject * obj7 = 0 ; | |
5594 | char *kwnames[] = { | |
5595 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5596 | }; | |
5597 | ||
248ed943 | 5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5601 | if (obj1) { |
5602 | arg2 = (int) SWIG_AsInt(obj1); | |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
d14a1e28 RD |
5605 | if (obj2) { |
5606 | { | |
5607 | arg3 = &temp3; | |
5608 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5609 | } | |
5610 | } | |
5611 | if (obj3) { | |
5612 | { | |
5613 | arg4 = &temp4; | |
5614 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5615 | } | |
5616 | } | |
5617 | if (obj4) { | |
5618 | { | |
4d5c3d91 RD |
5619 | if (! PySequence_Check(obj4)) { |
5620 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5621 | SWIG_fail; | |
5622 | } | |
5623 | arg5 = new wxArrayString; | |
3adfb63b | 5624 | temp5 = True; |
4d5c3d91 RD |
5625 | int i, len=PySequence_Length(obj4); |
5626 | for (i=0; i<len; i++) { | |
5627 | PyObject* item = PySequence_GetItem(obj4, i); | |
5628 | #if wxUSE_UNICODE | |
5629 | PyObject* str = PyObject_Unicode(item); | |
5630 | #else | |
5631 | PyObject* str = PyObject_Str(item); | |
5632 | #endif | |
74a57fcd | 5633 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5634 | arg5->Add(Py2wxString(str)); |
5635 | Py_DECREF(item); | |
5636 | Py_DECREF(str); | |
5637 | } | |
d14a1e28 RD |
5638 | } |
5639 | } | |
994141e6 | 5640 | if (obj5) { |
15afbcd0 RD |
5641 | arg6 = (long) SWIG_AsLong(obj5); |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5643 | } |
d14a1e28 | 5644 | if (obj6) { |
15afbcd0 RD |
5645 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5647 | SWIG_fail; | |
4d5c3d91 | 5648 | if (arg7 == NULL) { |
15afbcd0 RD |
5649 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5650 | SWIG_fail; | |
d14a1e28 RD |
5651 | } |
5652 | } | |
5653 | if (obj7) { | |
5654 | { | |
4d5c3d91 RD |
5655 | arg8 = wxString_in_helper(obj7); |
5656 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5657 | temp8 = True; |
d14a1e28 RD |
5658 | } |
5659 | } | |
5660 | { | |
e3b71cb8 | 5661 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 5663 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5664 | |
5665 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5666 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5667 | } |
15afbcd0 | 5668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5669 | { |
3adfb63b | 5670 | if (temp5) delete arg5; |
d14a1e28 RD |
5671 | } |
5672 | { | |
5673 | if (temp8) | |
4d5c3d91 | 5674 | delete arg8; |
d14a1e28 RD |
5675 | } |
5676 | return resultobj; | |
5677 | fail: | |
5678 | { | |
3adfb63b | 5679 | if (temp5) delete arg5; |
d14a1e28 RD |
5680 | } |
5681 | { | |
5682 | if (temp8) | |
4d5c3d91 | 5683 | delete arg8; |
d14a1e28 RD |
5684 | } |
5685 | return NULL; | |
5686 | } | |
5687 | ||
5688 | ||
5689 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5690 | PyObject *resultobj; | |
5691 | wxListBox *result; | |
5692 | char *kwnames[] = { | |
5693 | NULL | |
5694 | }; | |
5695 | ||
5696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5697 | { | |
e3b71cb8 | 5698 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5700 | result = (wxListBox *)new wxListBox(); | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5703 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5704 | } |
15afbcd0 | 5705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5706 | return resultobj; |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
5712 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5713 | PyObject *resultobj; | |
5714 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5716 | int arg3 = (int) -1 ; |
d14a1e28 RD |
5717 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5718 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5719 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5720 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5721 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5722 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5723 | long arg7 = (long) 0 ; | |
5724 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5725 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5726 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5727 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5728 | bool result; |
5729 | wxPoint temp4 ; | |
5730 | wxSize temp5 ; | |
3adfb63b | 5731 | bool temp6 = False ; |
e811c8ce | 5732 | bool temp9 = False ; |
d14a1e28 RD |
5733 | PyObject * obj0 = 0 ; |
5734 | PyObject * obj1 = 0 ; | |
994141e6 | 5735 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5736 | PyObject * obj3 = 0 ; |
5737 | PyObject * obj4 = 0 ; | |
5738 | PyObject * obj5 = 0 ; | |
994141e6 | 5739 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5740 | PyObject * obj7 = 0 ; |
5741 | PyObject * obj8 = 0 ; | |
5742 | char *kwnames[] = { | |
5743 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5744 | }; | |
5745 | ||
248ed943 | 5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5751 | if (obj2) { |
5752 | arg3 = (int) SWIG_AsInt(obj2); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | } | |
d14a1e28 RD |
5755 | if (obj3) { |
5756 | { | |
5757 | arg4 = &temp4; | |
5758 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5759 | } | |
5760 | } | |
5761 | if (obj4) { | |
5762 | { | |
5763 | arg5 = &temp5; | |
5764 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5765 | } | |
5766 | } | |
5767 | if (obj5) { | |
5768 | { | |
4d5c3d91 RD |
5769 | if (! PySequence_Check(obj5)) { |
5770 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5771 | SWIG_fail; | |
5772 | } | |
5773 | arg6 = new wxArrayString; | |
3adfb63b | 5774 | temp6 = True; |
4d5c3d91 RD |
5775 | int i, len=PySequence_Length(obj5); |
5776 | for (i=0; i<len; i++) { | |
5777 | PyObject* item = PySequence_GetItem(obj5, i); | |
5778 | #if wxUSE_UNICODE | |
5779 | PyObject* str = PyObject_Unicode(item); | |
5780 | #else | |
5781 | PyObject* str = PyObject_Str(item); | |
5782 | #endif | |
74a57fcd | 5783 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5784 | arg6->Add(Py2wxString(str)); |
5785 | Py_DECREF(item); | |
5786 | Py_DECREF(str); | |
5787 | } | |
d14a1e28 RD |
5788 | } |
5789 | } | |
994141e6 | 5790 | if (obj6) { |
15afbcd0 RD |
5791 | arg7 = (long) SWIG_AsLong(obj6); |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5793 | } |
d14a1e28 | 5794 | if (obj7) { |
15afbcd0 RD |
5795 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5796 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5797 | SWIG_fail; | |
4d5c3d91 | 5798 | if (arg8 == NULL) { |
15afbcd0 RD |
5799 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5800 | SWIG_fail; | |
d14a1e28 RD |
5801 | } |
5802 | } | |
5803 | if (obj8) { | |
5804 | { | |
4d5c3d91 RD |
5805 | arg9 = wxString_in_helper(obj8); |
5806 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5807 | temp9 = True; |
d14a1e28 RD |
5808 | } |
5809 | } | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5812 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5813 | |
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
4f89f6a3 RD |
5817 | { |
5818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5819 | } | |
d14a1e28 | 5820 | { |
3adfb63b | 5821 | if (temp6) delete arg6; |
d14a1e28 RD |
5822 | } |
5823 | { | |
5824 | if (temp9) | |
4d5c3d91 | 5825 | delete arg9; |
d14a1e28 RD |
5826 | } |
5827 | return resultobj; | |
5828 | fail: | |
5829 | { | |
3adfb63b | 5830 | if (temp6) delete arg6; |
d14a1e28 RD |
5831 | } |
5832 | { | |
5833 | if (temp9) | |
4d5c3d91 | 5834 | delete arg9; |
d14a1e28 RD |
5835 | } |
5836 | return NULL; | |
5837 | } | |
5838 | ||
5839 | ||
5840 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5841 | PyObject *resultobj; | |
5842 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5843 | wxString *arg2 = 0 ; | |
5844 | int arg3 ; | |
5845 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5846 | bool temp2 = False ; |
d14a1e28 RD |
5847 | PyObject * obj0 = 0 ; |
5848 | PyObject * obj1 = 0 ; | |
994141e6 | 5849 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5850 | PyObject * obj3 = 0 ; |
5851 | char *kwnames[] = { | |
5852 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5853 | }; | |
5854 | ||
994141e6 | 5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5858 | { |
5859 | arg2 = wxString_in_helper(obj1); | |
5860 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5861 | temp2 = True; |
d14a1e28 | 5862 | } |
15afbcd0 RD |
5863 | arg3 = (int) SWIG_AsInt(obj2); |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5865 | if (obj3) { |
5866 | arg4 = obj3; | |
5867 | } | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | Py_INCREF(Py_None); resultobj = Py_None; | |
5876 | { | |
5877 | if (temp2) | |
5878 | delete arg2; | |
5879 | } | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | { | |
5883 | if (temp2) | |
5884 | delete arg2; | |
5885 | } | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj; | |
5892 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5893 | wxArrayString *arg2 = 0 ; | |
5894 | int arg3 ; | |
3adfb63b | 5895 | bool temp2 = False ; |
d14a1e28 RD |
5896 | PyObject * obj0 = 0 ; |
5897 | PyObject * obj1 = 0 ; | |
994141e6 | 5898 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5899 | char *kwnames[] = { |
5900 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5901 | }; | |
5902 | ||
994141e6 | 5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5906 | { |
5907 | if (! PySequence_Check(obj1)) { | |
5908 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5909 | SWIG_fail; | |
5910 | } | |
5911 | arg2 = new wxArrayString; | |
3adfb63b | 5912 | temp2 = True; |
d14a1e28 RD |
5913 | int i, len=PySequence_Length(obj1); |
5914 | for (i=0; i<len; i++) { | |
5915 | PyObject* item = PySequence_GetItem(obj1, i); | |
5916 | #if wxUSE_UNICODE | |
5917 | PyObject* str = PyObject_Unicode(item); | |
5918 | #else | |
5919 | PyObject* str = PyObject_Str(item); | |
5920 | #endif | |
74a57fcd | 5921 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5922 | arg2->Add(Py2wxString(str)); |
5923 | Py_DECREF(item); | |
5924 | Py_DECREF(str); | |
5925 | } | |
5926 | } | |
15afbcd0 RD |
5927 | arg3 = (int) SWIG_AsInt(obj2); |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5929 | { |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | Py_INCREF(Py_None); resultobj = Py_None; | |
5937 | { | |
3adfb63b | 5938 | if (temp2) delete arg2; |
d14a1e28 RD |
5939 | } |
5940 | return resultobj; | |
5941 | fail: | |
5942 | { | |
3adfb63b | 5943 | if (temp2) delete arg2; |
d14a1e28 RD |
5944 | } |
5945 | return NULL; | |
5946 | } | |
5947 | ||
5948 | ||
5949 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5950 | PyObject *resultobj; | |
5951 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5952 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 5953 | bool temp2 = False ; |
d14a1e28 RD |
5954 | PyObject * obj0 = 0 ; |
5955 | PyObject * obj1 = 0 ; | |
5956 | char *kwnames[] = { | |
5957 | (char *) "self",(char *) "items", NULL | |
5958 | }; | |
5959 | ||
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5963 | { |
5964 | if (! PySequence_Check(obj1)) { | |
5965 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5966 | SWIG_fail; | |
5967 | } | |
5968 | arg2 = new wxArrayString; | |
3adfb63b | 5969 | temp2 = True; |
d14a1e28 RD |
5970 | int i, len=PySequence_Length(obj1); |
5971 | for (i=0; i<len; i++) { | |
5972 | PyObject* item = PySequence_GetItem(obj1, i); | |
5973 | #if wxUSE_UNICODE | |
5974 | PyObject* str = PyObject_Unicode(item); | |
5975 | #else | |
5976 | PyObject* str = PyObject_Str(item); | |
5977 | #endif | |
74a57fcd | 5978 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5979 | arg2->Add(Py2wxString(str)); |
5980 | Py_DECREF(item); | |
5981 | Py_DECREF(str); | |
5982 | } | |
5983 | } | |
5984 | { | |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | (arg1)->Set((wxArrayString const &)*arg2); | |
5987 | ||
5988 | wxPyEndAllowThreads(__tstate); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
5990 | } | |
5991 | Py_INCREF(Py_None); resultobj = Py_None; | |
5992 | { | |
3adfb63b | 5993 | if (temp2) delete arg2; |
d14a1e28 RD |
5994 | } |
5995 | return resultobj; | |
5996 | fail: | |
5997 | { | |
3adfb63b | 5998 | if (temp2) delete arg2; |
d14a1e28 RD |
5999 | } |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
6004 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6005 | PyObject *resultobj; | |
6006 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6007 | int arg2 ; | |
6008 | bool result; | |
6009 | PyObject * obj0 = 0 ; | |
994141e6 | 6010 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6011 | char *kwnames[] = { |
6012 | (char *) "self",(char *) "n", NULL | |
6013 | }; | |
6014 | ||
994141e6 | 6015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6018 | arg2 = (int) SWIG_AsInt(obj1); | |
6019 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6020 | { |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
4f89f6a3 RD |
6027 | { |
6028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6029 | } | |
d14a1e28 RD |
6030 | return resultobj; |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject *resultobj; | |
6038 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6039 | int arg2 ; | |
e811c8ce | 6040 | bool arg3 = (bool) True ; |
d14a1e28 | 6041 | PyObject * obj0 = 0 ; |
994141e6 | 6042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6043 | PyObject * obj2 = 0 ; |
6044 | char *kwnames[] = { | |
6045 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6046 | }; | |
6047 | ||
994141e6 | 6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6051 | arg2 = (int) SWIG_AsInt(obj1); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6053 | if (obj2) { |
15afbcd0 RD |
6054 | arg3 = (bool) SWIG_AsBool(obj2); |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6056 | } |
6057 | { | |
6058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6059 | (arg1)->SetSelection(arg2,arg3); | |
6060 | ||
6061 | wxPyEndAllowThreads(__tstate); | |
6062 | if (PyErr_Occurred()) SWIG_fail; | |
6063 | } | |
6064 | Py_INCREF(Py_None); resultobj = Py_None; | |
6065 | return resultobj; | |
6066 | fail: | |
6067 | return NULL; | |
6068 | } | |
6069 | ||
6070 | ||
6071 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6072 | PyObject *resultobj; | |
6073 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6074 | int arg2 ; | |
6075 | PyObject * obj0 = 0 ; | |
994141e6 | 6076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6077 | char *kwnames[] = { |
6078 | (char *) "self",(char *) "n", NULL | |
6079 | }; | |
6080 | ||
994141e6 | 6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | arg2 = (int) SWIG_AsInt(obj1); | |
6085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6086 | { |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | (arg1)->Select(arg2); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | Py_INCREF(Py_None); resultobj = Py_None; | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6103 | int arg2 ; | |
6104 | PyObject * obj0 = 0 ; | |
994141e6 | 6105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6106 | char *kwnames[] = { |
6107 | (char *) "self",(char *) "n", NULL | |
6108 | }; | |
6109 | ||
994141e6 | 6110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6113 | arg2 = (int) SWIG_AsInt(obj1); | |
6114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6115 | { |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6117 | (arg1)->Deselect(arg2); | |
6118 | ||
6119 | wxPyEndAllowThreads(__tstate); | |
6120 | if (PyErr_Occurred()) SWIG_fail; | |
6121 | } | |
6122 | Py_INCREF(Py_None); resultobj = Py_None; | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6132 | int arg2 = (int) -1 ; | |
6133 | PyObject * obj0 = 0 ; | |
994141e6 | 6134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6135 | char *kwnames[] = { |
6136 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6137 | }; | |
6138 | ||
994141e6 | 6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6142 | if (obj1) { |
15afbcd0 RD |
6143 | arg2 = (int) SWIG_AsInt(obj1); |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6145 | } |
d14a1e28 RD |
6146 | { |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | (arg1)->DeselectAll(arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | Py_INCREF(Py_None); resultobj = Py_None; | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject *resultobj; | |
6162 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6163 | wxString *arg2 = 0 ; | |
e811c8ce | 6164 | bool arg3 = (bool) True ; |
d14a1e28 | 6165 | bool result; |
e811c8ce | 6166 | bool temp2 = False ; |
d14a1e28 RD |
6167 | PyObject * obj0 = 0 ; |
6168 | PyObject * obj1 = 0 ; | |
6169 | PyObject * obj2 = 0 ; | |
6170 | char *kwnames[] = { | |
6171 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6172 | }; | |
6173 | ||
6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6177 | { |
6178 | arg2 = wxString_in_helper(obj1); | |
6179 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6180 | temp2 = True; |
d14a1e28 RD |
6181 | } |
6182 | if (obj2) { | |
15afbcd0 RD |
6183 | arg3 = (bool) SWIG_AsBool(obj2); |
6184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6185 | } |
6186 | { | |
6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6188 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6189 | ||
6190 | wxPyEndAllowThreads(__tstate); | |
6191 | if (PyErr_Occurred()) SWIG_fail; | |
6192 | } | |
4f89f6a3 RD |
6193 | { |
6194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6195 | } | |
d14a1e28 RD |
6196 | { |
6197 | if (temp2) | |
6198 | delete arg2; | |
6199 | } | |
6200 | return resultobj; | |
6201 | fail: | |
6202 | { | |
6203 | if (temp2) | |
6204 | delete arg2; | |
6205 | } | |
6206 | return NULL; | |
6207 | } | |
6208 | ||
6209 | ||
6210 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject *resultobj; | |
6212 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6213 | PyObject *result; | |
6214 | PyObject * obj0 = 0 ; | |
6215 | char *kwnames[] = { | |
6216 | (char *) "self", NULL | |
6217 | }; | |
6218 | ||
6219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6222 | { |
6223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6224 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6225 | ||
6226 | wxPyEndAllowThreads(__tstate); | |
6227 | if (PyErr_Occurred()) SWIG_fail; | |
6228 | } | |
6229 | resultobj = result; | |
6230 | return resultobj; | |
6231 | fail: | |
6232 | return NULL; | |
6233 | } | |
6234 | ||
6235 | ||
6236 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject *resultobj; | |
6238 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6239 | int arg2 ; | |
6240 | PyObject * obj0 = 0 ; | |
994141e6 | 6241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6242 | char *kwnames[] = { |
6243 | (char *) "self",(char *) "n", NULL | |
6244 | }; | |
6245 | ||
994141e6 | 6246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6249 | arg2 = (int) SWIG_AsInt(obj1); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6251 | { |
6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6253 | (arg1)->SetFirstItem(arg2); | |
6254 | ||
6255 | wxPyEndAllowThreads(__tstate); | |
6256 | if (PyErr_Occurred()) SWIG_fail; | |
6257 | } | |
6258 | Py_INCREF(Py_None); resultobj = Py_None; | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | return NULL; | |
6262 | } | |
6263 | ||
6264 | ||
6265 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6266 | PyObject *resultobj; | |
6267 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6268 | wxString *arg2 = 0 ; | |
e811c8ce | 6269 | bool temp2 = False ; |
d14a1e28 RD |
6270 | PyObject * obj0 = 0 ; |
6271 | PyObject * obj1 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "self",(char *) "s", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6279 | { |
6280 | arg2 = wxString_in_helper(obj1); | |
6281 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6282 | temp2 = True; |
d14a1e28 RD |
6283 | } |
6284 | { | |
6285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6286 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6287 | ||
6288 | wxPyEndAllowThreads(__tstate); | |
6289 | if (PyErr_Occurred()) SWIG_fail; | |
6290 | } | |
6291 | Py_INCREF(Py_None); resultobj = Py_None; | |
6292 | { | |
6293 | if (temp2) | |
6294 | delete arg2; | |
6295 | } | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | { | |
6299 | if (temp2) | |
6300 | delete arg2; | |
6301 | } | |
6302 | return NULL; | |
6303 | } | |
6304 | ||
6305 | ||
6306 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject *resultobj; | |
6308 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6309 | int arg2 ; | |
6310 | PyObject * obj0 = 0 ; | |
994141e6 | 6311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6312 | char *kwnames[] = { |
6313 | (char *) "self",(char *) "n", NULL | |
6314 | }; | |
6315 | ||
994141e6 | 6316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6319 | arg2 = (int) SWIG_AsInt(obj1); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6321 | { |
6322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6323 | (arg1)->EnsureVisible(arg2); | |
6324 | ||
6325 | wxPyEndAllowThreads(__tstate); | |
6326 | if (PyErr_Occurred()) SWIG_fail; | |
6327 | } | |
6328 | Py_INCREF(Py_None); resultobj = Py_None; | |
6329 | return resultobj; | |
6330 | fail: | |
6331 | return NULL; | |
6332 | } | |
6333 | ||
6334 | ||
6335 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6336 | PyObject *resultobj; | |
6337 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6338 | wxString *arg2 = 0 ; | |
e811c8ce | 6339 | bool temp2 = False ; |
d14a1e28 RD |
6340 | PyObject * obj0 = 0 ; |
6341 | PyObject * obj1 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self",(char *) "s", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6349 | { |
6350 | arg2 = wxString_in_helper(obj1); | |
6351 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6352 | temp2 = True; |
d14a1e28 RD |
6353 | } |
6354 | { | |
6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6356 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6357 | ||
6358 | wxPyEndAllowThreads(__tstate); | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
6361 | Py_INCREF(Py_None); resultobj = Py_None; | |
6362 | { | |
6363 | if (temp2) | |
6364 | delete arg2; | |
6365 | } | |
6366 | return resultobj; | |
6367 | fail: | |
6368 | { | |
6369 | if (temp2) | |
6370 | delete arg2; | |
6371 | } | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6379 | bool result; | |
6380 | PyObject * obj0 = 0 ; | |
6381 | char *kwnames[] = { | |
6382 | (char *) "self", NULL | |
6383 | }; | |
6384 | ||
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6388 | { |
6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6390 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6391 | ||
6392 | wxPyEndAllowThreads(__tstate); | |
6393 | if (PyErr_Occurred()) SWIG_fail; | |
6394 | } | |
4f89f6a3 RD |
6395 | { |
6396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6397 | } | |
d14a1e28 RD |
6398 | return resultobj; |
6399 | fail: | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
c3eb6258 RD |
6404 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
6405 | PyObject *resultobj; | |
6406 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6407 | int arg2 ; | |
6408 | wxColour *arg3 = 0 ; | |
6409 | wxColour temp3 ; | |
6410 | PyObject * obj0 = 0 ; | |
6411 | PyObject * obj1 = 0 ; | |
6412 | PyObject * obj2 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6420 | arg2 = (int) SWIG_AsInt(obj1); | |
6421 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6422 | { |
6423 | arg3 = &temp3; | |
6424 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6425 | } | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | Py_INCREF(Py_None); resultobj = Py_None; | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6441 | PyObject *resultobj; | |
6442 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6443 | int arg2 ; | |
6444 | wxColour *arg3 = 0 ; | |
6445 | wxColour temp3 ; | |
6446 | PyObject * obj0 = 0 ; | |
6447 | PyObject * obj1 = 0 ; | |
6448 | PyObject * obj2 = 0 ; | |
6449 | char *kwnames[] = { | |
6450 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6451 | }; | |
6452 | ||
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6456 | arg2 = (int) SWIG_AsInt(obj1); | |
6457 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6458 | { |
6459 | arg3 = &temp3; | |
6460 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6464 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6465 | ||
6466 | wxPyEndAllowThreads(__tstate); | |
6467 | if (PyErr_Occurred()) SWIG_fail; | |
6468 | } | |
6469 | Py_INCREF(Py_None); resultobj = Py_None; | |
6470 | return resultobj; | |
6471 | fail: | |
6472 | return NULL; | |
6473 | } | |
6474 | ||
6475 | ||
6476 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6477 | PyObject *resultobj; | |
6478 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6479 | int arg2 ; | |
6480 | wxFont *arg3 = 0 ; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | PyObject * obj2 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6491 | arg2 = (int) SWIG_AsInt(obj1); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6495 | SWIG_fail; | |
c3eb6258 | 6496 | if (arg3 == NULL) { |
15afbcd0 RD |
6497 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6498 | SWIG_fail; | |
c3eb6258 RD |
6499 | } |
6500 | { | |
6501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6502 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6503 | ||
6504 | wxPyEndAllowThreads(__tstate); | |
6505 | if (PyErr_Occurred()) SWIG_fail; | |
6506 | } | |
6507 | Py_INCREF(Py_None); resultobj = Py_None; | |
6508 | return resultobj; | |
6509 | fail: | |
6510 | return NULL; | |
6511 | } | |
6512 | ||
6513 | ||
74a57fcd RD |
6514 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6515 | PyObject *resultobj; | |
6516 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6517 | wxVisualAttributes result; | |
6518 | PyObject * obj0 = 0 ; | |
6519 | char *kwnames[] = { | |
6520 | (char *) "variant", NULL | |
6521 | }; | |
6522 | ||
6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6524 | if (obj0) { | |
6525 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | { | |
110da5b0 | 6529 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
6530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6531 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6532 | ||
6533 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6534 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
6535 | } |
6536 | { | |
6537 | wxVisualAttributes * resultptr; | |
6538 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6540 | } | |
6541 | return resultobj; | |
6542 | fail: | |
6543 | return NULL; | |
6544 | } | |
6545 | ||
6546 | ||
d14a1e28 RD |
6547 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6548 | PyObject *obj; | |
6549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6550 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6551 | Py_INCREF(obj); | |
6552 | return Py_BuildValue((char *)""); | |
6553 | } | |
6554 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj; | |
6556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6557 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6558 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6559 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6560 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6561 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6562 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6563 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6564 | long arg6 = (long) 0 ; | |
6565 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6566 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6567 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6568 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6569 | wxCheckListBox *result; |
6570 | wxPoint temp3 ; | |
6571 | wxSize temp4 ; | |
3adfb63b | 6572 | bool temp5 = False ; |
e811c8ce | 6573 | bool temp8 = False ; |
d14a1e28 | 6574 | PyObject * obj0 = 0 ; |
994141e6 | 6575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6576 | PyObject * obj2 = 0 ; |
6577 | PyObject * obj3 = 0 ; | |
6578 | PyObject * obj4 = 0 ; | |
994141e6 | 6579 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6580 | PyObject * obj6 = 0 ; |
6581 | PyObject * obj7 = 0 ; | |
6582 | char *kwnames[] = { | |
6583 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6584 | }; | |
6585 | ||
248ed943 | 6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6589 | if (obj1) { |
6590 | arg2 = (int) SWIG_AsInt(obj1); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
d14a1e28 RD |
6593 | if (obj2) { |
6594 | { | |
6595 | arg3 = &temp3; | |
6596 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6597 | } | |
6598 | } | |
6599 | if (obj3) { | |
6600 | { | |
6601 | arg4 = &temp4; | |
6602 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6603 | } | |
6604 | } | |
6605 | if (obj4) { | |
6606 | { | |
4d5c3d91 RD |
6607 | if (! PySequence_Check(obj4)) { |
6608 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6609 | SWIG_fail; | |
6610 | } | |
6611 | arg5 = new wxArrayString; | |
3adfb63b | 6612 | temp5 = True; |
4d5c3d91 RD |
6613 | int i, len=PySequence_Length(obj4); |
6614 | for (i=0; i<len; i++) { | |
6615 | PyObject* item = PySequence_GetItem(obj4, i); | |
6616 | #if wxUSE_UNICODE | |
6617 | PyObject* str = PyObject_Unicode(item); | |
6618 | #else | |
6619 | PyObject* str = PyObject_Str(item); | |
6620 | #endif | |
74a57fcd | 6621 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6622 | arg5->Add(Py2wxString(str)); |
6623 | Py_DECREF(item); | |
6624 | Py_DECREF(str); | |
6625 | } | |
d14a1e28 RD |
6626 | } |
6627 | } | |
994141e6 | 6628 | if (obj5) { |
15afbcd0 RD |
6629 | arg6 = (long) SWIG_AsLong(obj5); |
6630 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6631 | } |
d14a1e28 | 6632 | if (obj6) { |
15afbcd0 RD |
6633 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6635 | SWIG_fail; | |
4d5c3d91 | 6636 | if (arg7 == NULL) { |
15afbcd0 RD |
6637 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6638 | SWIG_fail; | |
d14a1e28 RD |
6639 | } |
6640 | } | |
6641 | if (obj7) { | |
6642 | { | |
4d5c3d91 RD |
6643 | arg8 = wxString_in_helper(obj7); |
6644 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6645 | temp8 = True; |
d14a1e28 RD |
6646 | } |
6647 | } | |
6648 | { | |
e3b71cb8 | 6649 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 6651 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6652 | |
6653 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6655 | } |
15afbcd0 | 6656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6657 | { |
3adfb63b | 6658 | if (temp5) delete arg5; |
d14a1e28 RD |
6659 | } |
6660 | { | |
6661 | if (temp8) | |
4d5c3d91 | 6662 | delete arg8; |
d14a1e28 RD |
6663 | } |
6664 | return resultobj; | |
6665 | fail: | |
6666 | { | |
3adfb63b | 6667 | if (temp5) delete arg5; |
d14a1e28 RD |
6668 | } |
6669 | { | |
6670 | if (temp8) | |
4d5c3d91 | 6671 | delete arg8; |
d14a1e28 RD |
6672 | } |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxCheckListBox *result; | |
6680 | char *kwnames[] = { | |
6681 | NULL | |
6682 | }; | |
6683 | ||
6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6685 | { | |
e3b71cb8 | 6686 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6688 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6689 | ||
6690 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6691 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6692 | } |
15afbcd0 | 6693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6694 | return resultobj; |
6695 | fail: | |
6696 | return NULL; | |
6697 | } | |
6698 | ||
6699 | ||
6700 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6701 | PyObject *resultobj; | |
6702 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6704 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6705 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6706 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6707 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6708 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6709 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6710 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6711 | long arg7 = (long) 0 ; | |
6712 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6713 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6714 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6715 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6716 | bool result; |
6717 | wxPoint temp4 ; | |
6718 | wxSize temp5 ; | |
3adfb63b | 6719 | bool temp6 = False ; |
e811c8ce | 6720 | bool temp9 = False ; |
d14a1e28 RD |
6721 | PyObject * obj0 = 0 ; |
6722 | PyObject * obj1 = 0 ; | |
994141e6 | 6723 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6724 | PyObject * obj3 = 0 ; |
6725 | PyObject * obj4 = 0 ; | |
6726 | PyObject * obj5 = 0 ; | |
994141e6 | 6727 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6728 | PyObject * obj7 = 0 ; |
6729 | PyObject * obj8 = 0 ; | |
6730 | char *kwnames[] = { | |
6731 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6732 | }; | |
6733 | ||
248ed943 | 6734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6739 | if (obj2) { |
6740 | arg3 = (int) SWIG_AsInt(obj2); | |
6741 | if (PyErr_Occurred()) SWIG_fail; | |
6742 | } | |
d14a1e28 RD |
6743 | if (obj3) { |
6744 | { | |
6745 | arg4 = &temp4; | |
6746 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6747 | } | |
6748 | } | |
6749 | if (obj4) { | |
6750 | { | |
6751 | arg5 = &temp5; | |
6752 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6753 | } | |
6754 | } | |
6755 | if (obj5) { | |
6756 | { | |
4d5c3d91 RD |
6757 | if (! PySequence_Check(obj5)) { |
6758 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6759 | SWIG_fail; | |
6760 | } | |
6761 | arg6 = new wxArrayString; | |
3adfb63b | 6762 | temp6 = True; |
4d5c3d91 RD |
6763 | int i, len=PySequence_Length(obj5); |
6764 | for (i=0; i<len; i++) { | |
6765 | PyObject* item = PySequence_GetItem(obj5, i); | |
6766 | #if wxUSE_UNICODE | |
6767 | PyObject* str = PyObject_Unicode(item); | |
6768 | #else | |
6769 | PyObject* str = PyObject_Str(item); | |
6770 | #endif | |
74a57fcd | 6771 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6772 | arg6->Add(Py2wxString(str)); |
6773 | Py_DECREF(item); | |
6774 | Py_DECREF(str); | |
6775 | } | |
d14a1e28 RD |
6776 | } |
6777 | } | |
994141e6 | 6778 | if (obj6) { |
15afbcd0 RD |
6779 | arg7 = (long) SWIG_AsLong(obj6); |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6781 | } |
d14a1e28 | 6782 | if (obj7) { |
15afbcd0 RD |
6783 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6785 | SWIG_fail; | |
4d5c3d91 | 6786 | if (arg8 == NULL) { |
15afbcd0 RD |
6787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6788 | SWIG_fail; | |
d14a1e28 RD |
6789 | } |
6790 | } | |
6791 | if (obj8) { | |
6792 | { | |
4d5c3d91 RD |
6793 | arg9 = wxString_in_helper(obj8); |
6794 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6795 | temp9 = True; |
d14a1e28 RD |
6796 | } |
6797 | } | |
6798 | { | |
6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6800 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6801 | |
6802 | wxPyEndAllowThreads(__tstate); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
6804 | } | |
4f89f6a3 RD |
6805 | { |
6806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6807 | } | |
d14a1e28 | 6808 | { |
3adfb63b | 6809 | if (temp6) delete arg6; |
d14a1e28 RD |
6810 | } |
6811 | { | |
6812 | if (temp9) | |
4d5c3d91 | 6813 | delete arg9; |
d14a1e28 RD |
6814 | } |
6815 | return resultobj; | |
6816 | fail: | |
6817 | { | |
3adfb63b | 6818 | if (temp6) delete arg6; |
d14a1e28 RD |
6819 | } |
6820 | { | |
6821 | if (temp9) | |
4d5c3d91 | 6822 | delete arg9; |
d14a1e28 RD |
6823 | } |
6824 | return NULL; | |
6825 | } | |
6826 | ||
6827 | ||
6828 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject *resultobj; | |
6830 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6831 | int arg2 ; | |
6832 | bool result; | |
6833 | PyObject * obj0 = 0 ; | |
994141e6 | 6834 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6835 | char *kwnames[] = { |
6836 | (char *) "self",(char *) "index", NULL | |
6837 | }; | |
6838 | ||
994141e6 | 6839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6842 | arg2 = (int) SWIG_AsInt(obj1); | |
6843 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6844 | { |
6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6846 | result = (bool)(arg1)->IsChecked(arg2); | |
6847 | ||
6848 | wxPyEndAllowThreads(__tstate); | |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
6850 | } | |
4f89f6a3 RD |
6851 | { |
6852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6853 | } | |
d14a1e28 RD |
6854 | return resultobj; |
6855 | fail: | |
6856 | return NULL; | |
6857 | } | |
6858 | ||
6859 | ||
6860 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6861 | PyObject *resultobj; | |
6862 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6863 | int arg2 ; | |
e811c8ce | 6864 | int arg3 = (int) True ; |
d14a1e28 | 6865 | PyObject * obj0 = 0 ; |
994141e6 RD |
6866 | PyObject * obj1 = 0 ; |
6867 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6868 | char *kwnames[] = { |
6869 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6870 | }; | |
6871 | ||
994141e6 | 6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6875 | arg2 = (int) SWIG_AsInt(obj1); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6877 | if (obj2) { |
15afbcd0 RD |
6878 | arg3 = (int) SWIG_AsInt(obj2); |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6880 | } |
d14a1e28 RD |
6881 | { |
6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6883 | (arg1)->Check(arg2,arg3); | |
6884 | ||
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | Py_INCREF(Py_None); resultobj = Py_None; | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj; | |
6897 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6898 | int result; | |
6899 | PyObject * obj0 = 0 ; | |
6900 | char *kwnames[] = { | |
6901 | (char *) "self", NULL | |
6902 | }; | |
6903 | ||
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6907 | { |
6908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6909 | result = (int)(arg1)->GetItemHeight(); | |
6910 | ||
6911 | wxPyEndAllowThreads(__tstate); | |
6912 | if (PyErr_Occurred()) SWIG_fail; | |
6913 | } | |
15afbcd0 | 6914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6915 | return resultobj; |
6916 | fail: | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6924 | wxPoint *arg2 = 0 ; | |
6925 | int result; | |
6926 | wxPoint temp2 ; | |
6927 | PyObject * obj0 = 0 ; | |
6928 | PyObject * obj1 = 0 ; | |
6929 | char *kwnames[] = { | |
6930 | (char *) "self",(char *) "pt", NULL | |
6931 | }; | |
6932 | ||
6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6936 | { |
6937 | arg2 = &temp2; | |
6938 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6939 | } | |
6940 | { | |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6943 | ||
6944 | wxPyEndAllowThreads(__tstate); | |
6945 | if (PyErr_Occurred()) SWIG_fail; | |
6946 | } | |
15afbcd0 | 6947 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6948 | return resultobj; |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
6954 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6955 | PyObject *resultobj; | |
6956 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
6957 | int arg2 ; |
6958 | int arg3 ; | |
d14a1e28 RD |
6959 | int result; |
6960 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6961 | PyObject * obj1 = 0 ; |
6962 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6963 | char *kwnames[] = { |
6964 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6965 | }; | |
6966 | ||
994141e6 | 6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6970 | arg2 = (int) SWIG_AsInt(obj1); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | arg3 = (int) SWIG_AsInt(obj2); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6974 | { |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
15afbcd0 | 6981 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6982 | return resultobj; |
6983 | fail: | |
6984 | return NULL; | |
6985 | } | |
6986 | ||
6987 | ||
6988 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6989 | PyObject *obj; | |
6990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6991 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6992 | Py_INCREF(obj); | |
6993 | return Py_BuildValue((char *)""); | |
6994 | } | |
b2dc1044 RD |
6995 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
6996 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6997 | return 1; | |
6998 | } | |
6999 | ||
7000 | ||
7001 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7002 | PyObject *pyobj; | |
7003 | ||
7004 | { | |
7005 | #if wxUSE_UNICODE | |
7006 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7007 | #else | |
7008 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7009 | #endif | |
7010 | } | |
7011 | return pyobj; | |
7012 | } | |
7013 | ||
7014 | ||
908b74cd | 7015 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7016 | PyObject *resultobj; |
908b74cd RD |
7017 | wxColour const &arg1_defvalue = wxNullColour ; |
7018 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
7019 | wxColour const &arg2_defvalue = wxNullColour ; |
7020 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7021 | wxFont const &arg3_defvalue = wxNullFont ; | |
7022 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7023 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7024 | wxTextAttr *result; | |
7025 | wxColour temp1 ; | |
7026 | wxColour temp2 ; | |
7027 | PyObject * obj0 = 0 ; | |
7028 | PyObject * obj1 = 0 ; | |
7029 | PyObject * obj2 = 0 ; | |
994141e6 | 7030 | PyObject * obj3 = 0 ; |
908b74cd RD |
7031 | char *kwnames[] = { |
7032 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7033 | }; | |
d14a1e28 | 7034 | |
908b74cd RD |
7035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7036 | if (obj0) { | |
7037 | { | |
7038 | arg1 = &temp1; | |
7039 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7040 | } | |
d14a1e28 RD |
7041 | } |
7042 | if (obj1) { | |
7043 | { | |
7044 | arg2 = &temp2; | |
7045 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7046 | } | |
7047 | } | |
7048 | if (obj2) { | |
15afbcd0 RD |
7049 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
7050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7051 | SWIG_fail; | |
d14a1e28 | 7052 | if (arg3 == NULL) { |
15afbcd0 RD |
7053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7054 | SWIG_fail; | |
d14a1e28 RD |
7055 | } |
7056 | } | |
994141e6 | 7057 | if (obj3) { |
15afbcd0 RD |
7058 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
7059 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7060 | } |
d14a1e28 RD |
7061 | { |
7062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7063 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7064 | ||
7065 | wxPyEndAllowThreads(__tstate); | |
7066 | if (PyErr_Occurred()) SWIG_fail; | |
7067 | } | |
15afbcd0 | 7068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7069 | return resultobj; |
7070 | fail: | |
7071 | return NULL; | |
7072 | } | |
7073 | ||
7074 | ||
994141e6 | 7075 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7076 | PyObject *resultobj; |
7077 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7078 | PyObject * obj0 = 0 ; | |
7079 | char *kwnames[] = { | |
7080 | (char *) "self", NULL | |
7081 | }; | |
7082 | ||
994141e6 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7086 | { |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7088 | delete arg1; |
d14a1e28 RD |
7089 | |
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | Py_INCREF(Py_None); resultobj = Py_None; | |
7094 | return resultobj; | |
7095 | fail: | |
7096 | return NULL; | |
7097 | } | |
7098 | ||
7099 | ||
994141e6 RD |
7100 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
7101 | PyObject *resultobj; | |
7102 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7103 | PyObject * obj0 = 0 ; | |
7104 | char *kwnames[] = { | |
7105 | (char *) "self", NULL | |
7106 | }; | |
7107 | ||
7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7111 | { |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | (arg1)->Init(); | |
7114 | ||
7115 | wxPyEndAllowThreads(__tstate); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | } | |
7118 | Py_INCREF(Py_None); resultobj = Py_None; | |
7119 | return resultobj; | |
7120 | fail: | |
7121 | return NULL; | |
7122 | } | |
7123 | ||
7124 | ||
7125 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
7126 | PyObject *resultobj; |
7127 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7128 | wxColour *arg2 = 0 ; | |
7129 | wxColour temp2 ; | |
7130 | PyObject * obj0 = 0 ; | |
7131 | PyObject * obj1 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self",(char *) "colText", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7139 | { |
7140 | arg2 = &temp2; | |
7141 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7142 | } | |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | Py_INCREF(Py_None); resultobj = Py_None; | |
7151 | return resultobj; | |
7152 | fail: | |
7153 | return NULL; | |
7154 | } | |
7155 | ||
7156 | ||
7157 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7158 | PyObject *resultobj; | |
7159 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7160 | wxColour *arg2 = 0 ; | |
7161 | wxColour temp2 ; | |
7162 | PyObject * obj0 = 0 ; | |
7163 | PyObject * obj1 = 0 ; | |
7164 | char *kwnames[] = { | |
7165 | (char *) "self",(char *) "colBack", NULL | |
7166 | }; | |
7167 | ||
7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7171 | { |
7172 | arg2 = &temp2; | |
7173 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7174 | } | |
7175 | { | |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
7182 | Py_INCREF(Py_None); resultobj = Py_None; | |
7183 | return resultobj; | |
7184 | fail: | |
7185 | return NULL; | |
7186 | } | |
7187 | ||
7188 | ||
7189 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7190 | PyObject *resultobj; | |
7191 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7192 | wxFont *arg2 = 0 ; | |
7193 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7194 | PyObject * obj0 = 0 ; | |
7195 | PyObject * obj1 = 0 ; | |
994141e6 | 7196 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7197 | char *kwnames[] = { |
7198 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7199 | }; | |
7200 | ||
994141e6 | 7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7206 | SWIG_fail; | |
d14a1e28 | 7207 | if (arg2 == NULL) { |
15afbcd0 RD |
7208 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7209 | SWIG_fail; | |
d14a1e28 | 7210 | } |
994141e6 | 7211 | if (obj2) { |
15afbcd0 RD |
7212 | arg3 = (long) SWIG_AsLong(obj2); |
7213 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7214 | } |
d14a1e28 RD |
7215 | { |
7216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7217 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7218 | ||
7219 | wxPyEndAllowThreads(__tstate); | |
7220 | if (PyErr_Occurred()) SWIG_fail; | |
7221 | } | |
7222 | Py_INCREF(Py_None); resultobj = Py_None; | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | return NULL; | |
7226 | } | |
7227 | ||
7228 | ||
7229 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7230 | PyObject *resultobj; | |
7231 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7232 | int arg2 ; | |
7233 | PyObject * obj0 = 0 ; | |
994141e6 | 7234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7235 | char *kwnames[] = { |
7236 | (char *) "self",(char *) "alignment", NULL | |
7237 | }; | |
7238 | ||
994141e6 | 7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7242 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7244 | { |
7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7246 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7247 | ||
7248 | wxPyEndAllowThreads(__tstate); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
7251 | Py_INCREF(Py_None); resultobj = Py_None; | |
7252 | return resultobj; | |
7253 | fail: | |
7254 | return NULL; | |
7255 | } | |
7256 | ||
7257 | ||
7258 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7259 | PyObject *resultobj; | |
7260 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7261 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 7262 | bool temp2 = False ; |
d14a1e28 RD |
7263 | PyObject * obj0 = 0 ; |
7264 | PyObject * obj1 = 0 ; | |
7265 | char *kwnames[] = { | |
7266 | (char *) "self",(char *) "tabs", NULL | |
7267 | }; | |
7268 | ||
7269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7272 | { |
7273 | if (! PySequence_Check(obj1)) { | |
7274 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7275 | SWIG_fail; | |
7276 | } | |
7277 | arg2 = new wxArrayInt; | |
3adfb63b | 7278 | temp2 = True; |
d14a1e28 RD |
7279 | int i, len=PySequence_Length(obj1); |
7280 | for (i=0; i<len; i++) { | |
7281 | PyObject* item = PySequence_GetItem(obj1, i); | |
7282 | PyObject* number = PyNumber_Int(item); | |
7283 | arg2->Add(PyInt_AS_LONG(number)); | |
7284 | Py_DECREF(item); | |
7285 | Py_DECREF(number); | |
7286 | } | |
7287 | } | |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | Py_INCREF(Py_None); resultobj = Py_None; | |
7296 | { | |
3adfb63b | 7297 | if (temp2) delete arg2; |
d14a1e28 RD |
7298 | } |
7299 | return resultobj; | |
7300 | fail: | |
7301 | { | |
3adfb63b | 7302 | if (temp2) delete arg2; |
d14a1e28 RD |
7303 | } |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7309 | PyObject *resultobj; | |
7310 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7311 | int arg2 ; | |
5e4ca4a8 | 7312 | int arg3 = (int) 0 ; |
d14a1e28 | 7313 | PyObject * obj0 = 0 ; |
994141e6 | 7314 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7315 | PyObject * obj2 = 0 ; |
d14a1e28 | 7316 | char *kwnames[] = { |
5e4ca4a8 | 7317 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7318 | }; |
7319 | ||
5e4ca4a8 | 7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7323 | arg2 = (int) SWIG_AsInt(obj1); | |
7324 | if (PyErr_Occurred()) SWIG_fail; | |
5e4ca4a8 RD |
7325 | if (obj2) { |
7326 | arg3 = (int) SWIG_AsInt(obj2); | |
7327 | if (PyErr_Occurred()) SWIG_fail; | |
7328 | } | |
d14a1e28 RD |
7329 | { |
7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7331 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7332 | |
7333 | wxPyEndAllowThreads(__tstate); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | } | |
7336 | Py_INCREF(Py_None); resultobj = Py_None; | |
7337 | return resultobj; | |
7338 | fail: | |
7339 | return NULL; | |
7340 | } | |
7341 | ||
7342 | ||
7343 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7344 | PyObject *resultobj; | |
7345 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7346 | int arg2 ; | |
7347 | PyObject * obj0 = 0 ; | |
994141e6 | 7348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7349 | char *kwnames[] = { |
7350 | (char *) "self",(char *) "indent", NULL | |
7351 | }; | |
7352 | ||
994141e6 | 7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7356 | arg2 = (int) SWIG_AsInt(obj1); | |
7357 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7358 | { |
7359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7360 | (arg1)->SetRightIndent(arg2); | |
7361 | ||
7362 | wxPyEndAllowThreads(__tstate); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | Py_INCREF(Py_None); resultobj = Py_None; | |
7366 | return resultobj; | |
7367 | fail: | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj; | |
7374 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7375 | long arg2 ; | |
7376 | PyObject * obj0 = 0 ; | |
994141e6 | 7377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7378 | char *kwnames[] = { |
7379 | (char *) "self",(char *) "flags", NULL | |
7380 | }; | |
7381 | ||
994141e6 | 7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7385 | arg2 = (long) SWIG_AsLong(obj1); | |
7386 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7387 | { |
7388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7389 | (arg1)->SetFlags(arg2); | |
7390 | ||
7391 | wxPyEndAllowThreads(__tstate); | |
7392 | if (PyErr_Occurred()) SWIG_fail; | |
7393 | } | |
7394 | Py_INCREF(Py_None); resultobj = Py_None; | |
7395 | return resultobj; | |
7396 | fail: | |
7397 | return NULL; | |
7398 | } | |
7399 | ||
7400 | ||
7401 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7402 | PyObject *resultobj; | |
7403 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7404 | bool result; | |
7405 | PyObject * obj0 = 0 ; | |
7406 | char *kwnames[] = { | |
7407 | (char *) "self", NULL | |
7408 | }; | |
7409 | ||
7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7413 | { |
7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7415 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7416 | ||
7417 | wxPyEndAllowThreads(__tstate); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
4f89f6a3 RD |
7420 | { |
7421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7422 | } | |
d14a1e28 RD |
7423 | return resultobj; |
7424 | fail: | |
7425 | return NULL; | |
7426 | } | |
7427 | ||
7428 | ||
7429 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7432 | bool result; | |
7433 | PyObject * obj0 = 0 ; | |
7434 | char *kwnames[] = { | |
7435 | (char *) "self", NULL | |
7436 | }; | |
7437 | ||
7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7441 | { |
7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7443 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7444 | ||
7445 | wxPyEndAllowThreads(__tstate); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
4f89f6a3 RD |
7448 | { |
7449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7450 | } | |
d14a1e28 RD |
7451 | return resultobj; |
7452 | fail: | |
7453 | return NULL; | |
7454 | } | |
7455 | ||
7456 | ||
7457 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7458 | PyObject *resultobj; | |
7459 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7460 | bool result; | |
7461 | PyObject * obj0 = 0 ; | |
7462 | char *kwnames[] = { | |
7463 | (char *) "self", NULL | |
7464 | }; | |
7465 | ||
7466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7469 | { |
7470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7471 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7472 | ||
7473 | wxPyEndAllowThreads(__tstate); | |
7474 | if (PyErr_Occurred()) SWIG_fail; | |
7475 | } | |
4f89f6a3 RD |
7476 | { |
7477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7478 | } | |
d14a1e28 RD |
7479 | return resultobj; |
7480 | fail: | |
7481 | return NULL; | |
7482 | } | |
7483 | ||
7484 | ||
7485 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7486 | PyObject *resultobj; | |
7487 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7488 | bool result; | |
7489 | PyObject * obj0 = 0 ; | |
7490 | char *kwnames[] = { | |
7491 | (char *) "self", NULL | |
7492 | }; | |
7493 | ||
7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7497 | { |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
4f89f6a3 RD |
7504 | { |
7505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7506 | } | |
d14a1e28 RD |
7507 | return resultobj; |
7508 | fail: | |
7509 | return NULL; | |
7510 | } | |
7511 | ||
7512 | ||
7513 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7514 | PyObject *resultobj; | |
7515 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7516 | bool result; | |
7517 | PyObject * obj0 = 0 ; | |
7518 | char *kwnames[] = { | |
7519 | (char *) "self", NULL | |
7520 | }; | |
7521 | ||
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7525 | { |
7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7527 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7528 | ||
7529 | wxPyEndAllowThreads(__tstate); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
4f89f6a3 RD |
7532 | { |
7533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7534 | } | |
d14a1e28 RD |
7535 | return resultobj; |
7536 | fail: | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7544 | bool result; | |
7545 | PyObject * obj0 = 0 ; | |
7546 | char *kwnames[] = { | |
7547 | (char *) "self", NULL | |
7548 | }; | |
7549 | ||
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7553 | { |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
4f89f6a3 RD |
7560 | { |
7561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7562 | } | |
d14a1e28 RD |
7563 | return resultobj; |
7564 | fail: | |
7565 | return NULL; | |
7566 | } | |
7567 | ||
7568 | ||
7569 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7570 | PyObject *resultobj; | |
7571 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7572 | bool result; | |
7573 | PyObject * obj0 = 0 ; | |
7574 | char *kwnames[] = { | |
7575 | (char *) "self", NULL | |
7576 | }; | |
7577 | ||
7578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7581 | { |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
4f89f6a3 RD |
7588 | { |
7589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7590 | } | |
d14a1e28 RD |
7591 | return resultobj; |
7592 | fail: | |
7593 | return NULL; | |
7594 | } | |
7595 | ||
7596 | ||
7597 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7598 | PyObject *resultobj; | |
7599 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7600 | long arg2 ; | |
7601 | bool result; | |
7602 | PyObject * obj0 = 0 ; | |
994141e6 | 7603 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7604 | char *kwnames[] = { |
7605 | (char *) "self",(char *) "flag", NULL | |
7606 | }; | |
7607 | ||
994141e6 | 7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7611 | arg2 = (long) SWIG_AsLong(obj1); | |
7612 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7613 | { |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
4f89f6a3 RD |
7620 | { |
7621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7622 | } | |
d14a1e28 RD |
7623 | return resultobj; |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7632 | wxColour *result; | |
7633 | PyObject * obj0 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7641 | { |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | { | |
7644 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7645 | result = (wxColour *) &_result_ref; | |
7646 | } | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
15afbcd0 | 7651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7652 | return resultobj; |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7661 | wxColour *result; | |
7662 | PyObject * obj0 = 0 ; | |
7663 | char *kwnames[] = { | |
7664 | (char *) "self", NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7670 | { |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | { | |
7673 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7674 | result = (wxColour *) &_result_ref; | |
7675 | } | |
7676 | ||
7677 | wxPyEndAllowThreads(__tstate); | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | } | |
15afbcd0 | 7680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7681 | return resultobj; |
7682 | fail: | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject *resultobj; | |
7689 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7690 | wxFont *result; | |
7691 | PyObject * obj0 = 0 ; | |
7692 | char *kwnames[] = { | |
7693 | (char *) "self", NULL | |
7694 | }; | |
7695 | ||
7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7699 | { |
7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7701 | { | |
7702 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7703 | result = (wxFont *) &_result_ref; | |
7704 | } | |
7705 | ||
7706 | wxPyEndAllowThreads(__tstate); | |
7707 | if (PyErr_Occurred()) SWIG_fail; | |
7708 | } | |
4276dc52 RD |
7709 | { |
7710 | wxFont* resultptr = new wxFont(*result); | |
7711 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7712 | } | |
d14a1e28 RD |
7713 | return resultobj; |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject *resultobj; | |
7721 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7722 | int result; | |
7723 | PyObject * obj0 = 0 ; | |
7724 | char *kwnames[] = { | |
7725 | (char *) "self", NULL | |
7726 | }; | |
7727 | ||
7728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7731 | { |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
15afbcd0 | 7738 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7739 | return resultobj; |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject *resultobj; | |
7747 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7748 | wxArrayInt *result; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "self", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7757 | { |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | { | |
7760 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7761 | result = (wxArrayInt *) &_result_ref; | |
7762 | } | |
7763 | ||
7764 | wxPyEndAllowThreads(__tstate); | |
7765 | if (PyErr_Occurred()) SWIG_fail; | |
7766 | } | |
7767 | { | |
7768 | resultobj = PyList_New(0); | |
7769 | size_t idx; | |
7770 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7771 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7772 | PyList_Append(resultobj, val); | |
7773 | Py_DECREF(val); | |
7774 | } | |
7775 | } | |
7776 | return resultobj; | |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
7782 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7783 | PyObject *resultobj; | |
7784 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7785 | long result; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | char *kwnames[] = { | |
7788 | (char *) "self", NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7794 | { |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
15afbcd0 | 7801 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7802 | return resultobj; |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
5e4ca4a8 RD |
7808 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7809 | PyObject *resultobj; | |
7810 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7811 | long result; | |
7812 | PyObject * obj0 = 0 ; | |
7813 | char *kwnames[] = { | |
7814 | (char *) "self", NULL | |
7815 | }; | |
7816 | ||
7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7820 | { | |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
7827 | resultobj = SWIG_FromLong((long)result); | |
7828 | return resultobj; | |
7829 | fail: | |
7830 | return NULL; | |
7831 | } | |
7832 | ||
7833 | ||
d14a1e28 RD |
7834 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7835 | PyObject *resultobj; | |
7836 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7837 | long result; | |
7838 | PyObject * obj0 = 0 ; | |
7839 | char *kwnames[] = { | |
7840 | (char *) "self", NULL | |
7841 | }; | |
7842 | ||
7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7846 | { |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7849 | ||
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
15afbcd0 | 7853 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7854 | return resultobj; |
7855 | fail: | |
7856 | return NULL; | |
7857 | } | |
7858 | ||
7859 | ||
7860 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject *resultobj; | |
7862 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7863 | long result; | |
7864 | PyObject * obj0 = 0 ; | |
7865 | char *kwnames[] = { | |
7866 | (char *) "self", NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7872 | { |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
15afbcd0 | 7879 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7880 | return resultobj; |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
7886 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject *resultobj; | |
7888 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7889 | bool result; | |
7890 | PyObject * obj0 = 0 ; | |
7891 | char *kwnames[] = { | |
7892 | (char *) "self", NULL | |
7893 | }; | |
7894 | ||
7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7898 | { |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7901 | ||
7902 | wxPyEndAllowThreads(__tstate); | |
7903 | if (PyErr_Occurred()) SWIG_fail; | |
7904 | } | |
4f89f6a3 RD |
7905 | { |
7906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7907 | } | |
d14a1e28 RD |
7908 | return resultobj; |
7909 | fail: | |
7910 | return NULL; | |
7911 | } | |
7912 | ||
7913 | ||
7914 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject *resultobj; | |
7916 | wxTextAttr *arg1 = 0 ; | |
7917 | wxTextAttr *arg2 = 0 ; | |
7918 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7919 | wxTextAttr result; | |
7920 | PyObject * obj0 = 0 ; | |
7921 | PyObject * obj1 = 0 ; | |
7922 | PyObject * obj2 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7929 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7930 | SWIG_fail; | |
d14a1e28 | 7931 | if (arg1 == NULL) { |
15afbcd0 RD |
7932 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7933 | SWIG_fail; | |
d14a1e28 | 7934 | } |
15afbcd0 RD |
7935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7937 | SWIG_fail; | |
d14a1e28 | 7938 | if (arg2 == NULL) { |
15afbcd0 RD |
7939 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7940 | SWIG_fail; | |
d14a1e28 | 7941 | } |
15afbcd0 RD |
7942 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7944 | { |
7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7946 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7947 | ||
7948 | wxPyEndAllowThreads(__tstate); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
7951 | { | |
7952 | wxTextAttr * resultptr; | |
7953 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 7954 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7955 | } |
7956 | return resultobj; | |
7957 | fail: | |
7958 | return NULL; | |
7959 | } | |
7960 | ||
7961 | ||
7962 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7963 | PyObject *obj; | |
7964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7965 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7966 | Py_INCREF(obj); | |
7967 | return Py_BuildValue((char *)""); | |
7968 | } | |
7969 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7970 | PyObject *resultobj; | |
7971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7972 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7973 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7974 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7975 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7976 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7977 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7978 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7979 | long arg6 = (long) 0 ; | |
7980 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7981 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7982 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7983 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7984 | wxTextCtrl *result; | |
e811c8ce | 7985 | bool temp3 = False ; |
d14a1e28 RD |
7986 | wxPoint temp4 ; |
7987 | wxSize temp5 ; | |
e811c8ce | 7988 | bool temp8 = False ; |
d14a1e28 | 7989 | PyObject * obj0 = 0 ; |
994141e6 | 7990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7991 | PyObject * obj2 = 0 ; |
7992 | PyObject * obj3 = 0 ; | |
7993 | PyObject * obj4 = 0 ; | |
994141e6 | 7994 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7995 | PyObject * obj6 = 0 ; |
7996 | PyObject * obj7 = 0 ; | |
7997 | char *kwnames[] = { | |
7998 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7999 | }; | |
8000 | ||
248ed943 | 8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
8002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8004 | if (obj1) { |
8005 | arg2 = (int) SWIG_AsInt(obj1); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | } | |
d14a1e28 RD |
8008 | if (obj2) { |
8009 | { | |
8010 | arg3 = wxString_in_helper(obj2); | |
8011 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8012 | temp3 = True; |
d14a1e28 RD |
8013 | } |
8014 | } | |
8015 | if (obj3) { | |
8016 | { | |
8017 | arg4 = &temp4; | |
8018 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8019 | } | |
8020 | } | |
8021 | if (obj4) { | |
8022 | { | |
8023 | arg5 = &temp5; | |
8024 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8025 | } | |
8026 | } | |
994141e6 | 8027 | if (obj5) { |
15afbcd0 RD |
8028 | arg6 = (long) SWIG_AsLong(obj5); |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8030 | } |
d14a1e28 | 8031 | if (obj6) { |
15afbcd0 RD |
8032 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
8033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8034 | SWIG_fail; | |
d14a1e28 | 8035 | if (arg7 == NULL) { |
15afbcd0 RD |
8036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8037 | SWIG_fail; | |
d14a1e28 RD |
8038 | } |
8039 | } | |
8040 | if (obj7) { | |
8041 | { | |
8042 | arg8 = wxString_in_helper(obj7); | |
8043 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8044 | temp8 = True; |
d14a1e28 RD |
8045 | } |
8046 | } | |
8047 | { | |
e3b71cb8 | 8048 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8050 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8053 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8054 | } |
8055 | { | |
412d302d | 8056 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8057 | } |
8058 | { | |
8059 | if (temp3) | |
8060 | delete arg3; | |
8061 | } | |
8062 | { | |
8063 | if (temp8) | |
8064 | delete arg8; | |
8065 | } | |
8066 | return resultobj; | |
8067 | fail: | |
8068 | { | |
8069 | if (temp3) | |
8070 | delete arg3; | |
8071 | } | |
8072 | { | |
8073 | if (temp8) | |
8074 | delete arg8; | |
8075 | } | |
8076 | return NULL; | |
8077 | } | |
8078 | ||
8079 | ||
8080 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8081 | PyObject *resultobj; | |
8082 | wxTextCtrl *result; | |
8083 | char *kwnames[] = { | |
8084 | NULL | |
8085 | }; | |
8086 | ||
8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8088 | { | |
e3b71cb8 | 8089 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8091 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8092 | ||
8093 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8094 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8095 | } |
8096 | { | |
412d302d | 8097 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8098 | } |
8099 | return resultobj; | |
8100 | fail: | |
8101 | return NULL; | |
8102 | } | |
8103 | ||
8104 | ||
8105 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject *resultobj; | |
8107 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8108 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8109 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8110 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8111 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8112 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8113 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8114 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8115 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8116 | long arg7 = (long) 0 ; | |
8117 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8118 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8119 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8120 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8121 | bool result; | |
e811c8ce | 8122 | bool temp4 = False ; |
d14a1e28 RD |
8123 | wxPoint temp5 ; |
8124 | wxSize temp6 ; | |
e811c8ce | 8125 | bool temp9 = False ; |
d14a1e28 RD |
8126 | PyObject * obj0 = 0 ; |
8127 | PyObject * obj1 = 0 ; | |
994141e6 | 8128 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8129 | PyObject * obj3 = 0 ; |
8130 | PyObject * obj4 = 0 ; | |
8131 | PyObject * obj5 = 0 ; | |
994141e6 | 8132 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8133 | PyObject * obj7 = 0 ; |
8134 | PyObject * obj8 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8137 | }; | |
8138 | ||
248ed943 | 8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8144 | if (obj2) { |
8145 | arg3 = (int) SWIG_AsInt(obj2); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
d14a1e28 RD |
8148 | if (obj3) { |
8149 | { | |
8150 | arg4 = wxString_in_helper(obj3); | |
8151 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8152 | temp4 = True; |
d14a1e28 RD |
8153 | } |
8154 | } | |
8155 | if (obj4) { | |
8156 | { | |
8157 | arg5 = &temp5; | |
8158 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8159 | } | |
8160 | } | |
8161 | if (obj5) { | |
8162 | { | |
8163 | arg6 = &temp6; | |
8164 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8165 | } | |
8166 | } | |
994141e6 | 8167 | if (obj6) { |
15afbcd0 RD |
8168 | arg7 = (long) SWIG_AsLong(obj6); |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8170 | } |
d14a1e28 | 8171 | if (obj7) { |
15afbcd0 RD |
8172 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8174 | SWIG_fail; | |
d14a1e28 | 8175 | if (arg8 == NULL) { |
15afbcd0 RD |
8176 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8177 | SWIG_fail; | |
d14a1e28 RD |
8178 | } |
8179 | } | |
8180 | if (obj8) { | |
8181 | { | |
8182 | arg9 = wxString_in_helper(obj8); | |
8183 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 8184 | temp9 = True; |
d14a1e28 RD |
8185 | } |
8186 | } | |
8187 | { | |
8188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8189 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8190 | ||
8191 | wxPyEndAllowThreads(__tstate); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
4f89f6a3 RD |
8194 | { |
8195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8196 | } | |
d14a1e28 RD |
8197 | { |
8198 | if (temp4) | |
8199 | delete arg4; | |
8200 | } | |
8201 | { | |
8202 | if (temp9) | |
8203 | delete arg9; | |
8204 | } | |
8205 | return resultobj; | |
8206 | fail: | |
8207 | { | |
8208 | if (temp4) | |
8209 | delete arg4; | |
8210 | } | |
8211 | { | |
8212 | if (temp9) | |
8213 | delete arg9; | |
8214 | } | |
8215 | return NULL; | |
8216 | } | |
8217 | ||
8218 | ||
8219 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8220 | PyObject *resultobj; | |
8221 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8222 | wxString result; | |
8223 | PyObject * obj0 = 0 ; | |
8224 | char *kwnames[] = { | |
8225 | (char *) "self", NULL | |
8226 | }; | |
8227 | ||
8228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8231 | { |
8232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8233 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8234 | ||
8235 | wxPyEndAllowThreads(__tstate); | |
8236 | if (PyErr_Occurred()) SWIG_fail; | |
8237 | } | |
8238 | { | |
8239 | #if wxUSE_UNICODE | |
8240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8241 | #else | |
8242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8243 | #endif | |
8244 | } | |
8245 | return resultobj; | |
8246 | fail: | |
8247 | return NULL; | |
8248 | } | |
8249 | ||
8250 | ||
8251 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8252 | PyObject *resultobj; | |
8253 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8254 | wxString *arg2 = 0 ; | |
e811c8ce | 8255 | bool temp2 = False ; |
d14a1e28 RD |
8256 | PyObject * obj0 = 0 ; |
8257 | PyObject * obj1 = 0 ; | |
8258 | char *kwnames[] = { | |
8259 | (char *) "self",(char *) "value", NULL | |
8260 | }; | |
8261 | ||
8262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8265 | { |
8266 | arg2 = wxString_in_helper(obj1); | |
8267 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8268 | temp2 = True; |
d14a1e28 RD |
8269 | } |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | (arg1)->SetValue((wxString const &)*arg2); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | Py_INCREF(Py_None); resultobj = Py_None; | |
8278 | { | |
8279 | if (temp2) | |
8280 | delete arg2; | |
8281 | } | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | { | |
8285 | if (temp2) | |
8286 | delete arg2; | |
8287 | } | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject *resultobj; | |
8294 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8295 | long arg2 ; | |
8296 | long arg3 ; | |
8297 | wxString result; | |
8298 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8299 | PyObject * obj1 = 0 ; |
8300 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8301 | char *kwnames[] = { |
8302 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8303 | }; | |
8304 | ||
994141e6 | 8305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8308 | arg2 = (long) SWIG_AsLong(obj1); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | arg3 = (long) SWIG_AsLong(obj2); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8312 | { |
8313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8314 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8315 | ||
8316 | wxPyEndAllowThreads(__tstate); | |
8317 | if (PyErr_Occurred()) SWIG_fail; | |
8318 | } | |
8319 | { | |
8320 | #if wxUSE_UNICODE | |
8321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8322 | #else | |
8323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8324 | #endif | |
8325 | } | |
8326 | return resultobj; | |
8327 | fail: | |
8328 | return NULL; | |
8329 | } | |
8330 | ||
8331 | ||
8332 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8333 | PyObject *resultobj; | |
8334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8335 | long arg2 ; | |
8336 | int result; | |
8337 | PyObject * obj0 = 0 ; | |
994141e6 | 8338 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8339 | char *kwnames[] = { |
8340 | (char *) "self",(char *) "lineNo", NULL | |
8341 | }; | |
8342 | ||
994141e6 | 8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8346 | arg2 = (long) SWIG_AsLong(obj1); | |
8347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8348 | { |
8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8350 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8351 | ||
8352 | wxPyEndAllowThreads(__tstate); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
15afbcd0 | 8355 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8356 | return resultobj; |
8357 | fail: | |
8358 | return NULL; | |
8359 | } | |
8360 | ||
8361 | ||
8362 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8363 | PyObject *resultobj; | |
8364 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8365 | long arg2 ; | |
8366 | wxString result; | |
8367 | PyObject * obj0 = 0 ; | |
994141e6 | 8368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8369 | char *kwnames[] = { |
8370 | (char *) "self",(char *) "lineNo", NULL | |
8371 | }; | |
8372 | ||
994141e6 | 8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8376 | arg2 = (long) SWIG_AsLong(obj1); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8378 | { |
8379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8380 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8381 | ||
8382 | wxPyEndAllowThreads(__tstate); | |
8383 | if (PyErr_Occurred()) SWIG_fail; | |
8384 | } | |
8385 | { | |
8386 | #if wxUSE_UNICODE | |
8387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8388 | #else | |
8389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8390 | #endif | |
8391 | } | |
8392 | return resultobj; | |
8393 | fail: | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
8398 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8399 | PyObject *resultobj; | |
8400 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8401 | int result; | |
8402 | PyObject * obj0 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "self", NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8410 | { |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8416 | } | |
15afbcd0 | 8417 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8418 | return resultobj; |
8419 | fail: | |
8420 | return NULL; | |
8421 | } | |
8422 | ||
8423 | ||
8424 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8425 | PyObject *resultobj; | |
8426 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8427 | bool result; | |
8428 | PyObject * obj0 = 0 ; | |
8429 | char *kwnames[] = { | |
8430 | (char *) "self", NULL | |
8431 | }; | |
8432 | ||
8433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8436 | { |
8437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8438 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8439 | ||
8440 | wxPyEndAllowThreads(__tstate); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
8442 | } | |
4f89f6a3 RD |
8443 | { |
8444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8445 | } | |
d14a1e28 RD |
8446 | return resultobj; |
8447 | fail: | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
8452 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8453 | PyObject *resultobj; | |
8454 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8455 | bool result; | |
8456 | PyObject * obj0 = 0 ; | |
8457 | char *kwnames[] = { | |
8458 | (char *) "self", NULL | |
8459 | }; | |
8460 | ||
8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8464 | { |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8467 | ||
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
4f89f6a3 RD |
8471 | { |
8472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8473 | } | |
d14a1e28 RD |
8474 | return resultobj; |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8481 | PyObject *resultobj; | |
8482 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8483 | bool result; | |
8484 | PyObject * obj0 = 0 ; | |
8485 | char *kwnames[] = { | |
8486 | (char *) "self", NULL | |
8487 | }; | |
8488 | ||
8489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8492 | { |
8493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8494 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8495 | ||
8496 | wxPyEndAllowThreads(__tstate); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
4f89f6a3 RD |
8499 | { |
8500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8501 | } | |
d14a1e28 RD |
8502 | return resultobj; |
8503 | fail: | |
8504 | return NULL; | |
8505 | } | |
8506 | ||
8507 | ||
8508 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8509 | PyObject *resultobj; | |
8510 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8511 | bool result; | |
8512 | PyObject * obj0 = 0 ; | |
8513 | char *kwnames[] = { | |
8514 | (char *) "self", NULL | |
8515 | }; | |
8516 | ||
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8520 | { |
8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8522 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8523 | ||
8524 | wxPyEndAllowThreads(__tstate); | |
8525 | if (PyErr_Occurred()) SWIG_fail; | |
8526 | } | |
4f89f6a3 RD |
8527 | { |
8528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8529 | } | |
d14a1e28 RD |
8530 | return resultobj; |
8531 | fail: | |
8532 | return NULL; | |
8533 | } | |
8534 | ||
8535 | ||
8536 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8537 | PyObject *resultobj; | |
8538 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8539 | long *arg2 = (long *) 0 ; | |
8540 | long *arg3 = (long *) 0 ; | |
8541 | long temp2 ; | |
8542 | long temp3 ; | |
8543 | PyObject * obj0 = 0 ; | |
8544 | char *kwnames[] = { | |
8545 | (char *) "self", NULL | |
8546 | }; | |
8547 | ||
8548 | arg2 = &temp2; | |
8549 | arg3 = &temp3; | |
8550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8553 | { |
8554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8555 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8556 | ||
8557 | wxPyEndAllowThreads(__tstate); | |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8559 | } | |
8560 | Py_INCREF(Py_None); resultobj = Py_None; | |
8561 | { | |
8562 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8563 | resultobj = t_output_helper(resultobj,o); | |
8564 | } | |
8565 | { | |
8566 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8567 | resultobj = t_output_helper(resultobj,o); | |
8568 | } | |
8569 | return resultobj; | |
8570 | fail: | |
8571 | return NULL; | |
8572 | } | |
8573 | ||
8574 | ||
8575 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject *resultobj; | |
8577 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8578 | wxString result; | |
8579 | PyObject * obj0 = 0 ; | |
8580 | char *kwnames[] = { | |
8581 | (char *) "self", NULL | |
8582 | }; | |
8583 | ||
8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8587 | { |
8588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8589 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8590 | ||
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
8594 | { | |
8595 | #if wxUSE_UNICODE | |
8596 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8597 | #else | |
8598 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8599 | #endif | |
8600 | } | |
8601 | return resultobj; | |
8602 | fail: | |
8603 | return NULL; | |
8604 | } | |
8605 | ||
8606 | ||
8607 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8608 | PyObject *resultobj; | |
8609 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8610 | PyObject * obj0 = 0 ; | |
8611 | char *kwnames[] = { | |
8612 | (char *) "self", NULL | |
8613 | }; | |
8614 | ||
8615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8618 | { |
8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8620 | (arg1)->Clear(); | |
8621 | ||
8622 | wxPyEndAllowThreads(__tstate); | |
8623 | if (PyErr_Occurred()) SWIG_fail; | |
8624 | } | |
8625 | Py_INCREF(Py_None); resultobj = Py_None; | |
8626 | return resultobj; | |
8627 | fail: | |
8628 | return NULL; | |
8629 | } | |
8630 | ||
8631 | ||
8632 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject *resultobj; | |
8634 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8635 | long arg2 ; | |
8636 | long arg3 ; | |
8637 | wxString *arg4 = 0 ; | |
e811c8ce | 8638 | bool temp4 = False ; |
d14a1e28 | 8639 | PyObject * obj0 = 0 ; |
994141e6 RD |
8640 | PyObject * obj1 = 0 ; |
8641 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8642 | PyObject * obj3 = 0 ; |
8643 | char *kwnames[] = { | |
8644 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8645 | }; | |
8646 | ||
994141e6 | 8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8650 | arg2 = (long) SWIG_AsLong(obj1); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | arg3 = (long) SWIG_AsLong(obj2); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8654 | { |
8655 | arg4 = wxString_in_helper(obj3); | |
8656 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8657 | temp4 = True; |
d14a1e28 RD |
8658 | } |
8659 | { | |
8660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8661 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8662 | ||
8663 | wxPyEndAllowThreads(__tstate); | |
8664 | if (PyErr_Occurred()) SWIG_fail; | |
8665 | } | |
8666 | Py_INCREF(Py_None); resultobj = Py_None; | |
8667 | { | |
8668 | if (temp4) | |
8669 | delete arg4; | |
8670 | } | |
8671 | return resultobj; | |
8672 | fail: | |
8673 | { | |
8674 | if (temp4) | |
8675 | delete arg4; | |
8676 | } | |
8677 | return NULL; | |
8678 | } | |
8679 | ||
8680 | ||
8681 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8682 | PyObject *resultobj; | |
8683 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8684 | long arg2 ; | |
8685 | long arg3 ; | |
8686 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8687 | PyObject * obj1 = 0 ; |
8688 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8689 | char *kwnames[] = { |
8690 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8691 | }; | |
8692 | ||
994141e6 | 8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8696 | arg2 = (long) SWIG_AsLong(obj1); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | arg3 = (long) SWIG_AsLong(obj2); | |
8699 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8700 | { |
8701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8702 | (arg1)->Remove(arg2,arg3); | |
8703 | ||
8704 | wxPyEndAllowThreads(__tstate); | |
8705 | if (PyErr_Occurred()) SWIG_fail; | |
8706 | } | |
8707 | Py_INCREF(Py_None); resultobj = Py_None; | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | return NULL; | |
8711 | } | |
8712 | ||
8713 | ||
8714 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8715 | PyObject *resultobj; | |
8716 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8717 | wxString *arg2 = 0 ; | |
8718 | bool result; | |
e811c8ce | 8719 | bool temp2 = False ; |
d14a1e28 RD |
8720 | PyObject * obj0 = 0 ; |
8721 | PyObject * obj1 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "self",(char *) "file", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8729 | { |
8730 | arg2 = wxString_in_helper(obj1); | |
8731 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8732 | temp2 = True; |
d14a1e28 RD |
8733 | } |
8734 | { | |
8735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8736 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8737 | ||
8738 | wxPyEndAllowThreads(__tstate); | |
8739 | if (PyErr_Occurred()) SWIG_fail; | |
8740 | } | |
4f89f6a3 RD |
8741 | { |
8742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8743 | } | |
d14a1e28 RD |
8744 | { |
8745 | if (temp2) | |
8746 | delete arg2; | |
8747 | } | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | { | |
8751 | if (temp2) | |
8752 | delete arg2; | |
8753 | } | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
8758 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8759 | PyObject *resultobj; | |
8760 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8761 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8762 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8763 | bool result; | |
e811c8ce | 8764 | bool temp2 = False ; |
d14a1e28 RD |
8765 | PyObject * obj0 = 0 ; |
8766 | PyObject * obj1 = 0 ; | |
8767 | char *kwnames[] = { | |
8768 | (char *) "self",(char *) "file", NULL | |
8769 | }; | |
8770 | ||
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8774 | if (obj1) { |
8775 | { | |
8776 | arg2 = wxString_in_helper(obj1); | |
8777 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8778 | temp2 = True; |
d14a1e28 RD |
8779 | } |
8780 | } | |
8781 | { | |
8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8783 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8784 | ||
8785 | wxPyEndAllowThreads(__tstate); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
4f89f6a3 RD |
8788 | { |
8789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8790 | } | |
d14a1e28 RD |
8791 | { |
8792 | if (temp2) | |
8793 | delete arg2; | |
8794 | } | |
8795 | return resultobj; | |
8796 | fail: | |
8797 | { | |
8798 | if (temp2) | |
8799 | delete arg2; | |
8800 | } | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj; | |
8807 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8816 | { |
8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8818 | (arg1)->MarkDirty(); | |
8819 | ||
8820 | wxPyEndAllowThreads(__tstate); | |
8821 | if (PyErr_Occurred()) SWIG_fail; | |
8822 | } | |
8823 | Py_INCREF(Py_None); resultobj = Py_None; | |
8824 | return resultobj; | |
8825 | fail: | |
8826 | return NULL; | |
8827 | } | |
8828 | ||
8829 | ||
8830 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8831 | PyObject *resultobj; | |
8832 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8833 | PyObject * obj0 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8841 | { |
8842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8843 | (arg1)->DiscardEdits(); | |
8844 | ||
8845 | wxPyEndAllowThreads(__tstate); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | } | |
8848 | Py_INCREF(Py_None); resultobj = Py_None; | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8858 | unsigned long arg2 ; | |
8859 | PyObject * obj0 = 0 ; | |
8860 | PyObject * obj1 = 0 ; | |
8861 | char *kwnames[] = { | |
8862 | (char *) "self",(char *) "len", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8868 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8870 | { |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8872 | (arg1)->SetMaxLength(arg2); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
8877 | Py_INCREF(Py_None); resultobj = Py_None; | |
8878 | return resultobj; | |
8879 | fail: | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj; | |
8886 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8887 | wxString *arg2 = 0 ; | |
e811c8ce | 8888 | bool temp2 = False ; |
d14a1e28 RD |
8889 | PyObject * obj0 = 0 ; |
8890 | PyObject * obj1 = 0 ; | |
8891 | char *kwnames[] = { | |
8892 | (char *) "self",(char *) "text", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8898 | { |
8899 | arg2 = wxString_in_helper(obj1); | |
8900 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8901 | temp2 = True; |
d14a1e28 RD |
8902 | } |
8903 | { | |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | (arg1)->WriteText((wxString const &)*arg2); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
8910 | Py_INCREF(Py_None); resultobj = Py_None; | |
8911 | { | |
8912 | if (temp2) | |
8913 | delete arg2; | |
8914 | } | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | { | |
8918 | if (temp2) | |
8919 | delete arg2; | |
8920 | } | |
8921 | return NULL; | |
8922 | } | |
8923 | ||
8924 | ||
8925 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8926 | PyObject *resultobj; | |
8927 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8928 | wxString *arg2 = 0 ; | |
e811c8ce | 8929 | bool temp2 = False ; |
d14a1e28 RD |
8930 | PyObject * obj0 = 0 ; |
8931 | PyObject * obj1 = 0 ; | |
8932 | char *kwnames[] = { | |
8933 | (char *) "self",(char *) "text", NULL | |
8934 | }; | |
8935 | ||
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8939 | { |
8940 | arg2 = wxString_in_helper(obj1); | |
8941 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8942 | temp2 = True; |
d14a1e28 RD |
8943 | } |
8944 | { | |
8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8946 | (arg1)->AppendText((wxString const &)*arg2); | |
8947 | ||
8948 | wxPyEndAllowThreads(__tstate); | |
8949 | if (PyErr_Occurred()) SWIG_fail; | |
8950 | } | |
8951 | Py_INCREF(Py_None); resultobj = Py_None; | |
8952 | { | |
8953 | if (temp2) | |
8954 | delete arg2; | |
8955 | } | |
8956 | return resultobj; | |
8957 | fail: | |
8958 | { | |
8959 | if (temp2) | |
8960 | delete arg2; | |
8961 | } | |
8962 | return NULL; | |
8963 | } | |
8964 | ||
8965 | ||
8966 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8967 | PyObject *resultobj; | |
8968 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8969 | wxKeyEvent *arg2 = 0 ; | |
8970 | bool result; | |
8971 | PyObject * obj0 = 0 ; | |
8972 | PyObject * obj1 = 0 ; | |
8973 | char *kwnames[] = { | |
8974 | (char *) "self",(char *) "event", NULL | |
8975 | }; | |
8976 | ||
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8982 | SWIG_fail; | |
d14a1e28 | 8983 | if (arg2 == NULL) { |
15afbcd0 RD |
8984 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8985 | SWIG_fail; | |
d14a1e28 RD |
8986 | } |
8987 | { | |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8989 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8990 | ||
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
4f89f6a3 RD |
8994 | { |
8995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8996 | } | |
d14a1e28 RD |
8997 | return resultobj; |
8998 | fail: | |
8999 | return NULL; | |
9000 | } | |
9001 | ||
9002 | ||
9003 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9004 | PyObject *resultobj; | |
9005 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9006 | long arg2 ; | |
9007 | long arg3 ; | |
9008 | wxTextAttr *arg4 = 0 ; | |
9009 | bool result; | |
9010 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9011 | PyObject * obj1 = 0 ; |
9012 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9013 | PyObject * obj3 = 0 ; |
9014 | char *kwnames[] = { | |
9015 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9016 | }; | |
9017 | ||
994141e6 | 9018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9021 | arg2 = (long) SWIG_AsLong(obj1); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | arg3 = (long) SWIG_AsLong(obj2); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9027 | SWIG_fail; | |
d14a1e28 | 9028 | if (arg4 == NULL) { |
15afbcd0 RD |
9029 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9030 | SWIG_fail; | |
d14a1e28 RD |
9031 | } |
9032 | { | |
9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9034 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9035 | ||
9036 | wxPyEndAllowThreads(__tstate); | |
9037 | if (PyErr_Occurred()) SWIG_fail; | |
9038 | } | |
4f89f6a3 RD |
9039 | { |
9040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9041 | } | |
d14a1e28 RD |
9042 | return resultobj; |
9043 | fail: | |
9044 | return NULL; | |
9045 | } | |
9046 | ||
9047 | ||
9048 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject *resultobj; | |
9050 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9051 | long arg2 ; | |
9052 | wxTextAttr *arg3 = 0 ; | |
9053 | bool result; | |
9054 | PyObject * obj0 = 0 ; | |
994141e6 | 9055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9056 | PyObject * obj2 = 0 ; |
9057 | char *kwnames[] = { | |
9058 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9059 | }; | |
9060 | ||
994141e6 | 9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9064 | arg2 = (long) SWIG_AsLong(obj1); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9067 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9068 | SWIG_fail; | |
d14a1e28 | 9069 | if (arg3 == NULL) { |
15afbcd0 RD |
9070 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9071 | SWIG_fail; | |
d14a1e28 RD |
9072 | } |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
4f89f6a3 RD |
9080 | { |
9081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9082 | } | |
d14a1e28 RD |
9083 | return resultobj; |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9092 | wxTextAttr *arg2 = 0 ; | |
9093 | bool result; | |
9094 | PyObject * obj0 = 0 ; | |
9095 | PyObject * obj1 = 0 ; | |
9096 | char *kwnames[] = { | |
9097 | (char *) "self",(char *) "style", NULL | |
9098 | }; | |
9099 | ||
9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9103 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9104 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9105 | SWIG_fail; | |
d14a1e28 | 9106 | if (arg2 == NULL) { |
15afbcd0 RD |
9107 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9108 | SWIG_fail; | |
d14a1e28 RD |
9109 | } |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
4f89f6a3 RD |
9117 | { |
9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9119 | } | |
d14a1e28 RD |
9120 | return resultobj; |
9121 | fail: | |
9122 | return NULL; | |
9123 | } | |
9124 | ||
9125 | ||
9126 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9127 | PyObject *resultobj; | |
9128 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9129 | wxTextAttr *result; | |
9130 | PyObject * obj0 = 0 ; | |
9131 | char *kwnames[] = { | |
9132 | (char *) "self", NULL | |
9133 | }; | |
9134 | ||
9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9138 | { |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | { | |
9141 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9142 | result = (wxTextAttr *) &_result_ref; | |
9143 | } | |
9144 | ||
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
15afbcd0 | 9148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9149 | return resultobj; |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
9155 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9156 | PyObject *resultobj; | |
9157 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9158 | long arg2 ; | |
9159 | long arg3 ; | |
9160 | long result; | |
9161 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9162 | PyObject * obj1 = 0 ; |
9163 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9164 | char *kwnames[] = { |
9165 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9166 | }; | |
9167 | ||
994141e6 | 9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9171 | arg2 = (long) SWIG_AsLong(obj1); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | arg3 = (long) SWIG_AsLong(obj2); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9175 | { |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | } | |
15afbcd0 | 9182 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9183 | return resultobj; |
9184 | fail: | |
9185 | return NULL; | |
9186 | } | |
9187 | ||
9188 | ||
9189 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9190 | PyObject *resultobj; | |
9191 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9192 | long arg2 ; | |
9193 | long *arg3 = (long *) 0 ; | |
9194 | long *arg4 = (long *) 0 ; | |
9195 | long temp3 ; | |
9196 | long temp4 ; | |
9197 | PyObject * obj0 = 0 ; | |
994141e6 | 9198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9199 | char *kwnames[] = { |
9200 | (char *) "self",(char *) "pos", NULL | |
9201 | }; | |
9202 | ||
9203 | arg3 = &temp3; | |
9204 | arg4 = &temp4; | |
994141e6 | 9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9208 | arg2 = (long) SWIG_AsLong(obj1); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9210 | { |
9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9212 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9213 | ||
9214 | wxPyEndAllowThreads(__tstate); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | } | |
9217 | Py_INCREF(Py_None); resultobj = Py_None; | |
9218 | { | |
9219 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9220 | resultobj = t_output_helper(resultobj,o); | |
9221 | } | |
9222 | { | |
9223 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9224 | resultobj = t_output_helper(resultobj,o); | |
9225 | } | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9235 | long arg2 ; | |
9236 | PyObject * obj0 = 0 ; | |
994141e6 | 9237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9238 | char *kwnames[] = { |
9239 | (char *) "self",(char *) "pos", NULL | |
9240 | }; | |
9241 | ||
994141e6 | 9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9245 | arg2 = (long) SWIG_AsLong(obj1); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9247 | { |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | (arg1)->ShowPosition(arg2); | |
9250 | ||
9251 | wxPyEndAllowThreads(__tstate); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | } | |
9254 | Py_INCREF(Py_None); resultobj = Py_None; | |
9255 | return resultobj; | |
9256 | fail: | |
9257 | return NULL; | |
9258 | } | |
9259 | ||
9260 | ||
4d5c3d91 RD |
9261 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
9262 | PyObject *resultobj; | |
9263 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9264 | wxPoint *arg2 = 0 ; | |
9265 | long *arg3 = (long *) 0 ; | |
9266 | long *arg4 = (long *) 0 ; | |
9267 | int result; | |
9268 | wxPoint temp2 ; | |
9269 | long temp3 ; | |
9270 | long temp4 ; | |
9271 | PyObject * obj0 = 0 ; | |
9272 | PyObject * obj1 = 0 ; | |
9273 | char *kwnames[] = { | |
9274 | (char *) "self",(char *) "pt", NULL | |
9275 | }; | |
9276 | ||
9277 | arg3 = &temp3; | |
9278 | arg4 = &temp4; | |
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9282 | { |
9283 | arg2 = &temp2; | |
9284 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9285 | } | |
9286 | { | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9289 | ||
9290 | wxPyEndAllowThreads(__tstate); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
15afbcd0 | 9293 | resultobj = SWIG_FromInt((int)result); |
4d5c3d91 RD |
9294 | { |
9295 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9296 | resultobj = t_output_helper(resultobj,o); | |
9297 | } | |
9298 | { | |
9299 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9300 | resultobj = t_output_helper(resultobj,o); | |
9301 | } | |
9302 | return resultobj; | |
9303 | fail: | |
9304 | return NULL; | |
9305 | } | |
9306 | ||
9307 | ||
d14a1e28 RD |
9308 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
9309 | PyObject *resultobj; | |
9310 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | char *kwnames[] = { | |
9313 | (char *) "self", NULL | |
9314 | }; | |
9315 | ||
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9319 | { |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | (arg1)->Copy(); | |
9322 | ||
9323 | wxPyEndAllowThreads(__tstate); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | Py_INCREF(Py_None); resultobj = Py_None; | |
9327 | return resultobj; | |
9328 | fail: | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
9333 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9334 | PyObject *resultobj; | |
9335 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9336 | PyObject * obj0 = 0 ; | |
9337 | char *kwnames[] = { | |
9338 | (char *) "self", NULL | |
9339 | }; | |
9340 | ||
9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9344 | { |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | (arg1)->Cut(); | |
9347 | ||
9348 | wxPyEndAllowThreads(__tstate); | |
9349 | if (PyErr_Occurred()) SWIG_fail; | |
9350 | } | |
9351 | Py_INCREF(Py_None); resultobj = Py_None; | |
9352 | return resultobj; | |
9353 | fail: | |
9354 | return NULL; | |
9355 | } | |
9356 | ||
9357 | ||
9358 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9359 | PyObject *resultobj; | |
9360 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9369 | { |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | (arg1)->Paste(); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | Py_INCREF(Py_None); resultobj = Py_None; | |
9377 | return resultobj; | |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject *resultobj; | |
9385 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9386 | bool result; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | char *kwnames[] = { | |
9389 | (char *) "self", NULL | |
9390 | }; | |
9391 | ||
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9395 | { |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9398 | ||
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
4f89f6a3 RD |
9402 | { |
9403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9404 | } | |
d14a1e28 RD |
9405 | return resultobj; |
9406 | fail: | |
9407 | return NULL; | |
9408 | } | |
9409 | ||
9410 | ||
9411 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9412 | PyObject *resultobj; | |
9413 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9414 | bool result; | |
9415 | PyObject * obj0 = 0 ; | |
9416 | char *kwnames[] = { | |
9417 | (char *) "self", NULL | |
9418 | }; | |
9419 | ||
9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9423 | { |
9424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9425 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9426 | ||
9427 | wxPyEndAllowThreads(__tstate); | |
9428 | if (PyErr_Occurred()) SWIG_fail; | |
9429 | } | |
4f89f6a3 RD |
9430 | { |
9431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9432 | } | |
d14a1e28 RD |
9433 | return resultobj; |
9434 | fail: | |
9435 | return NULL; | |
9436 | } | |
9437 | ||
9438 | ||
9439 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9440 | PyObject *resultobj; | |
9441 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9442 | bool result; | |
9443 | PyObject * obj0 = 0 ; | |
9444 | char *kwnames[] = { | |
9445 | (char *) "self", NULL | |
9446 | }; | |
9447 | ||
9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9451 | { |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
4f89f6a3 RD |
9458 | { |
9459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9460 | } | |
d14a1e28 RD |
9461 | return resultobj; |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9478 | { |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | (arg1)->Undo(); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | Py_INCREF(Py_None); resultobj = Py_None; | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9495 | PyObject * obj0 = 0 ; | |
9496 | char *kwnames[] = { | |
9497 | (char *) "self", NULL | |
9498 | }; | |
9499 | ||
9500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9503 | { |
9504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9505 | (arg1)->Redo(); | |
9506 | ||
9507 | wxPyEndAllowThreads(__tstate); | |
9508 | if (PyErr_Occurred()) SWIG_fail; | |
9509 | } | |
9510 | Py_INCREF(Py_None); resultobj = Py_None; | |
9511 | return resultobj; | |
9512 | fail: | |
9513 | return NULL; | |
9514 | } | |
9515 | ||
9516 | ||
9517 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9518 | PyObject *resultobj; | |
9519 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9520 | bool result; | |
9521 | PyObject * obj0 = 0 ; | |
9522 | char *kwnames[] = { | |
9523 | (char *) "self", NULL | |
9524 | }; | |
9525 | ||
9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9529 | { |
9530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9531 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9532 | ||
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
4f89f6a3 RD |
9536 | { |
9537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9538 | } | |
d14a1e28 RD |
9539 | return resultobj; |
9540 | fail: | |
9541 | return NULL; | |
9542 | } | |
9543 | ||
9544 | ||
9545 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9546 | PyObject *resultobj; | |
9547 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9548 | bool result; | |
9549 | PyObject * obj0 = 0 ; | |
9550 | char *kwnames[] = { | |
9551 | (char *) "self", NULL | |
9552 | }; | |
9553 | ||
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9557 | { |
9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9559 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9560 | ||
9561 | wxPyEndAllowThreads(__tstate); | |
9562 | if (PyErr_Occurred()) SWIG_fail; | |
9563 | } | |
4f89f6a3 RD |
9564 | { |
9565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9566 | } | |
d14a1e28 RD |
9567 | return resultobj; |
9568 | fail: | |
9569 | return NULL; | |
9570 | } | |
9571 | ||
9572 | ||
9573 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject *resultobj; | |
9575 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9576 | long arg2 ; | |
9577 | PyObject * obj0 = 0 ; | |
994141e6 | 9578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9579 | char *kwnames[] = { |
9580 | (char *) "self",(char *) "pos", NULL | |
9581 | }; | |
9582 | ||
994141e6 | 9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9586 | arg2 = (long) SWIG_AsLong(obj1); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9588 | { |
9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9590 | (arg1)->SetInsertionPoint(arg2); | |
9591 | ||
9592 | wxPyEndAllowThreads(__tstate); | |
9593 | if (PyErr_Occurred()) SWIG_fail; | |
9594 | } | |
9595 | Py_INCREF(Py_None); resultobj = Py_None; | |
9596 | return resultobj; | |
9597 | fail: | |
9598 | return NULL; | |
9599 | } | |
9600 | ||
9601 | ||
9602 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9603 | PyObject *resultobj; | |
9604 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9605 | PyObject * obj0 = 0 ; | |
9606 | char *kwnames[] = { | |
9607 | (char *) "self", NULL | |
9608 | }; | |
9609 | ||
9610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9613 | { |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | (arg1)->SetInsertionPointEnd(); | |
9616 | ||
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
9620 | Py_INCREF(Py_None); resultobj = Py_None; | |
9621 | return resultobj; | |
9622 | fail: | |
9623 | return NULL; | |
9624 | } | |
9625 | ||
9626 | ||
9627 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9628 | PyObject *resultobj; | |
9629 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9630 | long result; | |
9631 | PyObject * obj0 = 0 ; | |
9632 | char *kwnames[] = { | |
9633 | (char *) "self", NULL | |
9634 | }; | |
9635 | ||
9636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9639 | { |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
15afbcd0 | 9646 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9647 | return resultobj; |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9656 | long result; | |
9657 | PyObject * obj0 = 0 ; | |
9658 | char *kwnames[] = { | |
9659 | (char *) "self", NULL | |
9660 | }; | |
9661 | ||
9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9665 | { |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9668 | ||
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
15afbcd0 | 9672 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9673 | return resultobj; |
9674 | fail: | |
9675 | return NULL; | |
9676 | } | |
9677 | ||
9678 | ||
9679 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9680 | PyObject *resultobj; | |
9681 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9682 | long arg2 ; | |
9683 | long arg3 ; | |
9684 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9685 | PyObject * obj1 = 0 ; |
9686 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9687 | char *kwnames[] = { |
9688 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9689 | }; | |
9690 | ||
994141e6 | 9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9694 | arg2 = (long) SWIG_AsLong(obj1); | |
9695 | if (PyErr_Occurred()) SWIG_fail; | |
9696 | arg3 = (long) SWIG_AsLong(obj2); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9698 | { |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | (arg1)->SetSelection(arg2,arg3); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | Py_INCREF(Py_None); resultobj = Py_None; | |
9706 | return resultobj; | |
9707 | fail: | |
9708 | return NULL; | |
9709 | } | |
9710 | ||
9711 | ||
9712 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9713 | PyObject *resultobj; | |
9714 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self", NULL | |
9718 | }; | |
9719 | ||
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9723 | { |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | (arg1)->SelectAll(); | |
9726 | ||
9727 | wxPyEndAllowThreads(__tstate); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | Py_INCREF(Py_None); resultobj = Py_None; | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
9737 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject *resultobj; | |
9739 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9740 | bool arg2 ; | |
9741 | PyObject * obj0 = 0 ; | |
9742 | PyObject * obj1 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self",(char *) "editable", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9750 | arg2 = (bool) SWIG_AsBool(obj1); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9752 | { |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | (arg1)->SetEditable(arg2); | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | Py_INCREF(Py_None); resultobj = Py_None; | |
9760 | return resultobj; | |
9761 | fail: | |
9762 | return NULL; | |
9763 | } | |
9764 | ||
9765 | ||
9766 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9767 | PyObject *resultobj; | |
9768 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9769 | wxString *arg2 = 0 ; | |
e811c8ce | 9770 | bool temp2 = False ; |
d14a1e28 RD |
9771 | PyObject * obj0 = 0 ; |
9772 | PyObject * obj1 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self",(char *) "text", NULL | |
9775 | }; | |
9776 | ||
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9780 | { |
9781 | arg2 = wxString_in_helper(obj1); | |
9782 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9783 | temp2 = True; |
d14a1e28 RD |
9784 | } |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) SWIG_fail; | |
9791 | } | |
9792 | Py_INCREF(Py_None); resultobj = Py_None; | |
9793 | { | |
9794 | if (temp2) | |
9795 | delete arg2; | |
9796 | } | |
9797 | return resultobj; | |
9798 | fail: | |
9799 | { | |
9800 | if (temp2) | |
9801 | delete arg2; | |
9802 | } | |
9803 | return NULL; | |
9804 | } | |
9805 | ||
9806 | ||
9807 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9808 | PyObject *resultobj; | |
9809 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9810 | long arg2 ; | |
9811 | long arg3 ; | |
9812 | wxString result; | |
9813 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9814 | PyObject * obj1 = 0 ; |
9815 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9816 | char *kwnames[] = { |
9817 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9818 | }; | |
9819 | ||
994141e6 | 9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9823 | arg2 = (long) SWIG_AsLong(obj1); | |
9824 | if (PyErr_Occurred()) SWIG_fail; | |
9825 | arg3 = (long) SWIG_AsLong(obj2); | |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9827 | { |
9828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9829 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9830 | ||
9831 | wxPyEndAllowThreads(__tstate); | |
9832 | if (PyErr_Occurred()) SWIG_fail; | |
9833 | } | |
9834 | { | |
9835 | #if wxUSE_UNICODE | |
9836 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9837 | #else | |
9838 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9839 | #endif | |
9840 | } | |
9841 | return resultobj; | |
9842 | fail: | |
9843 | return NULL; | |
9844 | } | |
9845 | ||
9846 | ||
22bfe96c RD |
9847 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9848 | PyObject *resultobj; | |
9849 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9850 | wxVisualAttributes result; | |
9851 | PyObject * obj0 = 0 ; | |
9852 | char *kwnames[] = { | |
9853 | (char *) "variant", NULL | |
9854 | }; | |
9855 | ||
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9857 | if (obj0) { | |
9858 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
9861 | { | |
110da5b0 | 9862 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9864 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9865 | ||
9866 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 9867 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
9868 | } |
9869 | { | |
9870 | wxVisualAttributes * resultptr; | |
9871 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9873 | } | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
d14a1e28 RD |
9880 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9881 | PyObject *obj; | |
9882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9883 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9884 | Py_INCREF(obj); | |
9885 | return Py_BuildValue((char *)""); | |
9886 | } | |
9887 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | int arg1 ; | |
9890 | wxMouseEvent *arg2 = 0 ; | |
9891 | long arg3 ; | |
9892 | long arg4 ; | |
9893 | wxTextUrlEvent *result; | |
994141e6 | 9894 | PyObject * obj0 = 0 ; |
d14a1e28 | 9895 | PyObject * obj1 = 0 ; |
994141e6 RD |
9896 | PyObject * obj2 = 0 ; |
9897 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9898 | char *kwnames[] = { |
9899 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9900 | }; | |
9901 | ||
994141e6 | 9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9903 | arg1 = (int) SWIG_AsInt(obj0); |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9906 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9907 | SWIG_fail; | |
d14a1e28 | 9908 | if (arg2 == NULL) { |
15afbcd0 RD |
9909 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9910 | SWIG_fail; | |
994141e6 | 9911 | } |
15afbcd0 RD |
9912 | arg3 = (long) SWIG_AsLong(obj2); |
9913 | if (PyErr_Occurred()) SWIG_fail; | |
9914 | arg4 = (long) SWIG_AsLong(obj3); | |
9915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9916 | { |
9917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9918 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9919 | ||
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
15afbcd0 | 9923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9924 | return resultobj; |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
9930 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj; | |
9932 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9933 | wxMouseEvent *result; | |
9934 | PyObject * obj0 = 0 ; | |
9935 | char *kwnames[] = { | |
9936 | (char *) "self", NULL | |
9937 | }; | |
9938 | ||
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9942 | { |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | { | |
9945 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9946 | result = (wxMouseEvent *) &_result_ref; | |
9947 | } | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
15afbcd0 | 9952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9953 | return resultobj; |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject *resultobj; | |
9961 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9962 | long result; | |
9963 | PyObject * obj0 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9971 | { |
9972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9973 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9974 | ||
9975 | wxPyEndAllowThreads(__tstate); | |
9976 | if (PyErr_Occurred()) SWIG_fail; | |
9977 | } | |
15afbcd0 | 9978 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9979 | return resultobj; |
9980 | fail: | |
9981 | return NULL; | |
9982 | } | |
9983 | ||
9984 | ||
9985 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9986 | PyObject *resultobj; | |
9987 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9988 | long result; | |
9989 | PyObject * obj0 = 0 ; | |
9990 | char *kwnames[] = { | |
9991 | (char *) "self", NULL | |
9992 | }; | |
9993 | ||
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9997 | { |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9999 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10000 | ||
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
15afbcd0 | 10004 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
10005 | return resultobj; |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
10012 | PyObject *obj; | |
10013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10014 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10015 | Py_INCREF(obj); | |
10016 | return Py_BuildValue((char *)""); | |
10017 | } | |
b2dc1044 RD |
10018 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
10019 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
10020 | return 1; | |
10021 | } | |
10022 | ||
10023 | ||
10024 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10025 | PyObject *pyobj; | |
10026 | ||
10027 | { | |
10028 | #if wxUSE_UNICODE | |
10029 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10030 | #else | |
10031 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10032 | #endif | |
10033 | } | |
10034 | return pyobj; | |
10035 | } | |
10036 | ||
10037 | ||
d14a1e28 RD |
10038 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
10039 | PyObject *resultobj; | |
10040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10041 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10042 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10043 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10044 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10045 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10046 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10047 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10048 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10049 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10050 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10051 | wxScrollBar *result; | |
10052 | wxPoint temp3 ; | |
10053 | wxSize temp4 ; | |
e811c8ce | 10054 | bool temp7 = False ; |
d14a1e28 | 10055 | PyObject * obj0 = 0 ; |
994141e6 | 10056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10057 | PyObject * obj2 = 0 ; |
10058 | PyObject * obj3 = 0 ; | |
994141e6 | 10059 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10060 | PyObject * obj5 = 0 ; |
10061 | PyObject * obj6 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10064 | }; | |
10065 | ||
994141e6 | 10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10069 | if (obj1) { |
15afbcd0 RD |
10070 | arg2 = (int) SWIG_AsInt(obj1); |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10072 | } |
d14a1e28 RD |
10073 | if (obj2) { |
10074 | { | |
10075 | arg3 = &temp3; | |
10076 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10077 | } | |
10078 | } | |
10079 | if (obj3) { | |
10080 | { | |
10081 | arg4 = &temp4; | |
10082 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10083 | } | |
10084 | } | |
994141e6 | 10085 | if (obj4) { |
15afbcd0 RD |
10086 | arg5 = (long) SWIG_AsLong(obj4); |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10088 | } |
d14a1e28 | 10089 | if (obj5) { |
15afbcd0 RD |
10090 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10092 | SWIG_fail; | |
d14a1e28 | 10093 | if (arg6 == NULL) { |
15afbcd0 RD |
10094 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10095 | SWIG_fail; | |
d14a1e28 RD |
10096 | } |
10097 | } | |
10098 | if (obj6) { | |
10099 | { | |
10100 | arg7 = wxString_in_helper(obj6); | |
10101 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10102 | temp7 = True; |
d14a1e28 RD |
10103 | } |
10104 | } | |
10105 | { | |
e3b71cb8 | 10106 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10108 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10111 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10112 | } |
15afbcd0 | 10113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10114 | { |
10115 | if (temp7) | |
10116 | delete arg7; | |
10117 | } | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | { | |
10121 | if (temp7) | |
10122 | delete arg7; | |
10123 | } | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
10128 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10129 | PyObject *resultobj; | |
10130 | wxScrollBar *result; | |
10131 | char *kwnames[] = { | |
10132 | NULL | |
10133 | }; | |
10134 | ||
10135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10136 | { | |
e3b71cb8 | 10137 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10139 | result = (wxScrollBar *)new wxScrollBar(); | |
10140 | ||
10141 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10142 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10143 | } |
15afbcd0 | 10144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10145 | return resultobj; |
10146 | fail: | |
10147 | return NULL; | |
10148 | } | |
10149 | ||
10150 | ||
10151 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10152 | PyObject *resultobj; | |
10153 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10154 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10155 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10156 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10157 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10158 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10159 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10160 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10161 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10162 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10163 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10164 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10165 | bool result; | |
10166 | wxPoint temp4 ; | |
10167 | wxSize temp5 ; | |
e811c8ce | 10168 | bool temp8 = False ; |
d14a1e28 RD |
10169 | PyObject * obj0 = 0 ; |
10170 | PyObject * obj1 = 0 ; | |
994141e6 | 10171 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10172 | PyObject * obj3 = 0 ; |
10173 | PyObject * obj4 = 0 ; | |
994141e6 | 10174 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10175 | PyObject * obj6 = 0 ; |
10176 | PyObject * obj7 = 0 ; | |
10177 | char *kwnames[] = { | |
10178 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10179 | }; | |
10180 | ||
994141e6 | 10181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10186 | if (obj2) { |
15afbcd0 RD |
10187 | arg3 = (int) SWIG_AsInt(obj2); |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10189 | } |
d14a1e28 RD |
10190 | if (obj3) { |
10191 | { | |
10192 | arg4 = &temp4; | |
10193 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10194 | } | |
10195 | } | |
10196 | if (obj4) { | |
10197 | { | |
10198 | arg5 = &temp5; | |
10199 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10200 | } | |
10201 | } | |
994141e6 | 10202 | if (obj5) { |
15afbcd0 RD |
10203 | arg6 = (long) SWIG_AsLong(obj5); |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10205 | } |
d14a1e28 | 10206 | if (obj6) { |
15afbcd0 RD |
10207 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10208 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10209 | SWIG_fail; | |
d14a1e28 | 10210 | if (arg7 == NULL) { |
15afbcd0 RD |
10211 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10212 | SWIG_fail; | |
d14a1e28 RD |
10213 | } |
10214 | } | |
10215 | if (obj7) { | |
10216 | { | |
10217 | arg8 = wxString_in_helper(obj7); | |
10218 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10219 | temp8 = True; |
d14a1e28 RD |
10220 | } |
10221 | } | |
10222 | { | |
10223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10224 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10225 | ||
10226 | wxPyEndAllowThreads(__tstate); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
4f89f6a3 RD |
10229 | { |
10230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10231 | } | |
d14a1e28 RD |
10232 | { |
10233 | if (temp8) | |
10234 | delete arg8; | |
10235 | } | |
10236 | return resultobj; | |
10237 | fail: | |
10238 | { | |
10239 | if (temp8) | |
10240 | delete arg8; | |
10241 | } | |
10242 | return NULL; | |
10243 | } | |
10244 | ||
10245 | ||
10246 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10247 | PyObject *resultobj; | |
10248 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10249 | int result; | |
10250 | PyObject * obj0 = 0 ; | |
10251 | char *kwnames[] = { | |
10252 | (char *) "self", NULL | |
10253 | }; | |
10254 | ||
10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10258 | { |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10260 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10261 | ||
10262 | wxPyEndAllowThreads(__tstate); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
15afbcd0 | 10265 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10266 | return resultobj; |
10267 | fail: | |
10268 | return NULL; | |
10269 | } | |
10270 | ||
10271 | ||
10272 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10273 | PyObject *resultobj; | |
10274 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10275 | int result; | |
10276 | PyObject * obj0 = 0 ; | |
10277 | char *kwnames[] = { | |
10278 | (char *) "self", NULL | |
10279 | }; | |
10280 | ||
10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10284 | { |
10285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10286 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10287 | ||
10288 | wxPyEndAllowThreads(__tstate); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
15afbcd0 | 10291 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10292 | return resultobj; |
10293 | fail: | |
10294 | return NULL; | |
10295 | } | |
10296 | ||
10297 | ||
10298 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10299 | PyObject *resultobj; | |
10300 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10301 | int result; | |
10302 | PyObject * obj0 = 0 ; | |
10303 | char *kwnames[] = { | |
10304 | (char *) "self", NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10310 | { |
10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10312 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10313 | ||
10314 | wxPyEndAllowThreads(__tstate); | |
10315 | if (PyErr_Occurred()) SWIG_fail; | |
10316 | } | |
15afbcd0 | 10317 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10318 | return resultobj; |
10319 | fail: | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
10324 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10325 | PyObject *resultobj; | |
10326 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10327 | int result; | |
10328 | PyObject * obj0 = 0 ; | |
10329 | char *kwnames[] = { | |
10330 | (char *) "self", NULL | |
10331 | }; | |
10332 | ||
10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10336 | { |
10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10338 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10339 | ||
10340 | wxPyEndAllowThreads(__tstate); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
15afbcd0 | 10343 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10344 | return resultobj; |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
10350 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10351 | PyObject *resultobj; | |
10352 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10353 | bool result; | |
10354 | PyObject * obj0 = 0 ; | |
10355 | char *kwnames[] = { | |
10356 | (char *) "self", NULL | |
10357 | }; | |
10358 | ||
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10362 | { |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
4f89f6a3 RD |
10369 | { |
10370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10371 | } | |
d14a1e28 RD |
10372 | return resultobj; |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
10378 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject *resultobj; | |
10380 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10381 | int arg2 ; | |
10382 | PyObject * obj0 = 0 ; | |
994141e6 | 10383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10384 | char *kwnames[] = { |
10385 | (char *) "self",(char *) "viewStart", NULL | |
10386 | }; | |
10387 | ||
994141e6 | 10388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10391 | arg2 = (int) SWIG_AsInt(obj1); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10393 | { |
10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10395 | (arg1)->SetThumbPosition(arg2); | |
10396 | ||
10397 | wxPyEndAllowThreads(__tstate); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | Py_INCREF(Py_None); resultobj = Py_None; | |
10401 | return resultobj; | |
10402 | fail: | |
10403 | return NULL; | |
10404 | } | |
10405 | ||
10406 | ||
10407 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10408 | PyObject *resultobj; | |
10409 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10410 | int arg2 ; | |
10411 | int arg3 ; | |
10412 | int arg4 ; | |
10413 | int arg5 ; | |
e811c8ce | 10414 | bool arg6 = (bool) True ; |
d14a1e28 | 10415 | PyObject * obj0 = 0 ; |
994141e6 RD |
10416 | PyObject * obj1 = 0 ; |
10417 | PyObject * obj2 = 0 ; | |
10418 | PyObject * obj3 = 0 ; | |
10419 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10420 | PyObject * obj5 = 0 ; |
10421 | char *kwnames[] = { | |
10422 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10423 | }; | |
10424 | ||
994141e6 | 10425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10428 | arg2 = (int) SWIG_AsInt(obj1); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | arg3 = (int) SWIG_AsInt(obj2); | |
10431 | if (PyErr_Occurred()) SWIG_fail; | |
10432 | arg4 = (int) SWIG_AsInt(obj3); | |
10433 | if (PyErr_Occurred()) SWIG_fail; | |
10434 | arg5 = (int) SWIG_AsInt(obj4); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 10436 | if (obj5) { |
15afbcd0 RD |
10437 | arg6 = (bool) SWIG_AsBool(obj5); |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10439 | } |
10440 | { | |
10441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10442 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10443 | ||
10444 | wxPyEndAllowThreads(__tstate); | |
10445 | if (PyErr_Occurred()) SWIG_fail; | |
10446 | } | |
10447 | Py_INCREF(Py_None); resultobj = Py_None; | |
10448 | return resultobj; | |
10449 | fail: | |
10450 | return NULL; | |
10451 | } | |
10452 | ||
10453 | ||
22bfe96c RD |
10454 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10455 | PyObject *resultobj; | |
10456 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10457 | wxVisualAttributes result; | |
10458 | PyObject * obj0 = 0 ; | |
10459 | char *kwnames[] = { | |
10460 | (char *) "variant", NULL | |
10461 | }; | |
10462 | ||
10463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10464 | if (obj0) { | |
10465 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | { | |
110da5b0 | 10469 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10471 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10472 | ||
10473 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10474 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10475 | } |
10476 | { | |
10477 | wxVisualAttributes * resultptr; | |
10478 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10480 | } | |
10481 | return resultobj; | |
10482 | fail: | |
10483 | return NULL; | |
10484 | } | |
10485 | ||
10486 | ||
d14a1e28 RD |
10487 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10488 | PyObject *obj; | |
10489 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10490 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10491 | Py_INCREF(obj); | |
10492 | return Py_BuildValue((char *)""); | |
10493 | } | |
b2dc1044 RD |
10494 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
10495 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10496 | return 1; | |
10497 | } | |
10498 | ||
10499 | ||
10500 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10501 | PyObject *pyobj; | |
10502 | ||
10503 | { | |
10504 | #if wxUSE_UNICODE | |
10505 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10506 | #else | |
10507 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10508 | #endif | |
10509 | } | |
10510 | return pyobj; | |
10511 | } | |
10512 | ||
10513 | ||
10514 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10516 | return 1; | |
10517 | } | |
10518 | ||
10519 | ||
10520 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10521 | PyObject *pyobj; | |
10522 | ||
10523 | { | |
10524 | #if wxUSE_UNICODE | |
10525 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10526 | #else | |
10527 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10528 | #endif | |
10529 | } | |
10530 | return pyobj; | |
10531 | } | |
10532 | ||
10533 | ||
d14a1e28 RD |
10534 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10535 | PyObject *resultobj; | |
10536 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10537 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10538 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10539 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10540 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10541 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10542 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10543 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10544 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10545 | wxSpinButton *result; | |
10546 | wxPoint temp3 ; | |
10547 | wxSize temp4 ; | |
e811c8ce | 10548 | bool temp6 = False ; |
d14a1e28 | 10549 | PyObject * obj0 = 0 ; |
994141e6 | 10550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10551 | PyObject * obj2 = 0 ; |
10552 | PyObject * obj3 = 0 ; | |
994141e6 | 10553 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10554 | PyObject * obj5 = 0 ; |
10555 | char *kwnames[] = { | |
10556 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10557 | }; | |
10558 | ||
994141e6 | 10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10562 | if (obj1) { |
15afbcd0 RD |
10563 | arg2 = (int) SWIG_AsInt(obj1); |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10565 | } |
d14a1e28 RD |
10566 | if (obj2) { |
10567 | { | |
10568 | arg3 = &temp3; | |
10569 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10570 | } | |
10571 | } | |
10572 | if (obj3) { | |
10573 | { | |
10574 | arg4 = &temp4; | |
10575 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10576 | } | |
10577 | } | |
994141e6 | 10578 | if (obj4) { |
15afbcd0 RD |
10579 | arg5 = (long) SWIG_AsLong(obj4); |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10581 | } |
d14a1e28 RD |
10582 | if (obj5) { |
10583 | { | |
10584 | arg6 = wxString_in_helper(obj5); | |
10585 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10586 | temp6 = True; |
d14a1e28 RD |
10587 | } |
10588 | } | |
10589 | { | |
e3b71cb8 | 10590 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10592 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10593 | ||
10594 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10595 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10596 | } |
15afbcd0 | 10597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10598 | { |
10599 | if (temp6) | |
10600 | delete arg6; | |
10601 | } | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | { | |
10605 | if (temp6) | |
10606 | delete arg6; | |
10607 | } | |
10608 | return NULL; | |
10609 | } | |
10610 | ||
10611 | ||
10612 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10613 | PyObject *resultobj; | |
10614 | wxSpinButton *result; | |
10615 | char *kwnames[] = { | |
10616 | NULL | |
10617 | }; | |
10618 | ||
10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10620 | { | |
e3b71cb8 | 10621 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10623 | result = (wxSpinButton *)new wxSpinButton(); | |
10624 | ||
10625 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10627 | } |
15afbcd0 | 10628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10629 | return resultobj; |
10630 | fail: | |
10631 | return NULL; | |
10632 | } | |
10633 | ||
10634 | ||
10635 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10636 | PyObject *resultobj; | |
10637 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10638 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10639 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10640 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10641 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10642 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10643 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10644 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10645 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10646 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10647 | bool result; | |
10648 | wxPoint temp4 ; | |
10649 | wxSize temp5 ; | |
e811c8ce | 10650 | bool temp7 = False ; |
d14a1e28 RD |
10651 | PyObject * obj0 = 0 ; |
10652 | PyObject * obj1 = 0 ; | |
994141e6 | 10653 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10654 | PyObject * obj3 = 0 ; |
10655 | PyObject * obj4 = 0 ; | |
994141e6 | 10656 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10657 | PyObject * obj6 = 0 ; |
10658 | char *kwnames[] = { | |
10659 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10660 | }; | |
10661 | ||
994141e6 | 10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10667 | if (obj2) { |
15afbcd0 RD |
10668 | arg3 = (int) SWIG_AsInt(obj2); |
10669 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10670 | } |
d14a1e28 RD |
10671 | if (obj3) { |
10672 | { | |
10673 | arg4 = &temp4; | |
10674 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10675 | } | |
10676 | } | |
10677 | if (obj4) { | |
10678 | { | |
10679 | arg5 = &temp5; | |
10680 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10681 | } | |
10682 | } | |
994141e6 | 10683 | if (obj5) { |
15afbcd0 RD |
10684 | arg6 = (long) SWIG_AsLong(obj5); |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10686 | } |
d14a1e28 RD |
10687 | if (obj6) { |
10688 | { | |
10689 | arg7 = wxString_in_helper(obj6); | |
10690 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10691 | temp7 = True; |
d14a1e28 RD |
10692 | } |
10693 | } | |
10694 | { | |
10695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10696 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10697 | ||
10698 | wxPyEndAllowThreads(__tstate); | |
10699 | if (PyErr_Occurred()) SWIG_fail; | |
10700 | } | |
4f89f6a3 RD |
10701 | { |
10702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10703 | } | |
d14a1e28 RD |
10704 | { |
10705 | if (temp7) | |
10706 | delete arg7; | |
10707 | } | |
10708 | return resultobj; | |
10709 | fail: | |
10710 | { | |
10711 | if (temp7) | |
10712 | delete arg7; | |
10713 | } | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj; | |
10720 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10721 | int result; | |
10722 | PyObject * obj0 = 0 ; | |
10723 | char *kwnames[] = { | |
10724 | (char *) "self", NULL | |
10725 | }; | |
10726 | ||
10727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10730 | { |
10731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10732 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10733 | ||
10734 | wxPyEndAllowThreads(__tstate); | |
10735 | if (PyErr_Occurred()) SWIG_fail; | |
10736 | } | |
15afbcd0 | 10737 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10738 | return resultobj; |
10739 | fail: | |
10740 | return NULL; | |
10741 | } | |
10742 | ||
10743 | ||
10744 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10745 | PyObject *resultobj; | |
10746 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10747 | int result; | |
10748 | PyObject * obj0 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10756 | { |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10759 | ||
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | } | |
15afbcd0 | 10763 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10764 | return resultobj; |
10765 | fail: | |
10766 | return NULL; | |
10767 | } | |
10768 | ||
10769 | ||
10770 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj; | |
10772 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10773 | int result; | |
10774 | PyObject * obj0 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10782 | { |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
15afbcd0 | 10789 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10790 | return resultobj; |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
10796 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject *resultobj; | |
10798 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10799 | int arg2 ; | |
10800 | PyObject * obj0 = 0 ; | |
994141e6 | 10801 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10802 | char *kwnames[] = { |
10803 | (char *) "self",(char *) "val", NULL | |
10804 | }; | |
10805 | ||
994141e6 | 10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10809 | arg2 = (int) SWIG_AsInt(obj1); | |
10810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10811 | { |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->SetValue(arg2); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10828 | int arg2 ; | |
10829 | PyObject * obj0 = 0 ; | |
994141e6 | 10830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10831 | char *kwnames[] = { |
10832 | (char *) "self",(char *) "minVal", NULL | |
10833 | }; | |
10834 | ||
994141e6 | 10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10838 | arg2 = (int) SWIG_AsInt(obj1); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10840 | { |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | (arg1)->SetMin(arg2); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | Py_INCREF(Py_None); resultobj = Py_None; | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10857 | int arg2 ; | |
10858 | PyObject * obj0 = 0 ; | |
994141e6 | 10859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10860 | char *kwnames[] = { |
10861 | (char *) "self",(char *) "maxVal", NULL | |
10862 | }; | |
10863 | ||
994141e6 | 10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10867 | arg2 = (int) SWIG_AsInt(obj1); | |
10868 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10869 | { |
10870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10871 | (arg1)->SetMax(arg2); | |
10872 | ||
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | Py_INCREF(Py_None); resultobj = Py_None; | |
10877 | return resultobj; | |
10878 | fail: | |
10879 | return NULL; | |
10880 | } | |
10881 | ||
10882 | ||
10883 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10884 | PyObject *resultobj; | |
10885 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10886 | int arg2 ; | |
10887 | int arg3 ; | |
10888 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10889 | PyObject * obj1 = 0 ; |
10890 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10891 | char *kwnames[] = { |
10892 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10893 | }; | |
10894 | ||
994141e6 | 10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10898 | arg2 = (int) SWIG_AsInt(obj1); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | arg3 = (int) SWIG_AsInt(obj2); | |
10901 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10902 | { |
15afbcd0 RD |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10904 | (arg1)->SetRange(arg2,arg3); | |
10905 | ||
10906 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
10907 | if (PyErr_Occurred()) SWIG_fail; |
10908 | } | |
22bfe96c RD |
10909 | Py_INCREF(Py_None); resultobj = Py_None; |
10910 | return resultobj; | |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10917 | PyObject *resultobj; | |
10918 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10919 | bool result; | |
10920 | PyObject * obj0 = 0 ; | |
10921 | char *kwnames[] = { | |
10922 | (char *) "self", NULL | |
10923 | }; | |
10924 | ||
10925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10928 | { | |
10929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10930 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10931 | ||
10932 | wxPyEndAllowThreads(__tstate); | |
10933 | if (PyErr_Occurred()) SWIG_fail; | |
10934 | } | |
10935 | { | |
10936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10937 | } | |
d14a1e28 RD |
10938 | return resultobj; |
10939 | fail: | |
10940 | return NULL; | |
10941 | } | |
10942 | ||
10943 | ||
22bfe96c | 10944 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10945 | PyObject *resultobj; |
22bfe96c RD |
10946 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10947 | wxVisualAttributes result; | |
d14a1e28 RD |
10948 | PyObject * obj0 = 0 ; |
10949 | char *kwnames[] = { | |
22bfe96c | 10950 | (char *) "variant", NULL |
d14a1e28 RD |
10951 | }; |
10952 | ||
22bfe96c RD |
10953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10954 | if (obj0) { | |
10955 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
d14a1e28 | 10958 | { |
110da5b0 | 10959 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 10961 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
10962 | |
10963 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10964 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10965 | } |
4f89f6a3 | 10966 | { |
22bfe96c RD |
10967 | wxVisualAttributes * resultptr; |
10968 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10969 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 10970 | } |
d14a1e28 RD |
10971 | return resultobj; |
10972 | fail: | |
10973 | return NULL; | |
10974 | } | |
10975 | ||
10976 | ||
10977 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10978 | PyObject *obj; | |
10979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10980 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10981 | Py_INCREF(obj); | |
10982 | return Py_BuildValue((char *)""); | |
10983 | } | |
10984 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10985 | PyObject *resultobj; | |
10986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10987 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10988 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10989 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10990 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10991 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10992 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10993 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10994 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10995 | int arg7 = (int) 0 ; | |
10996 | int arg8 = (int) 100 ; | |
10997 | int arg9 = (int) 0 ; | |
10998 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10999 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11000 | wxSpinCtrl *result; | |
e811c8ce | 11001 | bool temp3 = False ; |
d14a1e28 RD |
11002 | wxPoint temp4 ; |
11003 | wxSize temp5 ; | |
e811c8ce | 11004 | bool temp10 = False ; |
d14a1e28 | 11005 | PyObject * obj0 = 0 ; |
994141e6 | 11006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11007 | PyObject * obj2 = 0 ; |
11008 | PyObject * obj3 = 0 ; | |
11009 | PyObject * obj4 = 0 ; | |
994141e6 RD |
11010 | PyObject * obj5 = 0 ; |
11011 | PyObject * obj6 = 0 ; | |
11012 | PyObject * obj7 = 0 ; | |
11013 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11014 | PyObject * obj9 = 0 ; |
11015 | char *kwnames[] = { | |
11016 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11017 | }; | |
11018 | ||
994141e6 | 11019 | 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 |
11020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11022 | if (obj1) { |
15afbcd0 RD |
11023 | arg2 = (int) SWIG_AsInt(obj1); |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11025 | } |
11026 | if (obj2) { | |
d14a1e28 RD |
11027 | { |
11028 | arg3 = wxString_in_helper(obj2); | |
11029 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11030 | temp3 = True; |
d14a1e28 RD |
11031 | } |
11032 | } | |
11033 | if (obj3) { | |
11034 | { | |
11035 | arg4 = &temp4; | |
11036 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11037 | } | |
11038 | } | |
11039 | if (obj4) { | |
11040 | { | |
11041 | arg5 = &temp5; | |
11042 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11043 | } | |
11044 | } | |
994141e6 | 11045 | if (obj5) { |
15afbcd0 RD |
11046 | arg6 = (long) SWIG_AsLong(obj5); |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11048 | } |
11049 | if (obj6) { | |
15afbcd0 RD |
11050 | arg7 = (int) SWIG_AsInt(obj6); |
11051 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11052 | } |
11053 | if (obj7) { | |
15afbcd0 RD |
11054 | arg8 = (int) SWIG_AsInt(obj7); |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11056 | } |
11057 | if (obj8) { | |
15afbcd0 RD |
11058 | arg9 = (int) SWIG_AsInt(obj8); |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11060 | } |
d14a1e28 RD |
11061 | if (obj9) { |
11062 | { | |
11063 | arg10 = wxString_in_helper(obj9); | |
11064 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11065 | temp10 = True; |
d14a1e28 RD |
11066 | } |
11067 | } | |
11068 | { | |
e3b71cb8 | 11069 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11071 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11074 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11075 | } |
15afbcd0 | 11076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11077 | { |
11078 | if (temp3) | |
11079 | delete arg3; | |
11080 | } | |
11081 | { | |
11082 | if (temp10) | |
11083 | delete arg10; | |
11084 | } | |
11085 | return resultobj; | |
11086 | fail: | |
11087 | { | |
11088 | if (temp3) | |
11089 | delete arg3; | |
11090 | } | |
11091 | { | |
11092 | if (temp10) | |
11093 | delete arg10; | |
11094 | } | |
11095 | return NULL; | |
11096 | } | |
11097 | ||
11098 | ||
11099 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11100 | PyObject *resultobj; | |
11101 | wxSpinCtrl *result; | |
11102 | char *kwnames[] = { | |
11103 | NULL | |
11104 | }; | |
11105 | ||
11106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11107 | { | |
e3b71cb8 | 11108 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11110 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11111 | ||
11112 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11113 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11114 | } |
15afbcd0 | 11115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11116 | return resultobj; |
11117 | fail: | |
11118 | return NULL; | |
11119 | } | |
11120 | ||
11121 | ||
11122 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11123 | PyObject *resultobj; | |
11124 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11126 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11127 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11128 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11129 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11130 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11131 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11132 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11133 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11134 | int arg8 = (int) 0 ; | |
11135 | int arg9 = (int) 100 ; | |
11136 | int arg10 = (int) 0 ; | |
11137 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11138 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11139 | bool result; | |
e811c8ce | 11140 | bool temp4 = False ; |
d14a1e28 RD |
11141 | wxPoint temp5 ; |
11142 | wxSize temp6 ; | |
e811c8ce | 11143 | bool temp11 = False ; |
d14a1e28 RD |
11144 | PyObject * obj0 = 0 ; |
11145 | PyObject * obj1 = 0 ; | |
994141e6 | 11146 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11147 | PyObject * obj3 = 0 ; |
11148 | PyObject * obj4 = 0 ; | |
11149 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11150 | PyObject * obj6 = 0 ; |
11151 | PyObject * obj7 = 0 ; | |
11152 | PyObject * obj8 = 0 ; | |
11153 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11154 | PyObject * obj10 = 0 ; |
11155 | char *kwnames[] = { | |
11156 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11157 | }; | |
11158 | ||
994141e6 | 11159 | 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 |
11160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11164 | if (obj2) { |
15afbcd0 RD |
11165 | arg3 = (int) SWIG_AsInt(obj2); |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11167 | } |
d14a1e28 RD |
11168 | if (obj3) { |
11169 | { | |
11170 | arg4 = wxString_in_helper(obj3); | |
11171 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11172 | temp4 = True; |
d14a1e28 RD |
11173 | } |
11174 | } | |
11175 | if (obj4) { | |
11176 | { | |
11177 | arg5 = &temp5; | |
11178 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11179 | } | |
11180 | } | |
11181 | if (obj5) { | |
11182 | { | |
11183 | arg6 = &temp6; | |
11184 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11185 | } | |
11186 | } | |
994141e6 | 11187 | if (obj6) { |
15afbcd0 RD |
11188 | arg7 = (long) SWIG_AsLong(obj6); |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11190 | } |
11191 | if (obj7) { | |
15afbcd0 RD |
11192 | arg8 = (int) SWIG_AsInt(obj7); |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11194 | } |
11195 | if (obj8) { | |
15afbcd0 RD |
11196 | arg9 = (int) SWIG_AsInt(obj8); |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11198 | } |
11199 | if (obj9) { | |
15afbcd0 RD |
11200 | arg10 = (int) SWIG_AsInt(obj9); |
11201 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11202 | } |
d14a1e28 RD |
11203 | if (obj10) { |
11204 | { | |
11205 | arg11 = wxString_in_helper(obj10); | |
11206 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11207 | temp11 = True; |
d14a1e28 RD |
11208 | } |
11209 | } | |
11210 | { | |
11211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11212 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11213 | ||
11214 | wxPyEndAllowThreads(__tstate); | |
11215 | if (PyErr_Occurred()) SWIG_fail; | |
11216 | } | |
4f89f6a3 RD |
11217 | { |
11218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11219 | } | |
d14a1e28 RD |
11220 | { |
11221 | if (temp4) | |
11222 | delete arg4; | |
11223 | } | |
11224 | { | |
11225 | if (temp11) | |
11226 | delete arg11; | |
11227 | } | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | { | |
11231 | if (temp4) | |
11232 | delete arg4; | |
11233 | } | |
11234 | { | |
11235 | if (temp11) | |
11236 | delete arg11; | |
11237 | } | |
11238 | return NULL; | |
11239 | } | |
11240 | ||
11241 | ||
11242 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11243 | PyObject *resultobj; | |
11244 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11245 | int result; | |
11246 | PyObject * obj0 = 0 ; | |
11247 | char *kwnames[] = { | |
11248 | (char *) "self", NULL | |
11249 | }; | |
11250 | ||
11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11254 | { |
11255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11256 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11257 | ||
11258 | wxPyEndAllowThreads(__tstate); | |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | } | |
15afbcd0 | 11261 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11262 | return resultobj; |
11263 | fail: | |
11264 | return NULL; | |
11265 | } | |
11266 | ||
11267 | ||
11268 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11269 | PyObject *resultobj; | |
11270 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11271 | int arg2 ; | |
11272 | PyObject * obj0 = 0 ; | |
994141e6 | 11273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11274 | char *kwnames[] = { |
11275 | (char *) "self",(char *) "value", NULL | |
11276 | }; | |
11277 | ||
994141e6 | 11278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11281 | arg2 = (int) SWIG_AsInt(obj1); | |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11283 | { |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | (arg1)->SetValue(arg2); | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | Py_INCREF(Py_None); resultobj = Py_None; | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11298 | PyObject *resultobj; | |
11299 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11300 | wxString *arg2 = 0 ; | |
e811c8ce | 11301 | bool temp2 = False ; |
d14a1e28 RD |
11302 | PyObject * obj0 = 0 ; |
11303 | PyObject * obj1 = 0 ; | |
11304 | char *kwnames[] = { | |
11305 | (char *) "self",(char *) "text", NULL | |
11306 | }; | |
11307 | ||
11308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11311 | { |
11312 | arg2 = wxString_in_helper(obj1); | |
11313 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11314 | temp2 = True; |
d14a1e28 RD |
11315 | } |
11316 | { | |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | (arg1)->SetValue((wxString const &)*arg2); | |
11319 | ||
11320 | wxPyEndAllowThreads(__tstate); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
11323 | Py_INCREF(Py_None); resultobj = Py_None; | |
11324 | { | |
11325 | if (temp2) | |
11326 | delete arg2; | |
11327 | } | |
11328 | return resultobj; | |
11329 | fail: | |
11330 | { | |
11331 | if (temp2) | |
11332 | delete arg2; | |
11333 | } | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11339 | PyObject *resultobj; | |
11340 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11341 | int arg2 ; | |
11342 | int arg3 ; | |
11343 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11344 | PyObject * obj1 = 0 ; |
11345 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11346 | char *kwnames[] = { |
11347 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11348 | }; | |
11349 | ||
994141e6 | 11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11353 | arg2 = (int) SWIG_AsInt(obj1); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | arg3 = (int) SWIG_AsInt(obj2); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11357 | { |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | (arg1)->SetRange(arg2,arg3); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
11364 | Py_INCREF(Py_None); resultobj = Py_None; | |
11365 | return resultobj; | |
11366 | fail: | |
11367 | return NULL; | |
11368 | } | |
11369 | ||
11370 | ||
11371 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11372 | PyObject *resultobj; | |
11373 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11374 | int result; | |
11375 | PyObject * obj0 = 0 ; | |
11376 | char *kwnames[] = { | |
11377 | (char *) "self", NULL | |
11378 | }; | |
11379 | ||
11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11383 | { |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11386 | ||
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
15afbcd0 | 11390 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11391 | return resultobj; |
11392 | fail: | |
11393 | return NULL; | |
11394 | } | |
11395 | ||
11396 | ||
11397 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11398 | PyObject *resultobj; | |
11399 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11400 | int result; | |
11401 | PyObject * obj0 = 0 ; | |
11402 | char *kwnames[] = { | |
11403 | (char *) "self", NULL | |
11404 | }; | |
11405 | ||
11406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11409 | { |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
15afbcd0 | 11416 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11417 | return resultobj; |
11418 | fail: | |
11419 | return NULL; | |
11420 | } | |
11421 | ||
11422 | ||
11423 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11424 | PyObject *resultobj; | |
11425 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11426 | long arg2 ; | |
11427 | long arg3 ; | |
11428 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11429 | PyObject * obj1 = 0 ; |
11430 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11431 | char *kwnames[] = { |
11432 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11433 | }; | |
11434 | ||
994141e6 | 11435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11438 | arg2 = (long) SWIG_AsLong(obj1); | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | arg3 = (long) SWIG_AsLong(obj2); | |
11441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11442 | { |
11443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11444 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11445 | |
11446 | wxPyEndAllowThreads(__tstate); | |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
11448 | } | |
11449 | Py_INCREF(Py_None); resultobj = Py_None; | |
11450 | return resultobj; | |
11451 | fail: | |
11452 | return NULL; | |
11453 | } | |
11454 | ||
11455 | ||
22bfe96c RD |
11456 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11457 | PyObject *resultobj; | |
11458 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11459 | wxVisualAttributes result; | |
11460 | PyObject * obj0 = 0 ; | |
11461 | char *kwnames[] = { | |
11462 | (char *) "variant", NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11466 | if (obj0) { | |
11467 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | { | |
110da5b0 | 11471 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11473 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11474 | ||
11475 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11476 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11477 | } |
11478 | { | |
11479 | wxVisualAttributes * resultptr; | |
11480 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11481 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11482 | } | |
11483 | return resultobj; | |
11484 | fail: | |
11485 | return NULL; | |
11486 | } | |
11487 | ||
11488 | ||
d14a1e28 RD |
11489 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11490 | PyObject *obj; | |
11491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11492 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11493 | Py_INCREF(obj); | |
11494 | return Py_BuildValue((char *)""); | |
11495 | } | |
d1e20054 RD |
11496 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
11497 | PyObject *resultobj; | |
11498 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11499 | int arg2 = (int) 0 ; | |
11500 | wxSpinEvent *result; | |
994141e6 RD |
11501 | PyObject * obj0 = 0 ; |
11502 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11503 | char *kwnames[] = { |
11504 | (char *) "commandType",(char *) "winid", NULL | |
11505 | }; | |
11506 | ||
994141e6 RD |
11507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11508 | if (obj0) { | |
15afbcd0 RD |
11509 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11511 | } |
11512 | if (obj1) { | |
15afbcd0 RD |
11513 | arg2 = (int) SWIG_AsInt(obj1); |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11515 | } |
d1e20054 RD |
11516 | { |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
15afbcd0 | 11523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11524 | return resultobj; |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
11530 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11531 | PyObject *resultobj; | |
11532 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11533 | int result; | |
11534 | PyObject * obj0 = 0 ; | |
11535 | char *kwnames[] = { | |
11536 | (char *) "self", NULL | |
11537 | }; | |
11538 | ||
11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11542 | { |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
15afbcd0 | 11549 | resultobj = SWIG_FromInt((int)result); |
d1e20054 RD |
11550 | return resultobj; |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj; | |
11558 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11559 | int arg2 ; | |
11560 | PyObject * obj0 = 0 ; | |
994141e6 | 11561 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11562 | char *kwnames[] = { |
11563 | (char *) "self",(char *) "pos", NULL | |
11564 | }; | |
11565 | ||
994141e6 | 11566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11569 | arg2 = (int) SWIG_AsInt(obj1); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
d1e20054 RD |
11571 | { |
11572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11573 | (arg1)->SetPosition(arg2); | |
11574 | ||
11575 | wxPyEndAllowThreads(__tstate); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | } | |
11578 | Py_INCREF(Py_None); resultobj = Py_None; | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | return NULL; | |
11582 | } | |
11583 | ||
11584 | ||
11585 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11586 | PyObject *obj; | |
11587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11588 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11589 | Py_INCREF(obj); | |
11590 | return Py_BuildValue((char *)""); | |
11591 | } | |
b2dc1044 RD |
11592 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
11593 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11594 | return 1; | |
11595 | } | |
11596 | ||
11597 | ||
11598 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11599 | PyObject *pyobj; | |
11600 | ||
11601 | { | |
11602 | #if wxUSE_UNICODE | |
11603 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11604 | #else | |
11605 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11606 | #endif | |
11607 | } | |
11608 | return pyobj; | |
11609 | } | |
11610 | ||
11611 | ||
11612 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11613 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11614 | return 1; | |
11615 | } | |
11616 | ||
11617 | ||
11618 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11619 | PyObject *pyobj; | |
11620 | ||
11621 | { | |
11622 | #if wxUSE_UNICODE | |
11623 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11624 | #else | |
11625 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11626 | #endif | |
11627 | } | |
11628 | return pyobj; | |
11629 | } | |
11630 | ||
11631 | ||
d14a1e28 RD |
11632 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11633 | PyObject *resultobj; | |
11634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11635 | int arg2 = (int) -1 ; |
11636 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11637 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
11638 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11639 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11640 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11641 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11642 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11643 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11644 | int arg7 = (int) 0 ; | |
11645 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11646 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11647 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11648 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11649 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11650 | wxRadioBox *result; |
e811c8ce | 11651 | bool temp3 = False ; |
d14a1e28 RD |
11652 | wxPoint temp4 ; |
11653 | wxSize temp5 ; | |
3adfb63b | 11654 | bool temp6 = False ; |
e811c8ce | 11655 | bool temp10 = False ; |
d14a1e28 | 11656 | PyObject * obj0 = 0 ; |
994141e6 | 11657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11658 | PyObject * obj2 = 0 ; |
11659 | PyObject * obj3 = 0 ; | |
11660 | PyObject * obj4 = 0 ; | |
11661 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11662 | PyObject * obj6 = 0 ; |
11663 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11664 | PyObject * obj8 = 0 ; |
11665 | PyObject * obj9 = 0 ; | |
11666 | char *kwnames[] = { | |
994141e6 | 11667 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11668 | }; |
11669 | ||
248ed943 | 11670 | 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 |
11671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11673 | if (obj1) { |
11674 | arg2 = (int) SWIG_AsInt(obj1); | |
11675 | if (PyErr_Occurred()) SWIG_fail; | |
11676 | } | |
11677 | if (obj2) { | |
11678 | { | |
11679 | arg3 = wxString_in_helper(obj2); | |
11680 | if (arg3 == NULL) SWIG_fail; | |
11681 | temp3 = True; | |
11682 | } | |
d14a1e28 RD |
11683 | } |
11684 | if (obj3) { | |
11685 | { | |
11686 | arg4 = &temp4; | |
11687 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11688 | } | |
11689 | } | |
11690 | if (obj4) { | |
11691 | { | |
11692 | arg5 = &temp5; | |
11693 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11694 | } | |
11695 | } | |
11696 | if (obj5) { | |
11697 | { | |
4d5c3d91 RD |
11698 | if (! PySequence_Check(obj5)) { |
11699 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11700 | SWIG_fail; | |
11701 | } | |
11702 | arg6 = new wxArrayString; | |
3adfb63b | 11703 | temp6 = True; |
4d5c3d91 RD |
11704 | int i, len=PySequence_Length(obj5); |
11705 | for (i=0; i<len; i++) { | |
11706 | PyObject* item = PySequence_GetItem(obj5, i); | |
11707 | #if wxUSE_UNICODE | |
11708 | PyObject* str = PyObject_Unicode(item); | |
11709 | #else | |
11710 | PyObject* str = PyObject_Str(item); | |
11711 | #endif | |
74a57fcd | 11712 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11713 | arg6->Add(Py2wxString(str)); |
11714 | Py_DECREF(item); | |
11715 | Py_DECREF(str); | |
11716 | } | |
d14a1e28 RD |
11717 | } |
11718 | } | |
994141e6 | 11719 | if (obj6) { |
15afbcd0 RD |
11720 | arg7 = (int) SWIG_AsInt(obj6); |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11722 | } |
11723 | if (obj7) { | |
15afbcd0 RD |
11724 | arg8 = (long) SWIG_AsLong(obj7); |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11726 | } |
d14a1e28 | 11727 | if (obj8) { |
15afbcd0 RD |
11728 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11730 | SWIG_fail; | |
4d5c3d91 | 11731 | if (arg9 == NULL) { |
15afbcd0 RD |
11732 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11733 | SWIG_fail; | |
d14a1e28 RD |
11734 | } |
11735 | } | |
11736 | if (obj9) { | |
11737 | { | |
4d5c3d91 RD |
11738 | arg10 = wxString_in_helper(obj9); |
11739 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11740 | temp10 = True; |
d14a1e28 RD |
11741 | } |
11742 | } | |
11743 | { | |
e3b71cb8 | 11744 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 11746 | 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 |
11747 | |
11748 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11749 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11750 | } |
15afbcd0 | 11751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11752 | { |
11753 | if (temp3) | |
11754 | delete arg3; | |
11755 | } | |
11756 | { | |
3adfb63b | 11757 | if (temp6) delete arg6; |
d14a1e28 RD |
11758 | } |
11759 | { | |
11760 | if (temp10) | |
4d5c3d91 | 11761 | delete arg10; |
d14a1e28 RD |
11762 | } |
11763 | return resultobj; | |
11764 | fail: | |
11765 | { | |
11766 | if (temp3) | |
11767 | delete arg3; | |
11768 | } | |
11769 | { | |
3adfb63b | 11770 | if (temp6) delete arg6; |
d14a1e28 RD |
11771 | } |
11772 | { | |
11773 | if (temp10) | |
4d5c3d91 | 11774 | delete arg10; |
d14a1e28 RD |
11775 | } |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
11780 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11781 | PyObject *resultobj; | |
11782 | wxRadioBox *result; | |
11783 | char *kwnames[] = { | |
11784 | NULL | |
11785 | }; | |
11786 | ||
11787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11788 | { | |
e3b71cb8 | 11789 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11791 | result = (wxRadioBox *)new wxRadioBox(); | |
11792 | ||
11793 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11794 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11795 | } |
15afbcd0 | 11796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11797 | return resultobj; |
11798 | fail: | |
11799 | return NULL; | |
11800 | } | |
11801 | ||
11802 | ||
11803 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11804 | PyObject *resultobj; | |
11805 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11806 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11807 | int arg3 = (int) -1 ; |
11808 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11809 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
11810 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11811 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11812 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11813 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11814 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11815 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11816 | int arg8 = (int) 0 ; | |
11817 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11818 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11819 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11820 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11821 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11822 | bool result; |
e811c8ce | 11823 | bool temp4 = False ; |
d14a1e28 RD |
11824 | wxPoint temp5 ; |
11825 | wxSize temp6 ; | |
3adfb63b | 11826 | bool temp7 = False ; |
e811c8ce | 11827 | bool temp11 = False ; |
d14a1e28 RD |
11828 | PyObject * obj0 = 0 ; |
11829 | PyObject * obj1 = 0 ; | |
994141e6 | 11830 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11831 | PyObject * obj3 = 0 ; |
11832 | PyObject * obj4 = 0 ; | |
11833 | PyObject * obj5 = 0 ; | |
11834 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11835 | PyObject * obj7 = 0 ; |
11836 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11837 | PyObject * obj9 = 0 ; |
11838 | PyObject * obj10 = 0 ; | |
11839 | char *kwnames[] = { | |
994141e6 | 11840 | (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 |
11841 | }; |
11842 | ||
248ed943 | 11843 | 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 |
11844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11848 | if (obj2) { |
11849 | arg3 = (int) SWIG_AsInt(obj2); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
11852 | if (obj3) { | |
11853 | { | |
11854 | arg4 = wxString_in_helper(obj3); | |
11855 | if (arg4 == NULL) SWIG_fail; | |
11856 | temp4 = True; | |
11857 | } | |
d14a1e28 RD |
11858 | } |
11859 | if (obj4) { | |
11860 | { | |
11861 | arg5 = &temp5; | |
11862 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11863 | } | |
11864 | } | |
11865 | if (obj5) { | |
11866 | { | |
11867 | arg6 = &temp6; | |
11868 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11869 | } | |
11870 | } | |
11871 | if (obj6) { | |
11872 | { | |
4d5c3d91 RD |
11873 | if (! PySequence_Check(obj6)) { |
11874 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11875 | SWIG_fail; | |
11876 | } | |
11877 | arg7 = new wxArrayString; | |
3adfb63b | 11878 | temp7 = True; |
4d5c3d91 RD |
11879 | int i, len=PySequence_Length(obj6); |
11880 | for (i=0; i<len; i++) { | |
11881 | PyObject* item = PySequence_GetItem(obj6, i); | |
11882 | #if wxUSE_UNICODE | |
11883 | PyObject* str = PyObject_Unicode(item); | |
11884 | #else | |
11885 | PyObject* str = PyObject_Str(item); | |
11886 | #endif | |
74a57fcd | 11887 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11888 | arg7->Add(Py2wxString(str)); |
11889 | Py_DECREF(item); | |
11890 | Py_DECREF(str); | |
11891 | } | |
d14a1e28 RD |
11892 | } |
11893 | } | |
994141e6 | 11894 | if (obj7) { |
15afbcd0 RD |
11895 | arg8 = (int) SWIG_AsInt(obj7); |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11897 | } |
11898 | if (obj8) { | |
15afbcd0 RD |
11899 | arg9 = (long) SWIG_AsLong(obj8); |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11901 | } |
d14a1e28 | 11902 | if (obj9) { |
15afbcd0 RD |
11903 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11905 | SWIG_fail; | |
4d5c3d91 | 11906 | if (arg10 == NULL) { |
15afbcd0 RD |
11907 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11908 | SWIG_fail; | |
d14a1e28 RD |
11909 | } |
11910 | } | |
11911 | if (obj10) { | |
11912 | { | |
4d5c3d91 RD |
11913 | arg11 = wxString_in_helper(obj10); |
11914 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11915 | temp11 = True; |
d14a1e28 RD |
11916 | } |
11917 | } | |
11918 | { | |
11919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11920 | 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 |
11921 | |
11922 | wxPyEndAllowThreads(__tstate); | |
11923 | if (PyErr_Occurred()) SWIG_fail; | |
11924 | } | |
4f89f6a3 RD |
11925 | { |
11926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11927 | } | |
d14a1e28 RD |
11928 | { |
11929 | if (temp4) | |
11930 | delete arg4; | |
11931 | } | |
11932 | { | |
3adfb63b | 11933 | if (temp7) delete arg7; |
d14a1e28 RD |
11934 | } |
11935 | { | |
11936 | if (temp11) | |
4d5c3d91 | 11937 | delete arg11; |
d14a1e28 RD |
11938 | } |
11939 | return resultobj; | |
11940 | fail: | |
11941 | { | |
11942 | if (temp4) | |
11943 | delete arg4; | |
11944 | } | |
11945 | { | |
3adfb63b | 11946 | if (temp7) delete arg7; |
d14a1e28 RD |
11947 | } |
11948 | { | |
11949 | if (temp11) | |
4d5c3d91 | 11950 | delete arg11; |
d14a1e28 RD |
11951 | } |
11952 | return NULL; | |
11953 | } | |
11954 | ||
11955 | ||
11956 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11957 | PyObject *resultobj; | |
11958 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11959 | int arg2 ; | |
11960 | PyObject * obj0 = 0 ; | |
994141e6 | 11961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11962 | char *kwnames[] = { |
11963 | (char *) "self",(char *) "n", NULL | |
11964 | }; | |
11965 | ||
994141e6 | 11966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11969 | arg2 = (int) SWIG_AsInt(obj1); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11971 | { |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | (arg1)->SetSelection(arg2); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | Py_INCREF(Py_None); resultobj = Py_None; | |
11979 | return resultobj; | |
11980 | fail: | |
11981 | return NULL; | |
11982 | } | |
11983 | ||
11984 | ||
11985 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11986 | PyObject *resultobj; | |
11987 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11988 | int result; | |
11989 | PyObject * obj0 = 0 ; | |
11990 | char *kwnames[] = { | |
11991 | (char *) "self", NULL | |
11992 | }; | |
11993 | ||
11994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11997 | { |
11998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11999 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12000 | ||
12001 | wxPyEndAllowThreads(__tstate); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
15afbcd0 | 12004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12005 | return resultobj; |
12006 | fail: | |
12007 | return NULL; | |
12008 | } | |
12009 | ||
12010 | ||
12011 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12012 | PyObject *resultobj; | |
12013 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12014 | wxString result; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | char *kwnames[] = { | |
12017 | (char *) "self", NULL | |
12018 | }; | |
12019 | ||
12020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12023 | { |
12024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12025 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12026 | ||
12027 | wxPyEndAllowThreads(__tstate); | |
12028 | if (PyErr_Occurred()) SWIG_fail; | |
12029 | } | |
12030 | { | |
12031 | #if wxUSE_UNICODE | |
12032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12033 | #else | |
12034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12035 | #endif | |
12036 | } | |
12037 | return resultobj; | |
12038 | fail: | |
12039 | return NULL; | |
12040 | } | |
12041 | ||
12042 | ||
12043 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12044 | PyObject *resultobj; | |
12045 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12046 | wxString *arg2 = 0 ; | |
12047 | bool result; | |
e811c8ce | 12048 | bool temp2 = False ; |
d14a1e28 RD |
12049 | PyObject * obj0 = 0 ; |
12050 | PyObject * obj1 = 0 ; | |
12051 | char *kwnames[] = { | |
12052 | (char *) "self",(char *) "s", NULL | |
12053 | }; | |
12054 | ||
12055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12058 | { |
12059 | arg2 = wxString_in_helper(obj1); | |
12060 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12061 | temp2 = True; |
d14a1e28 RD |
12062 | } |
12063 | { | |
12064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12065 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12066 | ||
12067 | wxPyEndAllowThreads(__tstate); | |
12068 | if (PyErr_Occurred()) SWIG_fail; | |
12069 | } | |
4f89f6a3 RD |
12070 | { |
12071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12072 | } | |
d14a1e28 RD |
12073 | { |
12074 | if (temp2) | |
12075 | delete arg2; | |
12076 | } | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | { | |
12080 | if (temp2) | |
12081 | delete arg2; | |
12082 | } | |
12083 | return NULL; | |
12084 | } | |
12085 | ||
12086 | ||
12087 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12088 | PyObject *resultobj; | |
12089 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12090 | int result; | |
12091 | PyObject * obj0 = 0 ; | |
12092 | char *kwnames[] = { | |
12093 | (char *) "self", NULL | |
12094 | }; | |
12095 | ||
12096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12099 | { |
12100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12101 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12102 | ||
12103 | wxPyEndAllowThreads(__tstate); | |
12104 | if (PyErr_Occurred()) SWIG_fail; | |
12105 | } | |
15afbcd0 | 12106 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12107 | return resultobj; |
12108 | fail: | |
12109 | return NULL; | |
12110 | } | |
12111 | ||
12112 | ||
12113 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12114 | PyObject *resultobj; | |
12115 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12116 | wxString *arg2 = 0 ; | |
12117 | int result; | |
e811c8ce | 12118 | bool temp2 = False ; |
d14a1e28 RD |
12119 | PyObject * obj0 = 0 ; |
12120 | PyObject * obj1 = 0 ; | |
12121 | char *kwnames[] = { | |
12122 | (char *) "self",(char *) "s", NULL | |
12123 | }; | |
12124 | ||
12125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12128 | { |
12129 | arg2 = wxString_in_helper(obj1); | |
12130 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12131 | temp2 = True; |
d14a1e28 RD |
12132 | } |
12133 | { | |
12134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12135 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
15afbcd0 | 12140 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12141 | { |
12142 | if (temp2) | |
12143 | delete arg2; | |
12144 | } | |
12145 | return resultobj; | |
12146 | fail: | |
12147 | { | |
12148 | if (temp2) | |
12149 | delete arg2; | |
12150 | } | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
12155 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12156 | PyObject *resultobj; | |
12157 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12158 | int arg2 ; | |
12159 | wxString result; | |
12160 | PyObject * obj0 = 0 ; | |
994141e6 | 12161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12162 | char *kwnames[] = { |
12163 | (char *) "self",(char *) "n", NULL | |
12164 | }; | |
12165 | ||
994141e6 | 12166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12169 | arg2 = (int) SWIG_AsInt(obj1); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12171 | { |
12172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12173 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12174 | ||
12175 | wxPyEndAllowThreads(__tstate); | |
12176 | if (PyErr_Occurred()) SWIG_fail; | |
12177 | } | |
12178 | { | |
12179 | #if wxUSE_UNICODE | |
12180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12181 | #else | |
12182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12183 | #endif | |
12184 | } | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12192 | PyObject *resultobj; | |
12193 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12194 | int arg2 ; | |
12195 | wxString *arg3 = 0 ; | |
e811c8ce | 12196 | bool temp3 = False ; |
d14a1e28 | 12197 | PyObject * obj0 = 0 ; |
994141e6 | 12198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12199 | PyObject * obj2 = 0 ; |
12200 | char *kwnames[] = { | |
12201 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12202 | }; | |
12203 | ||
994141e6 | 12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12207 | arg2 = (int) SWIG_AsInt(obj1); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12209 | { |
12210 | arg3 = wxString_in_helper(obj2); | |
12211 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12212 | temp3 = True; |
d14a1e28 RD |
12213 | } |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | Py_INCREF(Py_None); resultobj = Py_None; | |
12222 | { | |
12223 | if (temp3) | |
12224 | delete arg3; | |
12225 | } | |
12226 | return resultobj; | |
12227 | fail: | |
12228 | { | |
12229 | if (temp3) | |
12230 | delete arg3; | |
12231 | } | |
12232 | return NULL; | |
12233 | } | |
12234 | ||
12235 | ||
12236 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12237 | PyObject *resultobj; | |
12238 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12239 | int arg2 ; | |
e811c8ce | 12240 | bool arg3 = (bool) True ; |
d14a1e28 | 12241 | PyObject * obj0 = 0 ; |
994141e6 | 12242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12243 | PyObject * obj2 = 0 ; |
12244 | char *kwnames[] = { | |
12245 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12246 | }; | |
12247 | ||
994141e6 | 12248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12251 | arg2 = (int) SWIG_AsInt(obj1); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12253 | if (obj2) { |
15afbcd0 RD |
12254 | arg3 = (bool) SWIG_AsBool(obj2); |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12256 | } |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | (arg1)->Enable(arg2,arg3); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | Py_INCREF(Py_None); resultobj = Py_None; | |
12265 | return resultobj; | |
12266 | fail: | |
12267 | return NULL; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12272 | PyObject *resultobj; | |
12273 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12274 | int arg2 ; | |
e811c8ce | 12275 | bool arg3 = (bool) True ; |
d14a1e28 | 12276 | PyObject * obj0 = 0 ; |
994141e6 | 12277 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12278 | PyObject * obj2 = 0 ; |
12279 | char *kwnames[] = { | |
12280 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12281 | }; | |
12282 | ||
994141e6 | 12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12286 | arg2 = (int) SWIG_AsInt(obj1); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12288 | if (obj2) { |
15afbcd0 RD |
12289 | arg3 = (bool) SWIG_AsBool(obj2); |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12291 | } |
12292 | { | |
12293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12294 | (arg1)->Show(arg2,arg3); | |
12295 | ||
12296 | wxPyEndAllowThreads(__tstate); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | } | |
12299 | Py_INCREF(Py_None); resultobj = Py_None; | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | return NULL; | |
12303 | } | |
12304 | ||
12305 | ||
12306 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12307 | PyObject *resultobj; | |
12308 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12309 | int result; | |
12310 | PyObject * obj0 = 0 ; | |
12311 | char *kwnames[] = { | |
12312 | (char *) "self", NULL | |
12313 | }; | |
12314 | ||
12315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12318 | { |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12321 | ||
12322 | wxPyEndAllowThreads(__tstate); | |
12323 | if (PyErr_Occurred()) SWIG_fail; | |
12324 | } | |
15afbcd0 | 12325 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12326 | return resultobj; |
12327 | fail: | |
12328 | return NULL; | |
12329 | } | |
12330 | ||
12331 | ||
12332 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12333 | PyObject *resultobj; | |
12334 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12335 | int result; | |
12336 | PyObject * obj0 = 0 ; | |
12337 | char *kwnames[] = { | |
12338 | (char *) "self", NULL | |
12339 | }; | |
12340 | ||
12341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12344 | { |
12345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12346 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12347 | ||
12348 | wxPyEndAllowThreads(__tstate); | |
12349 | if (PyErr_Occurred()) SWIG_fail; | |
12350 | } | |
15afbcd0 | 12351 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12352 | return resultobj; |
12353 | fail: | |
12354 | return NULL; | |
12355 | } | |
12356 | ||
12357 | ||
12358 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12359 | PyObject *resultobj; | |
12360 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12361 | int arg2 ; | |
12362 | int arg3 ; | |
12363 | long arg4 ; | |
12364 | int result; | |
12365 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12366 | PyObject * obj1 = 0 ; |
12367 | PyObject * obj2 = 0 ; | |
12368 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12369 | char *kwnames[] = { |
12370 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12371 | }; | |
12372 | ||
994141e6 | 12373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12376 | arg2 = (int) SWIG_AsInt(obj1); | |
12377 | if (PyErr_Occurred()) SWIG_fail; | |
12378 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12379 | if (PyErr_Occurred()) SWIG_fail; | |
12380 | arg4 = (long) SWIG_AsLong(obj3); | |
12381 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12382 | { |
12383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12384 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12385 | ||
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
15afbcd0 | 12389 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12390 | return resultobj; |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
22bfe96c RD |
12396 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12397 | PyObject *resultobj; | |
12398 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12399 | wxVisualAttributes result; | |
12400 | PyObject * obj0 = 0 ; | |
12401 | char *kwnames[] = { | |
12402 | (char *) "variant", NULL | |
12403 | }; | |
12404 | ||
12405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12406 | if (obj0) { | |
12407 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | { | |
110da5b0 | 12411 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12413 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12414 | ||
12415 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12416 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12417 | } |
12418 | { | |
12419 | wxVisualAttributes * resultptr; | |
12420 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12422 | } | |
12423 | return resultobj; | |
12424 | fail: | |
12425 | return NULL; | |
12426 | } | |
12427 | ||
12428 | ||
d14a1e28 RD |
12429 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12430 | PyObject *obj; | |
12431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12432 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12433 | Py_INCREF(obj); | |
12434 | return Py_BuildValue((char *)""); | |
12435 | } | |
12436 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12437 | PyObject *resultobj; | |
12438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12439 | int arg2 = (int) -1 ; |
12440 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12441 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12442 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12443 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12444 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12445 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12446 | long arg6 = (long) 0 ; | |
12447 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12448 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12449 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12450 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12451 | wxRadioButton *result; | |
e811c8ce | 12452 | bool temp3 = False ; |
d14a1e28 RD |
12453 | wxPoint temp4 ; |
12454 | wxSize temp5 ; | |
e811c8ce | 12455 | bool temp8 = False ; |
d14a1e28 | 12456 | PyObject * obj0 = 0 ; |
994141e6 | 12457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12458 | PyObject * obj2 = 0 ; |
12459 | PyObject * obj3 = 0 ; | |
12460 | PyObject * obj4 = 0 ; | |
994141e6 | 12461 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12462 | PyObject * obj6 = 0 ; |
12463 | PyObject * obj7 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12466 | }; | |
12467 | ||
248ed943 | 12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12471 | if (obj1) { |
12472 | arg2 = (int) SWIG_AsInt(obj1); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | if (obj2) { | |
12476 | { | |
12477 | arg3 = wxString_in_helper(obj2); | |
12478 | if (arg3 == NULL) SWIG_fail; | |
12479 | temp3 = True; | |
12480 | } | |
d14a1e28 RD |
12481 | } |
12482 | if (obj3) { | |
12483 | { | |
12484 | arg4 = &temp4; | |
12485 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12486 | } | |
12487 | } | |
12488 | if (obj4) { | |
12489 | { | |
12490 | arg5 = &temp5; | |
12491 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12492 | } | |
12493 | } | |
994141e6 | 12494 | if (obj5) { |
15afbcd0 RD |
12495 | arg6 = (long) SWIG_AsLong(obj5); |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12497 | } |
d14a1e28 | 12498 | if (obj6) { |
15afbcd0 RD |
12499 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12500 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12501 | SWIG_fail; | |
d14a1e28 | 12502 | if (arg7 == NULL) { |
15afbcd0 RD |
12503 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12504 | SWIG_fail; | |
d14a1e28 RD |
12505 | } |
12506 | } | |
12507 | if (obj7) { | |
12508 | { | |
12509 | arg8 = wxString_in_helper(obj7); | |
12510 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12511 | temp8 = True; |
d14a1e28 RD |
12512 | } |
12513 | } | |
12514 | { | |
e3b71cb8 | 12515 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12517 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12518 | ||
12519 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12521 | } |
15afbcd0 | 12522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12523 | { |
12524 | if (temp3) | |
12525 | delete arg3; | |
12526 | } | |
12527 | { | |
12528 | if (temp8) | |
12529 | delete arg8; | |
12530 | } | |
12531 | return resultobj; | |
12532 | fail: | |
12533 | { | |
12534 | if (temp3) | |
12535 | delete arg3; | |
12536 | } | |
12537 | { | |
12538 | if (temp8) | |
12539 | delete arg8; | |
12540 | } | |
12541 | return NULL; | |
12542 | } | |
12543 | ||
12544 | ||
12545 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12546 | PyObject *resultobj; | |
12547 | wxRadioButton *result; | |
12548 | char *kwnames[] = { | |
12549 | NULL | |
12550 | }; | |
12551 | ||
12552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12553 | { | |
e3b71cb8 | 12554 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12556 | result = (wxRadioButton *)new wxRadioButton(); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12559 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12560 | } |
15afbcd0 | 12561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12562 | return resultobj; |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12571 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12572 | int arg3 = (int) -1 ; |
12573 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12574 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12575 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12576 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12577 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12578 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12579 | long arg7 = (long) 0 ; | |
12580 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12581 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12582 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12583 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12584 | bool result; | |
e811c8ce | 12585 | bool temp4 = False ; |
d14a1e28 RD |
12586 | wxPoint temp5 ; |
12587 | wxSize temp6 ; | |
e811c8ce | 12588 | bool temp9 = False ; |
d14a1e28 RD |
12589 | PyObject * obj0 = 0 ; |
12590 | PyObject * obj1 = 0 ; | |
994141e6 | 12591 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12592 | PyObject * obj3 = 0 ; |
12593 | PyObject * obj4 = 0 ; | |
12594 | PyObject * obj5 = 0 ; | |
994141e6 | 12595 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12596 | PyObject * obj7 = 0 ; |
12597 | PyObject * obj8 = 0 ; | |
12598 | char *kwnames[] = { | |
12599 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12600 | }; | |
12601 | ||
248ed943 | 12602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12607 | if (obj2) { |
12608 | arg3 = (int) SWIG_AsInt(obj2); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
12611 | if (obj3) { | |
12612 | { | |
12613 | arg4 = wxString_in_helper(obj3); | |
12614 | if (arg4 == NULL) SWIG_fail; | |
12615 | temp4 = True; | |
12616 | } | |
d14a1e28 RD |
12617 | } |
12618 | if (obj4) { | |
12619 | { | |
12620 | arg5 = &temp5; | |
12621 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12622 | } | |
12623 | } | |
12624 | if (obj5) { | |
12625 | { | |
12626 | arg6 = &temp6; | |
12627 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12628 | } | |
12629 | } | |
994141e6 | 12630 | if (obj6) { |
15afbcd0 RD |
12631 | arg7 = (long) SWIG_AsLong(obj6); |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12633 | } |
d14a1e28 | 12634 | if (obj7) { |
15afbcd0 RD |
12635 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12637 | SWIG_fail; | |
d14a1e28 | 12638 | if (arg8 == NULL) { |
15afbcd0 RD |
12639 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12640 | SWIG_fail; | |
d14a1e28 RD |
12641 | } |
12642 | } | |
12643 | if (obj8) { | |
12644 | { | |
12645 | arg9 = wxString_in_helper(obj8); | |
12646 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12647 | temp9 = True; |
d14a1e28 RD |
12648 | } |
12649 | } | |
12650 | { | |
12651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12652 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12653 | ||
12654 | wxPyEndAllowThreads(__tstate); | |
12655 | if (PyErr_Occurred()) SWIG_fail; | |
12656 | } | |
4f89f6a3 RD |
12657 | { |
12658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12659 | } | |
d14a1e28 RD |
12660 | { |
12661 | if (temp4) | |
12662 | delete arg4; | |
12663 | } | |
12664 | { | |
12665 | if (temp9) | |
12666 | delete arg9; | |
12667 | } | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | { | |
12671 | if (temp4) | |
12672 | delete arg4; | |
12673 | } | |
12674 | { | |
12675 | if (temp9) | |
12676 | delete arg9; | |
12677 | } | |
12678 | return NULL; | |
12679 | } | |
12680 | ||
12681 | ||
12682 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12683 | PyObject *resultobj; | |
12684 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12685 | bool result; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12694 | { |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | result = (bool)(arg1)->GetValue(); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
4f89f6a3 RD |
12701 | { |
12702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12703 | } | |
d14a1e28 RD |
12704 | return resultobj; |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
12710 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12711 | PyObject *resultobj; | |
12712 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12713 | bool arg2 ; | |
12714 | PyObject * obj0 = 0 ; | |
12715 | PyObject * obj1 = 0 ; | |
12716 | char *kwnames[] = { | |
12717 | (char *) "self",(char *) "value", NULL | |
12718 | }; | |
12719 | ||
12720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12723 | arg2 = (bool) SWIG_AsBool(obj1); | |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12725 | { |
12726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12727 | (arg1)->SetValue(arg2); | |
12728 | ||
12729 | wxPyEndAllowThreads(__tstate); | |
12730 | if (PyErr_Occurred()) SWIG_fail; | |
12731 | } | |
12732 | Py_INCREF(Py_None); resultobj = Py_None; | |
12733 | return resultobj; | |
12734 | fail: | |
12735 | return NULL; | |
12736 | } | |
12737 | ||
12738 | ||
22bfe96c RD |
12739 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12740 | PyObject *resultobj; | |
12741 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12742 | wxVisualAttributes result; | |
12743 | PyObject * obj0 = 0 ; | |
12744 | char *kwnames[] = { | |
12745 | (char *) "variant", NULL | |
12746 | }; | |
12747 | ||
12748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12749 | if (obj0) { | |
12750 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | { | |
110da5b0 | 12754 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12756 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12757 | ||
12758 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12759 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12760 | } |
12761 | { | |
12762 | wxVisualAttributes * resultptr; | |
12763 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12765 | } | |
12766 | return resultobj; | |
12767 | fail: | |
12768 | return NULL; | |
12769 | } | |
12770 | ||
12771 | ||
d14a1e28 RD |
12772 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12773 | PyObject *obj; | |
12774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12775 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12776 | Py_INCREF(obj); | |
12777 | return Py_BuildValue((char *)""); | |
12778 | } | |
b2dc1044 RD |
12779 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
12780 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12781 | return 1; | |
12782 | } | |
12783 | ||
12784 | ||
12785 | static PyObject *_wrap_SliderNameStr_get() { | |
12786 | PyObject *pyobj; | |
12787 | ||
12788 | { | |
12789 | #if wxUSE_UNICODE | |
12790 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12791 | #else | |
12792 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12793 | #endif | |
12794 | } | |
12795 | return pyobj; | |
12796 | } | |
12797 | ||
12798 | ||
d14a1e28 RD |
12799 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12800 | PyObject *resultobj; | |
12801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12802 | int arg2 = (int) -1 ; |
12803 | int arg3 = (int) 0 ; | |
12804 | int arg4 = (int) 0 ; | |
12805 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
12806 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12807 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12808 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12809 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12810 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12811 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12812 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12813 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12814 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12815 | wxSlider *result; | |
12816 | wxPoint temp6 ; | |
12817 | wxSize temp7 ; | |
e811c8ce | 12818 | bool temp10 = False ; |
d14a1e28 | 12819 | PyObject * obj0 = 0 ; |
994141e6 RD |
12820 | PyObject * obj1 = 0 ; |
12821 | PyObject * obj2 = 0 ; | |
12822 | PyObject * obj3 = 0 ; | |
12823 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12824 | PyObject * obj5 = 0 ; |
12825 | PyObject * obj6 = 0 ; | |
994141e6 | 12826 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12827 | PyObject * obj8 = 0 ; |
12828 | PyObject * obj9 = 0 ; | |
12829 | char *kwnames[] = { | |
994141e6 | 12830 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12831 | }; |
12832 | ||
248ed943 | 12833 | 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 |
12834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12836 | if (obj1) { |
12837 | arg2 = (int) SWIG_AsInt(obj1); | |
12838 | if (PyErr_Occurred()) SWIG_fail; | |
12839 | } | |
12840 | if (obj2) { | |
12841 | arg3 = (int) SWIG_AsInt(obj2); | |
12842 | if (PyErr_Occurred()) SWIG_fail; | |
12843 | } | |
12844 | if (obj3) { | |
12845 | arg4 = (int) SWIG_AsInt(obj3); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | if (obj4) { | |
12849 | arg5 = (int) SWIG_AsInt(obj4); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
d14a1e28 RD |
12852 | if (obj5) { |
12853 | { | |
12854 | arg6 = &temp6; | |
12855 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12856 | } | |
12857 | } | |
12858 | if (obj6) { | |
12859 | { | |
12860 | arg7 = &temp7; | |
12861 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12862 | } | |
12863 | } | |
994141e6 | 12864 | if (obj7) { |
15afbcd0 RD |
12865 | arg8 = (long) SWIG_AsLong(obj7); |
12866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12867 | } |
d14a1e28 | 12868 | if (obj8) { |
15afbcd0 RD |
12869 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12870 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12871 | SWIG_fail; | |
d14a1e28 | 12872 | if (arg9 == NULL) { |
15afbcd0 RD |
12873 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12874 | SWIG_fail; | |
d14a1e28 RD |
12875 | } |
12876 | } | |
12877 | if (obj9) { | |
12878 | { | |
12879 | arg10 = wxString_in_helper(obj9); | |
12880 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 12881 | temp10 = True; |
d14a1e28 RD |
12882 | } |
12883 | } | |
12884 | { | |
e3b71cb8 | 12885 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12887 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12890 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12891 | } |
15afbcd0 | 12892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12893 | { |
12894 | if (temp10) | |
12895 | delete arg10; | |
12896 | } | |
12897 | return resultobj; | |
12898 | fail: | |
12899 | { | |
12900 | if (temp10) | |
12901 | delete arg10; | |
12902 | } | |
12903 | return NULL; | |
12904 | } | |
12905 | ||
12906 | ||
12907 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12908 | PyObject *resultobj; | |
12909 | wxSlider *result; | |
12910 | char *kwnames[] = { | |
12911 | NULL | |
12912 | }; | |
12913 | ||
12914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12915 | { | |
e3b71cb8 | 12916 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12918 | result = (wxSlider *)new wxSlider(); | |
12919 | ||
12920 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12921 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12922 | } |
15afbcd0 | 12923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12924 | return resultobj; |
12925 | fail: | |
12926 | return NULL; | |
12927 | } | |
12928 | ||
12929 | ||
12930 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12931 | PyObject *resultobj; | |
12932 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12933 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12934 | int arg3 = (int) -1 ; |
12935 | int arg4 = (int) 0 ; | |
12936 | int arg5 = (int) 0 ; | |
12937 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
12938 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
12939 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12940 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12941 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12942 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12943 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12944 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12945 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12946 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12947 | bool result; | |
12948 | wxPoint temp7 ; | |
12949 | wxSize temp8 ; | |
e811c8ce | 12950 | bool temp11 = False ; |
d14a1e28 RD |
12951 | PyObject * obj0 = 0 ; |
12952 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12953 | PyObject * obj2 = 0 ; |
12954 | PyObject * obj3 = 0 ; | |
12955 | PyObject * obj4 = 0 ; | |
12956 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12957 | PyObject * obj6 = 0 ; |
12958 | PyObject * obj7 = 0 ; | |
994141e6 | 12959 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12960 | PyObject * obj9 = 0 ; |
12961 | PyObject * obj10 = 0 ; | |
12962 | char *kwnames[] = { | |
994141e6 | 12963 | (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 |
12964 | }; |
12965 | ||
248ed943 | 12966 | 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 |
12967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12971 | if (obj2) { |
12972 | arg3 = (int) SWIG_AsInt(obj2); | |
12973 | if (PyErr_Occurred()) SWIG_fail; | |
12974 | } | |
12975 | if (obj3) { | |
12976 | arg4 = (int) SWIG_AsInt(obj3); | |
12977 | if (PyErr_Occurred()) SWIG_fail; | |
12978 | } | |
12979 | if (obj4) { | |
12980 | arg5 = (int) SWIG_AsInt(obj4); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | if (obj5) { | |
12984 | arg6 = (int) SWIG_AsInt(obj5); | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | } | |
d14a1e28 RD |
12987 | if (obj6) { |
12988 | { | |
12989 | arg7 = &temp7; | |
12990 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12991 | } | |
12992 | } | |
12993 | if (obj7) { | |
12994 | { | |
12995 | arg8 = &temp8; | |
12996 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12997 | } | |
12998 | } | |
994141e6 | 12999 | if (obj8) { |
15afbcd0 RD |
13000 | arg9 = (long) SWIG_AsLong(obj8); |
13001 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13002 | } |
d14a1e28 | 13003 | if (obj9) { |
15afbcd0 RD |
13004 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
13005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13006 | SWIG_fail; | |
d14a1e28 | 13007 | if (arg10 == NULL) { |
15afbcd0 RD |
13008 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13009 | SWIG_fail; | |
d14a1e28 RD |
13010 | } |
13011 | } | |
13012 | if (obj10) { | |
13013 | { | |
13014 | arg11 = wxString_in_helper(obj10); | |
13015 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 13016 | temp11 = True; |
d14a1e28 RD |
13017 | } |
13018 | } | |
13019 | { | |
13020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13021 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13022 | ||
13023 | wxPyEndAllowThreads(__tstate); | |
13024 | if (PyErr_Occurred()) SWIG_fail; | |
13025 | } | |
4f89f6a3 RD |
13026 | { |
13027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13028 | } | |
d14a1e28 RD |
13029 | { |
13030 | if (temp11) | |
13031 | delete arg11; | |
13032 | } | |
13033 | return resultobj; | |
13034 | fail: | |
13035 | { | |
13036 | if (temp11) | |
13037 | delete arg11; | |
13038 | } | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
13043 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13044 | PyObject *resultobj; | |
13045 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13046 | int result; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | char *kwnames[] = { | |
13049 | (char *) "self", NULL | |
13050 | }; | |
13051 | ||
13052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13055 | { |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13058 | ||
13059 | wxPyEndAllowThreads(__tstate); | |
13060 | if (PyErr_Occurred()) SWIG_fail; | |
13061 | } | |
15afbcd0 | 13062 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13063 | return resultobj; |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13072 | int arg2 ; | |
13073 | PyObject * obj0 = 0 ; | |
994141e6 | 13074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13075 | char *kwnames[] = { |
13076 | (char *) "self",(char *) "value", NULL | |
13077 | }; | |
13078 | ||
994141e6 | 13079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13082 | arg2 = (int) SWIG_AsInt(obj1); | |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13084 | { |
13085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13086 | (arg1)->SetValue(arg2); | |
13087 | ||
13088 | wxPyEndAllowThreads(__tstate); | |
13089 | if (PyErr_Occurred()) SWIG_fail; | |
13090 | } | |
13091 | Py_INCREF(Py_None); resultobj = Py_None; | |
13092 | return resultobj; | |
13093 | fail: | |
13094 | return NULL; | |
13095 | } | |
13096 | ||
13097 | ||
13098 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13099 | PyObject *resultobj; | |
13100 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13101 | int arg2 ; | |
13102 | int arg3 ; | |
13103 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13104 | PyObject * obj1 = 0 ; |
13105 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13106 | char *kwnames[] = { |
13107 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13108 | }; | |
13109 | ||
994141e6 | 13110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13113 | arg2 = (int) SWIG_AsInt(obj1); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | arg3 = (int) SWIG_AsInt(obj2); | |
13116 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13117 | { |
13118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13119 | (arg1)->SetRange(arg2,arg3); | |
13120 | ||
13121 | wxPyEndAllowThreads(__tstate); | |
13122 | if (PyErr_Occurred()) SWIG_fail; | |
13123 | } | |
13124 | Py_INCREF(Py_None); resultobj = Py_None; | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | return NULL; | |
13128 | } | |
13129 | ||
13130 | ||
13131 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13132 | PyObject *resultobj; | |
13133 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13134 | int result; | |
13135 | PyObject * obj0 = 0 ; | |
13136 | char *kwnames[] = { | |
13137 | (char *) "self", NULL | |
13138 | }; | |
13139 | ||
13140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13143 | { |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
15afbcd0 | 13150 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13151 | return resultobj; |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13160 | int result; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13169 | { |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
15afbcd0 | 13176 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13177 | return resultobj; |
13178 | fail: | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
13183 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13184 | PyObject *resultobj; | |
13185 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13186 | int arg2 ; | |
13187 | PyObject * obj0 = 0 ; | |
994141e6 | 13188 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13189 | char *kwnames[] = { |
13190 | (char *) "self",(char *) "minValue", NULL | |
13191 | }; | |
13192 | ||
994141e6 | 13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13196 | arg2 = (int) SWIG_AsInt(obj1); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13198 | { |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | (arg1)->SetMin(arg2); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | Py_INCREF(Py_None); resultobj = Py_None; | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13215 | int arg2 ; | |
13216 | PyObject * obj0 = 0 ; | |
994141e6 | 13217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13218 | char *kwnames[] = { |
13219 | (char *) "self",(char *) "maxValue", NULL | |
13220 | }; | |
13221 | ||
994141e6 | 13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13225 | arg2 = (int) SWIG_AsInt(obj1); | |
13226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13227 | { |
13228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13229 | (arg1)->SetMax(arg2); | |
13230 | ||
13231 | wxPyEndAllowThreads(__tstate); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | Py_INCREF(Py_None); resultobj = Py_None; | |
13235 | return resultobj; | |
13236 | fail: | |
13237 | return NULL; | |
13238 | } | |
13239 | ||
13240 | ||
13241 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13242 | PyObject *resultobj; | |
13243 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13244 | int arg2 ; | |
13245 | PyObject * obj0 = 0 ; | |
994141e6 | 13246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13247 | char *kwnames[] = { |
13248 | (char *) "self",(char *) "lineSize", NULL | |
13249 | }; | |
13250 | ||
994141e6 | 13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13254 | arg2 = (int) SWIG_AsInt(obj1); | |
13255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13256 | { |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | (arg1)->SetLineSize(arg2); | |
13259 | ||
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | Py_INCREF(Py_None); resultobj = Py_None; | |
13264 | return resultobj; | |
13265 | fail: | |
13266 | return NULL; | |
13267 | } | |
13268 | ||
13269 | ||
13270 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13271 | PyObject *resultobj; | |
13272 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13273 | int arg2 ; | |
13274 | PyObject * obj0 = 0 ; | |
994141e6 | 13275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13276 | char *kwnames[] = { |
13277 | (char *) "self",(char *) "pageSize", NULL | |
13278 | }; | |
13279 | ||
994141e6 | 13280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13283 | arg2 = (int) SWIG_AsInt(obj1); | |
13284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13285 | { |
13286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13287 | (arg1)->SetPageSize(arg2); | |
13288 | ||
13289 | wxPyEndAllowThreads(__tstate); | |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
13291 | } | |
13292 | Py_INCREF(Py_None); resultobj = Py_None; | |
13293 | return resultobj; | |
13294 | fail: | |
13295 | return NULL; | |
13296 | } | |
13297 | ||
13298 | ||
13299 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13300 | PyObject *resultobj; | |
13301 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13302 | int result; | |
13303 | PyObject * obj0 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self", NULL | |
13306 | }; | |
13307 | ||
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13311 | { |
13312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13313 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13314 | ||
13315 | wxPyEndAllowThreads(__tstate); | |
13316 | if (PyErr_Occurred()) SWIG_fail; | |
13317 | } | |
15afbcd0 | 13318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13319 | return resultobj; |
13320 | fail: | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj; | |
13327 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13328 | int result; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | char *kwnames[] = { | |
13331 | (char *) "self", NULL | |
13332 | }; | |
13333 | ||
13334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13337 | { |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | } | |
15afbcd0 | 13344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13345 | return resultobj; |
13346 | fail: | |
13347 | return NULL; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13354 | int arg2 ; | |
13355 | PyObject * obj0 = 0 ; | |
994141e6 | 13356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13357 | char *kwnames[] = { |
13358 | (char *) "self",(char *) "lenPixels", NULL | |
13359 | }; | |
13360 | ||
994141e6 | 13361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13364 | arg2 = (int) SWIG_AsInt(obj1); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13366 | { |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | (arg1)->SetThumbLength(arg2); | |
13369 | ||
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
13373 | Py_INCREF(Py_None); resultobj = Py_None; | |
13374 | return resultobj; | |
13375 | fail: | |
13376 | return NULL; | |
13377 | } | |
13378 | ||
13379 | ||
13380 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13381 | PyObject *resultobj; | |
13382 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13383 | int result; | |
13384 | PyObject * obj0 = 0 ; | |
13385 | char *kwnames[] = { | |
13386 | (char *) "self", NULL | |
13387 | }; | |
13388 | ||
13389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13392 | { |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13395 | ||
13396 | wxPyEndAllowThreads(__tstate); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | } | |
15afbcd0 | 13399 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13400 | return resultobj; |
13401 | fail: | |
13402 | return NULL; | |
13403 | } | |
13404 | ||
13405 | ||
13406 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13407 | PyObject *resultobj; | |
13408 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13409 | int arg2 ; | |
994141e6 | 13410 | int arg3 = (int) 1 ; |
d14a1e28 | 13411 | PyObject * obj0 = 0 ; |
994141e6 RD |
13412 | PyObject * obj1 = 0 ; |
13413 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13414 | char *kwnames[] = { |
13415 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13416 | }; | |
13417 | ||
994141e6 | 13418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13421 | arg2 = (int) SWIG_AsInt(obj1); | |
13422 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13423 | if (obj2) { |
15afbcd0 RD |
13424 | arg3 = (int) SWIG_AsInt(obj2); |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13426 | } |
d14a1e28 RD |
13427 | { |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | (arg1)->SetTickFreq(arg2,arg3); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | Py_INCREF(Py_None); resultobj = Py_None; | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13442 | PyObject *resultobj; | |
13443 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13444 | int result; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | char *kwnames[] = { | |
13447 | (char *) "self", NULL | |
13448 | }; | |
13449 | ||
13450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13453 | { |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
15afbcd0 | 13460 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13461 | return resultobj; |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13470 | PyObject * obj0 = 0 ; | |
13471 | char *kwnames[] = { | |
13472 | (char *) "self", NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13478 | { |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | (arg1)->ClearTicks(); | |
13481 | ||
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
13485 | Py_INCREF(Py_None); resultobj = Py_None; | |
13486 | return resultobj; | |
13487 | fail: | |
13488 | return NULL; | |
13489 | } | |
13490 | ||
13491 | ||
13492 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13493 | PyObject *resultobj; | |
13494 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13495 | int arg2 ; | |
13496 | PyObject * obj0 = 0 ; | |
994141e6 | 13497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13498 | char *kwnames[] = { |
13499 | (char *) "self",(char *) "tickPos", NULL | |
13500 | }; | |
13501 | ||
994141e6 | 13502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13505 | arg2 = (int) SWIG_AsInt(obj1); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13507 | { |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | (arg1)->SetTick(arg2); | |
13510 | ||
13511 | wxPyEndAllowThreads(__tstate); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
13514 | Py_INCREF(Py_None); resultobj = Py_None; | |
13515 | return resultobj; | |
13516 | fail: | |
13517 | return NULL; | |
13518 | } | |
13519 | ||
13520 | ||
13521 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13522 | PyObject *resultobj; | |
13523 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13524 | PyObject * obj0 = 0 ; | |
13525 | char *kwnames[] = { | |
13526 | (char *) "self", NULL | |
13527 | }; | |
13528 | ||
13529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13532 | { |
13533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13534 | (arg1)->ClearSel(); | |
13535 | ||
13536 | wxPyEndAllowThreads(__tstate); | |
13537 | if (PyErr_Occurred()) SWIG_fail; | |
13538 | } | |
13539 | Py_INCREF(Py_None); resultobj = Py_None; | |
13540 | return resultobj; | |
13541 | fail: | |
13542 | return NULL; | |
13543 | } | |
13544 | ||
13545 | ||
13546 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13547 | PyObject *resultobj; | |
13548 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13549 | int result; | |
13550 | PyObject * obj0 = 0 ; | |
13551 | char *kwnames[] = { | |
13552 | (char *) "self", NULL | |
13553 | }; | |
13554 | ||
13555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13558 | { |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13561 | ||
13562 | wxPyEndAllowThreads(__tstate); | |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
13564 | } | |
15afbcd0 | 13565 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13566 | return resultobj; |
13567 | fail: | |
13568 | return NULL; | |
13569 | } | |
13570 | ||
13571 | ||
13572 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13573 | PyObject *resultobj; | |
13574 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13575 | int result; | |
13576 | PyObject * obj0 = 0 ; | |
13577 | char *kwnames[] = { | |
13578 | (char *) "self", NULL | |
13579 | }; | |
13580 | ||
13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13584 | { |
13585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13586 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13587 | ||
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
15afbcd0 | 13591 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13592 | return resultobj; |
13593 | fail: | |
13594 | return NULL; | |
13595 | } | |
13596 | ||
13597 | ||
13598 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13599 | PyObject *resultobj; | |
13600 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13601 | int arg2 ; | |
13602 | int arg3 ; | |
13603 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13604 | PyObject * obj1 = 0 ; |
13605 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13606 | char *kwnames[] = { |
13607 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13608 | }; | |
13609 | ||
994141e6 | 13610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13613 | arg2 = (int) SWIG_AsInt(obj1); | |
13614 | if (PyErr_Occurred()) SWIG_fail; | |
13615 | arg3 = (int) SWIG_AsInt(obj2); | |
13616 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13617 | { |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13619 | (arg1)->SetSelection(arg2,arg3); | |
13620 | ||
13621 | wxPyEndAllowThreads(__tstate); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
13624 | Py_INCREF(Py_None); resultobj = Py_None; | |
13625 | return resultobj; | |
13626 | fail: | |
13627 | return NULL; | |
13628 | } | |
13629 | ||
13630 | ||
22bfe96c RD |
13631 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13632 | PyObject *resultobj; | |
13633 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13634 | wxVisualAttributes result; | |
13635 | PyObject * obj0 = 0 ; | |
13636 | char *kwnames[] = { | |
13637 | (char *) "variant", NULL | |
13638 | }; | |
13639 | ||
13640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13641 | if (obj0) { | |
13642 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | { | |
110da5b0 | 13646 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13648 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13651 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13652 | } |
13653 | { | |
13654 | wxVisualAttributes * resultptr; | |
13655 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13656 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13657 | } | |
13658 | return resultobj; | |
13659 | fail: | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
d14a1e28 RD |
13664 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13665 | PyObject *obj; | |
13666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13667 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13668 | Py_INCREF(obj); | |
13669 | return Py_BuildValue((char *)""); | |
13670 | } | |
b2dc1044 RD |
13671 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
13672 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13673 | return 1; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13678 | PyObject *pyobj; | |
13679 | ||
13680 | { | |
13681 | #if wxUSE_UNICODE | |
13682 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13683 | #else | |
13684 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13685 | #endif | |
13686 | } | |
13687 | return pyobj; | |
13688 | } | |
13689 | ||
13690 | ||
d14a1e28 RD |
13691 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
13692 | PyObject *resultobj; | |
13693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13694 | int arg2 = (int) -1 ; |
13695 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13696 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13697 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13698 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13699 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13700 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13701 | long arg6 = (long) 0 ; | |
13702 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13703 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13704 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13705 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13706 | wxToggleButton *result; | |
e811c8ce | 13707 | bool temp3 = False ; |
d14a1e28 RD |
13708 | wxPoint temp4 ; |
13709 | wxSize temp5 ; | |
e811c8ce | 13710 | bool temp8 = False ; |
d14a1e28 | 13711 | PyObject * obj0 = 0 ; |
994141e6 | 13712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13713 | PyObject * obj2 = 0 ; |
13714 | PyObject * obj3 = 0 ; | |
13715 | PyObject * obj4 = 0 ; | |
994141e6 | 13716 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13717 | PyObject * obj6 = 0 ; |
13718 | PyObject * obj7 = 0 ; | |
13719 | char *kwnames[] = { | |
13720 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13721 | }; | |
13722 | ||
248ed943 | 13723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13726 | if (obj1) { |
13727 | arg2 = (int) SWIG_AsInt(obj1); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | if (obj2) { | |
13731 | { | |
13732 | arg3 = wxString_in_helper(obj2); | |
13733 | if (arg3 == NULL) SWIG_fail; | |
13734 | temp3 = True; | |
13735 | } | |
d14a1e28 RD |
13736 | } |
13737 | if (obj3) { | |
13738 | { | |
13739 | arg4 = &temp4; | |
13740 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13741 | } | |
13742 | } | |
13743 | if (obj4) { | |
13744 | { | |
13745 | arg5 = &temp5; | |
13746 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13747 | } | |
13748 | } | |
994141e6 | 13749 | if (obj5) { |
15afbcd0 RD |
13750 | arg6 = (long) SWIG_AsLong(obj5); |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13752 | } |
d14a1e28 | 13753 | if (obj6) { |
15afbcd0 RD |
13754 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13756 | SWIG_fail; | |
d14a1e28 | 13757 | if (arg7 == NULL) { |
15afbcd0 RD |
13758 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13759 | SWIG_fail; | |
d14a1e28 RD |
13760 | } |
13761 | } | |
13762 | if (obj7) { | |
13763 | { | |
13764 | arg8 = wxString_in_helper(obj7); | |
13765 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13766 | temp8 = True; |
d14a1e28 RD |
13767 | } |
13768 | } | |
13769 | { | |
e3b71cb8 | 13770 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13772 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13773 | ||
13774 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13775 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13776 | } |
15afbcd0 | 13777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13778 | { |
13779 | if (temp3) | |
13780 | delete arg3; | |
13781 | } | |
13782 | { | |
13783 | if (temp8) | |
13784 | delete arg8; | |
13785 | } | |
13786 | return resultobj; | |
13787 | fail: | |
13788 | { | |
13789 | if (temp3) | |
13790 | delete arg3; | |
13791 | } | |
13792 | { | |
13793 | if (temp8) | |
13794 | delete arg8; | |
13795 | } | |
13796 | return NULL; | |
13797 | } | |
13798 | ||
13799 | ||
13800 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13801 | PyObject *resultobj; | |
13802 | wxToggleButton *result; | |
13803 | char *kwnames[] = { | |
13804 | NULL | |
13805 | }; | |
13806 | ||
13807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13808 | { | |
e3b71cb8 | 13809 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13811 | result = (wxToggleButton *)new wxToggleButton(); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13815 | } |
15afbcd0 | 13816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13817 | return resultobj; |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13826 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13827 | int arg3 = (int) -1 ; |
13828 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13829 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13830 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13831 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13832 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13833 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13834 | long arg7 = (long) 0 ; | |
13835 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13836 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13837 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13838 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13839 | bool result; | |
e811c8ce | 13840 | bool temp4 = False ; |
d14a1e28 RD |
13841 | wxPoint temp5 ; |
13842 | wxSize temp6 ; | |
e811c8ce | 13843 | bool temp9 = False ; |
d14a1e28 RD |
13844 | PyObject * obj0 = 0 ; |
13845 | PyObject * obj1 = 0 ; | |
994141e6 | 13846 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13847 | PyObject * obj3 = 0 ; |
13848 | PyObject * obj4 = 0 ; | |
13849 | PyObject * obj5 = 0 ; | |
994141e6 | 13850 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13851 | PyObject * obj7 = 0 ; |
13852 | PyObject * obj8 = 0 ; | |
13853 | char *kwnames[] = { | |
13854 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13855 | }; | |
13856 | ||
248ed943 | 13857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
13858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13862 | if (obj2) { |
13863 | arg3 = (int) SWIG_AsInt(obj2); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
13866 | if (obj3) { | |
13867 | { | |
13868 | arg4 = wxString_in_helper(obj3); | |
13869 | if (arg4 == NULL) SWIG_fail; | |
13870 | temp4 = True; | |
13871 | } | |
d14a1e28 RD |
13872 | } |
13873 | if (obj4) { | |
13874 | { | |
13875 | arg5 = &temp5; | |
13876 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13877 | } | |
13878 | } | |
13879 | if (obj5) { | |
13880 | { | |
13881 | arg6 = &temp6; | |
13882 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13883 | } | |
13884 | } | |
994141e6 | 13885 | if (obj6) { |
15afbcd0 RD |
13886 | arg7 = (long) SWIG_AsLong(obj6); |
13887 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13888 | } |
d14a1e28 | 13889 | if (obj7) { |
15afbcd0 RD |
13890 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13892 | SWIG_fail; | |
d14a1e28 | 13893 | if (arg8 == NULL) { |
15afbcd0 RD |
13894 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13895 | SWIG_fail; | |
d14a1e28 RD |
13896 | } |
13897 | } | |
13898 | if (obj8) { | |
13899 | { | |
13900 | arg9 = wxString_in_helper(obj8); | |
13901 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13902 | temp9 = True; |
d14a1e28 RD |
13903 | } |
13904 | } | |
13905 | { | |
13906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13907 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13908 | ||
13909 | wxPyEndAllowThreads(__tstate); | |
13910 | if (PyErr_Occurred()) SWIG_fail; | |
13911 | } | |
4f89f6a3 RD |
13912 | { |
13913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13914 | } | |
d14a1e28 RD |
13915 | { |
13916 | if (temp4) | |
13917 | delete arg4; | |
13918 | } | |
13919 | { | |
13920 | if (temp9) | |
13921 | delete arg9; | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | { | |
13926 | if (temp4) | |
13927 | delete arg4; | |
13928 | } | |
13929 | { | |
13930 | if (temp9) | |
13931 | delete arg9; | |
13932 | } | |
13933 | return NULL; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13938 | PyObject *resultobj; | |
13939 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13940 | bool arg2 ; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | PyObject * obj1 = 0 ; | |
13943 | char *kwnames[] = { | |
13944 | (char *) "self",(char *) "value", NULL | |
13945 | }; | |
13946 | ||
13947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13950 | arg2 = (bool) SWIG_AsBool(obj1); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13952 | { |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | (arg1)->SetValue(arg2); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | Py_INCREF(Py_None); resultobj = Py_None; | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13967 | PyObject *resultobj; | |
13968 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13969 | bool result; | |
13970 | PyObject * obj0 = 0 ; | |
13971 | char *kwnames[] = { | |
13972 | (char *) "self", NULL | |
13973 | }; | |
13974 | ||
13975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13978 | { |
13979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13980 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13981 | ||
13982 | wxPyEndAllowThreads(__tstate); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
4f89f6a3 RD |
13985 | { |
13986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13987 | } | |
d14a1e28 RD |
13988 | return resultobj; |
13989 | fail: | |
13990 | return NULL; | |
13991 | } | |
13992 | ||
13993 | ||
13994 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13995 | PyObject *resultobj; | |
13996 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13997 | wxString *arg2 = 0 ; | |
e811c8ce | 13998 | bool temp2 = False ; |
d14a1e28 RD |
13999 | PyObject * obj0 = 0 ; |
14000 | PyObject * obj1 = 0 ; | |
14001 | char *kwnames[] = { | |
14002 | (char *) "self",(char *) "label", NULL | |
14003 | }; | |
14004 | ||
14005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14008 | { |
14009 | arg2 = wxString_in_helper(obj1); | |
14010 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14011 | temp2 = True; |
d14a1e28 RD |
14012 | } |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | (arg1)->SetLabel((wxString const &)*arg2); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
14020 | Py_INCREF(Py_None); resultobj = Py_None; | |
14021 | { | |
14022 | if (temp2) | |
14023 | delete arg2; | |
14024 | } | |
14025 | return resultobj; | |
14026 | fail: | |
14027 | { | |
14028 | if (temp2) | |
14029 | delete arg2; | |
14030 | } | |
14031 | return NULL; | |
14032 | } | |
14033 | ||
14034 | ||
22bfe96c RD |
14035 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14036 | PyObject *resultobj; | |
14037 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14038 | wxVisualAttributes result; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "variant", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14045 | if (obj0) { | |
14046 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14047 | if (PyErr_Occurred()) SWIG_fail; | |
14048 | } | |
14049 | { | |
110da5b0 | 14050 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14052 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14055 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14056 | } |
14057 | { | |
14058 | wxVisualAttributes * resultptr; | |
14059 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14061 | } | |
14062 | return resultobj; | |
14063 | fail: | |
14064 | return NULL; | |
14065 | } | |
14066 | ||
14067 | ||
d14a1e28 RD |
14068 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
14069 | PyObject *obj; | |
14070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14071 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14072 | Py_INCREF(obj); | |
14073 | return Py_BuildValue((char *)""); | |
14074 | } | |
b2dc1044 RD |
14075 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
14076 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
14077 | return 1; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14082 | PyObject *pyobj; | |
14083 | ||
14084 | { | |
14085 | #if wxUSE_UNICODE | |
14086 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14087 | #else | |
14088 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14089 | #endif | |
14090 | } | |
14091 | return pyobj; | |
14092 | } | |
14093 | ||
14094 | ||
d14a1e28 RD |
14095 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
14096 | PyObject *resultobj; | |
14097 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14098 | size_t result; | |
14099 | PyObject * obj0 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14107 | { |
14108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14109 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14110 | ||
14111 | wxPyEndAllowThreads(__tstate); | |
14112 | if (PyErr_Occurred()) SWIG_fail; | |
14113 | } | |
15afbcd0 | 14114 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14115 | return resultobj; |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14122 | PyObject *resultobj; | |
14123 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14124 | size_t arg2 ; | |
14125 | wxWindow *result; | |
14126 | PyObject * obj0 = 0 ; | |
14127 | PyObject * obj1 = 0 ; | |
14128 | char *kwnames[] = { | |
14129 | (char *) "self",(char *) "n", NULL | |
14130 | }; | |
14131 | ||
14132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14135 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14137 | { |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | { | |
412d302d | 14145 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14146 | } |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj; | |
14155 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14156 | int result; | |
14157 | PyObject * obj0 = 0 ; | |
14158 | char *kwnames[] = { | |
14159 | (char *) "self", NULL | |
14160 | }; | |
14161 | ||
14162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14165 | { |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14168 | ||
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
15afbcd0 | 14172 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14173 | return resultobj; |
14174 | fail: | |
14175 | return NULL; | |
14176 | } | |
14177 | ||
14178 | ||
14179 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14180 | PyObject *resultobj; | |
14181 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14182 | size_t arg2 ; | |
14183 | wxString *arg3 = 0 ; | |
14184 | bool result; | |
e811c8ce | 14185 | bool temp3 = False ; |
d14a1e28 RD |
14186 | PyObject * obj0 = 0 ; |
14187 | PyObject * obj1 = 0 ; | |
14188 | PyObject * obj2 = 0 ; | |
14189 | char *kwnames[] = { | |
14190 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14191 | }; | |
14192 | ||
14193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14196 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14198 | { |
14199 | arg3 = wxString_in_helper(obj2); | |
14200 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14201 | temp3 = True; |
d14a1e28 RD |
14202 | } |
14203 | { | |
14204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14205 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14206 | ||
14207 | wxPyEndAllowThreads(__tstate); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
14209 | } | |
4f89f6a3 RD |
14210 | { |
14211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14212 | } | |
d14a1e28 RD |
14213 | { |
14214 | if (temp3) | |
14215 | delete arg3; | |
14216 | } | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | { | |
14220 | if (temp3) | |
14221 | delete arg3; | |
14222 | } | |
14223 | return NULL; | |
14224 | } | |
14225 | ||
14226 | ||
14227 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14228 | PyObject *resultobj; | |
14229 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14230 | size_t arg2 ; | |
14231 | wxString result; | |
14232 | PyObject * obj0 = 0 ; | |
14233 | PyObject * obj1 = 0 ; | |
14234 | char *kwnames[] = { | |
14235 | (char *) "self",(char *) "n", NULL | |
14236 | }; | |
14237 | ||
14238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14241 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14243 | { |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14246 | ||
14247 | wxPyEndAllowThreads(__tstate); | |
14248 | if (PyErr_Occurred()) SWIG_fail; | |
14249 | } | |
14250 | { | |
14251 | #if wxUSE_UNICODE | |
14252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14253 | #else | |
14254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14255 | #endif | |
14256 | } | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14266 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | PyObject * obj1 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self",(char *) "imageList", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14278 | { |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | (arg1)->SetImageList(arg2); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
14285 | Py_INCREF(Py_None); resultobj = Py_None; | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14295 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | PyObject * obj1 = 0 ; | |
14298 | char *kwnames[] = { | |
14299 | (char *) "self",(char *) "imageList", NULL | |
14300 | }; | |
14301 | ||
14302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14306 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14307 | { |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | (arg1)->AssignImageList(arg2); | |
14310 | ||
14311 | wxPyEndAllowThreads(__tstate); | |
14312 | if (PyErr_Occurred()) SWIG_fail; | |
14313 | } | |
14314 | Py_INCREF(Py_None); resultobj = Py_None; | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14324 | wxImageList *result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14333 | { |
14334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14335 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14336 | ||
14337 | wxPyEndAllowThreads(__tstate); | |
14338 | if (PyErr_Occurred()) SWIG_fail; | |
14339 | } | |
14340 | { | |
412d302d | 14341 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14342 | } |
14343 | return resultobj; | |
14344 | fail: | |
14345 | return NULL; | |
14346 | } | |
14347 | ||
14348 | ||
14349 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14350 | PyObject *resultobj; | |
14351 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14352 | size_t arg2 ; | |
14353 | int result; | |
14354 | PyObject * obj0 = 0 ; | |
14355 | PyObject * obj1 = 0 ; | |
14356 | char *kwnames[] = { | |
14357 | (char *) "self",(char *) "n", NULL | |
14358 | }; | |
14359 | ||
14360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14363 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14364 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14365 | { |
14366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14367 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14368 | ||
14369 | wxPyEndAllowThreads(__tstate); | |
14370 | if (PyErr_Occurred()) SWIG_fail; | |
14371 | } | |
15afbcd0 | 14372 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14373 | return resultobj; |
14374 | fail: | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
14379 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14380 | PyObject *resultobj; | |
14381 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14382 | size_t arg2 ; | |
14383 | int arg3 ; | |
14384 | bool result; | |
14385 | PyObject * obj0 = 0 ; | |
14386 | PyObject * obj1 = 0 ; | |
994141e6 | 14387 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14388 | char *kwnames[] = { |
14389 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14390 | }; | |
14391 | ||
994141e6 | 14392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14395 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | arg3 = (int) SWIG_AsInt(obj2); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14399 | { |
14400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14401 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14402 | ||
14403 | wxPyEndAllowThreads(__tstate); | |
14404 | if (PyErr_Occurred()) SWIG_fail; | |
14405 | } | |
4f89f6a3 RD |
14406 | { |
14407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14408 | } | |
d14a1e28 RD |
14409 | return resultobj; |
14410 | fail: | |
14411 | return NULL; | |
14412 | } | |
14413 | ||
14414 | ||
14415 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14416 | PyObject *resultobj; | |
14417 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14418 | wxSize *arg2 = 0 ; | |
14419 | wxSize temp2 ; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | PyObject * obj1 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self",(char *) "size", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14429 | { |
14430 | arg2 = &temp2; | |
14431 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14432 | } | |
14433 | { | |
14434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14435 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14436 | ||
14437 | wxPyEndAllowThreads(__tstate); | |
14438 | if (PyErr_Occurred()) SWIG_fail; | |
14439 | } | |
14440 | Py_INCREF(Py_None); resultobj = Py_None; | |
14441 | return resultobj; | |
14442 | fail: | |
14443 | return NULL; | |
14444 | } | |
14445 | ||
14446 | ||
14447 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14448 | PyObject *resultobj; | |
14449 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14450 | wxSize *arg2 = 0 ; | |
14451 | wxSize result; | |
14452 | wxSize temp2 ; | |
14453 | PyObject * obj0 = 0 ; | |
14454 | PyObject * obj1 = 0 ; | |
14455 | char *kwnames[] = { | |
14456 | (char *) "self",(char *) "sizePage", NULL | |
14457 | }; | |
14458 | ||
14459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14462 | { |
14463 | arg2 = &temp2; | |
14464 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14465 | } | |
14466 | { | |
14467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14468 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14469 | ||
14470 | wxPyEndAllowThreads(__tstate); | |
14471 | if (PyErr_Occurred()) SWIG_fail; | |
14472 | } | |
14473 | { | |
14474 | wxSize * resultptr; | |
14475 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14477 | } |
14478 | return resultobj; | |
14479 | fail: | |
14480 | return NULL; | |
14481 | } | |
14482 | ||
14483 | ||
14484 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14485 | PyObject *resultobj; | |
14486 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14487 | size_t arg2 ; | |
14488 | bool result; | |
14489 | PyObject * obj0 = 0 ; | |
14490 | PyObject * obj1 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "self",(char *) "n", NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14498 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14499 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14500 | { |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (bool)(arg1)->DeletePage(arg2); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
4f89f6a3 RD |
14507 | { |
14508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14509 | } | |
d14a1e28 RD |
14510 | return resultobj; |
14511 | fail: | |
14512 | return NULL; | |
14513 | } | |
14514 | ||
14515 | ||
14516 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14517 | PyObject *resultobj; | |
14518 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14519 | size_t arg2 ; | |
14520 | bool result; | |
14521 | PyObject * obj0 = 0 ; | |
14522 | PyObject * obj1 = 0 ; | |
14523 | char *kwnames[] = { | |
14524 | (char *) "self",(char *) "n", NULL | |
14525 | }; | |
14526 | ||
14527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14530 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14531 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14532 | { |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = (bool)(arg1)->RemovePage(arg2); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
4f89f6a3 RD |
14539 | { |
14540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14541 | } | |
d14a1e28 RD |
14542 | return resultobj; |
14543 | fail: | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14551 | bool result; | |
14552 | PyObject * obj0 = 0 ; | |
14553 | char *kwnames[] = { | |
14554 | (char *) "self", NULL | |
14555 | }; | |
14556 | ||
14557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14560 | { |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (bool)(arg1)->DeleteAllPages(); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
4f89f6a3 RD |
14567 | { |
14568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14569 | } | |
d14a1e28 RD |
14570 | return resultobj; |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14579 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14580 | wxString *arg3 = 0 ; | |
e811c8ce | 14581 | bool arg4 = (bool) False ; |
d14a1e28 RD |
14582 | int arg5 = (int) -1 ; |
14583 | bool result; | |
e811c8ce | 14584 | bool temp3 = False ; |
d14a1e28 RD |
14585 | PyObject * obj0 = 0 ; |
14586 | PyObject * obj1 = 0 ; | |
14587 | PyObject * obj2 = 0 ; | |
14588 | PyObject * obj3 = 0 ; | |
994141e6 | 14589 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14590 | char *kwnames[] = { |
14591 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14592 | }; | |
14593 | ||
994141e6 | 14594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14599 | { |
14600 | arg3 = wxString_in_helper(obj2); | |
14601 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14602 | temp3 = True; |
d14a1e28 RD |
14603 | } |
14604 | if (obj3) { | |
15afbcd0 RD |
14605 | arg4 = (bool) SWIG_AsBool(obj3); |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14607 | } |
14608 | if (obj4) { | |
15afbcd0 RD |
14609 | arg5 = (int) SWIG_AsInt(obj4); |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14611 | } |
14612 | { | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14615 | ||
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
4f89f6a3 RD |
14619 | { |
14620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14621 | } | |
d14a1e28 RD |
14622 | { |
14623 | if (temp3) | |
14624 | delete arg3; | |
14625 | } | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | { | |
14629 | if (temp3) | |
14630 | delete arg3; | |
14631 | } | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
14636 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14637 | PyObject *resultobj; | |
14638 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14639 | size_t arg2 ; | |
14640 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14641 | wxString *arg4 = 0 ; | |
e811c8ce | 14642 | bool arg5 = (bool) False ; |
d14a1e28 RD |
14643 | int arg6 = (int) -1 ; |
14644 | bool result; | |
e811c8ce | 14645 | bool temp4 = False ; |
d14a1e28 RD |
14646 | PyObject * obj0 = 0 ; |
14647 | PyObject * obj1 = 0 ; | |
14648 | PyObject * obj2 = 0 ; | |
14649 | PyObject * obj3 = 0 ; | |
14650 | PyObject * obj4 = 0 ; | |
994141e6 | 14651 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14652 | char *kwnames[] = { |
14653 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14654 | }; | |
14655 | ||
994141e6 | 14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14659 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14663 | { |
14664 | arg4 = wxString_in_helper(obj3); | |
14665 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14666 | temp4 = True; |
d14a1e28 RD |
14667 | } |
14668 | if (obj4) { | |
15afbcd0 RD |
14669 | arg5 = (bool) SWIG_AsBool(obj4); |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14671 | } |
14672 | if (obj5) { | |
15afbcd0 RD |
14673 | arg6 = (int) SWIG_AsInt(obj5); |
14674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14675 | } |
14676 | { | |
14677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14678 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14679 | ||
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
4f89f6a3 RD |
14683 | { |
14684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14685 | } | |
d14a1e28 RD |
14686 | { |
14687 | if (temp4) | |
14688 | delete arg4; | |
14689 | } | |
14690 | return resultobj; | |
14691 | fail: | |
14692 | { | |
14693 | if (temp4) | |
14694 | delete arg4; | |
14695 | } | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
14700 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14701 | PyObject *resultobj; | |
14702 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14703 | size_t arg2 ; | |
14704 | int result; | |
14705 | PyObject * obj0 = 0 ; | |
14706 | PyObject * obj1 = 0 ; | |
14707 | char *kwnames[] = { | |
14708 | (char *) "self",(char *) "n", NULL | |
14709 | }; | |
14710 | ||
14711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14714 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14716 | { |
14717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14718 | result = (int)(arg1)->SetSelection(arg2); | |
14719 | ||
14720 | wxPyEndAllowThreads(__tstate); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | } | |
15afbcd0 | 14723 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14724 | return resultobj; |
14725 | fail: | |
14726 | return NULL; | |
14727 | } | |
14728 | ||
14729 | ||
14730 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14731 | PyObject *resultobj; | |
14732 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 14733 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14734 | PyObject * obj0 = 0 ; |
14735 | PyObject * obj1 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self",(char *) "forward", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14743 | if (obj1) { |
15afbcd0 RD |
14744 | arg2 = (bool) SWIG_AsBool(obj1); |
14745 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14746 | } |
14747 | { | |
14748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14749 | (arg1)->AdvanceSelection(arg2); | |
14750 | ||
14751 | wxPyEndAllowThreads(__tstate); | |
14752 | if (PyErr_Occurred()) SWIG_fail; | |
14753 | } | |
14754 | Py_INCREF(Py_None); resultobj = Py_None; | |
14755 | return resultobj; | |
14756 | fail: | |
14757 | return NULL; | |
14758 | } | |
14759 | ||
14760 | ||
22bfe96c RD |
14761 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14762 | PyObject *resultobj; | |
14763 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14764 | wxVisualAttributes result; | |
14765 | PyObject * obj0 = 0 ; | |
14766 | char *kwnames[] = { | |
14767 | (char *) "variant", NULL | |
14768 | }; | |
14769 | ||
14770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14771 | if (obj0) { | |
14772 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | { | |
110da5b0 | 14776 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14778 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14781 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14782 | } |
14783 | { | |
14784 | wxVisualAttributes * resultptr; | |
14785 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14787 | } | |
14788 | return resultobj; | |
14789 | fail: | |
14790 | return NULL; | |
14791 | } | |
14792 | ||
14793 | ||
d14a1e28 RD |
14794 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14795 | PyObject *obj; | |
14796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14797 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14798 | Py_INCREF(obj); | |
14799 | return Py_BuildValue((char *)""); | |
14800 | } | |
14801 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14802 | PyObject *resultobj; | |
14803 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14804 | int arg2 = (int) 0 ; | |
14805 | int arg3 = (int) -1 ; | |
14806 | int arg4 = (int) -1 ; | |
14807 | wxBookCtrlEvent *result; | |
994141e6 RD |
14808 | PyObject * obj0 = 0 ; |
14809 | PyObject * obj1 = 0 ; | |
14810 | PyObject * obj2 = 0 ; | |
14811 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14812 | char *kwnames[] = { |
14813 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14814 | }; | |
14815 | ||
994141e6 RD |
14816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14817 | if (obj0) { | |
15afbcd0 RD |
14818 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14820 | } |
14821 | if (obj1) { | |
15afbcd0 RD |
14822 | arg2 = (int) SWIG_AsInt(obj1); |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14824 | } |
14825 | if (obj2) { | |
15afbcd0 RD |
14826 | arg3 = (int) SWIG_AsInt(obj2); |
14827 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14828 | } |
14829 | if (obj3) { | |
15afbcd0 RD |
14830 | arg4 = (int) SWIG_AsInt(obj3); |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14832 | } |
d14a1e28 RD |
14833 | { |
14834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14835 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14836 | ||
14837 | wxPyEndAllowThreads(__tstate); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | } | |
15afbcd0 | 14840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14841 | return resultobj; |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
14847 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14848 | PyObject *resultobj; | |
14849 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14850 | int result; | |
14851 | PyObject * obj0 = 0 ; | |
14852 | char *kwnames[] = { | |
14853 | (char *) "self", NULL | |
14854 | }; | |
14855 | ||
14856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14859 | { |
14860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14861 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14862 | ||
14863 | wxPyEndAllowThreads(__tstate); | |
14864 | if (PyErr_Occurred()) SWIG_fail; | |
14865 | } | |
15afbcd0 | 14866 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14867 | return resultobj; |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj; | |
14875 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14876 | int arg2 ; | |
14877 | PyObject * obj0 = 0 ; | |
994141e6 | 14878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14879 | char *kwnames[] = { |
14880 | (char *) "self",(char *) "nSel", NULL | |
14881 | }; | |
14882 | ||
994141e6 | 14883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14886 | arg2 = (int) SWIG_AsInt(obj1); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14888 | { |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14890 | (arg1)->SetSelection(arg2); | |
14891 | ||
14892 | wxPyEndAllowThreads(__tstate); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | } | |
14895 | Py_INCREF(Py_None); resultobj = Py_None; | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14905 | int result; | |
14906 | PyObject * obj0 = 0 ; | |
14907 | char *kwnames[] = { | |
14908 | (char *) "self", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14914 | { |
14915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14916 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14917 | ||
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
15afbcd0 | 14921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14922 | return resultobj; |
14923 | fail: | |
14924 | return NULL; | |
14925 | } | |
14926 | ||
14927 | ||
14928 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14929 | PyObject *resultobj; | |
14930 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14931 | int arg2 ; | |
14932 | PyObject * obj0 = 0 ; | |
994141e6 | 14933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14934 | char *kwnames[] = { |
14935 | (char *) "self",(char *) "nOldSel", NULL | |
14936 | }; | |
14937 | ||
994141e6 | 14938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14941 | arg2 = (int) SWIG_AsInt(obj1); | |
14942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14943 | { |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | (arg1)->SetOldSelection(arg2); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
14950 | Py_INCREF(Py_None); resultobj = Py_None; | |
14951 | return resultobj; | |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14958 | PyObject *obj; | |
14959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14960 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14961 | Py_INCREF(obj); | |
14962 | return Py_BuildValue((char *)""); | |
14963 | } | |
14964 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14965 | PyObject *resultobj; | |
14966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14967 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14968 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14969 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14970 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14971 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14972 | long arg5 = (long) 0 ; | |
14973 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14974 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14975 | wxNotebook *result; | |
14976 | wxPoint temp3 ; | |
14977 | wxSize temp4 ; | |
e811c8ce | 14978 | bool temp6 = False ; |
d14a1e28 | 14979 | PyObject * obj0 = 0 ; |
994141e6 | 14980 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14981 | PyObject * obj2 = 0 ; |
14982 | PyObject * obj3 = 0 ; | |
994141e6 | 14983 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14984 | PyObject * obj5 = 0 ; |
14985 | char *kwnames[] = { | |
14986 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14987 | }; | |
14988 | ||
4f89f6a3 | 14989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14992 | if (obj1) { |
14993 | arg2 = (int) SWIG_AsInt(obj1); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
d14a1e28 RD |
14996 | if (obj2) { |
14997 | { | |
14998 | arg3 = &temp3; | |
14999 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15000 | } | |
15001 | } | |
15002 | if (obj3) { | |
15003 | { | |
15004 | arg4 = &temp4; | |
15005 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15006 | } | |
15007 | } | |
994141e6 | 15008 | if (obj4) { |
15afbcd0 RD |
15009 | arg5 = (long) SWIG_AsLong(obj4); |
15010 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15011 | } |
d14a1e28 RD |
15012 | if (obj5) { |
15013 | { | |
15014 | arg6 = wxString_in_helper(obj5); | |
15015 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15016 | temp6 = True; |
d14a1e28 RD |
15017 | } |
15018 | } | |
15019 | { | |
e3b71cb8 | 15020 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15022 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15023 | ||
15024 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15025 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15026 | } |
15027 | { | |
412d302d | 15028 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
15029 | } |
15030 | { | |
15031 | if (temp6) | |
15032 | delete arg6; | |
15033 | } | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | { | |
15037 | if (temp6) | |
15038 | delete arg6; | |
15039 | } | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj; | |
15046 | wxNotebook *result; | |
15047 | char *kwnames[] = { | |
15048 | NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15052 | { | |
e3b71cb8 | 15053 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15055 | result = (wxNotebook *)new wxNotebook(); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15058 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15059 | } |
15060 | { | |
412d302d | 15061 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
15062 | } |
15063 | return resultobj; | |
15064 | fail: | |
15065 | return NULL; | |
15066 | } | |
15067 | ||
15068 | ||
15069 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15070 | PyObject *resultobj; | |
15071 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15073 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15074 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15075 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15076 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15077 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15078 | long arg6 = (long) 0 ; | |
15079 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15080 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15081 | bool result; | |
15082 | wxPoint temp4 ; | |
15083 | wxSize temp5 ; | |
e811c8ce | 15084 | bool temp7 = False ; |
d14a1e28 RD |
15085 | PyObject * obj0 = 0 ; |
15086 | PyObject * obj1 = 0 ; | |
994141e6 | 15087 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15088 | PyObject * obj3 = 0 ; |
15089 | PyObject * obj4 = 0 ; | |
994141e6 | 15090 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15091 | PyObject * obj6 = 0 ; |
15092 | char *kwnames[] = { | |
15093 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15094 | }; | |
15095 | ||
248ed943 | 15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15101 | if (obj2) { |
15102 | arg3 = (int) SWIG_AsInt(obj2); | |
15103 | if (PyErr_Occurred()) SWIG_fail; | |
15104 | } | |
d14a1e28 RD |
15105 | if (obj3) { |
15106 | { | |
15107 | arg4 = &temp4; | |
15108 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15109 | } | |
15110 | } | |
15111 | if (obj4) { | |
15112 | { | |
15113 | arg5 = &temp5; | |
15114 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15115 | } | |
15116 | } | |
994141e6 | 15117 | if (obj5) { |
15afbcd0 RD |
15118 | arg6 = (long) SWIG_AsLong(obj5); |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15120 | } |
d14a1e28 RD |
15121 | if (obj6) { |
15122 | { | |
15123 | arg7 = wxString_in_helper(obj6); | |
15124 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15125 | temp7 = True; |
d14a1e28 RD |
15126 | } |
15127 | } | |
15128 | { | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15131 | ||
15132 | wxPyEndAllowThreads(__tstate); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
15134 | } | |
4f89f6a3 RD |
15135 | { |
15136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15137 | } | |
d14a1e28 RD |
15138 | { |
15139 | if (temp7) | |
15140 | delete arg7; | |
15141 | } | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | { | |
15145 | if (temp7) | |
15146 | delete arg7; | |
15147 | } | |
15148 | return NULL; | |
15149 | } | |
15150 | ||
15151 | ||
15152 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15153 | PyObject *resultobj; | |
15154 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15155 | int result; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "self", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15164 | { |
15165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15166 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15167 | ||
15168 | wxPyEndAllowThreads(__tstate); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
15afbcd0 | 15171 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15172 | return resultobj; |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
15178 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15179 | PyObject *resultobj; | |
15180 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15181 | wxSize *arg2 = 0 ; | |
15182 | wxSize temp2 ; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | PyObject * obj1 = 0 ; | |
15185 | char *kwnames[] = { | |
15186 | (char *) "self",(char *) "padding", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15192 | { |
15193 | arg2 = &temp2; | |
15194 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15195 | } | |
15196 | { | |
15197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15198 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15199 | ||
15200 | wxPyEndAllowThreads(__tstate); | |
15201 | if (PyErr_Occurred()) SWIG_fail; | |
15202 | } | |
15203 | Py_INCREF(Py_None); resultobj = Py_None; | |
15204 | return resultobj; | |
15205 | fail: | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj; | |
15212 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15213 | wxSize *arg2 = 0 ; | |
15214 | wxSize temp2 ; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | PyObject * obj1 = 0 ; | |
15217 | char *kwnames[] = { | |
15218 | (char *) "self",(char *) "sz", NULL | |
15219 | }; | |
15220 | ||
15221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15224 | { |
15225 | arg2 = &temp2; | |
15226 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15227 | } | |
15228 | { | |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | Py_INCREF(Py_None); resultobj = Py_None; | |
15236 | return resultobj; | |
15237 | fail: | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
15242 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15245 | wxPoint *arg2 = 0 ; | |
15246 | long *arg3 = (long *) 0 ; | |
15247 | int result; | |
15248 | wxPoint temp2 ; | |
15249 | long temp3 ; | |
15250 | PyObject * obj0 = 0 ; | |
15251 | PyObject * obj1 = 0 ; | |
15252 | char *kwnames[] = { | |
15253 | (char *) "self",(char *) "pt", NULL | |
15254 | }; | |
15255 | ||
15256 | arg3 = &temp3; | |
15257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15260 | { |
15261 | arg2 = &temp2; | |
15262 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15263 | } | |
15264 | { | |
15265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15266 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15267 | ||
15268 | wxPyEndAllowThreads(__tstate); | |
15269 | if (PyErr_Occurred()) SWIG_fail; | |
15270 | } | |
15afbcd0 | 15271 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15272 | { |
15273 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15274 | resultobj = t_output_helper(resultobj,o); | |
15275 | } | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15285 | wxSize *arg2 = 0 ; | |
15286 | wxSize result; | |
15287 | wxSize temp2 ; | |
15288 | PyObject * obj0 = 0 ; | |
15289 | PyObject * obj1 = 0 ; | |
15290 | char *kwnames[] = { | |
15291 | (char *) "self",(char *) "sizePage", NULL | |
15292 | }; | |
15293 | ||
15294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15297 | { |
15298 | arg2 = &temp2; | |
15299 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15300 | } | |
15301 | { | |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15304 | ||
15305 | wxPyEndAllowThreads(__tstate); | |
15306 | if (PyErr_Occurred()) SWIG_fail; | |
15307 | } | |
15308 | { | |
15309 | wxSize * resultptr; | |
15310 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15312 | } |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
22bfe96c RD |
15319 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15320 | PyObject *resultobj; | |
15321 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15322 | wxVisualAttributes result; | |
15323 | PyObject * obj0 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "variant", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15329 | if (obj0) { | |
15330 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | } | |
15333 | { | |
110da5b0 | 15334 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15336 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15337 | ||
15338 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15339 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15340 | } |
15341 | { | |
15342 | wxVisualAttributes * resultptr; | |
15343 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15344 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15345 | } | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
d14a1e28 RD |
15352 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15353 | PyObject *obj; | |
15354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15355 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15356 | Py_INCREF(obj); | |
15357 | return Py_BuildValue((char *)""); | |
15358 | } | |
15359 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15362 | int arg2 = (int) 0 ; | |
15363 | int arg3 = (int) -1 ; | |
15364 | int arg4 = (int) -1 ; | |
15365 | wxNotebookEvent *result; | |
994141e6 RD |
15366 | PyObject * obj0 = 0 ; |
15367 | PyObject * obj1 = 0 ; | |
15368 | PyObject * obj2 = 0 ; | |
15369 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15370 | char *kwnames[] = { |
15371 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15372 | }; | |
15373 | ||
994141e6 RD |
15374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15375 | if (obj0) { | |
15afbcd0 RD |
15376 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15378 | } |
15379 | if (obj1) { | |
15afbcd0 RD |
15380 | arg2 = (int) SWIG_AsInt(obj1); |
15381 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15382 | } |
15383 | if (obj2) { | |
15afbcd0 RD |
15384 | arg3 = (int) SWIG_AsInt(obj2); |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15386 | } |
15387 | if (obj3) { | |
15afbcd0 RD |
15388 | arg4 = (int) SWIG_AsInt(obj3); |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15390 | } |
d14a1e28 RD |
15391 | { |
15392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15393 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15394 | ||
15395 | wxPyEndAllowThreads(__tstate); | |
15396 | if (PyErr_Occurred()) SWIG_fail; | |
15397 | } | |
15afbcd0 | 15398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15399 | return resultobj; |
15400 | fail: | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
15405 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15406 | PyObject *obj; | |
15407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15408 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15409 | Py_INCREF(obj); | |
15410 | return Py_BuildValue((char *)""); | |
15411 | } | |
15412 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15413 | PyObject *resultobj; | |
15414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15415 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15416 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15417 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15418 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15419 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15420 | long arg5 = (long) 0 ; | |
15421 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15422 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15423 | wxListbook *result; | |
15424 | wxPoint temp3 ; | |
15425 | wxSize temp4 ; | |
e811c8ce | 15426 | bool temp6 = False ; |
d14a1e28 | 15427 | PyObject * obj0 = 0 ; |
994141e6 | 15428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15429 | PyObject * obj2 = 0 ; |
15430 | PyObject * obj3 = 0 ; | |
994141e6 | 15431 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15432 | PyObject * obj5 = 0 ; |
15433 | char *kwnames[] = { | |
15434 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15435 | }; | |
15436 | ||
4f89f6a3 | 15437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
15440 | if (obj1) { |
15441 | arg2 = (int) SWIG_AsInt(obj1); | |
15442 | if (PyErr_Occurred()) SWIG_fail; | |
15443 | } | |
d14a1e28 RD |
15444 | if (obj2) { |
15445 | { | |
15446 | arg3 = &temp3; | |
15447 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15448 | } | |
15449 | } | |
15450 | if (obj3) { | |
15451 | { | |
15452 | arg4 = &temp4; | |
15453 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15454 | } | |
15455 | } | |
994141e6 | 15456 | if (obj4) { |
15afbcd0 RD |
15457 | arg5 = (long) SWIG_AsLong(obj4); |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15459 | } |
d14a1e28 RD |
15460 | if (obj5) { |
15461 | { | |
15462 | arg6 = wxString_in_helper(obj5); | |
15463 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15464 | temp6 = True; |
d14a1e28 RD |
15465 | } |
15466 | } | |
15467 | { | |
e3b71cb8 | 15468 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15470 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15471 | ||
15472 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15473 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15474 | } |
15afbcd0 | 15475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15476 | { |
15477 | if (temp6) | |
15478 | delete arg6; | |
15479 | } | |
15480 | return resultobj; | |
15481 | fail: | |
15482 | { | |
15483 | if (temp6) | |
15484 | delete arg6; | |
15485 | } | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxListbook *result; | |
15493 | char *kwnames[] = { | |
15494 | NULL | |
15495 | }; | |
15496 | ||
15497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15498 | { | |
e3b71cb8 | 15499 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15501 | result = (wxListbook *)new wxListbook(); | |
15502 | ||
15503 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15504 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15505 | } |
15afbcd0 | 15506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15507 | return resultobj; |
15508 | fail: | |
15509 | return NULL; | |
15510 | } | |
15511 | ||
15512 | ||
15513 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15514 | PyObject *resultobj; | |
15515 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15516 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15517 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15518 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15519 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15520 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15521 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15522 | long arg6 = (long) 0 ; | |
15523 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15524 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15525 | bool result; | |
15526 | wxPoint temp4 ; | |
15527 | wxSize temp5 ; | |
e811c8ce | 15528 | bool temp7 = False ; |
d14a1e28 RD |
15529 | PyObject * obj0 = 0 ; |
15530 | PyObject * obj1 = 0 ; | |
994141e6 | 15531 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15532 | PyObject * obj3 = 0 ; |
15533 | PyObject * obj4 = 0 ; | |
994141e6 | 15534 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15535 | PyObject * obj6 = 0 ; |
15536 | char *kwnames[] = { | |
15537 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15538 | }; | |
15539 | ||
248ed943 | 15540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15543 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15545 | if (obj2) { |
15546 | arg3 = (int) SWIG_AsInt(obj2); | |
15547 | if (PyErr_Occurred()) SWIG_fail; | |
15548 | } | |
d14a1e28 RD |
15549 | if (obj3) { |
15550 | { | |
15551 | arg4 = &temp4; | |
15552 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15553 | } | |
15554 | } | |
15555 | if (obj4) { | |
15556 | { | |
15557 | arg5 = &temp5; | |
15558 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15559 | } | |
15560 | } | |
994141e6 | 15561 | if (obj5) { |
15afbcd0 RD |
15562 | arg6 = (long) SWIG_AsLong(obj5); |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15564 | } |
d14a1e28 RD |
15565 | if (obj6) { |
15566 | { | |
15567 | arg7 = wxString_in_helper(obj6); | |
15568 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15569 | temp7 = True; |
d14a1e28 RD |
15570 | } |
15571 | } | |
15572 | { | |
15573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15574 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15575 | ||
15576 | wxPyEndAllowThreads(__tstate); | |
15577 | if (PyErr_Occurred()) SWIG_fail; | |
15578 | } | |
4f89f6a3 RD |
15579 | { |
15580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15581 | } | |
d14a1e28 RD |
15582 | { |
15583 | if (temp7) | |
15584 | delete arg7; | |
15585 | } | |
15586 | return resultobj; | |
15587 | fail: | |
15588 | { | |
15589 | if (temp7) | |
15590 | delete arg7; | |
15591 | } | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15599 | bool result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | char *kwnames[] = { | |
15602 | (char *) "self", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15608 | { |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
4f89f6a3 RD |
15615 | { |
15616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15617 | } | |
d14a1e28 RD |
15618 | return resultobj; |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15625 | PyObject *obj; | |
15626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15627 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15628 | Py_INCREF(obj); | |
15629 | return Py_BuildValue((char *)""); | |
15630 | } | |
15631 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15632 | PyObject *resultobj; | |
15633 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15634 | int arg2 = (int) 0 ; | |
15635 | int arg3 = (int) -1 ; | |
15636 | int arg4 = (int) -1 ; | |
15637 | wxListbookEvent *result; | |
994141e6 RD |
15638 | PyObject * obj0 = 0 ; |
15639 | PyObject * obj1 = 0 ; | |
15640 | PyObject * obj2 = 0 ; | |
15641 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15642 | char *kwnames[] = { |
15643 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15644 | }; | |
15645 | ||
994141e6 RD |
15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15647 | if (obj0) { | |
15afbcd0 RD |
15648 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15650 | } |
15651 | if (obj1) { | |
15afbcd0 RD |
15652 | arg2 = (int) SWIG_AsInt(obj1); |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15654 | } |
15655 | if (obj2) { | |
15afbcd0 RD |
15656 | arg3 = (int) SWIG_AsInt(obj2); |
15657 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15658 | } |
15659 | if (obj3) { | |
15afbcd0 RD |
15660 | arg4 = (int) SWIG_AsInt(obj3); |
15661 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15662 | } |
d14a1e28 RD |
15663 | { |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15666 | ||
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15afbcd0 | 15670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15671 | return resultobj; |
15672 | fail: | |
15673 | return NULL; | |
15674 | } | |
15675 | ||
15676 | ||
15677 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15678 | PyObject *obj; | |
15679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15680 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15681 | Py_INCREF(obj); | |
15682 | return Py_BuildValue((char *)""); | |
15683 | } | |
15684 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15685 | PyObject *resultobj; | |
15686 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15687 | wxBookCtrlSizer *result; | |
15688 | PyObject * obj0 = 0 ; | |
15689 | char *kwnames[] = { | |
15690 | (char *) "nb", NULL | |
15691 | }; | |
15692 | ||
15693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
15695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15696 | { |
15697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15698 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15699 | ||
15700 | wxPyEndAllowThreads(__tstate); | |
15701 | if (PyErr_Occurred()) SWIG_fail; | |
15702 | } | |
15afbcd0 | 15703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
15704 | return resultobj; |
15705 | fail: | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
15710 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15711 | PyObject *resultobj; | |
15712 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self", NULL | |
15716 | }; | |
15717 | ||
15718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15721 | { |
15722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15723 | (arg1)->RecalcSizes(); | |
15724 | ||
15725 | wxPyEndAllowThreads(__tstate); | |
15726 | if (PyErr_Occurred()) SWIG_fail; | |
15727 | } | |
15728 | Py_INCREF(Py_None); resultobj = Py_None; | |
15729 | return resultobj; | |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
15735 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15736 | PyObject *resultobj; | |
15737 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15738 | wxSize result; | |
15739 | PyObject * obj0 = 0 ; | |
15740 | char *kwnames[] = { | |
15741 | (char *) "self", NULL | |
15742 | }; | |
15743 | ||
15744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15747 | { |
15748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15749 | result = (arg1)->CalcMin(); | |
15750 | ||
15751 | wxPyEndAllowThreads(__tstate); | |
15752 | if (PyErr_Occurred()) SWIG_fail; | |
15753 | } | |
15754 | { | |
15755 | wxSize * resultptr; | |
15756 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15757 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15758 | } |
15759 | return resultobj; | |
15760 | fail: | |
15761 | return NULL; | |
15762 | } | |
15763 | ||
15764 | ||
15765 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15766 | PyObject *resultobj; | |
15767 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15768 | wxBookCtrl *result; | |
15769 | PyObject * obj0 = 0 ; | |
15770 | char *kwnames[] = { | |
15771 | (char *) "self", NULL | |
15772 | }; | |
15773 | ||
15774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15777 | { |
15778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15779 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15780 | ||
15781 | wxPyEndAllowThreads(__tstate); | |
15782 | if (PyErr_Occurred()) SWIG_fail; | |
15783 | } | |
15afbcd0 | 15784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15785 | return resultobj; |
15786 | fail: | |
15787 | return NULL; | |
15788 | } | |
15789 | ||
15790 | ||
15791 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15792 | PyObject *obj; | |
15793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15794 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15795 | Py_INCREF(obj); | |
15796 | return Py_BuildValue((char *)""); | |
15797 | } | |
15798 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15799 | PyObject *resultobj; | |
15800 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15801 | wxNotebookSizer *result; | |
15802 | PyObject * obj0 = 0 ; | |
15803 | char *kwnames[] = { | |
15804 | (char *) "nb", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15afbcd0 | 15817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15818 | return resultobj; |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
15824 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15825 | PyObject *resultobj; | |
15826 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15827 | PyObject * obj0 = 0 ; | |
15828 | char *kwnames[] = { | |
15829 | (char *) "self", NULL | |
15830 | }; | |
15831 | ||
15832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15835 | { |
15836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15837 | (arg1)->RecalcSizes(); | |
15838 | ||
15839 | wxPyEndAllowThreads(__tstate); | |
15840 | if (PyErr_Occurred()) SWIG_fail; | |
15841 | } | |
15842 | Py_INCREF(Py_None); resultobj = Py_None; | |
15843 | return resultobj; | |
15844 | fail: | |
15845 | return NULL; | |
15846 | } | |
15847 | ||
15848 | ||
15849 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15850 | PyObject *resultobj; | |
15851 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15852 | wxSize result; | |
15853 | PyObject * obj0 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15861 | { |
15862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15863 | result = (arg1)->CalcMin(); | |
15864 | ||
15865 | wxPyEndAllowThreads(__tstate); | |
15866 | if (PyErr_Occurred()) SWIG_fail; | |
15867 | } | |
15868 | { | |
15869 | wxSize * resultptr; | |
15870 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15871 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15872 | } |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15880 | PyObject *resultobj; | |
15881 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15882 | wxNotebook *result; | |
15883 | PyObject * obj0 = 0 ; | |
15884 | char *kwnames[] = { | |
15885 | (char *) "self", NULL | |
15886 | }; | |
15887 | ||
15888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15891 | { |
15892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15893 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15894 | ||
15895 | wxPyEndAllowThreads(__tstate); | |
15896 | if (PyErr_Occurred()) SWIG_fail; | |
15897 | } | |
15898 | { | |
412d302d | 15899 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15900 | } |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15908 | PyObject *obj; | |
15909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15910 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15911 | Py_INCREF(obj); | |
15912 | return Py_BuildValue((char *)""); | |
15913 | } | |
15914 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15917 | int result; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | char *kwnames[] = { | |
15920 | (char *) "self", NULL | |
15921 | }; | |
15922 | ||
15923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15926 | { |
15927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15928 | result = (int)(arg1)->GetId(); | |
15929 | ||
15930 | wxPyEndAllowThreads(__tstate); | |
15931 | if (PyErr_Occurred()) SWIG_fail; | |
15932 | } | |
15afbcd0 | 15933 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15934 | return resultobj; |
15935 | fail: | |
15936 | return NULL; | |
15937 | } | |
15938 | ||
15939 | ||
15940 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15941 | PyObject *resultobj; | |
15942 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15943 | wxControl *result; | |
15944 | PyObject * obj0 = 0 ; | |
15945 | char *kwnames[] = { | |
15946 | (char *) "self", NULL | |
15947 | }; | |
15948 | ||
15949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15952 | { |
15953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15954 | result = (wxControl *)(arg1)->GetControl(); | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | { | |
412d302d | 15960 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15961 | } |
15962 | return resultobj; | |
15963 | fail: | |
15964 | return NULL; | |
15965 | } | |
15966 | ||
15967 | ||
15968 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15969 | PyObject *resultobj; | |
15970 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15971 | wxToolBarBase *result; | |
15972 | PyObject * obj0 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15980 | { |
15981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15982 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15983 | ||
15984 | wxPyEndAllowThreads(__tstate); | |
15985 | if (PyErr_Occurred()) SWIG_fail; | |
15986 | } | |
15987 | { | |
412d302d | 15988 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15989 | } |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
15996 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15997 | PyObject *resultobj; | |
15998 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15999 | int result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16008 | { |
16009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16010 | result = (int)(arg1)->IsButton(); | |
16011 | ||
16012 | wxPyEndAllowThreads(__tstate); | |
16013 | if (PyErr_Occurred()) SWIG_fail; | |
16014 | } | |
15afbcd0 | 16015 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16016 | return resultobj; |
16017 | fail: | |
16018 | return NULL; | |
16019 | } | |
16020 | ||
16021 | ||
16022 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16023 | PyObject *resultobj; | |
16024 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16025 | int result; | |
16026 | PyObject * obj0 = 0 ; | |
16027 | char *kwnames[] = { | |
16028 | (char *) "self", NULL | |
16029 | }; | |
16030 | ||
16031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16034 | { |
16035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16036 | result = (int)(arg1)->IsControl(); | |
16037 | ||
16038 | wxPyEndAllowThreads(__tstate); | |
16039 | if (PyErr_Occurred()) SWIG_fail; | |
16040 | } | |
15afbcd0 | 16041 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16042 | return resultobj; |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16051 | int result; | |
16052 | PyObject * obj0 = 0 ; | |
16053 | char *kwnames[] = { | |
16054 | (char *) "self", NULL | |
16055 | }; | |
16056 | ||
16057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16060 | { |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16062 | result = (int)(arg1)->IsSeparator(); | |
16063 | ||
16064 | wxPyEndAllowThreads(__tstate); | |
16065 | if (PyErr_Occurred()) SWIG_fail; | |
16066 | } | |
15afbcd0 | 16067 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16068 | return resultobj; |
16069 | fail: | |
16070 | return NULL; | |
16071 | } | |
16072 | ||
16073 | ||
16074 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16075 | PyObject *resultobj; | |
16076 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16077 | int result; | |
16078 | PyObject * obj0 = 0 ; | |
16079 | char *kwnames[] = { | |
16080 | (char *) "self", NULL | |
16081 | }; | |
16082 | ||
16083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16086 | { |
16087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16088 | result = (int)(arg1)->GetStyle(); | |
16089 | ||
16090 | wxPyEndAllowThreads(__tstate); | |
16091 | if (PyErr_Occurred()) SWIG_fail; | |
16092 | } | |
15afbcd0 | 16093 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16094 | return resultobj; |
16095 | fail: | |
16096 | return NULL; | |
16097 | } | |
16098 | ||
16099 | ||
16100 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16101 | PyObject *resultobj; | |
16102 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16103 | int result; | |
16104 | PyObject * obj0 = 0 ; | |
16105 | char *kwnames[] = { | |
16106 | (char *) "self", NULL | |
16107 | }; | |
16108 | ||
16109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16112 | { |
16113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16114 | result = (int)(arg1)->GetKind(); | |
16115 | ||
16116 | wxPyEndAllowThreads(__tstate); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | } | |
15afbcd0 | 16119 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16120 | return resultobj; |
16121 | fail: | |
16122 | return NULL; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16127 | PyObject *resultobj; | |
16128 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16129 | bool result; | |
16130 | PyObject * obj0 = 0 ; | |
16131 | char *kwnames[] = { | |
16132 | (char *) "self", NULL | |
16133 | }; | |
16134 | ||
16135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16138 | { |
16139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16140 | result = (bool)(arg1)->IsEnabled(); | |
16141 | ||
16142 | wxPyEndAllowThreads(__tstate); | |
16143 | if (PyErr_Occurred()) SWIG_fail; | |
16144 | } | |
4f89f6a3 RD |
16145 | { |
16146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16147 | } | |
d14a1e28 RD |
16148 | return resultobj; |
16149 | fail: | |
16150 | return NULL; | |
16151 | } | |
16152 | ||
16153 | ||
16154 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16155 | PyObject *resultobj; | |
16156 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16157 | bool result; | |
16158 | PyObject * obj0 = 0 ; | |
16159 | char *kwnames[] = { | |
16160 | (char *) "self", NULL | |
16161 | }; | |
16162 | ||
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16166 | { |
16167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16168 | result = (bool)(arg1)->IsToggled(); | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
4f89f6a3 RD |
16173 | { |
16174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16175 | } | |
d14a1e28 RD |
16176 | return resultobj; |
16177 | fail: | |
16178 | return NULL; | |
16179 | } | |
16180 | ||
16181 | ||
16182 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16183 | PyObject *resultobj; | |
16184 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16185 | bool result; | |
16186 | PyObject * obj0 = 0 ; | |
16187 | char *kwnames[] = { | |
16188 | (char *) "self", NULL | |
16189 | }; | |
16190 | ||
16191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16194 | { |
16195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16196 | result = (bool)(arg1)->CanBeToggled(); | |
16197 | ||
16198 | wxPyEndAllowThreads(__tstate); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
4f89f6a3 RD |
16201 | { |
16202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16203 | } | |
d14a1e28 RD |
16204 | return resultobj; |
16205 | fail: | |
16206 | return NULL; | |
16207 | } | |
16208 | ||
16209 | ||
16210 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16211 | PyObject *resultobj; | |
16212 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16213 | wxBitmap *result; | |
16214 | PyObject * obj0 = 0 ; | |
16215 | char *kwnames[] = { | |
16216 | (char *) "self", NULL | |
16217 | }; | |
16218 | ||
16219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16222 | { |
16223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16224 | { | |
16225 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16226 | result = (wxBitmap *) &_result_ref; | |
16227 | } | |
16228 | ||
16229 | wxPyEndAllowThreads(__tstate); | |
16230 | if (PyErr_Occurred()) SWIG_fail; | |
16231 | } | |
4276dc52 RD |
16232 | { |
16233 | wxBitmap* resultptr = new wxBitmap(*result); | |
16234 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16235 | } | |
d14a1e28 RD |
16236 | return resultobj; |
16237 | fail: | |
16238 | return NULL; | |
16239 | } | |
16240 | ||
16241 | ||
16242 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16243 | PyObject *resultobj; | |
16244 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16245 | wxBitmap *result; | |
16246 | PyObject * obj0 = 0 ; | |
16247 | char *kwnames[] = { | |
16248 | (char *) "self", NULL | |
16249 | }; | |
16250 | ||
16251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16254 | { |
16255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16256 | { | |
16257 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16258 | result = (wxBitmap *) &_result_ref; | |
16259 | } | |
16260 | ||
16261 | wxPyEndAllowThreads(__tstate); | |
16262 | if (PyErr_Occurred()) SWIG_fail; | |
16263 | } | |
4276dc52 RD |
16264 | { |
16265 | wxBitmap* resultptr = new wxBitmap(*result); | |
16266 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16267 | } | |
d14a1e28 RD |
16268 | return resultobj; |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
16276 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16277 | wxBitmap result; | |
16278 | PyObject * obj0 = 0 ; | |
16279 | char *kwnames[] = { | |
16280 | (char *) "self", NULL | |
16281 | }; | |
16282 | ||
16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16286 | { |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = (arg1)->GetBitmap(); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | { | |
16294 | wxBitmap * resultptr; | |
16295 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16297 | } |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
16304 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16305 | PyObject *resultobj; | |
16306 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16307 | wxString result; | |
16308 | PyObject * obj0 = 0 ; | |
16309 | char *kwnames[] = { | |
16310 | (char *) "self", NULL | |
16311 | }; | |
16312 | ||
16313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16316 | { |
16317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16318 | result = (arg1)->GetLabel(); | |
16319 | ||
16320 | wxPyEndAllowThreads(__tstate); | |
16321 | if (PyErr_Occurred()) SWIG_fail; | |
16322 | } | |
16323 | { | |
16324 | #if wxUSE_UNICODE | |
16325 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16326 | #else | |
16327 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16328 | #endif | |
16329 | } | |
16330 | return resultobj; | |
16331 | fail: | |
16332 | return NULL; | |
16333 | } | |
16334 | ||
16335 | ||
16336 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16337 | PyObject *resultobj; | |
16338 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16339 | wxString result; | |
16340 | PyObject * obj0 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16348 | { |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | result = (arg1)->GetShortHelp(); | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | { | |
16356 | #if wxUSE_UNICODE | |
16357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16358 | #else | |
16359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16360 | #endif | |
16361 | } | |
16362 | return resultobj; | |
16363 | fail: | |
16364 | return NULL; | |
16365 | } | |
16366 | ||
16367 | ||
16368 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16369 | PyObject *resultobj; | |
16370 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16371 | wxString result; | |
16372 | PyObject * obj0 = 0 ; | |
16373 | char *kwnames[] = { | |
16374 | (char *) "self", NULL | |
16375 | }; | |
16376 | ||
16377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16380 | { |
16381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16382 | result = (arg1)->GetLongHelp(); | |
16383 | ||
16384 | wxPyEndAllowThreads(__tstate); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
16387 | { | |
16388 | #if wxUSE_UNICODE | |
16389 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16390 | #else | |
16391 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16392 | #endif | |
16393 | } | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | return NULL; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16401 | PyObject *resultobj; | |
16402 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16403 | bool arg2 ; | |
16404 | bool result; | |
16405 | PyObject * obj0 = 0 ; | |
16406 | PyObject * obj1 = 0 ; | |
16407 | char *kwnames[] = { | |
16408 | (char *) "self",(char *) "enable", NULL | |
16409 | }; | |
16410 | ||
16411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16414 | arg2 = (bool) SWIG_AsBool(obj1); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16416 | { |
16417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16418 | result = (bool)(arg1)->Enable(arg2); | |
16419 | ||
16420 | wxPyEndAllowThreads(__tstate); | |
16421 | if (PyErr_Occurred()) SWIG_fail; | |
16422 | } | |
4f89f6a3 RD |
16423 | { |
16424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16425 | } | |
d14a1e28 RD |
16426 | return resultobj; |
16427 | fail: | |
16428 | return NULL; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16433 | PyObject *resultobj; | |
16434 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16435 | PyObject * obj0 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "self", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16443 | { |
16444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16445 | (arg1)->Toggle(); | |
16446 | ||
16447 | wxPyEndAllowThreads(__tstate); | |
16448 | if (PyErr_Occurred()) SWIG_fail; | |
16449 | } | |
16450 | Py_INCREF(Py_None); resultobj = Py_None; | |
16451 | return resultobj; | |
16452 | fail: | |
16453 | return NULL; | |
16454 | } | |
16455 | ||
16456 | ||
16457 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16458 | PyObject *resultobj; | |
16459 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16460 | bool arg2 ; | |
16461 | bool result; | |
16462 | PyObject * obj0 = 0 ; | |
16463 | PyObject * obj1 = 0 ; | |
16464 | char *kwnames[] = { | |
16465 | (char *) "self",(char *) "toggle", NULL | |
16466 | }; | |
16467 | ||
16468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16471 | arg2 = (bool) SWIG_AsBool(obj1); | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16473 | { |
16474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16475 | result = (bool)(arg1)->SetToggle(arg2); | |
16476 | ||
16477 | wxPyEndAllowThreads(__tstate); | |
16478 | if (PyErr_Occurred()) SWIG_fail; | |
16479 | } | |
4f89f6a3 RD |
16480 | { |
16481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16482 | } | |
d14a1e28 RD |
16483 | return resultobj; |
16484 | fail: | |
16485 | return NULL; | |
16486 | } | |
16487 | ||
16488 | ||
16489 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16490 | PyObject *resultobj; | |
16491 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16492 | wxString *arg2 = 0 ; | |
16493 | bool result; | |
e811c8ce | 16494 | bool temp2 = False ; |
d14a1e28 RD |
16495 | PyObject * obj0 = 0 ; |
16496 | PyObject * obj1 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "self",(char *) "help", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16504 | { |
16505 | arg2 = wxString_in_helper(obj1); | |
16506 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16507 | temp2 = True; |
d14a1e28 RD |
16508 | } |
16509 | { | |
16510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16511 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16512 | ||
16513 | wxPyEndAllowThreads(__tstate); | |
16514 | if (PyErr_Occurred()) SWIG_fail; | |
16515 | } | |
4f89f6a3 RD |
16516 | { |
16517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16518 | } | |
d14a1e28 RD |
16519 | { |
16520 | if (temp2) | |
16521 | delete arg2; | |
16522 | } | |
16523 | return resultobj; | |
16524 | fail: | |
16525 | { | |
16526 | if (temp2) | |
16527 | delete arg2; | |
16528 | } | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
16533 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16534 | PyObject *resultobj; | |
16535 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16536 | wxString *arg2 = 0 ; | |
16537 | bool result; | |
e811c8ce | 16538 | bool temp2 = False ; |
d14a1e28 RD |
16539 | PyObject * obj0 = 0 ; |
16540 | PyObject * obj1 = 0 ; | |
16541 | char *kwnames[] = { | |
16542 | (char *) "self",(char *) "help", NULL | |
16543 | }; | |
16544 | ||
16545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16548 | { |
16549 | arg2 = wxString_in_helper(obj1); | |
16550 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16551 | temp2 = True; |
d14a1e28 RD |
16552 | } |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
4f89f6a3 RD |
16560 | { |
16561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16562 | } | |
d14a1e28 RD |
16563 | { |
16564 | if (temp2) | |
16565 | delete arg2; | |
16566 | } | |
16567 | return resultobj; | |
16568 | fail: | |
16569 | { | |
16570 | if (temp2) | |
16571 | delete arg2; | |
16572 | } | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
16577 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16578 | PyObject *resultobj; | |
16579 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16580 | wxBitmap *arg2 = 0 ; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | PyObject * obj1 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self",(char *) "bmp", NULL | |
16585 | }; | |
16586 | ||
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16591 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16592 | SWIG_fail; | |
d14a1e28 | 16593 | if (arg2 == NULL) { |
15afbcd0 RD |
16594 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16595 | SWIG_fail; | |
d14a1e28 RD |
16596 | } |
16597 | { | |
16598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16599 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16600 | ||
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
16604 | Py_INCREF(Py_None); resultobj = Py_None; | |
16605 | return resultobj; | |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
16611 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16612 | PyObject *resultobj; | |
16613 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16614 | wxBitmap *arg2 = 0 ; | |
16615 | PyObject * obj0 = 0 ; | |
16616 | PyObject * obj1 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self",(char *) "bmp", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16624 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16625 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16626 | SWIG_fail; | |
d14a1e28 | 16627 | if (arg2 == NULL) { |
15afbcd0 RD |
16628 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16629 | SWIG_fail; | |
d14a1e28 RD |
16630 | } |
16631 | { | |
16632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16633 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16634 | ||
16635 | wxPyEndAllowThreads(__tstate); | |
16636 | if (PyErr_Occurred()) SWIG_fail; | |
16637 | } | |
16638 | Py_INCREF(Py_None); resultobj = Py_None; | |
16639 | return resultobj; | |
16640 | fail: | |
16641 | return NULL; | |
16642 | } | |
16643 | ||
16644 | ||
16645 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16646 | PyObject *resultobj; | |
16647 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16648 | wxString *arg2 = 0 ; | |
e811c8ce | 16649 | bool temp2 = False ; |
d14a1e28 RD |
16650 | PyObject * obj0 = 0 ; |
16651 | PyObject * obj1 = 0 ; | |
16652 | char *kwnames[] = { | |
16653 | (char *) "self",(char *) "label", NULL | |
16654 | }; | |
16655 | ||
16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16659 | { |
16660 | arg2 = wxString_in_helper(obj1); | |
16661 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16662 | temp2 = True; |
d14a1e28 RD |
16663 | } |
16664 | { | |
16665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16666 | (arg1)->SetLabel((wxString const &)*arg2); | |
16667 | ||
16668 | wxPyEndAllowThreads(__tstate); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | } | |
16671 | Py_INCREF(Py_None); resultobj = Py_None; | |
16672 | { | |
16673 | if (temp2) | |
16674 | delete arg2; | |
16675 | } | |
16676 | return resultobj; | |
16677 | fail: | |
16678 | { | |
16679 | if (temp2) | |
16680 | delete arg2; | |
16681 | } | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16689 | PyObject * obj0 = 0 ; | |
16690 | char *kwnames[] = { | |
16691 | (char *) "self", NULL | |
16692 | }; | |
16693 | ||
16694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16697 | { |
16698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16699 | (arg1)->Detach(); | |
16700 | ||
16701 | wxPyEndAllowThreads(__tstate); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | } | |
16704 | Py_INCREF(Py_None); resultobj = Py_None; | |
16705 | return resultobj; | |
16706 | fail: | |
16707 | return NULL; | |
16708 | } | |
16709 | ||
16710 | ||
16711 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16712 | PyObject *resultobj; | |
16713 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16714 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16715 | PyObject * obj0 = 0 ; | |
16716 | PyObject * obj1 = 0 ; | |
16717 | char *kwnames[] = { | |
16718 | (char *) "self",(char *) "tbar", NULL | |
16719 | }; | |
16720 | ||
16721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16726 | { |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | (arg1)->Attach(arg2); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | Py_INCREF(Py_None); resultobj = Py_None; | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj; | |
16742 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16743 | PyObject *result; | |
16744 | PyObject * obj0 = 0 ; | |
16745 | char *kwnames[] = { | |
16746 | (char *) "self", NULL | |
16747 | }; | |
16748 | ||
16749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16752 | { |
16753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16754 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16755 | ||
16756 | wxPyEndAllowThreads(__tstate); | |
16757 | if (PyErr_Occurred()) SWIG_fail; | |
16758 | } | |
16759 | resultobj = result; | |
16760 | return resultobj; | |
16761 | fail: | |
16762 | return NULL; | |
16763 | } | |
16764 | ||
16765 | ||
16766 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16767 | PyObject *resultobj; | |
16768 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16769 | PyObject *arg2 = (PyObject *) 0 ; | |
16770 | PyObject * obj0 = 0 ; | |
16771 | PyObject * obj1 = 0 ; | |
16772 | char *kwnames[] = { | |
16773 | (char *) "self",(char *) "clientData", NULL | |
16774 | }; | |
16775 | ||
16776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16779 | arg2 = obj1; |
16780 | { | |
16781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16782 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16783 | ||
16784 | wxPyEndAllowThreads(__tstate); | |
16785 | if (PyErr_Occurred()) SWIG_fail; | |
16786 | } | |
16787 | Py_INCREF(Py_None); resultobj = Py_None; | |
16788 | return resultobj; | |
16789 | fail: | |
16790 | return NULL; | |
16791 | } | |
16792 | ||
16793 | ||
16794 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16795 | PyObject *obj; | |
16796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16797 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16798 | Py_INCREF(obj); | |
16799 | return Py_BuildValue((char *)""); | |
16800 | } | |
16801 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16802 | PyObject *resultobj; | |
16803 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16804 | int arg2 ; | |
16805 | wxString *arg3 = 0 ; | |
16806 | wxBitmap *arg4 = 0 ; | |
16807 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16808 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16809 | int arg6 = (int) wxITEM_NORMAL ; | |
16810 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16811 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16812 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16813 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16814 | PyObject *arg9 = (PyObject *) NULL ; | |
16815 | wxToolBarToolBase *result; | |
e811c8ce RD |
16816 | bool temp3 = False ; |
16817 | bool temp7 = False ; | |
16818 | bool temp8 = False ; | |
d14a1e28 | 16819 | PyObject * obj0 = 0 ; |
994141e6 | 16820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16821 | PyObject * obj2 = 0 ; |
16822 | PyObject * obj3 = 0 ; | |
16823 | PyObject * obj4 = 0 ; | |
994141e6 | 16824 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16825 | PyObject * obj6 = 0 ; |
16826 | PyObject * obj7 = 0 ; | |
16827 | PyObject * obj8 = 0 ; | |
16828 | char *kwnames[] = { | |
16829 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16830 | }; | |
16831 | ||
994141e6 | 16832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
16833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16835 | arg2 = (int) SWIG_AsInt(obj1); | |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16837 | { |
16838 | arg3 = wxString_in_helper(obj2); | |
16839 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16840 | temp3 = True; |
d14a1e28 | 16841 | } |
15afbcd0 RD |
16842 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16844 | SWIG_fail; | |
d14a1e28 | 16845 | if (arg4 == NULL) { |
15afbcd0 RD |
16846 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16847 | SWIG_fail; | |
d14a1e28 RD |
16848 | } |
16849 | if (obj4) { | |
15afbcd0 RD |
16850 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16852 | SWIG_fail; | |
d14a1e28 | 16853 | if (arg5 == NULL) { |
15afbcd0 RD |
16854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16855 | SWIG_fail; | |
d14a1e28 RD |
16856 | } |
16857 | } | |
994141e6 | 16858 | if (obj5) { |
15afbcd0 RD |
16859 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16861 | } |
d14a1e28 RD |
16862 | if (obj6) { |
16863 | { | |
16864 | arg7 = wxString_in_helper(obj6); | |
16865 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 16866 | temp7 = True; |
d14a1e28 RD |
16867 | } |
16868 | } | |
16869 | if (obj7) { | |
16870 | { | |
16871 | arg8 = wxString_in_helper(obj7); | |
16872 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16873 | temp8 = True; |
d14a1e28 RD |
16874 | } |
16875 | } | |
16876 | if (obj8) { | |
16877 | arg9 = obj8; | |
16878 | } | |
16879 | { | |
16880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16881 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16882 | ||
16883 | wxPyEndAllowThreads(__tstate); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | { | |
412d302d | 16887 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16888 | } |
16889 | { | |
16890 | if (temp3) | |
16891 | delete arg3; | |
16892 | } | |
16893 | { | |
16894 | if (temp7) | |
16895 | delete arg7; | |
16896 | } | |
16897 | { | |
16898 | if (temp8) | |
16899 | delete arg8; | |
16900 | } | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | { | |
16904 | if (temp3) | |
16905 | delete arg3; | |
16906 | } | |
16907 | { | |
16908 | if (temp7) | |
16909 | delete arg7; | |
16910 | } | |
16911 | { | |
16912 | if (temp8) | |
16913 | delete arg8; | |
16914 | } | |
16915 | return NULL; | |
16916 | } | |
16917 | ||
16918 | ||
16919 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16920 | PyObject *resultobj; | |
16921 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16922 | size_t arg2 ; | |
16923 | int arg3 ; | |
16924 | wxString *arg4 = 0 ; | |
16925 | wxBitmap *arg5 = 0 ; | |
16926 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16927 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16928 | int arg7 = (int) wxITEM_NORMAL ; | |
16929 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16930 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16931 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16932 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16933 | PyObject *arg10 = (PyObject *) NULL ; | |
16934 | wxToolBarToolBase *result; | |
e811c8ce RD |
16935 | bool temp4 = False ; |
16936 | bool temp8 = False ; | |
16937 | bool temp9 = False ; | |
d14a1e28 RD |
16938 | PyObject * obj0 = 0 ; |
16939 | PyObject * obj1 = 0 ; | |
994141e6 | 16940 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16941 | PyObject * obj3 = 0 ; |
16942 | PyObject * obj4 = 0 ; | |
16943 | PyObject * obj5 = 0 ; | |
994141e6 | 16944 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16945 | PyObject * obj7 = 0 ; |
16946 | PyObject * obj8 = 0 ; | |
16947 | PyObject * obj9 = 0 ; | |
16948 | char *kwnames[] = { | |
16949 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16950 | }; | |
16951 | ||
994141e6 | 16952 | 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 |
16953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16955 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16956 | if (PyErr_Occurred()) SWIG_fail; | |
16957 | arg3 = (int) SWIG_AsInt(obj2); | |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16959 | { |
16960 | arg4 = wxString_in_helper(obj3); | |
16961 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16962 | temp4 = True; |
d14a1e28 | 16963 | } |
15afbcd0 RD |
16964 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16966 | SWIG_fail; | |
d14a1e28 | 16967 | if (arg5 == NULL) { |
15afbcd0 RD |
16968 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16969 | SWIG_fail; | |
d14a1e28 RD |
16970 | } |
16971 | if (obj5) { | |
15afbcd0 RD |
16972 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16974 | SWIG_fail; | |
d14a1e28 | 16975 | if (arg6 == NULL) { |
15afbcd0 RD |
16976 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16977 | SWIG_fail; | |
d14a1e28 RD |
16978 | } |
16979 | } | |
994141e6 | 16980 | if (obj6) { |
15afbcd0 RD |
16981 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16983 | } |
d14a1e28 RD |
16984 | if (obj7) { |
16985 | { | |
16986 | arg8 = wxString_in_helper(obj7); | |
16987 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16988 | temp8 = True; |
d14a1e28 RD |
16989 | } |
16990 | } | |
16991 | if (obj8) { | |
16992 | { | |
16993 | arg9 = wxString_in_helper(obj8); | |
16994 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 16995 | temp9 = True; |
d14a1e28 RD |
16996 | } |
16997 | } | |
16998 | if (obj9) { | |
16999 | arg10 = obj9; | |
17000 | } | |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | 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); | |
17004 | ||
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
17008 | { | |
412d302d | 17009 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17010 | } |
17011 | { | |
17012 | if (temp4) | |
17013 | delete arg4; | |
17014 | } | |
17015 | { | |
17016 | if (temp8) | |
17017 | delete arg8; | |
17018 | } | |
17019 | { | |
17020 | if (temp9) | |
17021 | delete arg9; | |
17022 | } | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | { | |
17026 | if (temp4) | |
17027 | delete arg4; | |
17028 | } | |
17029 | { | |
17030 | if (temp8) | |
17031 | delete arg8; | |
17032 | } | |
17033 | { | |
17034 | if (temp9) | |
17035 | delete arg9; | |
17036 | } | |
17037 | return NULL; | |
17038 | } | |
17039 | ||
17040 | ||
3a04f143 RD |
17041 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
17042 | PyObject *resultobj; | |
17043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17044 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17045 | wxToolBarToolBase *result; | |
17046 | PyObject * obj0 = 0 ; | |
17047 | PyObject * obj1 = 0 ; | |
17048 | char *kwnames[] = { | |
17049 | (char *) "self",(char *) "tool", NULL | |
17050 | }; | |
17051 | ||
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17057 | { |
17058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17059 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17060 | ||
17061 | wxPyEndAllowThreads(__tstate); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | { | |
412d302d | 17065 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17066 | } |
17067 | return resultobj; | |
17068 | fail: | |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17074 | PyObject *resultobj; | |
17075 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17076 | size_t arg2 ; | |
17077 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17078 | wxToolBarToolBase *result; | |
17079 | PyObject * obj0 = 0 ; | |
17080 | PyObject * obj1 = 0 ; | |
17081 | PyObject * obj2 = 0 ; | |
17082 | char *kwnames[] = { | |
17083 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17084 | }; | |
17085 | ||
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17089 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17093 | { |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17096 | ||
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | { | |
412d302d | 17101 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17102 | } |
17103 | return resultobj; | |
17104 | fail: | |
17105 | return NULL; | |
17106 | } | |
17107 | ||
17108 | ||
d14a1e28 RD |
17109 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
17110 | PyObject *resultobj; | |
17111 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17112 | wxControl *arg2 = (wxControl *) 0 ; | |
17113 | wxToolBarToolBase *result; | |
17114 | PyObject * obj0 = 0 ; | |
17115 | PyObject * obj1 = 0 ; | |
17116 | char *kwnames[] = { | |
17117 | (char *) "self",(char *) "control", NULL | |
17118 | }; | |
17119 | ||
17120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17125 | { |
17126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17127 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17128 | ||
17129 | wxPyEndAllowThreads(__tstate); | |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
17131 | } | |
17132 | { | |
412d302d | 17133 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17134 | } |
17135 | return resultobj; | |
17136 | fail: | |
17137 | return NULL; | |
17138 | } | |
17139 | ||
17140 | ||
17141 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17142 | PyObject *resultobj; | |
17143 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17144 | size_t arg2 ; | |
17145 | wxControl *arg3 = (wxControl *) 0 ; | |
17146 | wxToolBarToolBase *result; | |
17147 | PyObject * obj0 = 0 ; | |
17148 | PyObject * obj1 = 0 ; | |
17149 | PyObject * obj2 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17157 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17161 | { |
17162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17163 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17164 | ||
17165 | wxPyEndAllowThreads(__tstate); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | { | |
412d302d | 17169 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17170 | } |
17171 | return resultobj; | |
17172 | fail: | |
17173 | return NULL; | |
17174 | } | |
17175 | ||
17176 | ||
17177 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17178 | PyObject *resultobj; | |
17179 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17180 | int arg2 ; | |
17181 | wxControl *result; | |
17182 | PyObject * obj0 = 0 ; | |
994141e6 | 17183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17184 | char *kwnames[] = { |
17185 | (char *) "self",(char *) "id", NULL | |
17186 | }; | |
17187 | ||
994141e6 | 17188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17191 | arg2 = (int) SWIG_AsInt(obj1); | |
17192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17193 | { |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17195 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17196 | ||
17197 | wxPyEndAllowThreads(__tstate); | |
17198 | if (PyErr_Occurred()) SWIG_fail; | |
17199 | } | |
17200 | { | |
412d302d | 17201 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17202 | } |
17203 | return resultobj; | |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17212 | wxToolBarToolBase *result; | |
17213 | PyObject * obj0 = 0 ; | |
17214 | char *kwnames[] = { | |
17215 | (char *) "self", NULL | |
17216 | }; | |
17217 | ||
17218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17221 | { |
17222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17223 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17224 | ||
17225 | wxPyEndAllowThreads(__tstate); | |
17226 | if (PyErr_Occurred()) SWIG_fail; | |
17227 | } | |
17228 | { | |
412d302d | 17229 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17230 | } |
17231 | return resultobj; | |
17232 | fail: | |
17233 | return NULL; | |
17234 | } | |
17235 | ||
17236 | ||
17237 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17238 | PyObject *resultobj; | |
17239 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17240 | size_t arg2 ; | |
17241 | wxToolBarToolBase *result; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "self",(char *) "pos", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17251 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17253 | { |
17254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17255 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17256 | ||
17257 | wxPyEndAllowThreads(__tstate); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
17260 | { | |
412d302d | 17261 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17262 | } |
17263 | return resultobj; | |
17264 | fail: | |
17265 | return NULL; | |
17266 | } | |
17267 | ||
17268 | ||
17269 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17270 | PyObject *resultobj; | |
17271 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17272 | int arg2 ; | |
17273 | wxToolBarToolBase *result; | |
17274 | PyObject * obj0 = 0 ; | |
994141e6 | 17275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17276 | char *kwnames[] = { |
17277 | (char *) "self",(char *) "id", NULL | |
17278 | }; | |
17279 | ||
994141e6 | 17280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17283 | arg2 = (int) SWIG_AsInt(obj1); | |
17284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17285 | { |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17287 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17288 | ||
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | { | |
412d302d | 17293 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17294 | } |
17295 | return resultobj; | |
17296 | fail: | |
17297 | return NULL; | |
17298 | } | |
17299 | ||
17300 | ||
17301 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17302 | PyObject *resultobj; | |
17303 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17304 | size_t arg2 ; | |
17305 | bool result; | |
17306 | PyObject * obj0 = 0 ; | |
17307 | PyObject * obj1 = 0 ; | |
17308 | char *kwnames[] = { | |
17309 | (char *) "self",(char *) "pos", NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17315 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17317 | { |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17319 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17320 | ||
17321 | wxPyEndAllowThreads(__tstate); | |
17322 | if (PyErr_Occurred()) SWIG_fail; | |
17323 | } | |
4f89f6a3 RD |
17324 | { |
17325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17326 | } | |
d14a1e28 RD |
17327 | return resultobj; |
17328 | fail: | |
17329 | return NULL; | |
17330 | } | |
17331 | ||
17332 | ||
17333 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17334 | PyObject *resultobj; | |
17335 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17336 | int arg2 ; | |
17337 | bool result; | |
17338 | PyObject * obj0 = 0 ; | |
994141e6 | 17339 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17340 | char *kwnames[] = { |
17341 | (char *) "self",(char *) "id", NULL | |
17342 | }; | |
17343 | ||
994141e6 | 17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17347 | arg2 = (int) SWIG_AsInt(obj1); | |
17348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17349 | { |
17350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17351 | result = (bool)(arg1)->DeleteTool(arg2); | |
17352 | ||
17353 | wxPyEndAllowThreads(__tstate); | |
17354 | if (PyErr_Occurred()) SWIG_fail; | |
17355 | } | |
4f89f6a3 RD |
17356 | { |
17357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17358 | } | |
d14a1e28 RD |
17359 | return resultobj; |
17360 | fail: | |
17361 | return NULL; | |
17362 | } | |
17363 | ||
17364 | ||
17365 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17366 | PyObject *resultobj; | |
17367 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17368 | PyObject * obj0 = 0 ; | |
17369 | char *kwnames[] = { | |
17370 | (char *) "self", NULL | |
17371 | }; | |
17372 | ||
17373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17376 | { |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | (arg1)->ClearTools(); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | Py_INCREF(Py_None); resultobj = Py_None; | |
17384 | return resultobj; | |
17385 | fail: | |
17386 | return NULL; | |
17387 | } | |
17388 | ||
17389 | ||
17390 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17391 | PyObject *resultobj; | |
17392 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17393 | bool result; | |
17394 | PyObject * obj0 = 0 ; | |
17395 | char *kwnames[] = { | |
17396 | (char *) "self", NULL | |
17397 | }; | |
17398 | ||
17399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17402 | { |
17403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17404 | result = (bool)(arg1)->Realize(); | |
17405 | ||
17406 | wxPyEndAllowThreads(__tstate); | |
17407 | if (PyErr_Occurred()) SWIG_fail; | |
17408 | } | |
4f89f6a3 RD |
17409 | { |
17410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17411 | } | |
d14a1e28 RD |
17412 | return resultobj; |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17421 | int arg2 ; | |
17422 | bool arg3 ; | |
17423 | PyObject * obj0 = 0 ; | |
994141e6 | 17424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17425 | PyObject * obj2 = 0 ; |
17426 | char *kwnames[] = { | |
17427 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17428 | }; | |
17429 | ||
994141e6 | 17430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17433 | arg2 = (int) SWIG_AsInt(obj1); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | arg3 = (bool) SWIG_AsBool(obj2); | |
17436 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17437 | { |
17438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17439 | (arg1)->EnableTool(arg2,arg3); | |
17440 | ||
17441 | wxPyEndAllowThreads(__tstate); | |
17442 | if (PyErr_Occurred()) SWIG_fail; | |
17443 | } | |
17444 | Py_INCREF(Py_None); resultobj = Py_None; | |
17445 | return resultobj; | |
17446 | fail: | |
17447 | return NULL; | |
17448 | } | |
17449 | ||
17450 | ||
17451 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17452 | PyObject *resultobj; | |
17453 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17454 | int arg2 ; | |
17455 | bool arg3 ; | |
17456 | PyObject * obj0 = 0 ; | |
994141e6 | 17457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17458 | PyObject * obj2 = 0 ; |
17459 | char *kwnames[] = { | |
17460 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17461 | }; | |
17462 | ||
994141e6 | 17463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17466 | arg2 = (int) SWIG_AsInt(obj1); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | arg3 = (bool) SWIG_AsBool(obj2); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17470 | { |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | (arg1)->ToggleTool(arg2,arg3); | |
17473 | ||
17474 | wxPyEndAllowThreads(__tstate); | |
17475 | if (PyErr_Occurred()) SWIG_fail; | |
17476 | } | |
17477 | Py_INCREF(Py_None); resultobj = Py_None; | |
17478 | return resultobj; | |
17479 | fail: | |
17480 | return NULL; | |
17481 | } | |
17482 | ||
17483 | ||
17484 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17485 | PyObject *resultobj; | |
17486 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17487 | int arg2 ; | |
17488 | bool arg3 ; | |
17489 | PyObject * obj0 = 0 ; | |
994141e6 | 17490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17491 | PyObject * obj2 = 0 ; |
17492 | char *kwnames[] = { | |
17493 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17494 | }; | |
17495 | ||
994141e6 | 17496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17499 | arg2 = (int) SWIG_AsInt(obj1); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | arg3 = (bool) SWIG_AsBool(obj2); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17503 | { |
17504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17505 | (arg1)->SetToggle(arg2,arg3); | |
17506 | ||
17507 | wxPyEndAllowThreads(__tstate); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | } | |
17510 | Py_INCREF(Py_None); resultobj = Py_None; | |
17511 | return resultobj; | |
17512 | fail: | |
17513 | return NULL; | |
17514 | } | |
17515 | ||
17516 | ||
17517 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17518 | PyObject *resultobj; | |
17519 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17520 | int arg2 ; | |
17521 | PyObject *result; | |
17522 | PyObject * obj0 = 0 ; | |
994141e6 | 17523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17524 | char *kwnames[] = { |
17525 | (char *) "self",(char *) "id", NULL | |
17526 | }; | |
17527 | ||
994141e6 | 17528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17531 | arg2 = (int) SWIG_AsInt(obj1); | |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17533 | { |
17534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17535 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17536 | ||
17537 | wxPyEndAllowThreads(__tstate); | |
17538 | if (PyErr_Occurred()) SWIG_fail; | |
17539 | } | |
17540 | resultobj = result; | |
17541 | return resultobj; | |
17542 | fail: | |
17543 | return NULL; | |
17544 | } | |
17545 | ||
17546 | ||
17547 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17548 | PyObject *resultobj; | |
17549 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17550 | int arg2 ; | |
17551 | PyObject *arg3 = (PyObject *) 0 ; | |
17552 | PyObject * obj0 = 0 ; | |
994141e6 | 17553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17554 | PyObject * obj2 = 0 ; |
17555 | char *kwnames[] = { | |
17556 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17557 | }; | |
17558 | ||
994141e6 | 17559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17562 | arg2 = (int) SWIG_AsInt(obj1); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17564 | arg3 = obj2; |
17565 | { | |
17566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17567 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17568 | ||
17569 | wxPyEndAllowThreads(__tstate); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
17572 | Py_INCREF(Py_None); resultobj = Py_None; | |
17573 | return resultobj; | |
17574 | fail: | |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17582 | int arg2 ; | |
17583 | int result; | |
17584 | PyObject * obj0 = 0 ; | |
994141e6 | 17585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17586 | char *kwnames[] = { |
17587 | (char *) "self",(char *) "id", NULL | |
17588 | }; | |
17589 | ||
994141e6 | 17590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17593 | arg2 = (int) SWIG_AsInt(obj1); | |
17594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17595 | { |
17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17597 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17598 | ||
17599 | wxPyEndAllowThreads(__tstate); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
15afbcd0 | 17602 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17603 | return resultobj; |
17604 | fail: | |
17605 | return NULL; | |
17606 | } | |
17607 | ||
17608 | ||
17609 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17610 | PyObject *resultobj; | |
17611 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17612 | int arg2 ; | |
17613 | bool result; | |
17614 | PyObject * obj0 = 0 ; | |
994141e6 | 17615 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17616 | char *kwnames[] = { |
17617 | (char *) "self",(char *) "id", NULL | |
17618 | }; | |
17619 | ||
994141e6 | 17620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17623 | arg2 = (int) SWIG_AsInt(obj1); | |
17624 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17625 | { |
17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17627 | result = (bool)(arg1)->GetToolState(arg2); | |
17628 | ||
17629 | wxPyEndAllowThreads(__tstate); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
4f89f6a3 RD |
17632 | { |
17633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17634 | } | |
d14a1e28 RD |
17635 | return resultobj; |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
17641 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17642 | PyObject *resultobj; | |
17643 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17644 | int arg2 ; | |
17645 | bool result; | |
17646 | PyObject * obj0 = 0 ; | |
994141e6 | 17647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17648 | char *kwnames[] = { |
17649 | (char *) "self",(char *) "id", NULL | |
17650 | }; | |
17651 | ||
994141e6 | 17652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17655 | arg2 = (int) SWIG_AsInt(obj1); | |
17656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17657 | { |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
4f89f6a3 RD |
17664 | { |
17665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17666 | } | |
d14a1e28 RD |
17667 | return resultobj; |
17668 | fail: | |
17669 | return NULL; | |
17670 | } | |
17671 | ||
17672 | ||
17673 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17674 | PyObject *resultobj; | |
17675 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17676 | int arg2 ; | |
17677 | wxString *arg3 = 0 ; | |
e811c8ce | 17678 | bool temp3 = False ; |
d14a1e28 | 17679 | PyObject * obj0 = 0 ; |
994141e6 | 17680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17681 | PyObject * obj2 = 0 ; |
17682 | char *kwnames[] = { | |
17683 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17684 | }; | |
17685 | ||
994141e6 | 17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17689 | arg2 = (int) SWIG_AsInt(obj1); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17691 | { |
17692 | arg3 = wxString_in_helper(obj2); | |
17693 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17694 | temp3 = True; |
d14a1e28 RD |
17695 | } |
17696 | { | |
17697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17698 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
17703 | Py_INCREF(Py_None); resultobj = Py_None; | |
17704 | { | |
17705 | if (temp3) | |
17706 | delete arg3; | |
17707 | } | |
17708 | return resultobj; | |
17709 | fail: | |
17710 | { | |
17711 | if (temp3) | |
17712 | delete arg3; | |
17713 | } | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj; | |
17720 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17721 | int arg2 ; | |
17722 | wxString result; | |
17723 | PyObject * obj0 = 0 ; | |
994141e6 | 17724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17725 | char *kwnames[] = { |
17726 | (char *) "self",(char *) "id", NULL | |
17727 | }; | |
17728 | ||
994141e6 | 17729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17732 | arg2 = (int) SWIG_AsInt(obj1); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17734 | { |
17735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17736 | result = (arg1)->GetToolShortHelp(arg2); | |
17737 | ||
17738 | wxPyEndAllowThreads(__tstate); | |
17739 | if (PyErr_Occurred()) SWIG_fail; | |
17740 | } | |
17741 | { | |
17742 | #if wxUSE_UNICODE | |
17743 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17744 | #else | |
17745 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17746 | #endif | |
17747 | } | |
17748 | return resultobj; | |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17755 | PyObject *resultobj; | |
17756 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17757 | int arg2 ; | |
17758 | wxString *arg3 = 0 ; | |
e811c8ce | 17759 | bool temp3 = False ; |
d14a1e28 | 17760 | PyObject * obj0 = 0 ; |
994141e6 | 17761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17762 | PyObject * obj2 = 0 ; |
17763 | char *kwnames[] = { | |
17764 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17765 | }; | |
17766 | ||
994141e6 | 17767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17770 | arg2 = (int) SWIG_AsInt(obj1); | |
17771 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17772 | { |
17773 | arg3 = wxString_in_helper(obj2); | |
17774 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17775 | temp3 = True; |
d14a1e28 RD |
17776 | } |
17777 | { | |
17778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17779 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17780 | ||
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
17784 | Py_INCREF(Py_None); resultobj = Py_None; | |
17785 | { | |
17786 | if (temp3) | |
17787 | delete arg3; | |
17788 | } | |
17789 | return resultobj; | |
17790 | fail: | |
17791 | { | |
17792 | if (temp3) | |
17793 | delete arg3; | |
17794 | } | |
17795 | return NULL; | |
17796 | } | |
17797 | ||
17798 | ||
17799 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17800 | PyObject *resultobj; | |
17801 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17802 | int arg2 ; | |
17803 | wxString result; | |
17804 | PyObject * obj0 = 0 ; | |
994141e6 | 17805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17806 | char *kwnames[] = { |
17807 | (char *) "self",(char *) "id", NULL | |
17808 | }; | |
17809 | ||
994141e6 | 17810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17813 | arg2 = (int) SWIG_AsInt(obj1); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17815 | { |
17816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17817 | result = (arg1)->GetToolLongHelp(arg2); | |
17818 | ||
17819 | wxPyEndAllowThreads(__tstate); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | } | |
17822 | { | |
17823 | #if wxUSE_UNICODE | |
17824 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17825 | #else | |
17826 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17827 | #endif | |
17828 | } | |
17829 | return resultobj; | |
17830 | fail: | |
17831 | return NULL; | |
17832 | } | |
17833 | ||
17834 | ||
17835 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17836 | PyObject *resultobj; | |
17837 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17838 | int arg2 ; | |
17839 | int arg3 ; | |
17840 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17841 | PyObject * obj1 = 0 ; |
17842 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17843 | char *kwnames[] = { |
17844 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17845 | }; | |
17846 | ||
994141e6 | 17847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17850 | arg2 = (int) SWIG_AsInt(obj1); | |
17851 | if (PyErr_Occurred()) SWIG_fail; | |
17852 | arg3 = (int) SWIG_AsInt(obj2); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17854 | { |
17855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17856 | (arg1)->SetMargins(arg2,arg3); | |
17857 | ||
17858 | wxPyEndAllowThreads(__tstate); | |
17859 | if (PyErr_Occurred()) SWIG_fail; | |
17860 | } | |
17861 | Py_INCREF(Py_None); resultobj = Py_None; | |
17862 | return resultobj; | |
17863 | fail: | |
17864 | return NULL; | |
17865 | } | |
17866 | ||
17867 | ||
17868 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17869 | PyObject *resultobj; | |
17870 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17871 | wxSize *arg2 = 0 ; | |
17872 | wxSize temp2 ; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | PyObject * obj1 = 0 ; | |
17875 | char *kwnames[] = { | |
17876 | (char *) "self",(char *) "size", NULL | |
17877 | }; | |
17878 | ||
17879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17882 | { |
17883 | arg2 = &temp2; | |
17884 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17885 | } | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
17893 | Py_INCREF(Py_None); resultobj = Py_None; | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17901 | PyObject *resultobj; | |
17902 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17903 | int arg2 ; | |
17904 | PyObject * obj0 = 0 ; | |
994141e6 | 17905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17906 | char *kwnames[] = { |
17907 | (char *) "self",(char *) "packing", NULL | |
17908 | }; | |
17909 | ||
994141e6 | 17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17913 | arg2 = (int) SWIG_AsInt(obj1); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17915 | { |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | (arg1)->SetToolPacking(arg2); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | Py_INCREF(Py_None); resultobj = Py_None; | |
17923 | return resultobj; | |
17924 | fail: | |
17925 | return NULL; | |
17926 | } | |
17927 | ||
17928 | ||
17929 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17930 | PyObject *resultobj; | |
17931 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17932 | int arg2 ; | |
17933 | PyObject * obj0 = 0 ; | |
994141e6 | 17934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17935 | char *kwnames[] = { |
17936 | (char *) "self",(char *) "separation", NULL | |
17937 | }; | |
17938 | ||
994141e6 | 17939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17942 | arg2 = (int) SWIG_AsInt(obj1); | |
17943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17944 | { |
17945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17946 | (arg1)->SetToolSeparation(arg2); | |
17947 | ||
17948 | wxPyEndAllowThreads(__tstate); | |
17949 | if (PyErr_Occurred()) SWIG_fail; | |
17950 | } | |
17951 | Py_INCREF(Py_None); resultobj = Py_None; | |
17952 | return resultobj; | |
17953 | fail: | |
17954 | return NULL; | |
17955 | } | |
17956 | ||
17957 | ||
17958 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17959 | PyObject *resultobj; | |
17960 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17961 | wxSize result; | |
17962 | PyObject * obj0 = 0 ; | |
17963 | char *kwnames[] = { | |
17964 | (char *) "self", NULL | |
17965 | }; | |
17966 | ||
17967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17970 | { |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | result = (arg1)->GetToolMargins(); | |
17973 | ||
17974 | wxPyEndAllowThreads(__tstate); | |
17975 | if (PyErr_Occurred()) SWIG_fail; | |
17976 | } | |
17977 | { | |
17978 | wxSize * resultptr; | |
17979 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 17980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17981 | } |
17982 | return resultobj; | |
17983 | fail: | |
17984 | return NULL; | |
17985 | } | |
17986 | ||
17987 | ||
17988 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17989 | PyObject *resultobj; | |
17990 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17991 | wxSize result; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | char *kwnames[] = { | |
17994 | (char *) "self", NULL | |
17995 | }; | |
17996 | ||
17997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18000 | { |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (arg1)->GetMargins(); | |
18003 | ||
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | { | |
18008 | wxSize * resultptr; | |
18009 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18011 | } |
18012 | return resultobj; | |
18013 | fail: | |
18014 | return NULL; | |
18015 | } | |
18016 | ||
18017 | ||
18018 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18019 | PyObject *resultobj; | |
18020 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18021 | int result; | |
18022 | PyObject * obj0 = 0 ; | |
18023 | char *kwnames[] = { | |
18024 | (char *) "self", NULL | |
18025 | }; | |
18026 | ||
18027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18030 | { |
18031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18032 | result = (int)(arg1)->GetToolPacking(); | |
18033 | ||
18034 | wxPyEndAllowThreads(__tstate); | |
18035 | if (PyErr_Occurred()) SWIG_fail; | |
18036 | } | |
15afbcd0 | 18037 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18038 | return resultobj; |
18039 | fail: | |
18040 | return NULL; | |
18041 | } | |
18042 | ||
18043 | ||
18044 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18045 | PyObject *resultobj; | |
18046 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18047 | int result; | |
18048 | PyObject * obj0 = 0 ; | |
18049 | char *kwnames[] = { | |
18050 | (char *) "self", NULL | |
18051 | }; | |
18052 | ||
18053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18056 | { |
18057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18058 | result = (int)(arg1)->GetToolSeparation(); | |
18059 | ||
18060 | wxPyEndAllowThreads(__tstate); | |
18061 | if (PyErr_Occurred()) SWIG_fail; | |
18062 | } | |
15afbcd0 | 18063 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18064 | return resultobj; |
18065 | fail: | |
18066 | return NULL; | |
18067 | } | |
18068 | ||
18069 | ||
18070 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18071 | PyObject *resultobj; | |
18072 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18073 | int arg2 ; | |
18074 | PyObject * obj0 = 0 ; | |
994141e6 | 18075 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18076 | char *kwnames[] = { |
18077 | (char *) "self",(char *) "nRows", NULL | |
18078 | }; | |
18079 | ||
994141e6 | 18080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18083 | arg2 = (int) SWIG_AsInt(obj1); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18085 | { |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | (arg1)->SetRows(arg2); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
18092 | Py_INCREF(Py_None); resultobj = Py_None; | |
18093 | return resultobj; | |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18102 | int arg2 ; | |
18103 | int arg3 ; | |
18104 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18105 | PyObject * obj1 = 0 ; |
18106 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18107 | char *kwnames[] = { |
18108 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18109 | }; | |
18110 | ||
994141e6 | 18111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18114 | arg2 = (int) SWIG_AsInt(obj1); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
18116 | arg3 = (int) SWIG_AsInt(obj2); | |
18117 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18118 | { |
18119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18120 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18121 | ||
18122 | wxPyEndAllowThreads(__tstate); | |
18123 | if (PyErr_Occurred()) SWIG_fail; | |
18124 | } | |
18125 | Py_INCREF(Py_None); resultobj = Py_None; | |
18126 | return resultobj; | |
18127 | fail: | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18133 | PyObject *resultobj; | |
18134 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18135 | int result; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | char *kwnames[] = { | |
18138 | (char *) "self", NULL | |
18139 | }; | |
18140 | ||
18141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18144 | { |
18145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18146 | result = (int)(arg1)->GetMaxRows(); | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
15afbcd0 | 18151 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18152 | return resultobj; |
18153 | fail: | |
18154 | return NULL; | |
18155 | } | |
18156 | ||
18157 | ||
18158 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18159 | PyObject *resultobj; | |
18160 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18161 | int result; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | char *kwnames[] = { | |
18164 | (char *) "self", NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18170 | { |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | result = (int)(arg1)->GetMaxCols(); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
15afbcd0 | 18177 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18178 | return resultobj; |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18185 | PyObject *resultobj; | |
18186 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18187 | wxSize *arg2 = 0 ; | |
18188 | wxSize temp2 ; | |
18189 | PyObject * obj0 = 0 ; | |
18190 | PyObject * obj1 = 0 ; | |
18191 | char *kwnames[] = { | |
18192 | (char *) "self",(char *) "size", NULL | |
18193 | }; | |
18194 | ||
18195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18198 | { |
18199 | arg2 = &temp2; | |
18200 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18201 | } | |
18202 | { | |
18203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18204 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18205 | ||
18206 | wxPyEndAllowThreads(__tstate); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
18209 | Py_INCREF(Py_None); resultobj = Py_None; | |
18210 | return resultobj; | |
18211 | fail: | |
18212 | return NULL; | |
18213 | } | |
18214 | ||
18215 | ||
18216 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18217 | PyObject *resultobj; | |
18218 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18219 | wxSize result; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | char *kwnames[] = { | |
18222 | (char *) "self", NULL | |
18223 | }; | |
18224 | ||
18225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18228 | { |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | result = (arg1)->GetToolBitmapSize(); | |
18231 | ||
18232 | wxPyEndAllowThreads(__tstate); | |
18233 | if (PyErr_Occurred()) SWIG_fail; | |
18234 | } | |
18235 | { | |
18236 | wxSize * resultptr; | |
18237 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18239 | } |
18240 | return resultobj; | |
18241 | fail: | |
18242 | return NULL; | |
18243 | } | |
18244 | ||
18245 | ||
18246 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18247 | PyObject *resultobj; | |
18248 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18249 | wxSize result; | |
18250 | PyObject * obj0 = 0 ; | |
18251 | char *kwnames[] = { | |
18252 | (char *) "self", NULL | |
18253 | }; | |
18254 | ||
18255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18258 | { |
18259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18260 | result = (arg1)->GetToolSize(); | |
18261 | ||
18262 | wxPyEndAllowThreads(__tstate); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
18265 | { | |
18266 | wxSize * resultptr; | |
18267 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18268 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18269 | } |
18270 | return resultobj; | |
18271 | fail: | |
18272 | return NULL; | |
18273 | } | |
18274 | ||
18275 | ||
18276 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18277 | PyObject *resultobj; | |
18278 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18279 | int arg2 ; |
18280 | int arg3 ; | |
d14a1e28 RD |
18281 | wxToolBarToolBase *result; |
18282 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18283 | PyObject * obj1 = 0 ; |
18284 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18285 | char *kwnames[] = { |
18286 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18287 | }; | |
18288 | ||
994141e6 | 18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18292 | arg2 = (int) SWIG_AsInt(obj1); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | arg3 = (int) SWIG_AsInt(obj2); | |
18295 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18296 | { |
18297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18298 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18299 | ||
18300 | wxPyEndAllowThreads(__tstate); | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
18302 | } | |
18303 | { | |
412d302d | 18304 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18305 | } |
18306 | return resultobj; | |
18307 | fail: | |
18308 | return NULL; | |
18309 | } | |
18310 | ||
18311 | ||
3a04f143 RD |
18312 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
18313 | PyObject *resultobj; | |
18314 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18315 | int arg2 ; | |
18316 | wxToolBarToolBase *result; | |
18317 | PyObject * obj0 = 0 ; | |
994141e6 | 18318 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18319 | char *kwnames[] = { |
18320 | (char *) "self",(char *) "toolid", NULL | |
18321 | }; | |
18322 | ||
994141e6 | 18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18326 | arg2 = (int) SWIG_AsInt(obj1); | |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
3a04f143 RD |
18328 | { |
18329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18330 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18331 | ||
18332 | wxPyEndAllowThreads(__tstate); | |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
18334 | } | |
18335 | { | |
412d302d | 18336 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
18337 | } |
18338 | return resultobj; | |
18339 | fail: | |
18340 | return NULL; | |
18341 | } | |
18342 | ||
18343 | ||
d14a1e28 RD |
18344 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
18345 | PyObject *resultobj; | |
18346 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18347 | bool result; | |
18348 | PyObject * obj0 = 0 ; | |
18349 | char *kwnames[] = { | |
18350 | (char *) "self", NULL | |
18351 | }; | |
18352 | ||
18353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18356 | { |
18357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18358 | result = (bool)(arg1)->IsVertical(); | |
18359 | ||
18360 | wxPyEndAllowThreads(__tstate); | |
18361 | if (PyErr_Occurred()) SWIG_fail; | |
18362 | } | |
4f89f6a3 RD |
18363 | { |
18364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18365 | } | |
d14a1e28 RD |
18366 | return resultobj; |
18367 | fail: | |
18368 | return NULL; | |
18369 | } | |
18370 | ||
18371 | ||
18372 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18373 | PyObject *obj; | |
18374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18375 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18376 | Py_INCREF(obj); | |
18377 | return Py_BuildValue((char *)""); | |
18378 | } | |
18379 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18380 | PyObject *resultobj; | |
18381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18382 | int arg2 = (int) -1 ; |
d14a1e28 RD |
18383 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18384 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18385 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18386 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18387 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18388 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18389 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18390 | wxToolBar *result; | |
18391 | wxPoint temp3 ; | |
18392 | wxSize temp4 ; | |
e811c8ce | 18393 | bool temp6 = False ; |
d14a1e28 | 18394 | PyObject * obj0 = 0 ; |
994141e6 | 18395 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18396 | PyObject * obj2 = 0 ; |
18397 | PyObject * obj3 = 0 ; | |
994141e6 | 18398 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18399 | PyObject * obj5 = 0 ; |
18400 | char *kwnames[] = { | |
18401 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18402 | }; | |
18403 | ||
248ed943 | 18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18407 | if (obj1) { |
18408 | arg2 = (int) SWIG_AsInt(obj1); | |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
18410 | } | |
d14a1e28 RD |
18411 | if (obj2) { |
18412 | { | |
18413 | arg3 = &temp3; | |
18414 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18415 | } | |
18416 | } | |
18417 | if (obj3) { | |
18418 | { | |
18419 | arg4 = &temp4; | |
18420 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18421 | } | |
18422 | } | |
994141e6 | 18423 | if (obj4) { |
15afbcd0 RD |
18424 | arg5 = (long) SWIG_AsLong(obj4); |
18425 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18426 | } |
d14a1e28 RD |
18427 | if (obj5) { |
18428 | { | |
18429 | arg6 = wxString_in_helper(obj5); | |
18430 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 18431 | temp6 = True; |
d14a1e28 RD |
18432 | } |
18433 | } | |
18434 | { | |
e3b71cb8 | 18435 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18437 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18438 | ||
18439 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18440 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18441 | } |
18442 | { | |
412d302d | 18443 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
18444 | } |
18445 | { | |
18446 | if (temp6) | |
18447 | delete arg6; | |
18448 | } | |
18449 | return resultobj; | |
18450 | fail: | |
18451 | { | |
18452 | if (temp6) | |
18453 | delete arg6; | |
18454 | } | |
18455 | return NULL; | |
18456 | } | |
18457 | ||
18458 | ||
18459 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18460 | PyObject *resultobj; | |
18461 | wxToolBar *result; | |
18462 | char *kwnames[] = { | |
18463 | NULL | |
18464 | }; | |
18465 | ||
18466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18467 | { | |
e3b71cb8 | 18468 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18470 | result = (wxToolBar *)new wxToolBar(); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18473 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18474 | } |
18475 | { | |
412d302d | 18476 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
18477 | } |
18478 | return resultobj; | |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
18484 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18485 | PyObject *resultobj; | |
18486 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18488 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18489 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18490 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18491 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18492 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18493 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18494 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18495 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18496 | bool result; | |
18497 | wxPoint temp4 ; | |
18498 | wxSize temp5 ; | |
e811c8ce | 18499 | bool temp7 = False ; |
d14a1e28 RD |
18500 | PyObject * obj0 = 0 ; |
18501 | PyObject * obj1 = 0 ; | |
994141e6 | 18502 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18503 | PyObject * obj3 = 0 ; |
18504 | PyObject * obj4 = 0 ; | |
994141e6 | 18505 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18506 | PyObject * obj6 = 0 ; |
18507 | char *kwnames[] = { | |
18508 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18509 | }; | |
18510 | ||
248ed943 | 18511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18514 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18516 | if (obj2) { |
18517 | arg3 = (int) SWIG_AsInt(obj2); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
d14a1e28 RD |
18520 | if (obj3) { |
18521 | { | |
18522 | arg4 = &temp4; | |
18523 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18524 | } | |
18525 | } | |
18526 | if (obj4) { | |
18527 | { | |
18528 | arg5 = &temp5; | |
18529 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18530 | } | |
18531 | } | |
994141e6 | 18532 | if (obj5) { |
15afbcd0 RD |
18533 | arg6 = (long) SWIG_AsLong(obj5); |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18535 | } |
d14a1e28 RD |
18536 | if (obj6) { |
18537 | { | |
18538 | arg7 = wxString_in_helper(obj6); | |
18539 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 18540 | temp7 = True; |
d14a1e28 RD |
18541 | } |
18542 | } | |
18543 | { | |
18544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18545 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18546 | ||
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
4f89f6a3 RD |
18550 | { |
18551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18552 | } | |
d14a1e28 RD |
18553 | { |
18554 | if (temp7) | |
18555 | delete arg7; | |
18556 | } | |
18557 | return resultobj; | |
18558 | fail: | |
18559 | { | |
18560 | if (temp7) | |
18561 | delete arg7; | |
18562 | } | |
18563 | return NULL; | |
18564 | } | |
18565 | ||
18566 | ||
18567 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18568 | PyObject *resultobj; | |
18569 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
18570 | int arg2 ; |
18571 | int arg3 ; | |
d14a1e28 RD |
18572 | wxToolBarToolBase *result; |
18573 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18574 | PyObject * obj1 = 0 ; |
18575 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18576 | char *kwnames[] = { |
18577 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18578 | }; | |
18579 | ||
994141e6 | 18580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18583 | arg2 = (int) SWIG_AsInt(obj1); | |
18584 | if (PyErr_Occurred()) SWIG_fail; | |
18585 | arg3 = (int) SWIG_AsInt(obj2); | |
18586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18587 | { |
18588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18589 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18590 | ||
18591 | wxPyEndAllowThreads(__tstate); | |
18592 | if (PyErr_Occurred()) SWIG_fail; | |
18593 | } | |
18594 | { | |
412d302d | 18595 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18596 | } |
18597 | return resultobj; | |
18598 | fail: | |
18599 | return NULL; | |
18600 | } | |
18601 | ||
18602 | ||
22bfe96c RD |
18603 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18604 | PyObject *resultobj; | |
18605 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18606 | wxVisualAttributes result; | |
18607 | PyObject * obj0 = 0 ; | |
18608 | char *kwnames[] = { | |
18609 | (char *) "variant", NULL | |
18610 | }; | |
18611 | ||
18612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18613 | if (obj0) { | |
18614 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18615 | if (PyErr_Occurred()) SWIG_fail; | |
18616 | } | |
18617 | { | |
110da5b0 | 18618 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18620 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 18623 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
18624 | } |
18625 | { | |
18626 | wxVisualAttributes * resultptr; | |
18627 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18629 | } | |
18630 | return resultobj; | |
18631 | fail: | |
18632 | return NULL; | |
18633 | } | |
18634 | ||
18635 | ||
d14a1e28 RD |
18636 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18637 | PyObject *obj; | |
18638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18639 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18640 | Py_INCREF(obj); | |
18641 | return Py_BuildValue((char *)""); | |
18642 | } | |
b2dc1044 RD |
18643 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
18644 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18645 | return 1; | |
18646 | } | |
18647 | ||
18648 | ||
18649 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18650 | PyObject *pyobj; | |
18651 | ||
18652 | { | |
18653 | #if wxUSE_UNICODE | |
18654 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18655 | #else | |
18656 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18657 | #endif | |
18658 | } | |
18659 | return pyobj; | |
18660 | } | |
18661 | ||
18662 | ||
d14a1e28 RD |
18663 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
18664 | PyObject *resultobj; | |
18665 | wxColour const &arg1_defvalue = wxNullColour ; | |
18666 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18667 | wxColour const &arg2_defvalue = wxNullColour ; | |
18668 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18669 | wxFont const &arg3_defvalue = wxNullFont ; | |
18670 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18671 | wxListItemAttr *result; | |
18672 | wxColour temp1 ; | |
18673 | wxColour temp2 ; | |
18674 | PyObject * obj0 = 0 ; | |
18675 | PyObject * obj1 = 0 ; | |
18676 | PyObject * obj2 = 0 ; | |
18677 | char *kwnames[] = { | |
18678 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18679 | }; | |
18680 | ||
18681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18682 | if (obj0) { | |
18683 | { | |
18684 | arg1 = &temp1; | |
18685 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18686 | } | |
18687 | } | |
18688 | if (obj1) { | |
18689 | { | |
18690 | arg2 = &temp2; | |
18691 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18692 | } | |
18693 | } | |
18694 | if (obj2) { | |
15afbcd0 RD |
18695 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
18696 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18697 | SWIG_fail; | |
d14a1e28 | 18698 | if (arg3 == NULL) { |
15afbcd0 RD |
18699 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18700 | SWIG_fail; | |
d14a1e28 RD |
18701 | } |
18702 | } | |
18703 | { | |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18706 | ||
18707 | wxPyEndAllowThreads(__tstate); | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
15afbcd0 | 18710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
18711 | return resultobj; |
18712 | fail: | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
18717 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18718 | PyObject *resultobj; | |
18719 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18720 | wxColour *arg2 = 0 ; | |
18721 | wxColour temp2 ; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | PyObject * obj1 = 0 ; | |
18724 | char *kwnames[] = { | |
18725 | (char *) "self",(char *) "colText", NULL | |
18726 | }; | |
18727 | ||
18728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18731 | { |
18732 | arg2 = &temp2; | |
18733 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18734 | } | |
18735 | { | |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | Py_INCREF(Py_None); resultobj = Py_None; | |
18743 | return resultobj; | |
18744 | fail: | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18750 | PyObject *resultobj; | |
18751 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18752 | wxColour *arg2 = 0 ; | |
18753 | wxColour temp2 ; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | PyObject * obj1 = 0 ; | |
18756 | char *kwnames[] = { | |
18757 | (char *) "self",(char *) "colBack", NULL | |
18758 | }; | |
18759 | ||
18760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18763 | { |
18764 | arg2 = &temp2; | |
18765 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18766 | } | |
18767 | { | |
18768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18769 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
18774 | Py_INCREF(Py_None); resultobj = Py_None; | |
18775 | return resultobj; | |
18776 | fail: | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
18781 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18782 | PyObject *resultobj; | |
18783 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18784 | wxFont *arg2 = 0 ; | |
18785 | PyObject * obj0 = 0 ; | |
18786 | PyObject * obj1 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self",(char *) "font", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18796 | SWIG_fail; | |
d14a1e28 | 18797 | if (arg2 == NULL) { |
15afbcd0 RD |
18798 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18799 | SWIG_fail; | |
d14a1e28 RD |
18800 | } |
18801 | { | |
18802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18803 | (arg1)->SetFont((wxFont const &)*arg2); | |
18804 | ||
18805 | wxPyEndAllowThreads(__tstate); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | Py_INCREF(Py_None); resultobj = Py_None; | |
18809 | return resultobj; | |
18810 | fail: | |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
18815 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18816 | PyObject *resultobj; | |
18817 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18818 | bool result; | |
18819 | PyObject * obj0 = 0 ; | |
18820 | char *kwnames[] = { | |
18821 | (char *) "self", NULL | |
18822 | }; | |
18823 | ||
18824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18827 | { |
18828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18829 | result = (bool)(arg1)->HasTextColour(); | |
18830 | ||
18831 | wxPyEndAllowThreads(__tstate); | |
18832 | if (PyErr_Occurred()) SWIG_fail; | |
18833 | } | |
4f89f6a3 RD |
18834 | { |
18835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18836 | } | |
d14a1e28 RD |
18837 | return resultobj; |
18838 | fail: | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
18843 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18844 | PyObject *resultobj; | |
18845 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18846 | bool result; | |
18847 | PyObject * obj0 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18855 | { |
18856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18857 | result = (bool)(arg1)->HasBackgroundColour(); | |
18858 | ||
18859 | wxPyEndAllowThreads(__tstate); | |
18860 | if (PyErr_Occurred()) SWIG_fail; | |
18861 | } | |
4f89f6a3 RD |
18862 | { |
18863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18864 | } | |
d14a1e28 RD |
18865 | return resultobj; |
18866 | fail: | |
18867 | return NULL; | |
18868 | } | |
18869 | ||
18870 | ||
18871 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18872 | PyObject *resultobj; | |
18873 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18874 | bool result; | |
18875 | PyObject * obj0 = 0 ; | |
18876 | char *kwnames[] = { | |
18877 | (char *) "self", NULL | |
18878 | }; | |
18879 | ||
18880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18883 | { |
18884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18885 | result = (bool)(arg1)->HasFont(); | |
18886 | ||
18887 | wxPyEndAllowThreads(__tstate); | |
18888 | if (PyErr_Occurred()) SWIG_fail; | |
18889 | } | |
4f89f6a3 RD |
18890 | { |
18891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18892 | } | |
d14a1e28 RD |
18893 | return resultobj; |
18894 | fail: | |
18895 | return NULL; | |
18896 | } | |
18897 | ||
18898 | ||
18899 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18900 | PyObject *resultobj; | |
18901 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18902 | wxColour result; | |
18903 | PyObject * obj0 = 0 ; | |
18904 | char *kwnames[] = { | |
18905 | (char *) "self", NULL | |
18906 | }; | |
18907 | ||
18908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18911 | { |
18912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18913 | result = (arg1)->GetTextColour(); | |
18914 | ||
18915 | wxPyEndAllowThreads(__tstate); | |
18916 | if (PyErr_Occurred()) SWIG_fail; | |
18917 | } | |
18918 | { | |
18919 | wxColour * resultptr; | |
18920 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18921 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18922 | } |
18923 | return resultobj; | |
18924 | fail: | |
18925 | return NULL; | |
18926 | } | |
18927 | ||
18928 | ||
18929 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18930 | PyObject *resultobj; | |
18931 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18932 | wxColour result; | |
18933 | PyObject * obj0 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18941 | { |
18942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18943 | result = (arg1)->GetBackgroundColour(); | |
18944 | ||
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | { | |
18949 | wxColour * resultptr; | |
18950 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18951 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18952 | } |
18953 | return resultobj; | |
18954 | fail: | |
18955 | return NULL; | |
18956 | } | |
18957 | ||
18958 | ||
18959 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18960 | PyObject *resultobj; | |
18961 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18962 | wxFont result; | |
18963 | PyObject * obj0 = 0 ; | |
18964 | char *kwnames[] = { | |
18965 | (char *) "self", NULL | |
18966 | }; | |
18967 | ||
18968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18971 | { |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | result = (arg1)->GetFont(); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | { | |
18979 | wxFont * resultptr; | |
18980 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 18981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18982 | } |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
18989 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18990 | PyObject *resultobj; | |
18991 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18992 | PyObject * obj0 = 0 ; | |
18993 | char *kwnames[] = { | |
18994 | (char *) "self", NULL | |
18995 | }; | |
18996 | ||
18997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19000 | { |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | wxListItemAttr_Destroy(arg1); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
19007 | Py_INCREF(Py_None); resultobj = Py_None; | |
19008 | return resultobj; | |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
19014 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
19015 | PyObject *obj; | |
19016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19017 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19018 | Py_INCREF(obj); | |
19019 | return Py_BuildValue((char *)""); | |
19020 | } | |
19021 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19022 | PyObject *resultobj; | |
19023 | wxListItem *result; | |
19024 | char *kwnames[] = { | |
19025 | NULL | |
19026 | }; | |
19027 | ||
19028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19029 | { | |
19030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19031 | result = (wxListItem *)new wxListItem(); | |
19032 | ||
19033 | wxPyEndAllowThreads(__tstate); | |
19034 | if (PyErr_Occurred()) SWIG_fail; | |
19035 | } | |
19036 | { | |
412d302d | 19037 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
19038 | } |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19048 | PyObject * obj0 = 0 ; | |
19049 | char *kwnames[] = { | |
19050 | (char *) "self", NULL | |
19051 | }; | |
19052 | ||
19053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19056 | { |
19057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19058 | delete arg1; | |
19059 | ||
19060 | wxPyEndAllowThreads(__tstate); | |
19061 | if (PyErr_Occurred()) SWIG_fail; | |
19062 | } | |
19063 | Py_INCREF(Py_None); resultobj = Py_None; | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj; | |
19072 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19073 | PyObject * obj0 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19081 | { |
19082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19083 | (arg1)->Clear(); | |
19084 | ||
19085 | wxPyEndAllowThreads(__tstate); | |
19086 | if (PyErr_Occurred()) SWIG_fail; | |
19087 | } | |
19088 | Py_INCREF(Py_None); resultobj = Py_None; | |
19089 | return resultobj; | |
19090 | fail: | |
19091 | return NULL; | |
19092 | } | |
19093 | ||
19094 | ||
19095 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19096 | PyObject *resultobj; | |
19097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19098 | PyObject * obj0 = 0 ; | |
19099 | char *kwnames[] = { | |
19100 | (char *) "self", NULL | |
19101 | }; | |
19102 | ||
19103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19106 | { |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | (arg1)->ClearAttributes(); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
19113 | Py_INCREF(Py_None); resultobj = Py_None; | |
19114 | return resultobj; | |
19115 | fail: | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19121 | PyObject *resultobj; | |
19122 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19123 | long arg2 ; | |
19124 | PyObject * obj0 = 0 ; | |
994141e6 | 19125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19126 | char *kwnames[] = { |
19127 | (char *) "self",(char *) "mask", NULL | |
19128 | }; | |
19129 | ||
994141e6 | 19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19133 | arg2 = (long) SWIG_AsLong(obj1); | |
19134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19135 | { |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | (arg1)->SetMask(arg2); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | Py_INCREF(Py_None); resultobj = Py_None; | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19152 | long arg2 ; | |
19153 | PyObject * obj0 = 0 ; | |
994141e6 | 19154 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19155 | char *kwnames[] = { |
19156 | (char *) "self",(char *) "id", NULL | |
19157 | }; | |
19158 | ||
994141e6 | 19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19162 | arg2 = (long) SWIG_AsLong(obj1); | |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19164 | { |
19165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19166 | (arg1)->SetId(arg2); | |
19167 | ||
19168 | wxPyEndAllowThreads(__tstate); | |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
19170 | } | |
19171 | Py_INCREF(Py_None); resultobj = Py_None; | |
19172 | return resultobj; | |
19173 | fail: | |
19174 | return NULL; | |
19175 | } | |
19176 | ||
19177 | ||
19178 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19179 | PyObject *resultobj; | |
19180 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19181 | int arg2 ; | |
19182 | PyObject * obj0 = 0 ; | |
994141e6 | 19183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19184 | char *kwnames[] = { |
19185 | (char *) "self",(char *) "col", NULL | |
19186 | }; | |
19187 | ||
994141e6 | 19188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19191 | arg2 = (int) SWIG_AsInt(obj1); | |
19192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19193 | { |
19194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19195 | (arg1)->SetColumn(arg2); | |
19196 | ||
19197 | wxPyEndAllowThreads(__tstate); | |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
19199 | } | |
19200 | Py_INCREF(Py_None); resultobj = Py_None; | |
19201 | return resultobj; | |
19202 | fail: | |
19203 | return NULL; | |
19204 | } | |
19205 | ||
19206 | ||
19207 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19208 | PyObject *resultobj; | |
19209 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19210 | long arg2 ; | |
19211 | PyObject * obj0 = 0 ; | |
994141e6 | 19212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19213 | char *kwnames[] = { |
19214 | (char *) "self",(char *) "state", NULL | |
19215 | }; | |
19216 | ||
994141e6 | 19217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19220 | arg2 = (long) SWIG_AsLong(obj1); | |
19221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19222 | { |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | (arg1)->SetState(arg2); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | Py_INCREF(Py_None); resultobj = Py_None; | |
19230 | return resultobj; | |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj; | |
19238 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19239 | long arg2 ; | |
19240 | PyObject * obj0 = 0 ; | |
994141e6 | 19241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19242 | char *kwnames[] = { |
19243 | (char *) "self",(char *) "stateMask", NULL | |
19244 | }; | |
19245 | ||
994141e6 | 19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19249 | arg2 = (long) SWIG_AsLong(obj1); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19251 | { |
19252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19253 | (arg1)->SetStateMask(arg2); | |
19254 | ||
19255 | wxPyEndAllowThreads(__tstate); | |
19256 | if (PyErr_Occurred()) SWIG_fail; | |
19257 | } | |
19258 | Py_INCREF(Py_None); resultobj = Py_None; | |
19259 | return resultobj; | |
19260 | fail: | |
19261 | return NULL; | |
19262 | } | |
19263 | ||
19264 | ||
19265 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19266 | PyObject *resultobj; | |
19267 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19268 | wxString *arg2 = 0 ; | |
e811c8ce | 19269 | bool temp2 = False ; |
d14a1e28 RD |
19270 | PyObject * obj0 = 0 ; |
19271 | PyObject * obj1 = 0 ; | |
19272 | char *kwnames[] = { | |
19273 | (char *) "self",(char *) "text", NULL | |
19274 | }; | |
19275 | ||
19276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19279 | { |
19280 | arg2 = wxString_in_helper(obj1); | |
19281 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19282 | temp2 = True; |
d14a1e28 RD |
19283 | } |
19284 | { | |
19285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19286 | (arg1)->SetText((wxString const &)*arg2); | |
19287 | ||
19288 | wxPyEndAllowThreads(__tstate); | |
19289 | if (PyErr_Occurred()) SWIG_fail; | |
19290 | } | |
19291 | Py_INCREF(Py_None); resultobj = Py_None; | |
19292 | { | |
19293 | if (temp2) | |
19294 | delete arg2; | |
19295 | } | |
19296 | return resultobj; | |
19297 | fail: | |
19298 | { | |
19299 | if (temp2) | |
19300 | delete arg2; | |
19301 | } | |
19302 | return NULL; | |
19303 | } | |
19304 | ||
19305 | ||
19306 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19307 | PyObject *resultobj; | |
19308 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19309 | int arg2 ; | |
19310 | PyObject * obj0 = 0 ; | |
994141e6 | 19311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19312 | char *kwnames[] = { |
19313 | (char *) "self",(char *) "image", NULL | |
19314 | }; | |
19315 | ||
994141e6 | 19316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19319 | arg2 = (int) SWIG_AsInt(obj1); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19321 | { |
19322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19323 | (arg1)->SetImage(arg2); | |
19324 | ||
19325 | wxPyEndAllowThreads(__tstate); | |
19326 | if (PyErr_Occurred()) SWIG_fail; | |
19327 | } | |
19328 | Py_INCREF(Py_None); resultobj = Py_None; | |
19329 | return resultobj; | |
19330 | fail: | |
19331 | return NULL; | |
19332 | } | |
19333 | ||
19334 | ||
19335 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19336 | PyObject *resultobj; | |
19337 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19338 | long arg2 ; | |
19339 | PyObject * obj0 = 0 ; | |
994141e6 | 19340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19341 | char *kwnames[] = { |
19342 | (char *) "self",(char *) "data", NULL | |
19343 | }; | |
19344 | ||
994141e6 | 19345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19348 | arg2 = (long) SWIG_AsLong(obj1); | |
19349 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19350 | { |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | (arg1)->SetData(arg2); | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | Py_INCREF(Py_None); resultobj = Py_None; | |
19358 | return resultobj; | |
19359 | fail: | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
19364 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19365 | PyObject *resultobj; | |
19366 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19367 | int arg2 ; | |
19368 | PyObject * obj0 = 0 ; | |
994141e6 | 19369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19370 | char *kwnames[] = { |
19371 | (char *) "self",(char *) "width", NULL | |
19372 | }; | |
19373 | ||
994141e6 | 19374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19377 | arg2 = (int) SWIG_AsInt(obj1); | |
19378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19379 | { |
19380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19381 | (arg1)->SetWidth(arg2); | |
19382 | ||
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
19386 | Py_INCREF(Py_None); resultobj = Py_None; | |
19387 | return resultobj; | |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj; | |
19395 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19396 | int arg2 ; | |
19397 | PyObject * obj0 = 0 ; | |
994141e6 | 19398 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19399 | char *kwnames[] = { |
19400 | (char *) "self",(char *) "align", NULL | |
19401 | }; | |
19402 | ||
994141e6 | 19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19406 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19407 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19408 | { |
19409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19410 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19411 | ||
19412 | wxPyEndAllowThreads(__tstate); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | Py_INCREF(Py_None); resultobj = Py_None; | |
19416 | return resultobj; | |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
19422 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19423 | PyObject *resultobj; | |
19424 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19425 | wxColour *arg2 = 0 ; | |
19426 | wxColour temp2 ; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | PyObject * obj1 = 0 ; | |
19429 | char *kwnames[] = { | |
19430 | (char *) "self",(char *) "colText", NULL | |
19431 | }; | |
19432 | ||
19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19436 | { |
19437 | arg2 = &temp2; | |
19438 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19439 | } | |
19440 | { | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19443 | ||
19444 | wxPyEndAllowThreads(__tstate); | |
19445 | if (PyErr_Occurred()) SWIG_fail; | |
19446 | } | |
19447 | Py_INCREF(Py_None); resultobj = Py_None; | |
19448 | return resultobj; | |
19449 | fail: | |
19450 | return NULL; | |
19451 | } | |
19452 | ||
19453 | ||
19454 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19455 | PyObject *resultobj; | |
19456 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19457 | wxColour *arg2 = 0 ; | |
19458 | wxColour temp2 ; | |
19459 | PyObject * obj0 = 0 ; | |
19460 | PyObject * obj1 = 0 ; | |
19461 | char *kwnames[] = { | |
19462 | (char *) "self",(char *) "colBack", NULL | |
19463 | }; | |
19464 | ||
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19468 | { |
19469 | arg2 = &temp2; | |
19470 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19471 | } | |
19472 | { | |
19473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19474 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19475 | ||
19476 | wxPyEndAllowThreads(__tstate); | |
19477 | if (PyErr_Occurred()) SWIG_fail; | |
19478 | } | |
19479 | Py_INCREF(Py_None); resultobj = Py_None; | |
19480 | return resultobj; | |
19481 | fail: | |
19482 | return NULL; | |
19483 | } | |
19484 | ||
19485 | ||
19486 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19487 | PyObject *resultobj; | |
19488 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19489 | wxFont *arg2 = 0 ; | |
19490 | PyObject * obj0 = 0 ; | |
19491 | PyObject * obj1 = 0 ; | |
19492 | char *kwnames[] = { | |
19493 | (char *) "self",(char *) "font", NULL | |
19494 | }; | |
19495 | ||
19496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19500 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19501 | SWIG_fail; | |
d14a1e28 | 19502 | if (arg2 == NULL) { |
15afbcd0 RD |
19503 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19504 | SWIG_fail; | |
d14a1e28 RD |
19505 | } |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | (arg1)->SetFont((wxFont const &)*arg2); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | Py_INCREF(Py_None); resultobj = Py_None; | |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj; | |
19522 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19523 | long result; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | char *kwnames[] = { | |
19526 | (char *) "self", NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19532 | { |
19533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19534 | result = (long)(arg1)->GetMask(); | |
19535 | ||
19536 | wxPyEndAllowThreads(__tstate); | |
19537 | if (PyErr_Occurred()) SWIG_fail; | |
19538 | } | |
15afbcd0 | 19539 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19540 | return resultobj; |
19541 | fail: | |
19542 | return NULL; | |
19543 | } | |
19544 | ||
19545 | ||
19546 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19547 | PyObject *resultobj; | |
19548 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19549 | long result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "self", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19558 | { |
19559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19560 | result = (long)(arg1)->GetId(); | |
19561 | ||
19562 | wxPyEndAllowThreads(__tstate); | |
19563 | if (PyErr_Occurred()) SWIG_fail; | |
19564 | } | |
15afbcd0 | 19565 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19566 | return resultobj; |
19567 | fail: | |
19568 | return NULL; | |
19569 | } | |
19570 | ||
19571 | ||
19572 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19573 | PyObject *resultobj; | |
19574 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19575 | int result; | |
19576 | PyObject * obj0 = 0 ; | |
19577 | char *kwnames[] = { | |
19578 | (char *) "self", NULL | |
19579 | }; | |
19580 | ||
19581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19584 | { |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | result = (int)(arg1)->GetColumn(); | |
19587 | ||
19588 | wxPyEndAllowThreads(__tstate); | |
19589 | if (PyErr_Occurred()) SWIG_fail; | |
19590 | } | |
15afbcd0 | 19591 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19592 | return resultobj; |
19593 | fail: | |
19594 | return NULL; | |
19595 | } | |
19596 | ||
19597 | ||
19598 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19599 | PyObject *resultobj; | |
19600 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19601 | long result; | |
19602 | PyObject * obj0 = 0 ; | |
19603 | char *kwnames[] = { | |
19604 | (char *) "self", NULL | |
19605 | }; | |
19606 | ||
19607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19610 | { |
19611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19612 | result = (long)(arg1)->GetState(); | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
15afbcd0 | 19617 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19618 | return resultobj; |
19619 | fail: | |
19620 | return NULL; | |
19621 | } | |
19622 | ||
19623 | ||
19624 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19625 | PyObject *resultobj; | |
19626 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19627 | wxString *result; | |
19628 | PyObject * obj0 = 0 ; | |
19629 | char *kwnames[] = { | |
19630 | (char *) "self", NULL | |
19631 | }; | |
19632 | ||
19633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19636 | { |
19637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19638 | { | |
19639 | wxString const &_result_ref = (arg1)->GetText(); | |
19640 | result = (wxString *) &_result_ref; | |
19641 | } | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
cc6dd355 RD |
19646 | { |
19647 | #if wxUSE_UNICODE | |
19648 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19649 | #else | |
19650 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19651 | #endif | |
19652 | } | |
d14a1e28 RD |
19653 | return resultobj; |
19654 | fail: | |
19655 | return NULL; | |
19656 | } | |
19657 | ||
19658 | ||
19659 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19660 | PyObject *resultobj; | |
19661 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19662 | int result; | |
19663 | PyObject * obj0 = 0 ; | |
19664 | char *kwnames[] = { | |
19665 | (char *) "self", NULL | |
19666 | }; | |
19667 | ||
19668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19671 | { |
19672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19673 | result = (int)(arg1)->GetImage(); | |
19674 | ||
19675 | wxPyEndAllowThreads(__tstate); | |
19676 | if (PyErr_Occurred()) SWIG_fail; | |
19677 | } | |
15afbcd0 | 19678 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19679 | return resultobj; |
19680 | fail: | |
19681 | return NULL; | |
19682 | } | |
19683 | ||
19684 | ||
19685 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19686 | PyObject *resultobj; | |
19687 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19688 | long result; | |
19689 | PyObject * obj0 = 0 ; | |
19690 | char *kwnames[] = { | |
19691 | (char *) "self", NULL | |
19692 | }; | |
19693 | ||
19694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19697 | { |
19698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19699 | result = (long)(arg1)->GetData(); | |
19700 | ||
19701 | wxPyEndAllowThreads(__tstate); | |
19702 | if (PyErr_Occurred()) SWIG_fail; | |
19703 | } | |
15afbcd0 | 19704 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19705 | return resultobj; |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
19711 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19712 | PyObject *resultobj; | |
19713 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19714 | int result; | |
19715 | PyObject * obj0 = 0 ; | |
19716 | char *kwnames[] = { | |
19717 | (char *) "self", NULL | |
19718 | }; | |
19719 | ||
19720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19723 | { |
19724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19725 | result = (int)(arg1)->GetWidth(); | |
19726 | ||
19727 | wxPyEndAllowThreads(__tstate); | |
19728 | if (PyErr_Occurred()) SWIG_fail; | |
19729 | } | |
15afbcd0 | 19730 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19731 | return resultobj; |
19732 | fail: | |
19733 | return NULL; | |
19734 | } | |
19735 | ||
19736 | ||
19737 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19738 | PyObject *resultobj; | |
19739 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19740 | int result; | |
19741 | PyObject * obj0 = 0 ; | |
19742 | char *kwnames[] = { | |
19743 | (char *) "self", NULL | |
19744 | }; | |
19745 | ||
19746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19749 | { |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19751 | result = (int)(arg1)->GetAlign(); | |
19752 | ||
19753 | wxPyEndAllowThreads(__tstate); | |
19754 | if (PyErr_Occurred()) SWIG_fail; | |
19755 | } | |
15afbcd0 | 19756 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19757 | return resultobj; |
19758 | fail: | |
19759 | return NULL; | |
19760 | } | |
19761 | ||
19762 | ||
19763 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19764 | PyObject *resultobj; | |
19765 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19766 | wxListItemAttr *result; | |
19767 | PyObject * obj0 = 0 ; | |
19768 | char *kwnames[] = { | |
19769 | (char *) "self", NULL | |
19770 | }; | |
19771 | ||
19772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19775 | { |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
15afbcd0 | 19782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
19783 | return resultobj; |
19784 | fail: | |
19785 | return NULL; | |
19786 | } | |
19787 | ||
19788 | ||
19789 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19790 | PyObject *resultobj; | |
19791 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19792 | bool result; | |
19793 | PyObject * obj0 = 0 ; | |
19794 | char *kwnames[] = { | |
19795 | (char *) "self", NULL | |
19796 | }; | |
19797 | ||
19798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19801 | { |
19802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19803 | result = (bool)(arg1)->HasAttributes(); | |
19804 | ||
19805 | wxPyEndAllowThreads(__tstate); | |
19806 | if (PyErr_Occurred()) SWIG_fail; | |
19807 | } | |
4f89f6a3 RD |
19808 | { |
19809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19810 | } | |
d14a1e28 RD |
19811 | return resultobj; |
19812 | fail: | |
19813 | return NULL; | |
19814 | } | |
19815 | ||
19816 | ||
19817 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19818 | PyObject *resultobj; | |
19819 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19820 | wxColour result; | |
19821 | PyObject * obj0 = 0 ; | |
19822 | char *kwnames[] = { | |
19823 | (char *) "self", NULL | |
19824 | }; | |
19825 | ||
19826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19829 | { |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19832 | ||
19833 | wxPyEndAllowThreads(__tstate); | |
19834 | if (PyErr_Occurred()) SWIG_fail; | |
19835 | } | |
19836 | { | |
19837 | wxColour * resultptr; | |
19838 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19839 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19840 | } |
19841 | return resultobj; | |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
19847 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19848 | PyObject *resultobj; | |
19849 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19850 | wxColour result; | |
19851 | PyObject * obj0 = 0 ; | |
19852 | char *kwnames[] = { | |
19853 | (char *) "self", NULL | |
19854 | }; | |
19855 | ||
19856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19859 | { |
19860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19861 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19862 | ||
19863 | wxPyEndAllowThreads(__tstate); | |
19864 | if (PyErr_Occurred()) SWIG_fail; | |
19865 | } | |
19866 | { | |
19867 | wxColour * resultptr; | |
19868 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19869 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19870 | } |
19871 | return resultobj; | |
19872 | fail: | |
19873 | return NULL; | |
19874 | } | |
19875 | ||
19876 | ||
19877 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19878 | PyObject *resultobj; | |
19879 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19880 | wxFont result; | |
19881 | PyObject * obj0 = 0 ; | |
19882 | char *kwnames[] = { | |
19883 | (char *) "self", NULL | |
19884 | }; | |
19885 | ||
19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19889 | { |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | result = ((wxListItem const *)arg1)->GetFont(); | |
19892 | ||
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | { | |
19897 | wxFont * resultptr; | |
19898 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19900 | } |
19901 | return resultobj; | |
19902 | fail: | |
19903 | return NULL; | |
19904 | } | |
19905 | ||
19906 | ||
19907 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19908 | PyObject *resultobj; | |
19909 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19910 | long arg2 ; | |
19911 | PyObject * obj0 = 0 ; | |
994141e6 | 19912 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19913 | char *kwnames[] = { |
19914 | (char *) "self",(char *) "m_mask", NULL | |
19915 | }; | |
19916 | ||
994141e6 | 19917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19920 | arg2 = (long) SWIG_AsLong(obj1); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19922 | if (arg1) (arg1)->m_mask = arg2; |
19923 | ||
19924 | Py_INCREF(Py_None); resultobj = Py_None; | |
19925 | return resultobj; | |
19926 | fail: | |
19927 | return NULL; | |
19928 | } | |
19929 | ||
19930 | ||
19931 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19932 | PyObject *resultobj; | |
19933 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19934 | long result; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | char *kwnames[] = { | |
19937 | (char *) "self", NULL | |
19938 | }; | |
19939 | ||
19940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19943 | result = (long) ((arg1)->m_mask); |
19944 | ||
15afbcd0 | 19945 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19946 | return resultobj; |
19947 | fail: | |
19948 | return NULL; | |
19949 | } | |
19950 | ||
19951 | ||
19952 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19953 | PyObject *resultobj; | |
19954 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19955 | long arg2 ; | |
19956 | PyObject * obj0 = 0 ; | |
994141e6 | 19957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19958 | char *kwnames[] = { |
19959 | (char *) "self",(char *) "m_itemId", NULL | |
19960 | }; | |
19961 | ||
994141e6 | 19962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19965 | arg2 = (long) SWIG_AsLong(obj1); | |
19966 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19967 | if (arg1) (arg1)->m_itemId = arg2; |
19968 | ||
19969 | Py_INCREF(Py_None); resultobj = Py_None; | |
19970 | return resultobj; | |
19971 | fail: | |
19972 | return NULL; | |
19973 | } | |
19974 | ||
19975 | ||
19976 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19977 | PyObject *resultobj; | |
19978 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19979 | long result; | |
19980 | PyObject * obj0 = 0 ; | |
19981 | char *kwnames[] = { | |
19982 | (char *) "self", NULL | |
19983 | }; | |
19984 | ||
19985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19988 | result = (long) ((arg1)->m_itemId); |
19989 | ||
15afbcd0 | 19990 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19991 | return resultobj; |
19992 | fail: | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
19997 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19998 | PyObject *resultobj; | |
19999 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20000 | int arg2 ; | |
20001 | PyObject * obj0 = 0 ; | |
994141e6 | 20002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20003 | char *kwnames[] = { |
20004 | (char *) "self",(char *) "m_col", NULL | |
20005 | }; | |
20006 | ||
994141e6 | 20007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20010 | arg2 = (int) SWIG_AsInt(obj1); | |
20011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20012 | if (arg1) (arg1)->m_col = arg2; |
20013 | ||
20014 | Py_INCREF(Py_None); resultobj = Py_None; | |
20015 | return resultobj; | |
20016 | fail: | |
20017 | return NULL; | |
20018 | } | |
20019 | ||
20020 | ||
20021 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20022 | PyObject *resultobj; | |
20023 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20024 | int result; | |
20025 | PyObject * obj0 = 0 ; | |
20026 | char *kwnames[] = { | |
20027 | (char *) "self", NULL | |
20028 | }; | |
20029 | ||
20030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20033 | result = (int) ((arg1)->m_col); |
20034 | ||
15afbcd0 | 20035 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20036 | return resultobj; |
20037 | fail: | |
20038 | return NULL; | |
20039 | } | |
20040 | ||
20041 | ||
20042 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20043 | PyObject *resultobj; | |
20044 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20045 | long arg2 ; | |
20046 | PyObject * obj0 = 0 ; | |
994141e6 | 20047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20048 | char *kwnames[] = { |
20049 | (char *) "self",(char *) "m_state", NULL | |
20050 | }; | |
20051 | ||
994141e6 | 20052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20055 | arg2 = (long) SWIG_AsLong(obj1); | |
20056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20057 | if (arg1) (arg1)->m_state = arg2; |
20058 | ||
20059 | Py_INCREF(Py_None); resultobj = Py_None; | |
20060 | return resultobj; | |
20061 | fail: | |
20062 | return NULL; | |
20063 | } | |
20064 | ||
20065 | ||
20066 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20067 | PyObject *resultobj; | |
20068 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20069 | long result; | |
20070 | PyObject * obj0 = 0 ; | |
20071 | char *kwnames[] = { | |
20072 | (char *) "self", NULL | |
20073 | }; | |
20074 | ||
20075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20078 | result = (long) ((arg1)->m_state); |
20079 | ||
15afbcd0 | 20080 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20081 | return resultobj; |
20082 | fail: | |
20083 | return NULL; | |
20084 | } | |
20085 | ||
20086 | ||
20087 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20088 | PyObject *resultobj; | |
20089 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20090 | long arg2 ; | |
20091 | PyObject * obj0 = 0 ; | |
994141e6 | 20092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20093 | char *kwnames[] = { |
20094 | (char *) "self",(char *) "m_stateMask", NULL | |
20095 | }; | |
20096 | ||
994141e6 | 20097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20100 | arg2 = (long) SWIG_AsLong(obj1); | |
20101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20102 | if (arg1) (arg1)->m_stateMask = arg2; |
20103 | ||
20104 | Py_INCREF(Py_None); resultobj = Py_None; | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | return NULL; | |
20108 | } | |
20109 | ||
20110 | ||
20111 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20112 | PyObject *resultobj; | |
20113 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20114 | long result; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | char *kwnames[] = { | |
20117 | (char *) "self", NULL | |
20118 | }; | |
20119 | ||
20120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20123 | result = (long) ((arg1)->m_stateMask); |
20124 | ||
15afbcd0 | 20125 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20126 | return resultobj; |
20127 | fail: | |
20128 | return NULL; | |
20129 | } | |
20130 | ||
20131 | ||
20132 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20133 | PyObject *resultobj; | |
20134 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20135 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 20136 | bool temp2 = False ; |
d14a1e28 RD |
20137 | PyObject * obj0 = 0 ; |
20138 | PyObject * obj1 = 0 ; | |
20139 | char *kwnames[] = { | |
20140 | (char *) "self",(char *) "m_text", NULL | |
20141 | }; | |
20142 | ||
20143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
20146 | { |
20147 | arg2 = wxString_in_helper(obj1); | |
20148 | if (arg2 == NULL) SWIG_fail; | |
20149 | temp2 = True; | |
20150 | } | |
196addbf | 20151 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20152 | |
20153 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20154 | { |
20155 | if (temp2) | |
20156 | delete arg2; | |
20157 | } | |
d14a1e28 RD |
20158 | return resultobj; |
20159 | fail: | |
7eae615b RD |
20160 | { |
20161 | if (temp2) | |
20162 | delete arg2; | |
20163 | } | |
d14a1e28 RD |
20164 | return NULL; |
20165 | } | |
20166 | ||
20167 | ||
20168 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20169 | PyObject *resultobj; | |
20170 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20171 | wxString *result; |
d14a1e28 RD |
20172 | PyObject * obj0 = 0 ; |
20173 | char *kwnames[] = { | |
20174 | (char *) "self", NULL | |
20175 | }; | |
20176 | ||
20177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20180 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20181 | |
20182 | { | |
20183 | #if wxUSE_UNICODE | |
196addbf | 20184 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20185 | #else |
196addbf | 20186 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20187 | #endif |
20188 | } | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20198 | int arg2 ; | |
20199 | PyObject * obj0 = 0 ; | |
994141e6 | 20200 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20201 | char *kwnames[] = { |
20202 | (char *) "self",(char *) "m_image", NULL | |
20203 | }; | |
20204 | ||
994141e6 | 20205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20208 | arg2 = (int) SWIG_AsInt(obj1); | |
20209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20210 | if (arg1) (arg1)->m_image = arg2; |
20211 | ||
20212 | Py_INCREF(Py_None); resultobj = Py_None; | |
20213 | return resultobj; | |
20214 | fail: | |
20215 | return NULL; | |
20216 | } | |
20217 | ||
20218 | ||
20219 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20220 | PyObject *resultobj; | |
20221 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20222 | int result; | |
20223 | PyObject * obj0 = 0 ; | |
20224 | char *kwnames[] = { | |
20225 | (char *) "self", NULL | |
20226 | }; | |
20227 | ||
20228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20231 | result = (int) ((arg1)->m_image); |
20232 | ||
15afbcd0 | 20233 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20234 | return resultobj; |
20235 | fail: | |
20236 | return NULL; | |
20237 | } | |
20238 | ||
20239 | ||
20240 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20241 | PyObject *resultobj; | |
20242 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20243 | long arg2 ; | |
20244 | PyObject * obj0 = 0 ; | |
994141e6 | 20245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20246 | char *kwnames[] = { |
20247 | (char *) "self",(char *) "m_data", NULL | |
20248 | }; | |
20249 | ||
994141e6 | 20250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20253 | arg2 = (long) SWIG_AsLong(obj1); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20255 | if (arg1) (arg1)->m_data = arg2; |
20256 | ||
20257 | Py_INCREF(Py_None); resultobj = Py_None; | |
20258 | return resultobj; | |
20259 | fail: | |
20260 | return NULL; | |
20261 | } | |
20262 | ||
20263 | ||
20264 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20265 | PyObject *resultobj; | |
20266 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20267 | long result; | |
20268 | PyObject * obj0 = 0 ; | |
20269 | char *kwnames[] = { | |
20270 | (char *) "self", NULL | |
20271 | }; | |
20272 | ||
20273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20276 | result = (long) ((arg1)->m_data); |
20277 | ||
15afbcd0 | 20278 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20279 | return resultobj; |
20280 | fail: | |
20281 | return NULL; | |
20282 | } | |
20283 | ||
20284 | ||
20285 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20286 | PyObject *resultobj; | |
20287 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20288 | int arg2 ; | |
20289 | PyObject * obj0 = 0 ; | |
994141e6 | 20290 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20291 | char *kwnames[] = { |
20292 | (char *) "self",(char *) "m_format", NULL | |
20293 | }; | |
20294 | ||
994141e6 | 20295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20298 | arg2 = (int) SWIG_AsInt(obj1); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20300 | if (arg1) (arg1)->m_format = arg2; |
20301 | ||
20302 | Py_INCREF(Py_None); resultobj = Py_None; | |
20303 | return resultobj; | |
20304 | fail: | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20310 | PyObject *resultobj; | |
20311 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20312 | int result; | |
20313 | PyObject * obj0 = 0 ; | |
20314 | char *kwnames[] = { | |
20315 | (char *) "self", NULL | |
20316 | }; | |
20317 | ||
20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20321 | result = (int) ((arg1)->m_format); |
20322 | ||
15afbcd0 | 20323 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20324 | return resultobj; |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
20330 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20331 | PyObject *resultobj; | |
20332 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20333 | int arg2 ; | |
20334 | PyObject * obj0 = 0 ; | |
994141e6 | 20335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20336 | char *kwnames[] = { |
20337 | (char *) "self",(char *) "m_width", NULL | |
20338 | }; | |
20339 | ||
994141e6 | 20340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20343 | arg2 = (int) SWIG_AsInt(obj1); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20345 | if (arg1) (arg1)->m_width = arg2; |
20346 | ||
20347 | Py_INCREF(Py_None); resultobj = Py_None; | |
20348 | return resultobj; | |
20349 | fail: | |
20350 | return NULL; | |
20351 | } | |
20352 | ||
20353 | ||
20354 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20355 | PyObject *resultobj; | |
20356 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20357 | int result; | |
20358 | PyObject * obj0 = 0 ; | |
20359 | char *kwnames[] = { | |
20360 | (char *) "self", NULL | |
20361 | }; | |
20362 | ||
20363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20366 | result = (int) ((arg1)->m_width); |
20367 | ||
15afbcd0 | 20368 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20369 | return resultobj; |
20370 | fail: | |
20371 | return NULL; | |
20372 | } | |
20373 | ||
20374 | ||
20375 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20376 | PyObject *obj; | |
20377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20378 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20379 | Py_INCREF(obj); | |
20380 | return Py_BuildValue((char *)""); | |
20381 | } | |
20382 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20383 | PyObject *resultobj; | |
20384 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20385 | int arg2 = (int) 0 ; | |
20386 | wxListEvent *result; | |
994141e6 RD |
20387 | PyObject * obj0 = 0 ; |
20388 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20389 | char *kwnames[] = { |
20390 | (char *) "commandType",(char *) "id", NULL | |
20391 | }; | |
20392 | ||
994141e6 RD |
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20394 | if (obj0) { | |
15afbcd0 RD |
20395 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20397 | } |
20398 | if (obj1) { | |
15afbcd0 RD |
20399 | arg2 = (int) SWIG_AsInt(obj1); |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20401 | } |
d14a1e28 RD |
20402 | { |
20403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20404 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20405 | ||
20406 | wxPyEndAllowThreads(__tstate); | |
20407 | if (PyErr_Occurred()) SWIG_fail; | |
20408 | } | |
15afbcd0 | 20409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20410 | return resultobj; |
20411 | fail: | |
20412 | return NULL; | |
20413 | } | |
20414 | ||
20415 | ||
20416 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20417 | PyObject *resultobj; | |
20418 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20419 | int arg2 ; | |
20420 | PyObject * obj0 = 0 ; | |
994141e6 | 20421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20422 | char *kwnames[] = { |
20423 | (char *) "self",(char *) "m_code", NULL | |
20424 | }; | |
20425 | ||
994141e6 | 20426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20429 | arg2 = (int) SWIG_AsInt(obj1); | |
20430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20431 | if (arg1) (arg1)->m_code = arg2; |
20432 | ||
20433 | Py_INCREF(Py_None); resultobj = Py_None; | |
20434 | return resultobj; | |
20435 | fail: | |
20436 | return NULL; | |
20437 | } | |
20438 | ||
20439 | ||
20440 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20441 | PyObject *resultobj; | |
20442 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20443 | int result; | |
20444 | PyObject * obj0 = 0 ; | |
20445 | char *kwnames[] = { | |
20446 | (char *) "self", NULL | |
20447 | }; | |
20448 | ||
20449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20452 | result = (int) ((arg1)->m_code); |
20453 | ||
15afbcd0 | 20454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20455 | return resultobj; |
20456 | fail: | |
20457 | return NULL; | |
20458 | } | |
20459 | ||
20460 | ||
20461 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20462 | PyObject *resultobj; | |
20463 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20464 | long arg2 ; | |
20465 | PyObject * obj0 = 0 ; | |
994141e6 | 20466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20467 | char *kwnames[] = { |
20468 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20469 | }; | |
20470 | ||
994141e6 | 20471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20474 | arg2 = (long) SWIG_AsLong(obj1); | |
20475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20476 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20477 | ||
20478 | Py_INCREF(Py_None); resultobj = Py_None; | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20486 | PyObject *resultobj; | |
20487 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20488 | long result; | |
20489 | PyObject * obj0 = 0 ; | |
20490 | char *kwnames[] = { | |
20491 | (char *) "self", NULL | |
20492 | }; | |
20493 | ||
20494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20497 | result = (long) ((arg1)->m_oldItemIndex); |
20498 | ||
15afbcd0 | 20499 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20500 | return resultobj; |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20507 | PyObject *resultobj; | |
20508 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20509 | long arg2 ; | |
20510 | PyObject * obj0 = 0 ; | |
994141e6 | 20511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20512 | char *kwnames[] = { |
20513 | (char *) "self",(char *) "m_itemIndex", NULL | |
20514 | }; | |
20515 | ||
994141e6 | 20516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20519 | arg2 = (long) SWIG_AsLong(obj1); | |
20520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20521 | if (arg1) (arg1)->m_itemIndex = arg2; |
20522 | ||
20523 | Py_INCREF(Py_None); resultobj = Py_None; | |
20524 | return resultobj; | |
20525 | fail: | |
20526 | return NULL; | |
20527 | } | |
20528 | ||
20529 | ||
20530 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20531 | PyObject *resultobj; | |
20532 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20533 | long result; | |
20534 | PyObject * obj0 = 0 ; | |
20535 | char *kwnames[] = { | |
20536 | (char *) "self", NULL | |
20537 | }; | |
20538 | ||
20539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20542 | result = (long) ((arg1)->m_itemIndex); |
20543 | ||
15afbcd0 | 20544 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20545 | return resultobj; |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
20551 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20552 | PyObject *resultobj; | |
20553 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20554 | int arg2 ; | |
20555 | PyObject * obj0 = 0 ; | |
994141e6 | 20556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20557 | char *kwnames[] = { |
20558 | (char *) "self",(char *) "m_col", NULL | |
20559 | }; | |
20560 | ||
994141e6 | 20561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20564 | arg2 = (int) SWIG_AsInt(obj1); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20566 | if (arg1) (arg1)->m_col = arg2; |
20567 | ||
20568 | Py_INCREF(Py_None); resultobj = Py_None; | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj; | |
20577 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20578 | int result; | |
20579 | PyObject * obj0 = 0 ; | |
20580 | char *kwnames[] = { | |
20581 | (char *) "self", NULL | |
20582 | }; | |
20583 | ||
20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20587 | result = (int) ((arg1)->m_col); |
20588 | ||
15afbcd0 | 20589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20590 | return resultobj; |
20591 | fail: | |
20592 | return NULL; | |
20593 | } | |
20594 | ||
20595 | ||
20596 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20597 | PyObject *resultobj; | |
20598 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20599 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20600 | PyObject * obj0 = 0 ; | |
20601 | PyObject * obj1 = 0 ; | |
20602 | char *kwnames[] = { | |
20603 | (char *) "self",(char *) "m_pointDrag", NULL | |
20604 | }; | |
20605 | ||
20606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20611 | if (arg1) (arg1)->m_pointDrag = *arg2; |
20612 | ||
20613 | Py_INCREF(Py_None); resultobj = Py_None; | |
20614 | return resultobj; | |
20615 | fail: | |
20616 | return NULL; | |
20617 | } | |
20618 | ||
20619 | ||
20620 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20621 | PyObject *resultobj; | |
20622 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20623 | wxPoint *result; | |
20624 | PyObject * obj0 = 0 ; | |
20625 | char *kwnames[] = { | |
20626 | (char *) "self", NULL | |
20627 | }; | |
20628 | ||
20629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20632 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
20633 | ||
15afbcd0 | 20634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
20635 | return resultobj; |
20636 | fail: | |
20637 | return NULL; | |
20638 | } | |
20639 | ||
20640 | ||
20641 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20642 | PyObject *resultobj; | |
20643 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20644 | wxListItem *result; | |
20645 | PyObject * obj0 = 0 ; | |
20646 | char *kwnames[] = { | |
20647 | (char *) "self", NULL | |
20648 | }; | |
20649 | ||
20650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20653 | result = (wxListItem *)& ((arg1)->m_item); |
20654 | ||
20655 | { | |
412d302d | 20656 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20657 | } |
20658 | return resultobj; | |
20659 | fail: | |
20660 | return NULL; | |
20661 | } | |
20662 | ||
20663 | ||
20664 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20665 | PyObject *resultobj; | |
20666 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20667 | int result; | |
20668 | PyObject * obj0 = 0 ; | |
20669 | char *kwnames[] = { | |
20670 | (char *) "self", NULL | |
20671 | }; | |
20672 | ||
20673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20676 | { |
20677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20678 | result = (int)(arg1)->GetKeyCode(); | |
20679 | ||
20680 | wxPyEndAllowThreads(__tstate); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | } | |
15afbcd0 | 20683 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20684 | return resultobj; |
20685 | fail: | |
20686 | return NULL; | |
20687 | } | |
20688 | ||
20689 | ||
20690 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20691 | PyObject *resultobj; | |
20692 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20693 | long result; | |
20694 | PyObject * obj0 = 0 ; | |
20695 | char *kwnames[] = { | |
20696 | (char *) "self", NULL | |
20697 | }; | |
20698 | ||
20699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20702 | { |
20703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20704 | result = (long)(arg1)->GetIndex(); | |
20705 | ||
20706 | wxPyEndAllowThreads(__tstate); | |
20707 | if (PyErr_Occurred()) SWIG_fail; | |
20708 | } | |
15afbcd0 | 20709 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20710 | return resultobj; |
20711 | fail: | |
20712 | return NULL; | |
20713 | } | |
20714 | ||
20715 | ||
20716 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20717 | PyObject *resultobj; | |
20718 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20719 | int result; | |
20720 | PyObject * obj0 = 0 ; | |
20721 | char *kwnames[] = { | |
20722 | (char *) "self", NULL | |
20723 | }; | |
20724 | ||
20725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20728 | { |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | result = (int)(arg1)->GetColumn(); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
15afbcd0 | 20735 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20736 | return resultobj; |
20737 | fail: | |
20738 | return NULL; | |
20739 | } | |
20740 | ||
20741 | ||
20742 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20743 | PyObject *resultobj; | |
20744 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20745 | wxPoint result; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | char *kwnames[] = { | |
20748 | (char *) "self", NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20754 | { |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | result = (arg1)->GetPoint(); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | { | |
20762 | wxPoint * resultptr; | |
20763 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 20764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20765 | } |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20775 | wxString *result; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | char *kwnames[] = { | |
20778 | (char *) "self", NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20784 | { |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | { | |
20787 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20788 | result = (wxString *) &_result_ref; | |
20789 | } | |
20790 | ||
20791 | wxPyEndAllowThreads(__tstate); | |
20792 | if (PyErr_Occurred()) SWIG_fail; | |
20793 | } | |
cc6dd355 RD |
20794 | { |
20795 | #if wxUSE_UNICODE | |
20796 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20797 | #else | |
20798 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20799 | #endif | |
20800 | } | |
d14a1e28 RD |
20801 | return resultobj; |
20802 | fail: | |
20803 | return NULL; | |
20804 | } | |
20805 | ||
20806 | ||
20807 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20808 | PyObject *resultobj; | |
20809 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20810 | wxString *result; | |
20811 | PyObject * obj0 = 0 ; | |
20812 | char *kwnames[] = { | |
20813 | (char *) "self", NULL | |
20814 | }; | |
20815 | ||
20816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20819 | { |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | { | |
20822 | wxString const &_result_ref = (arg1)->GetText(); | |
20823 | result = (wxString *) &_result_ref; | |
20824 | } | |
20825 | ||
20826 | wxPyEndAllowThreads(__tstate); | |
20827 | if (PyErr_Occurred()) SWIG_fail; | |
20828 | } | |
cc6dd355 RD |
20829 | { |
20830 | #if wxUSE_UNICODE | |
20831 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20832 | #else | |
20833 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20834 | #endif | |
20835 | } | |
d14a1e28 RD |
20836 | return resultobj; |
20837 | fail: | |
20838 | return NULL; | |
20839 | } | |
20840 | ||
20841 | ||
20842 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20843 | PyObject *resultobj; | |
20844 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20845 | int result; | |
20846 | PyObject * obj0 = 0 ; | |
20847 | char *kwnames[] = { | |
20848 | (char *) "self", NULL | |
20849 | }; | |
20850 | ||
20851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20854 | { |
20855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20856 | result = (int)(arg1)->GetImage(); | |
20857 | ||
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
15afbcd0 | 20861 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20862 | return resultobj; |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20869 | PyObject *resultobj; | |
20870 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20871 | long result; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "self", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20880 | { |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | result = (long)(arg1)->GetData(); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
15afbcd0 | 20887 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20888 | return resultobj; |
20889 | fail: | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
20894 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20895 | PyObject *resultobj; | |
20896 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20897 | long result; | |
20898 | PyObject * obj0 = 0 ; | |
20899 | char *kwnames[] = { | |
20900 | (char *) "self", NULL | |
20901 | }; | |
20902 | ||
20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20906 | { |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = (long)(arg1)->GetMask(); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
15afbcd0 | 20913 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20914 | return resultobj; |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
20920 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20921 | PyObject *resultobj; | |
20922 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20923 | wxListItem *result; | |
20924 | PyObject * obj0 = 0 ; | |
20925 | char *kwnames[] = { | |
20926 | (char *) "self", NULL | |
20927 | }; | |
20928 | ||
20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20932 | { |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | { | |
20935 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20936 | result = (wxListItem *) &_result_ref; | |
20937 | } | |
20938 | ||
20939 | wxPyEndAllowThreads(__tstate); | |
20940 | if (PyErr_Occurred()) SWIG_fail; | |
20941 | } | |
15afbcd0 | 20942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20943 | return resultobj; |
20944 | fail: | |
20945 | return NULL; | |
20946 | } | |
20947 | ||
20948 | ||
20949 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20950 | PyObject *resultobj; | |
20951 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20952 | long result; | |
20953 | PyObject * obj0 = 0 ; | |
20954 | char *kwnames[] = { | |
20955 | (char *) "self", NULL | |
20956 | }; | |
20957 | ||
20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20961 | { |
20962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20963 | result = (long)(arg1)->GetCacheFrom(); | |
20964 | ||
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
15afbcd0 | 20968 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20969 | return resultobj; |
20970 | fail: | |
20971 | return NULL; | |
20972 | } | |
20973 | ||
20974 | ||
20975 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20976 | PyObject *resultobj; | |
20977 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20978 | long result; | |
20979 | PyObject * obj0 = 0 ; | |
20980 | char *kwnames[] = { | |
20981 | (char *) "self", NULL | |
20982 | }; | |
20983 | ||
20984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20987 | { |
20988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20989 | result = (long)(arg1)->GetCacheTo(); | |
20990 | ||
20991 | wxPyEndAllowThreads(__tstate); | |
20992 | if (PyErr_Occurred()) SWIG_fail; | |
20993 | } | |
15afbcd0 | 20994 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20995 | return resultobj; |
20996 | fail: | |
20997 | return NULL; | |
20998 | } | |
20999 | ||
21000 | ||
21001 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21002 | PyObject *resultobj; | |
21003 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21004 | bool result; | |
21005 | PyObject * obj0 = 0 ; | |
21006 | char *kwnames[] = { | |
21007 | (char *) "self", NULL | |
21008 | }; | |
21009 | ||
21010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21013 | { |
21014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21015 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21016 | ||
21017 | wxPyEndAllowThreads(__tstate); | |
21018 | if (PyErr_Occurred()) SWIG_fail; | |
21019 | } | |
4f89f6a3 RD |
21020 | { |
21021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21022 | } | |
d14a1e28 RD |
21023 | return resultobj; |
21024 | fail: | |
21025 | return NULL; | |
21026 | } | |
21027 | ||
21028 | ||
21029 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21030 | PyObject *resultobj; | |
21031 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21032 | bool arg2 ; | |
21033 | PyObject * obj0 = 0 ; | |
21034 | PyObject * obj1 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "self",(char *) "editCancelled", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21042 | arg2 = (bool) SWIG_AsBool(obj1); | |
21043 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21044 | { |
21045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21046 | (arg1)->SetEditCanceled(arg2); | |
21047 | ||
21048 | wxPyEndAllowThreads(__tstate); | |
21049 | if (PyErr_Occurred()) SWIG_fail; | |
21050 | } | |
21051 | Py_INCREF(Py_None); resultobj = Py_None; | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
21058 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
21059 | PyObject *obj; | |
21060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21061 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21062 | Py_INCREF(obj); | |
21063 | return Py_BuildValue((char *)""); | |
21064 | } | |
21065 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21066 | PyObject *resultobj; | |
21067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21068 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21069 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21070 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21071 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21072 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21073 | long arg5 = (long) wxLC_ICON ; | |
21074 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21075 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21076 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21077 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21078 | wxPyListCtrl *result; | |
21079 | wxPoint temp3 ; | |
21080 | wxSize temp4 ; | |
e811c8ce | 21081 | bool temp7 = False ; |
d14a1e28 | 21082 | PyObject * obj0 = 0 ; |
994141e6 | 21083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21084 | PyObject * obj2 = 0 ; |
21085 | PyObject * obj3 = 0 ; | |
994141e6 | 21086 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21087 | PyObject * obj5 = 0 ; |
21088 | PyObject * obj6 = 0 ; | |
21089 | char *kwnames[] = { | |
21090 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21091 | }; | |
21092 | ||
994141e6 | 21093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21096 | if (obj1) { |
15afbcd0 RD |
21097 | arg2 = (int) SWIG_AsInt(obj1); |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21099 | } |
d14a1e28 RD |
21100 | if (obj2) { |
21101 | { | |
21102 | arg3 = &temp3; | |
21103 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21104 | } | |
21105 | } | |
21106 | if (obj3) { | |
21107 | { | |
21108 | arg4 = &temp4; | |
21109 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21110 | } | |
21111 | } | |
994141e6 | 21112 | if (obj4) { |
15afbcd0 RD |
21113 | arg5 = (long) SWIG_AsLong(obj4); |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21115 | } |
d14a1e28 | 21116 | if (obj5) { |
15afbcd0 RD |
21117 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
21118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21119 | SWIG_fail; | |
d14a1e28 | 21120 | if (arg6 == NULL) { |
15afbcd0 RD |
21121 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21122 | SWIG_fail; | |
d14a1e28 RD |
21123 | } |
21124 | } | |
21125 | if (obj6) { | |
21126 | { | |
21127 | arg7 = wxString_in_helper(obj6); | |
21128 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21129 | temp7 = True; |
d14a1e28 RD |
21130 | } |
21131 | } | |
21132 | { | |
e3b71cb8 | 21133 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21135 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21136 | ||
21137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21138 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21139 | } |
15afbcd0 | 21140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21141 | { |
21142 | if (temp7) | |
21143 | delete arg7; | |
21144 | } | |
21145 | return resultobj; | |
21146 | fail: | |
21147 | { | |
21148 | if (temp7) | |
21149 | delete arg7; | |
21150 | } | |
21151 | return NULL; | |
21152 | } | |
21153 | ||
21154 | ||
21155 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21156 | PyObject *resultobj; | |
21157 | wxPyListCtrl *result; | |
21158 | char *kwnames[] = { | |
21159 | NULL | |
21160 | }; | |
21161 | ||
21162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21163 | { | |
e3b71cb8 | 21164 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21166 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21167 | ||
21168 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21169 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21170 | } |
15afbcd0 | 21171 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21172 | return resultobj; |
21173 | fail: | |
21174 | return NULL; | |
21175 | } | |
21176 | ||
21177 | ||
21178 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21179 | PyObject *resultobj; | |
21180 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21181 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21182 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21183 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21184 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21185 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21186 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21187 | long arg6 = (long) wxLC_ICON ; | |
21188 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21189 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21190 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21191 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21192 | bool result; | |
21193 | wxPoint temp4 ; | |
21194 | wxSize temp5 ; | |
e811c8ce | 21195 | bool temp8 = False ; |
d14a1e28 RD |
21196 | PyObject * obj0 = 0 ; |
21197 | PyObject * obj1 = 0 ; | |
994141e6 | 21198 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21199 | PyObject * obj3 = 0 ; |
21200 | PyObject * obj4 = 0 ; | |
994141e6 | 21201 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21202 | PyObject * obj6 = 0 ; |
21203 | PyObject * obj7 = 0 ; | |
21204 | char *kwnames[] = { | |
21205 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21206 | }; | |
21207 | ||
994141e6 | 21208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21213 | if (obj2) { |
15afbcd0 RD |
21214 | arg3 = (int) SWIG_AsInt(obj2); |
21215 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21216 | } |
d14a1e28 RD |
21217 | if (obj3) { |
21218 | { | |
21219 | arg4 = &temp4; | |
21220 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21221 | } | |
21222 | } | |
21223 | if (obj4) { | |
21224 | { | |
21225 | arg5 = &temp5; | |
21226 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21227 | } | |
21228 | } | |
994141e6 | 21229 | if (obj5) { |
15afbcd0 RD |
21230 | arg6 = (long) SWIG_AsLong(obj5); |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21232 | } |
d14a1e28 | 21233 | if (obj6) { |
15afbcd0 RD |
21234 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21235 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21236 | SWIG_fail; | |
d14a1e28 | 21237 | if (arg7 == NULL) { |
15afbcd0 RD |
21238 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21239 | SWIG_fail; | |
d14a1e28 RD |
21240 | } |
21241 | } | |
21242 | if (obj7) { | |
21243 | { | |
21244 | arg8 = wxString_in_helper(obj7); | |
21245 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21246 | temp8 = True; |
d14a1e28 RD |
21247 | } |
21248 | } | |
21249 | { | |
21250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21251 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21252 | ||
21253 | wxPyEndAllowThreads(__tstate); | |
21254 | if (PyErr_Occurred()) SWIG_fail; | |
21255 | } | |
4f89f6a3 RD |
21256 | { |
21257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21258 | } | |
d14a1e28 RD |
21259 | { |
21260 | if (temp8) | |
21261 | delete arg8; | |
21262 | } | |
21263 | return resultobj; | |
21264 | fail: | |
21265 | { | |
21266 | if (temp8) | |
21267 | delete arg8; | |
21268 | } | |
21269 | return NULL; | |
21270 | } | |
21271 | ||
21272 | ||
21273 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21274 | PyObject *resultobj; | |
21275 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21276 | PyObject *arg2 = (PyObject *) 0 ; | |
21277 | PyObject *arg3 = (PyObject *) 0 ; | |
21278 | PyObject * obj0 = 0 ; | |
21279 | PyObject * obj1 = 0 ; | |
21280 | PyObject * obj2 = 0 ; | |
21281 | char *kwnames[] = { | |
21282 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21283 | }; | |
21284 | ||
21285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21288 | arg2 = obj1; |
21289 | arg3 = obj2; | |
21290 | { | |
21291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21292 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21293 | ||
21294 | wxPyEndAllowThreads(__tstate); | |
21295 | if (PyErr_Occurred()) SWIG_fail; | |
21296 | } | |
21297 | Py_INCREF(Py_None); resultobj = Py_None; | |
21298 | return resultobj; | |
21299 | fail: | |
21300 | return NULL; | |
21301 | } | |
21302 | ||
21303 | ||
21304 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21305 | PyObject *resultobj; | |
21306 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21307 | wxColour *arg2 = 0 ; | |
21308 | bool result; | |
21309 | wxColour temp2 ; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | PyObject * obj1 = 0 ; | |
21312 | char *kwnames[] = { | |
21313 | (char *) "self",(char *) "col", NULL | |
21314 | }; | |
21315 | ||
21316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21319 | { |
21320 | arg2 = &temp2; | |
21321 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21322 | } | |
21323 | { | |
21324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21325 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21326 | ||
21327 | wxPyEndAllowThreads(__tstate); | |
21328 | if (PyErr_Occurred()) SWIG_fail; | |
21329 | } | |
4f89f6a3 RD |
21330 | { |
21331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21332 | } | |
d14a1e28 RD |
21333 | return resultobj; |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
21339 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21340 | PyObject *resultobj; | |
21341 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21342 | wxColour *arg2 = 0 ; | |
21343 | bool result; | |
21344 | wxColour temp2 ; | |
21345 | PyObject * obj0 = 0 ; | |
21346 | PyObject * obj1 = 0 ; | |
21347 | char *kwnames[] = { | |
21348 | (char *) "self",(char *) "col", NULL | |
21349 | }; | |
21350 | ||
21351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21354 | { |
21355 | arg2 = &temp2; | |
21356 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21357 | } | |
21358 | { | |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
4f89f6a3 RD |
21365 | { |
21366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21367 | } | |
d14a1e28 RD |
21368 | return resultobj; |
21369 | fail: | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
21374 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21375 | PyObject *resultobj; | |
21376 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21377 | int arg2 ; | |
21378 | wxListItem *result; | |
21379 | PyObject * obj0 = 0 ; | |
994141e6 | 21380 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21381 | char *kwnames[] = { |
21382 | (char *) "self",(char *) "col", NULL | |
21383 | }; | |
21384 | ||
994141e6 | 21385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21388 | arg2 = (int) SWIG_AsInt(obj1); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21390 | { |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
412d302d | 21398 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21399 | } |
21400 | return resultobj; | |
21401 | fail: | |
21402 | return NULL; | |
21403 | } | |
21404 | ||
21405 | ||
21406 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21407 | PyObject *resultobj; | |
21408 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21409 | int arg2 ; | |
21410 | wxListItem *arg3 = 0 ; | |
21411 | bool result; | |
21412 | PyObject * obj0 = 0 ; | |
994141e6 | 21413 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21414 | PyObject * obj2 = 0 ; |
21415 | char *kwnames[] = { | |
21416 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21417 | }; | |
21418 | ||
994141e6 | 21419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21422 | arg2 = (int) SWIG_AsInt(obj1); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21426 | SWIG_fail; | |
d14a1e28 | 21427 | if (arg3 == NULL) { |
15afbcd0 RD |
21428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21429 | SWIG_fail; | |
d14a1e28 RD |
21430 | } |
21431 | { | |
21432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21433 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
4f89f6a3 RD |
21438 | { |
21439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21440 | } | |
d14a1e28 RD |
21441 | return resultobj; |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
21447 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21448 | PyObject *resultobj; | |
21449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21450 | int arg2 ; | |
21451 | int result; | |
21452 | PyObject * obj0 = 0 ; | |
994141e6 | 21453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21454 | char *kwnames[] = { |
21455 | (char *) "self",(char *) "col", NULL | |
21456 | }; | |
21457 | ||
994141e6 | 21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21461 | arg2 = (int) SWIG_AsInt(obj1); | |
21462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21463 | { |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21466 | ||
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
15afbcd0 | 21470 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21471 | return resultobj; |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21480 | int arg2 ; | |
21481 | int arg3 ; | |
21482 | bool result; | |
21483 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21484 | PyObject * obj1 = 0 ; |
21485 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21486 | char *kwnames[] = { |
21487 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21488 | }; | |
21489 | ||
994141e6 | 21490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21493 | arg2 = (int) SWIG_AsInt(obj1); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | arg3 = (int) SWIG_AsInt(obj2); | |
21496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21497 | { |
21498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21499 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21500 | ||
21501 | wxPyEndAllowThreads(__tstate); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
4f89f6a3 RD |
21504 | { |
21505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21506 | } | |
d14a1e28 RD |
21507 | return resultobj; |
21508 | fail: | |
21509 | return NULL; | |
21510 | } | |
21511 | ||
21512 | ||
21513 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21514 | PyObject *resultobj; | |
21515 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21516 | int result; | |
21517 | PyObject * obj0 = 0 ; | |
21518 | char *kwnames[] = { | |
21519 | (char *) "self", NULL | |
21520 | }; | |
21521 | ||
21522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21525 | { |
21526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21527 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21528 | ||
21529 | wxPyEndAllowThreads(__tstate); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
15afbcd0 | 21532 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21533 | return resultobj; |
21534 | fail: | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21540 | PyObject *resultobj; | |
21541 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21542 | wxRect result; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | char *kwnames[] = { | |
21545 | (char *) "self", NULL | |
21546 | }; | |
21547 | ||
21548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21551 | { |
21552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21553 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21554 | ||
21555 | wxPyEndAllowThreads(__tstate); | |
21556 | if (PyErr_Occurred()) SWIG_fail; | |
21557 | } | |
21558 | { | |
21559 | wxRect * resultptr; | |
21560 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21562 | } |
21563 | return resultobj; | |
21564 | fail: | |
21565 | return NULL; | |
21566 | } | |
21567 | ||
21568 | ||
21569 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21570 | PyObject *resultobj; | |
21571 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21572 | long arg2 ; | |
21573 | int arg3 = (int) 0 ; | |
21574 | wxListItem *result; | |
21575 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21576 | PyObject * obj1 = 0 ; |
21577 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21578 | char *kwnames[] = { |
21579 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21580 | }; | |
21581 | ||
994141e6 | 21582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21585 | arg2 = (long) SWIG_AsLong(obj1); | |
21586 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21587 | if (obj2) { |
15afbcd0 RD |
21588 | arg3 = (int) SWIG_AsInt(obj2); |
21589 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21590 | } |
d14a1e28 RD |
21591 | { |
21592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21593 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21594 | ||
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
21598 | { | |
412d302d | 21599 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21600 | } |
21601 | return resultobj; | |
21602 | fail: | |
21603 | return NULL; | |
21604 | } | |
21605 | ||
21606 | ||
21607 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21608 | PyObject *resultobj; | |
21609 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21610 | wxListItem *arg2 = 0 ; | |
21611 | bool result; | |
21612 | PyObject * obj0 = 0 ; | |
21613 | PyObject * obj1 = 0 ; | |
21614 | char *kwnames[] = { | |
21615 | (char *) "self",(char *) "info", NULL | |
21616 | }; | |
21617 | ||
21618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21622 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21623 | SWIG_fail; | |
d14a1e28 | 21624 | if (arg2 == NULL) { |
15afbcd0 RD |
21625 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21626 | SWIG_fail; | |
d14a1e28 RD |
21627 | } |
21628 | { | |
21629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21630 | result = (bool)(arg1)->SetItem(*arg2); | |
21631 | ||
21632 | wxPyEndAllowThreads(__tstate); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
4f89f6a3 RD |
21635 | { |
21636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21637 | } | |
d14a1e28 RD |
21638 | return resultobj; |
21639 | fail: | |
21640 | return NULL; | |
21641 | } | |
21642 | ||
21643 | ||
21644 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21645 | PyObject *resultobj; | |
21646 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21647 | long arg2 ; | |
21648 | int arg3 ; | |
21649 | wxString *arg4 = 0 ; | |
21650 | int arg5 = (int) -1 ; | |
21651 | long result; | |
e811c8ce | 21652 | bool temp4 = False ; |
d14a1e28 | 21653 | PyObject * obj0 = 0 ; |
994141e6 RD |
21654 | PyObject * obj1 = 0 ; |
21655 | PyObject * obj2 = 0 ; | |
d14a1e28 | 21656 | PyObject * obj3 = 0 ; |
994141e6 | 21657 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21658 | char *kwnames[] = { |
21659 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21660 | }; | |
21661 | ||
994141e6 | 21662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
21663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21665 | arg2 = (long) SWIG_AsLong(obj1); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | arg3 = (int) SWIG_AsInt(obj2); | |
21668 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21669 | { |
21670 | arg4 = wxString_in_helper(obj3); | |
21671 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 21672 | temp4 = True; |
d14a1e28 | 21673 | } |
994141e6 | 21674 | if (obj4) { |
15afbcd0 RD |
21675 | arg5 = (int) SWIG_AsInt(obj4); |
21676 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21677 | } |
d14a1e28 RD |
21678 | { |
21679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21680 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21681 | ||
21682 | wxPyEndAllowThreads(__tstate); | |
21683 | if (PyErr_Occurred()) SWIG_fail; | |
21684 | } | |
15afbcd0 | 21685 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21686 | { |
21687 | if (temp4) | |
21688 | delete arg4; | |
21689 | } | |
21690 | return resultobj; | |
21691 | fail: | |
21692 | { | |
21693 | if (temp4) | |
21694 | delete arg4; | |
21695 | } | |
21696 | return NULL; | |
21697 | } | |
21698 | ||
21699 | ||
21700 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21701 | PyObject *resultobj; | |
21702 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21703 | long arg2 ; | |
21704 | long arg3 ; | |
21705 | int result; | |
21706 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21707 | PyObject * obj1 = 0 ; |
21708 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21709 | char *kwnames[] = { |
21710 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21711 | }; | |
21712 | ||
994141e6 | 21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21716 | arg2 = (long) SWIG_AsLong(obj1); | |
21717 | if (PyErr_Occurred()) SWIG_fail; | |
21718 | arg3 = (long) SWIG_AsLong(obj2); | |
21719 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21720 | { |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
15afbcd0 | 21727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21728 | return resultobj; |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
21734 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21735 | PyObject *resultobj; | |
21736 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21737 | long arg2 ; | |
21738 | long arg3 ; | |
21739 | long arg4 ; | |
21740 | bool result; | |
21741 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21742 | PyObject * obj1 = 0 ; |
21743 | PyObject * obj2 = 0 ; | |
21744 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21745 | char *kwnames[] = { |
21746 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21747 | }; | |
21748 | ||
994141e6 | 21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21752 | arg2 = (long) SWIG_AsLong(obj1); | |
21753 | if (PyErr_Occurred()) SWIG_fail; | |
21754 | arg3 = (long) SWIG_AsLong(obj2); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | arg4 = (long) SWIG_AsLong(obj3); | |
21757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21758 | { |
21759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21760 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21761 | ||
21762 | wxPyEndAllowThreads(__tstate); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
4f89f6a3 RD |
21765 | { |
21766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21767 | } | |
d14a1e28 RD |
21768 | return resultobj; |
21769 | fail: | |
21770 | return NULL; | |
21771 | } | |
21772 | ||
21773 | ||
21774 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21775 | PyObject *resultobj; | |
21776 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21777 | long arg2 ; | |
21778 | int arg3 ; | |
21779 | int arg4 ; | |
21780 | bool result; | |
21781 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21782 | PyObject * obj1 = 0 ; |
21783 | PyObject * obj2 = 0 ; | |
21784 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21785 | char *kwnames[] = { |
21786 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21787 | }; | |
21788 | ||
994141e6 | 21789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21792 | arg2 = (long) SWIG_AsLong(obj1); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | arg3 = (int) SWIG_AsInt(obj2); | |
21795 | if (PyErr_Occurred()) SWIG_fail; | |
21796 | arg4 = (int) SWIG_AsInt(obj3); | |
21797 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21798 | { |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21800 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21801 | ||
21802 | wxPyEndAllowThreads(__tstate); | |
21803 | if (PyErr_Occurred()) SWIG_fail; | |
21804 | } | |
4f89f6a3 RD |
21805 | { |
21806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21807 | } | |
d14a1e28 RD |
21808 | return resultobj; |
21809 | fail: | |
21810 | return NULL; | |
21811 | } | |
21812 | ||
21813 | ||
21814 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21815 | PyObject *resultobj; | |
21816 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21817 | long arg2 ; | |
21818 | wxString result; | |
21819 | PyObject * obj0 = 0 ; | |
994141e6 | 21820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21821 | char *kwnames[] = { |
21822 | (char *) "self",(char *) "item", NULL | |
21823 | }; | |
21824 | ||
994141e6 | 21825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21828 | arg2 = (long) SWIG_AsLong(obj1); | |
21829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21830 | { |
21831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21832 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21833 | ||
21834 | wxPyEndAllowThreads(__tstate); | |
21835 | if (PyErr_Occurred()) SWIG_fail; | |
21836 | } | |
21837 | { | |
21838 | #if wxUSE_UNICODE | |
21839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21840 | #else | |
21841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21842 | #endif | |
21843 | } | |
21844 | return resultobj; | |
21845 | fail: | |
21846 | return NULL; | |
21847 | } | |
21848 | ||
21849 | ||
21850 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21851 | PyObject *resultobj; | |
21852 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21853 | long arg2 ; | |
21854 | wxString *arg3 = 0 ; | |
e811c8ce | 21855 | bool temp3 = False ; |
d14a1e28 | 21856 | PyObject * obj0 = 0 ; |
994141e6 | 21857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21858 | PyObject * obj2 = 0 ; |
21859 | char *kwnames[] = { | |
21860 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21861 | }; | |
21862 | ||
994141e6 | 21863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21866 | arg2 = (long) SWIG_AsLong(obj1); | |
21867 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21868 | { |
21869 | arg3 = wxString_in_helper(obj2); | |
21870 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21871 | temp3 = True; |
d14a1e28 RD |
21872 | } |
21873 | { | |
21874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21875 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21876 | ||
21877 | wxPyEndAllowThreads(__tstate); | |
21878 | if (PyErr_Occurred()) SWIG_fail; | |
21879 | } | |
21880 | Py_INCREF(Py_None); resultobj = Py_None; | |
21881 | { | |
21882 | if (temp3) | |
21883 | delete arg3; | |
21884 | } | |
21885 | return resultobj; | |
21886 | fail: | |
21887 | { | |
21888 | if (temp3) | |
21889 | delete arg3; | |
21890 | } | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
21895 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21896 | PyObject *resultobj; | |
21897 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21898 | long arg2 ; | |
21899 | long result; | |
21900 | PyObject * obj0 = 0 ; | |
994141e6 | 21901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21902 | char *kwnames[] = { |
21903 | (char *) "self",(char *) "item", NULL | |
21904 | }; | |
21905 | ||
994141e6 | 21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21909 | arg2 = (long) SWIG_AsLong(obj1); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21911 | { |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
15afbcd0 | 21918 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21919 | return resultobj; |
21920 | fail: | |
21921 | return NULL; | |
21922 | } | |
21923 | ||
21924 | ||
21925 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21926 | PyObject *resultobj; | |
21927 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21928 | long arg2 ; | |
21929 | long arg3 ; | |
21930 | bool result; | |
21931 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21932 | PyObject * obj1 = 0 ; |
21933 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21934 | char *kwnames[] = { |
21935 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21936 | }; | |
21937 | ||
994141e6 | 21938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21941 | arg2 = (long) SWIG_AsLong(obj1); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | arg3 = (long) SWIG_AsLong(obj2); | |
21944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21945 | { |
21946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21947 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21948 | ||
21949 | wxPyEndAllowThreads(__tstate); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
21951 | } | |
4f89f6a3 RD |
21952 | { |
21953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21954 | } | |
d14a1e28 RD |
21955 | return resultobj; |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
21961 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21962 | PyObject *resultobj; | |
21963 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21964 | long arg2 ; | |
21965 | wxPoint result; | |
21966 | PyObject * obj0 = 0 ; | |
994141e6 | 21967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21968 | char *kwnames[] = { |
21969 | (char *) "self",(char *) "item", NULL | |
21970 | }; | |
21971 | ||
994141e6 | 21972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21975 | arg2 = (long) SWIG_AsLong(obj1); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21977 | { |
21978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21979 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21980 | ||
21981 | wxPyEndAllowThreads(__tstate); | |
21982 | if (PyErr_Occurred()) SWIG_fail; | |
21983 | } | |
21984 | { | |
21985 | wxPoint * resultptr; | |
21986 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 21987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21988 | } |
21989 | return resultobj; | |
21990 | fail: | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
21995 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21996 | PyObject *resultobj; | |
21997 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21998 | long arg2 ; | |
21999 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22000 | wxRect result; | |
22001 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22002 | PyObject * obj1 = 0 ; |
22003 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22004 | char *kwnames[] = { |
22005 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22006 | }; | |
22007 | ||
994141e6 | 22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22011 | arg2 = (long) SWIG_AsLong(obj1); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22013 | if (obj2) { |
15afbcd0 RD |
22014 | arg3 = (int) SWIG_AsInt(obj2); |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22016 | } |
d14a1e28 RD |
22017 | { |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22020 | ||
22021 | wxPyEndAllowThreads(__tstate); | |
22022 | if (PyErr_Occurred()) SWIG_fail; | |
22023 | } | |
22024 | { | |
22025 | wxRect * resultptr; | |
22026 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22028 | } |
22029 | return resultobj; | |
22030 | fail: | |
22031 | return NULL; | |
22032 | } | |
22033 | ||
22034 | ||
22035 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22036 | PyObject *resultobj; | |
22037 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22038 | long arg2 ; | |
22039 | wxPoint *arg3 = 0 ; | |
22040 | bool result; | |
22041 | wxPoint temp3 ; | |
22042 | PyObject * obj0 = 0 ; | |
994141e6 | 22043 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22044 | PyObject * obj2 = 0 ; |
22045 | char *kwnames[] = { | |
22046 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22047 | }; | |
22048 | ||
994141e6 | 22049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22052 | arg2 = (long) SWIG_AsLong(obj1); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22054 | { |
22055 | arg3 = &temp3; | |
22056 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22057 | } | |
22058 | { | |
22059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22060 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22061 | ||
22062 | wxPyEndAllowThreads(__tstate); | |
22063 | if (PyErr_Occurred()) SWIG_fail; | |
22064 | } | |
4f89f6a3 RD |
22065 | { |
22066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22067 | } | |
d14a1e28 RD |
22068 | return resultobj; |
22069 | fail: | |
22070 | return NULL; | |
22071 | } | |
22072 | ||
22073 | ||
22074 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22075 | PyObject *resultobj; | |
22076 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22077 | int result; | |
22078 | PyObject * obj0 = 0 ; | |
22079 | char *kwnames[] = { | |
22080 | (char *) "self", NULL | |
22081 | }; | |
22082 | ||
22083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22086 | { |
22087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22088 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22089 | ||
22090 | wxPyEndAllowThreads(__tstate); | |
22091 | if (PyErr_Occurred()) SWIG_fail; | |
22092 | } | |
15afbcd0 | 22093 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22094 | return resultobj; |
22095 | fail: | |
22096 | return NULL; | |
22097 | } | |
22098 | ||
22099 | ||
22100 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22101 | PyObject *resultobj; | |
22102 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22103 | int result; | |
22104 | PyObject * obj0 = 0 ; | |
22105 | char *kwnames[] = { | |
22106 | (char *) "self", NULL | |
22107 | }; | |
22108 | ||
22109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22112 | { |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
15afbcd0 | 22119 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22120 | return resultobj; |
22121 | fail: | |
22122 | return NULL; | |
22123 | } | |
22124 | ||
22125 | ||
22126 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22127 | PyObject *resultobj; | |
22128 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22129 | wxSize result; | |
22130 | PyObject * obj0 = 0 ; | |
22131 | char *kwnames[] = { | |
22132 | (char *) "self", NULL | |
22133 | }; | |
22134 | ||
22135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22138 | { |
22139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22140 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22141 | ||
22142 | wxPyEndAllowThreads(__tstate); | |
22143 | if (PyErr_Occurred()) SWIG_fail; | |
22144 | } | |
22145 | { | |
22146 | wxSize * resultptr; | |
22147 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22149 | } |
22150 | return resultobj; | |
22151 | fail: | |
22152 | return NULL; | |
22153 | } | |
22154 | ||
22155 | ||
22156 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22157 | PyObject *resultobj; | |
22158 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22159 | int arg2 ; | |
e811c8ce | 22160 | bool arg3 = (bool) False ; |
d14a1e28 | 22161 | PyObject * obj0 = 0 ; |
994141e6 | 22162 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22163 | PyObject * obj2 = 0 ; |
22164 | char *kwnames[] = { | |
22165 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22166 | }; | |
22167 | ||
994141e6 | 22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22171 | arg2 = (int) SWIG_AsInt(obj1); | |
22172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22173 | if (obj2) { |
15afbcd0 RD |
22174 | arg3 = (bool) SWIG_AsBool(obj2); |
22175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22176 | } |
22177 | { | |
22178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22179 | (arg1)->SetItemSpacing(arg2,arg3); | |
22180 | ||
22181 | wxPyEndAllowThreads(__tstate); | |
22182 | if (PyErr_Occurred()) SWIG_fail; | |
22183 | } | |
22184 | Py_INCREF(Py_None); resultobj = Py_None; | |
22185 | return resultobj; | |
22186 | fail: | |
22187 | return NULL; | |
22188 | } | |
22189 | ||
22190 | ||
22191 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22192 | PyObject *resultobj; | |
22193 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22194 | int result; | |
22195 | PyObject * obj0 = 0 ; | |
22196 | char *kwnames[] = { | |
22197 | (char *) "self", NULL | |
22198 | }; | |
22199 | ||
22200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22203 | { |
22204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22205 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22206 | ||
22207 | wxPyEndAllowThreads(__tstate); | |
22208 | if (PyErr_Occurred()) SWIG_fail; | |
22209 | } | |
15afbcd0 | 22210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22211 | return resultobj; |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
22217 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22218 | PyObject *resultobj; | |
22219 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22220 | wxColour result; | |
22221 | PyObject * obj0 = 0 ; | |
22222 | char *kwnames[] = { | |
22223 | (char *) "self", NULL | |
22224 | }; | |
22225 | ||
22226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22229 | { |
22230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22231 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22232 | ||
22233 | wxPyEndAllowThreads(__tstate); | |
22234 | if (PyErr_Occurred()) SWIG_fail; | |
22235 | } | |
22236 | { | |
22237 | wxColour * resultptr; | |
22238 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22239 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22240 | } |
22241 | return resultobj; | |
22242 | fail: | |
22243 | return NULL; | |
22244 | } | |
22245 | ||
22246 | ||
22247 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22248 | PyObject *resultobj; | |
22249 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22250 | wxColour *arg2 = 0 ; | |
22251 | wxColour temp2 ; | |
22252 | PyObject * obj0 = 0 ; | |
22253 | PyObject * obj1 = 0 ; | |
22254 | char *kwnames[] = { | |
22255 | (char *) "self",(char *) "col", NULL | |
22256 | }; | |
22257 | ||
22258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22261 | { |
22262 | arg2 = &temp2; | |
22263 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22264 | } | |
22265 | { | |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | Py_INCREF(Py_None); resultobj = Py_None; | |
22273 | return resultobj; | |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22282 | long result; | |
22283 | PyObject * obj0 = 0 ; | |
22284 | char *kwnames[] = { | |
22285 | (char *) "self", NULL | |
22286 | }; | |
22287 | ||
22288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22291 | { |
22292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22293 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22294 | ||
22295 | wxPyEndAllowThreads(__tstate); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | } | |
15afbcd0 | 22298 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22299 | return resultobj; |
22300 | fail: | |
22301 | return NULL; | |
22302 | } | |
22303 | ||
22304 | ||
22305 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22306 | PyObject *resultobj; | |
22307 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22308 | long arg2 ; | |
e811c8ce | 22309 | bool arg3 = (bool) True ; |
d14a1e28 | 22310 | PyObject * obj0 = 0 ; |
994141e6 | 22311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22312 | PyObject * obj2 = 0 ; |
22313 | char *kwnames[] = { | |
22314 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22315 | }; | |
22316 | ||
994141e6 | 22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22320 | arg2 = (long) SWIG_AsLong(obj1); | |
22321 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22322 | if (obj2) { |
15afbcd0 RD |
22323 | arg3 = (bool) SWIG_AsBool(obj2); |
22324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22325 | } |
22326 | { | |
22327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22328 | (arg1)->SetSingleStyle(arg2,arg3); | |
22329 | ||
22330 | wxPyEndAllowThreads(__tstate); | |
22331 | if (PyErr_Occurred()) SWIG_fail; | |
22332 | } | |
22333 | Py_INCREF(Py_None); resultobj = Py_None; | |
22334 | return resultobj; | |
22335 | fail: | |
22336 | return NULL; | |
22337 | } | |
22338 | ||
22339 | ||
22340 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22341 | PyObject *resultobj; | |
22342 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22343 | long arg2 ; | |
22344 | PyObject * obj0 = 0 ; | |
994141e6 | 22345 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22346 | char *kwnames[] = { |
22347 | (char *) "self",(char *) "style", NULL | |
22348 | }; | |
22349 | ||
994141e6 | 22350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22353 | arg2 = (long) SWIG_AsLong(obj1); | |
22354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22355 | { |
22356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22357 | (arg1)->SetWindowStyleFlag(arg2); | |
22358 | ||
22359 | wxPyEndAllowThreads(__tstate); | |
22360 | if (PyErr_Occurred()) SWIG_fail; | |
22361 | } | |
22362 | Py_INCREF(Py_None); resultobj = Py_None; | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22372 | long arg2 ; | |
22373 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22374 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22375 | long result; | |
22376 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22377 | PyObject * obj1 = 0 ; |
22378 | PyObject * obj2 = 0 ; | |
22379 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22380 | char *kwnames[] = { |
22381 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22382 | }; | |
22383 | ||
994141e6 | 22384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22387 | arg2 = (long) SWIG_AsLong(obj1); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22389 | if (obj2) { |
15afbcd0 RD |
22390 | arg3 = (int) SWIG_AsInt(obj2); |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22392 | } |
22393 | if (obj3) { | |
15afbcd0 RD |
22394 | arg4 = (int) SWIG_AsInt(obj3); |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22396 | } |
d14a1e28 RD |
22397 | { |
22398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22399 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22400 | ||
22401 | wxPyEndAllowThreads(__tstate); | |
22402 | if (PyErr_Occurred()) SWIG_fail; | |
22403 | } | |
15afbcd0 | 22404 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22405 | return resultobj; |
22406 | fail: | |
22407 | return NULL; | |
22408 | } | |
22409 | ||
22410 | ||
22411 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22412 | PyObject *resultobj; | |
22413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22414 | int arg2 ; | |
22415 | wxImageList *result; | |
22416 | PyObject * obj0 = 0 ; | |
994141e6 | 22417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22418 | char *kwnames[] = { |
22419 | (char *) "self",(char *) "which", NULL | |
22420 | }; | |
22421 | ||
994141e6 | 22422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22425 | arg2 = (int) SWIG_AsInt(obj1); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22427 | { |
22428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22429 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22430 | ||
22431 | wxPyEndAllowThreads(__tstate); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
22434 | { | |
412d302d | 22435 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22436 | } |
22437 | return resultobj; | |
22438 | fail: | |
22439 | return NULL; | |
22440 | } | |
22441 | ||
22442 | ||
22443 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22444 | PyObject *resultobj; | |
22445 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22446 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22447 | int arg3 ; | |
22448 | PyObject * obj0 = 0 ; | |
22449 | PyObject * obj1 = 0 ; | |
994141e6 | 22450 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22451 | char *kwnames[] = { |
22452 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22453 | }; | |
22454 | ||
994141e6 | 22455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22460 | arg3 = (int) SWIG_AsInt(obj2); | |
22461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22462 | { |
22463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22464 | (arg1)->SetImageList(arg2,arg3); | |
22465 | ||
22466 | wxPyEndAllowThreads(__tstate); | |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
22468 | } | |
22469 | Py_INCREF(Py_None); resultobj = Py_None; | |
22470 | return resultobj; | |
22471 | fail: | |
22472 | return NULL; | |
22473 | } | |
22474 | ||
22475 | ||
22476 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22477 | PyObject *resultobj; | |
22478 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22479 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22480 | int arg3 ; | |
22481 | PyObject * obj0 = 0 ; | |
22482 | PyObject * obj1 = 0 ; | |
994141e6 | 22483 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22484 | char *kwnames[] = { |
22485 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22486 | }; | |
22487 | ||
994141e6 | 22488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22492 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22493 | arg3 = (int) SWIG_AsInt(obj2); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22495 | { |
22496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22497 | (arg1)->AssignImageList(arg2,arg3); | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
22502 | Py_INCREF(Py_None); resultobj = Py_None; | |
22503 | return resultobj; | |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
4276dc52 RD |
22509 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
22510 | PyObject *resultobj; | |
22511 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22512 | bool result; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | char *kwnames[] = { | |
22515 | (char *) "self", NULL | |
22516 | }; | |
22517 | ||
22518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22521 | { | |
22522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22523 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22524 | ||
22525 | wxPyEndAllowThreads(__tstate); | |
22526 | if (PyErr_Occurred()) SWIG_fail; | |
22527 | } | |
4f89f6a3 RD |
22528 | { |
22529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22530 | } | |
4276dc52 RD |
22531 | return resultobj; |
22532 | fail: | |
22533 | return NULL; | |
22534 | } | |
22535 | ||
22536 | ||
d14a1e28 RD |
22537 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
22538 | PyObject *resultobj; | |
22539 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22540 | bool result; | |
22541 | PyObject * obj0 = 0 ; | |
22542 | char *kwnames[] = { | |
22543 | (char *) "self", NULL | |
22544 | }; | |
22545 | ||
22546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22549 | { |
22550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22551 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22552 | ||
22553 | wxPyEndAllowThreads(__tstate); | |
22554 | if (PyErr_Occurred()) SWIG_fail; | |
22555 | } | |
4f89f6a3 RD |
22556 | { |
22557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22558 | } | |
d14a1e28 RD |
22559 | return resultobj; |
22560 | fail: | |
22561 | return NULL; | |
22562 | } | |
22563 | ||
22564 | ||
22565 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22566 | PyObject *resultobj; | |
22567 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22568 | long arg2 ; | |
22569 | PyObject * obj0 = 0 ; | |
994141e6 | 22570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22571 | char *kwnames[] = { |
22572 | (char *) "self",(char *) "item", NULL | |
22573 | }; | |
22574 | ||
994141e6 | 22575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22578 | arg2 = (long) SWIG_AsLong(obj1); | |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22580 | { |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | (arg1)->RefreshItem(arg2); | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | Py_INCREF(Py_None); resultobj = Py_None; | |
22588 | return resultobj; | |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
22594 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22595 | PyObject *resultobj; | |
22596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22597 | long arg2 ; | |
22598 | long arg3 ; | |
22599 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22600 | PyObject * obj1 = 0 ; |
22601 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22602 | char *kwnames[] = { |
22603 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22604 | }; | |
22605 | ||
994141e6 | 22606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22609 | arg2 = (long) SWIG_AsLong(obj1); | |
22610 | if (PyErr_Occurred()) SWIG_fail; | |
22611 | arg3 = (long) SWIG_AsLong(obj2); | |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22613 | { |
22614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22615 | (arg1)->RefreshItems(arg2,arg3); | |
22616 | ||
22617 | wxPyEndAllowThreads(__tstate); | |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
22619 | } | |
22620 | Py_INCREF(Py_None); resultobj = Py_None; | |
22621 | return resultobj; | |
22622 | fail: | |
22623 | return NULL; | |
22624 | } | |
22625 | ||
22626 | ||
22627 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22628 | PyObject *resultobj; | |
22629 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22630 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22631 | bool result; | |
22632 | PyObject * obj0 = 0 ; | |
994141e6 | 22633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22634 | char *kwnames[] = { |
22635 | (char *) "self",(char *) "flag", NULL | |
22636 | }; | |
22637 | ||
994141e6 | 22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22641 | if (obj1) { |
15afbcd0 RD |
22642 | arg2 = (int) SWIG_AsInt(obj1); |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22644 | } |
d14a1e28 RD |
22645 | { |
22646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22647 | result = (bool)(arg1)->Arrange(arg2); | |
22648 | ||
22649 | wxPyEndAllowThreads(__tstate); | |
22650 | if (PyErr_Occurred()) SWIG_fail; | |
22651 | } | |
4f89f6a3 RD |
22652 | { |
22653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22654 | } | |
d14a1e28 RD |
22655 | return resultobj; |
22656 | fail: | |
22657 | return NULL; | |
22658 | } | |
22659 | ||
22660 | ||
22661 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22662 | PyObject *resultobj; | |
22663 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22664 | long arg2 ; | |
22665 | bool result; | |
22666 | PyObject * obj0 = 0 ; | |
994141e6 | 22667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22668 | char *kwnames[] = { |
22669 | (char *) "self",(char *) "item", NULL | |
22670 | }; | |
22671 | ||
994141e6 | 22672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22675 | arg2 = (long) SWIG_AsLong(obj1); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22677 | { |
22678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22679 | result = (bool)(arg1)->DeleteItem(arg2); | |
22680 | ||
22681 | wxPyEndAllowThreads(__tstate); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
22683 | } | |
4f89f6a3 RD |
22684 | { |
22685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22686 | } | |
d14a1e28 RD |
22687 | return resultobj; |
22688 | fail: | |
22689 | return NULL; | |
22690 | } | |
22691 | ||
22692 | ||
22693 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22694 | PyObject *resultobj; | |
22695 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22696 | bool result; | |
22697 | PyObject * obj0 = 0 ; | |
22698 | char *kwnames[] = { | |
22699 | (char *) "self", NULL | |
22700 | }; | |
22701 | ||
22702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22705 | { |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22707 | result = (bool)(arg1)->DeleteAllItems(); | |
22708 | ||
22709 | wxPyEndAllowThreads(__tstate); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
4f89f6a3 RD |
22712 | { |
22713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22714 | } | |
d14a1e28 RD |
22715 | return resultobj; |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22724 | int arg2 ; | |
22725 | bool result; | |
22726 | PyObject * obj0 = 0 ; | |
994141e6 | 22727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22728 | char *kwnames[] = { |
22729 | (char *) "self",(char *) "col", NULL | |
22730 | }; | |
22731 | ||
994141e6 | 22732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22735 | arg2 = (int) SWIG_AsInt(obj1); | |
22736 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22737 | { |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
4f89f6a3 RD |
22744 | { |
22745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22746 | } | |
d14a1e28 RD |
22747 | return resultobj; |
22748 | fail: | |
22749 | return NULL; | |
22750 | } | |
22751 | ||
22752 | ||
22753 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22754 | PyObject *resultobj; | |
22755 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22756 | bool result; | |
22757 | PyObject * obj0 = 0 ; | |
22758 | char *kwnames[] = { | |
22759 | (char *) "self", NULL | |
22760 | }; | |
22761 | ||
22762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22765 | { |
22766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22767 | result = (bool)(arg1)->DeleteAllColumns(); | |
22768 | ||
22769 | wxPyEndAllowThreads(__tstate); | |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
22771 | } | |
4f89f6a3 RD |
22772 | { |
22773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22774 | } | |
d14a1e28 RD |
22775 | return resultobj; |
22776 | fail: | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
22781 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22782 | PyObject *resultobj; | |
22783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22784 | PyObject * obj0 = 0 ; | |
22785 | char *kwnames[] = { | |
22786 | (char *) "self", NULL | |
22787 | }; | |
22788 | ||
22789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22792 | { |
22793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22794 | (arg1)->ClearAll(); | |
22795 | ||
22796 | wxPyEndAllowThreads(__tstate); | |
22797 | if (PyErr_Occurred()) SWIG_fail; | |
22798 | } | |
22799 | Py_INCREF(Py_None); resultobj = Py_None; | |
22800 | return resultobj; | |
22801 | fail: | |
22802 | return NULL; | |
22803 | } | |
22804 | ||
22805 | ||
22806 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22807 | PyObject *resultobj; | |
22808 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22809 | long arg2 ; | |
22810 | PyObject * obj0 = 0 ; | |
994141e6 | 22811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22812 | char *kwnames[] = { |
22813 | (char *) "self",(char *) "item", NULL | |
22814 | }; | |
22815 | ||
994141e6 | 22816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22819 | arg2 = (long) SWIG_AsLong(obj1); | |
22820 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22821 | { |
22822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22823 | (arg1)->EditLabel(arg2); | |
22824 | ||
22825 | wxPyEndAllowThreads(__tstate); | |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
22827 | } | |
22828 | Py_INCREF(Py_None); resultobj = Py_None; | |
22829 | return resultobj; | |
22830 | fail: | |
22831 | return NULL; | |
22832 | } | |
22833 | ||
22834 | ||
22835 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22836 | PyObject *resultobj; | |
22837 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22838 | long arg2 ; | |
22839 | bool result; | |
22840 | PyObject * obj0 = 0 ; | |
994141e6 | 22841 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22842 | char *kwnames[] = { |
22843 | (char *) "self",(char *) "item", NULL | |
22844 | }; | |
22845 | ||
994141e6 | 22846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22849 | arg2 = (long) SWIG_AsLong(obj1); | |
22850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22851 | { |
22852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22853 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22854 | ||
22855 | wxPyEndAllowThreads(__tstate); | |
22856 | if (PyErr_Occurred()) SWIG_fail; | |
22857 | } | |
4f89f6a3 RD |
22858 | { |
22859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22860 | } | |
d14a1e28 RD |
22861 | return resultobj; |
22862 | fail: | |
22863 | return NULL; | |
22864 | } | |
22865 | ||
22866 | ||
22867 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22868 | PyObject *resultobj; | |
22869 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22870 | long arg2 ; | |
22871 | wxString *arg3 = 0 ; | |
e811c8ce | 22872 | bool arg4 = (bool) False ; |
d14a1e28 | 22873 | long result; |
e811c8ce | 22874 | bool temp3 = False ; |
d14a1e28 | 22875 | PyObject * obj0 = 0 ; |
994141e6 | 22876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22877 | PyObject * obj2 = 0 ; |
22878 | PyObject * obj3 = 0 ; | |
22879 | char *kwnames[] = { | |
22880 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22881 | }; | |
22882 | ||
994141e6 | 22883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22886 | arg2 = (long) SWIG_AsLong(obj1); | |
22887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22888 | { |
22889 | arg3 = wxString_in_helper(obj2); | |
22890 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22891 | temp3 = True; |
d14a1e28 RD |
22892 | } |
22893 | if (obj3) { | |
15afbcd0 RD |
22894 | arg4 = (bool) SWIG_AsBool(obj3); |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22896 | } |
22897 | { | |
22898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22899 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22900 | ||
22901 | wxPyEndAllowThreads(__tstate); | |
22902 | if (PyErr_Occurred()) SWIG_fail; | |
22903 | } | |
15afbcd0 | 22904 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22905 | { |
22906 | if (temp3) | |
22907 | delete arg3; | |
22908 | } | |
22909 | return resultobj; | |
22910 | fail: | |
22911 | { | |
22912 | if (temp3) | |
22913 | delete arg3; | |
22914 | } | |
22915 | return NULL; | |
22916 | } | |
22917 | ||
22918 | ||
22919 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22920 | PyObject *resultobj; | |
22921 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22922 | long arg2 ; | |
22923 | long arg3 ; | |
22924 | long result; | |
22925 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22926 | PyObject * obj1 = 0 ; |
22927 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22928 | char *kwnames[] = { |
22929 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22930 | }; | |
22931 | ||
994141e6 | 22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22935 | arg2 = (long) SWIG_AsLong(obj1); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | arg3 = (long) SWIG_AsLong(obj2); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22939 | { |
22940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22941 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22942 | ||
22943 | wxPyEndAllowThreads(__tstate); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | } | |
15afbcd0 | 22946 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22947 | return resultobj; |
22948 | fail: | |
22949 | return NULL; | |
22950 | } | |
22951 | ||
22952 | ||
22953 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22954 | PyObject *resultobj; | |
22955 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22956 | long arg2 ; | |
22957 | wxPoint *arg3 = 0 ; | |
22958 | int arg4 ; | |
22959 | long result; | |
22960 | wxPoint temp3 ; | |
22961 | PyObject * obj0 = 0 ; | |
994141e6 | 22962 | PyObject * obj1 = 0 ; |
d14a1e28 | 22963 | PyObject * obj2 = 0 ; |
994141e6 | 22964 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22965 | char *kwnames[] = { |
22966 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22967 | }; | |
22968 | ||
994141e6 | 22969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22972 | arg2 = (long) SWIG_AsLong(obj1); | |
22973 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22974 | { |
22975 | arg3 = &temp3; | |
22976 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22977 | } | |
15afbcd0 RD |
22978 | arg4 = (int) SWIG_AsInt(obj3); |
22979 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22980 | { |
22981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22982 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22983 | ||
22984 | wxPyEndAllowThreads(__tstate); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
22986 | } | |
15afbcd0 | 22987 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22988 | return resultobj; |
22989 | fail: | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
22994 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22995 | PyObject *resultobj; | |
22996 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22997 | wxPoint *arg2 = 0 ; | |
22998 | int *arg3 = 0 ; | |
22999 | long result; | |
23000 | wxPoint temp2 ; | |
23001 | int temp3 ; | |
23002 | PyObject * obj0 = 0 ; | |
23003 | PyObject * obj1 = 0 ; | |
23004 | char *kwnames[] = { | |
23005 | (char *) "self",(char *) "point", NULL | |
23006 | }; | |
23007 | ||
23008 | arg3 = &temp3; | |
23009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23012 | { |
23013 | arg2 = &temp2; | |
23014 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23015 | } | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
15afbcd0 | 23023 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23024 | { |
23025 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23026 | resultobj = t_output_helper(resultobj,o); | |
23027 | } | |
23028 | return resultobj; | |
23029 | fail: | |
23030 | return NULL; | |
23031 | } | |
23032 | ||
23033 | ||
23034 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23035 | PyObject *resultobj; | |
23036 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23037 | wxListItem *arg2 = 0 ; | |
23038 | long result; | |
23039 | PyObject * obj0 = 0 ; | |
23040 | PyObject * obj1 = 0 ; | |
23041 | char *kwnames[] = { | |
23042 | (char *) "self",(char *) "info", NULL | |
23043 | }; | |
23044 | ||
23045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23049 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23050 | SWIG_fail; | |
d14a1e28 | 23051 | if (arg2 == NULL) { |
15afbcd0 RD |
23052 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23053 | SWIG_fail; | |
d14a1e28 RD |
23054 | } |
23055 | { | |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | result = (long)(arg1)->InsertItem(*arg2); | |
23058 | ||
23059 | wxPyEndAllowThreads(__tstate); | |
23060 | if (PyErr_Occurred()) SWIG_fail; | |
23061 | } | |
15afbcd0 | 23062 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23063 | return resultobj; |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
23069 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj; | |
23071 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23072 | long arg2 ; | |
23073 | wxString *arg3 = 0 ; | |
23074 | long result; | |
e811c8ce | 23075 | bool temp3 = False ; |
d14a1e28 | 23076 | PyObject * obj0 = 0 ; |
994141e6 | 23077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23078 | PyObject * obj2 = 0 ; |
23079 | char *kwnames[] = { | |
23080 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23081 | }; | |
23082 | ||
994141e6 | 23083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23086 | arg2 = (long) SWIG_AsLong(obj1); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23088 | { |
23089 | arg3 = wxString_in_helper(obj2); | |
23090 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23091 | temp3 = True; |
d14a1e28 RD |
23092 | } |
23093 | { | |
23094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23095 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23096 | ||
23097 | wxPyEndAllowThreads(__tstate); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
23099 | } | |
15afbcd0 | 23100 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23101 | { |
23102 | if (temp3) | |
23103 | delete arg3; | |
23104 | } | |
23105 | return resultobj; | |
23106 | fail: | |
23107 | { | |
23108 | if (temp3) | |
23109 | delete arg3; | |
23110 | } | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23118 | long arg2 ; | |
23119 | int arg3 ; | |
23120 | long result; | |
23121 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23122 | PyObject * obj1 = 0 ; |
23123 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23124 | char *kwnames[] = { |
23125 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23126 | }; | |
23127 | ||
994141e6 | 23128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23131 | arg2 = (long) SWIG_AsLong(obj1); | |
23132 | if (PyErr_Occurred()) SWIG_fail; | |
23133 | arg3 = (int) SWIG_AsInt(obj2); | |
23134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23135 | { |
23136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23137 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23138 | ||
23139 | wxPyEndAllowThreads(__tstate); | |
23140 | if (PyErr_Occurred()) SWIG_fail; | |
23141 | } | |
15afbcd0 | 23142 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23143 | return resultobj; |
23144 | fail: | |
23145 | return NULL; | |
23146 | } | |
23147 | ||
23148 | ||
23149 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23150 | PyObject *resultobj; | |
23151 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23152 | long arg2 ; | |
23153 | wxString *arg3 = 0 ; | |
23154 | int arg4 ; | |
23155 | long result; | |
e811c8ce | 23156 | bool temp3 = False ; |
d14a1e28 | 23157 | PyObject * obj0 = 0 ; |
994141e6 | 23158 | PyObject * obj1 = 0 ; |
d14a1e28 | 23159 | PyObject * obj2 = 0 ; |
994141e6 | 23160 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23161 | char *kwnames[] = { |
23162 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23163 | }; | |
23164 | ||
994141e6 | 23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23168 | arg2 = (long) SWIG_AsLong(obj1); | |
23169 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23170 | { |
23171 | arg3 = wxString_in_helper(obj2); | |
23172 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23173 | temp3 = True; |
d14a1e28 | 23174 | } |
15afbcd0 RD |
23175 | arg4 = (int) SWIG_AsInt(obj3); |
23176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23177 | { |
23178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23179 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23180 | ||
23181 | wxPyEndAllowThreads(__tstate); | |
23182 | if (PyErr_Occurred()) SWIG_fail; | |
23183 | } | |
15afbcd0 | 23184 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23185 | { |
23186 | if (temp3) | |
23187 | delete arg3; | |
23188 | } | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | { | |
23192 | if (temp3) | |
23193 | delete arg3; | |
23194 | } | |
23195 | return NULL; | |
23196 | } | |
23197 | ||
23198 | ||
23199 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23200 | PyObject *resultobj; | |
23201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23202 | long arg2 ; | |
23203 | wxListItem *arg3 = 0 ; | |
23204 | long result; | |
23205 | PyObject * obj0 = 0 ; | |
994141e6 | 23206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23207 | PyObject * obj2 = 0 ; |
23208 | char *kwnames[] = { | |
23209 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23210 | }; | |
23211 | ||
994141e6 | 23212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23215 | arg2 = (long) SWIG_AsLong(obj1); | |
23216 | if (PyErr_Occurred()) SWIG_fail; | |
23217 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23219 | SWIG_fail; | |
d14a1e28 | 23220 | if (arg3 == NULL) { |
15afbcd0 RD |
23221 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23222 | SWIG_fail; | |
d14a1e28 RD |
23223 | } |
23224 | { | |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23227 | ||
23228 | wxPyEndAllowThreads(__tstate); | |
23229 | if (PyErr_Occurred()) SWIG_fail; | |
23230 | } | |
15afbcd0 | 23231 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23232 | return resultobj; |
23233 | fail: | |
23234 | return NULL; | |
23235 | } | |
23236 | ||
23237 | ||
23238 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23239 | PyObject *resultobj; | |
23240 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23241 | long arg2 ; | |
23242 | wxString *arg3 = 0 ; | |
23243 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23244 | int arg5 = (int) -1 ; | |
23245 | long result; | |
e811c8ce | 23246 | bool temp3 = False ; |
d14a1e28 | 23247 | PyObject * obj0 = 0 ; |
994141e6 | 23248 | PyObject * obj1 = 0 ; |
d14a1e28 | 23249 | PyObject * obj2 = 0 ; |
994141e6 RD |
23250 | PyObject * obj3 = 0 ; |
23251 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23252 | char *kwnames[] = { |
23253 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23254 | }; | |
23255 | ||
994141e6 | 23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23259 | arg2 = (long) SWIG_AsLong(obj1); | |
23260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23261 | { |
23262 | arg3 = wxString_in_helper(obj2); | |
23263 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23264 | temp3 = True; |
d14a1e28 | 23265 | } |
994141e6 | 23266 | if (obj3) { |
15afbcd0 RD |
23267 | arg4 = (int) SWIG_AsInt(obj3); |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23269 | } |
23270 | if (obj4) { | |
15afbcd0 RD |
23271 | arg5 = (int) SWIG_AsInt(obj4); |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23273 | } |
d14a1e28 RD |
23274 | { |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23277 | ||
23278 | wxPyEndAllowThreads(__tstate); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
23280 | } | |
15afbcd0 | 23281 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23282 | { |
23283 | if (temp3) | |
23284 | delete arg3; | |
23285 | } | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | { | |
23289 | if (temp3) | |
23290 | delete arg3; | |
23291 | } | |
23292 | return NULL; | |
23293 | } | |
23294 | ||
23295 | ||
23296 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23297 | PyObject *resultobj; | |
23298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23299 | long arg2 ; | |
23300 | PyObject * obj0 = 0 ; | |
994141e6 | 23301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23302 | char *kwnames[] = { |
23303 | (char *) "self",(char *) "count", NULL | |
23304 | }; | |
23305 | ||
994141e6 | 23306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23309 | arg2 = (long) SWIG_AsLong(obj1); | |
23310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23311 | { |
23312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23313 | (arg1)->SetItemCount(arg2); | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | Py_INCREF(Py_None); resultobj = Py_None; | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23328 | int arg2 ; | |
23329 | int arg3 ; | |
23330 | bool result; | |
23331 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23332 | PyObject * obj1 = 0 ; |
23333 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23334 | char *kwnames[] = { |
23335 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23336 | }; | |
23337 | ||
994141e6 | 23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23341 | arg2 = (int) SWIG_AsInt(obj1); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | arg3 = (int) SWIG_AsInt(obj2); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23345 | { |
23346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23347 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23348 | ||
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
4f89f6a3 RD |
23352 | { |
23353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23354 | } | |
d14a1e28 RD |
23355 | return resultobj; |
23356 | fail: | |
23357 | return NULL; | |
23358 | } | |
23359 | ||
23360 | ||
23361 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23362 | PyObject *resultobj; | |
23363 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23364 | long arg2 ; | |
23365 | wxColour *arg3 = 0 ; | |
23366 | wxColour temp3 ; | |
23367 | PyObject * obj0 = 0 ; | |
994141e6 | 23368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23369 | PyObject * obj2 = 0 ; |
23370 | char *kwnames[] = { | |
23371 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23372 | }; | |
23373 | ||
994141e6 | 23374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23377 | arg2 = (long) SWIG_AsLong(obj1); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23379 | { |
23380 | arg3 = &temp3; | |
23381 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23382 | } | |
23383 | { | |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23385 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | Py_INCREF(Py_None); resultobj = Py_None; | |
23391 | return resultobj; | |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23400 | long arg2 ; | |
23401 | wxColour result; | |
23402 | PyObject * obj0 = 0 ; | |
994141e6 | 23403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23404 | char *kwnames[] = { |
23405 | (char *) "self",(char *) "item", NULL | |
23406 | }; | |
23407 | ||
994141e6 | 23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23411 | arg2 = (long) SWIG_AsLong(obj1); | |
23412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23413 | { |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | { | |
23421 | wxColour * resultptr; | |
23422 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23424 | } |
23425 | return resultobj; | |
23426 | fail: | |
23427 | return NULL; | |
23428 | } | |
23429 | ||
23430 | ||
23431 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23432 | PyObject *resultobj; | |
23433 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23434 | long arg2 ; | |
23435 | wxColour *arg3 = 0 ; | |
23436 | wxColour temp3 ; | |
23437 | PyObject * obj0 = 0 ; | |
994141e6 | 23438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23439 | PyObject * obj2 = 0 ; |
23440 | char *kwnames[] = { | |
23441 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23442 | }; | |
23443 | ||
994141e6 | 23444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23447 | arg2 = (long) SWIG_AsLong(obj1); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23449 | { |
23450 | arg3 = &temp3; | |
23451 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23452 | } | |
23453 | { | |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | Py_INCREF(Py_None); resultobj = Py_None; | |
23461 | return resultobj; | |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
23467 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23468 | PyObject *resultobj; | |
23469 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23470 | long arg2 ; | |
23471 | wxColour result; | |
23472 | PyObject * obj0 = 0 ; | |
994141e6 | 23473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23474 | char *kwnames[] = { |
23475 | (char *) "self",(char *) "item", NULL | |
23476 | }; | |
23477 | ||
994141e6 | 23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23481 | arg2 = (long) SWIG_AsLong(obj1); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23483 | { |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23485 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23486 | ||
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
23490 | { | |
23491 | wxColour * resultptr; | |
23492 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23494 | } |
23495 | return resultobj; | |
23496 | fail: | |
23497 | return NULL; | |
23498 | } | |
23499 | ||
23500 | ||
23501 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23502 | PyObject *resultobj; | |
23503 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23504 | PyObject *arg2 = (PyObject *) 0 ; | |
23505 | bool result; | |
23506 | PyObject * obj0 = 0 ; | |
23507 | PyObject * obj1 = 0 ; | |
23508 | char *kwnames[] = { | |
23509 | (char *) "self",(char *) "func", NULL | |
23510 | }; | |
23511 | ||
23512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23515 | arg2 = obj1; |
23516 | { | |
23517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23518 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23519 | ||
23520 | wxPyEndAllowThreads(__tstate); | |
23521 | if (PyErr_Occurred()) SWIG_fail; | |
23522 | } | |
4f89f6a3 RD |
23523 | { |
23524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23525 | } | |
d14a1e28 RD |
23526 | return resultobj; |
23527 | fail: | |
23528 | return NULL; | |
23529 | } | |
23530 | ||
23531 | ||
23532 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23533 | PyObject *resultobj; | |
23534 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23535 | wxWindow *result; | |
23536 | PyObject * obj0 = 0 ; | |
23537 | char *kwnames[] = { | |
23538 | (char *) "self", NULL | |
23539 | }; | |
23540 | ||
23541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23544 | { |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23547 | ||
23548 | wxPyEndAllowThreads(__tstate); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | } | |
23551 | { | |
412d302d | 23552 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23553 | } |
23554 | return resultobj; | |
23555 | fail: | |
23556 | return NULL; | |
23557 | } | |
23558 | ||
23559 | ||
74a57fcd RD |
23560 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
23561 | PyObject *resultobj; | |
23562 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23563 | wxVisualAttributes result; | |
23564 | PyObject * obj0 = 0 ; | |
23565 | char *kwnames[] = { | |
23566 | (char *) "variant", NULL | |
23567 | }; | |
23568 | ||
23569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23570 | if (obj0) { | |
23571 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23572 | if (PyErr_Occurred()) SWIG_fail; | |
23573 | } | |
23574 | { | |
110da5b0 | 23575 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23577 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 23580 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
23581 | } |
23582 | { | |
23583 | wxVisualAttributes * resultptr; | |
23584 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23586 | } | |
23587 | return resultobj; | |
23588 | fail: | |
23589 | return NULL; | |
23590 | } | |
23591 | ||
23592 | ||
d14a1e28 RD |
23593 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { |
23594 | PyObject *obj; | |
23595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23596 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23597 | Py_INCREF(obj); | |
23598 | return Py_BuildValue((char *)""); | |
23599 | } | |
23600 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23601 | PyObject *resultobj; | |
23602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23603 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23604 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23605 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23606 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23607 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23608 | long arg5 = (long) wxLC_REPORT ; | |
23609 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23610 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23611 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23612 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23613 | wxListView *result; | |
23614 | wxPoint temp3 ; | |
23615 | wxSize temp4 ; | |
e811c8ce | 23616 | bool temp7 = False ; |
d14a1e28 | 23617 | PyObject * obj0 = 0 ; |
994141e6 | 23618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23619 | PyObject * obj2 = 0 ; |
23620 | PyObject * obj3 = 0 ; | |
994141e6 | 23621 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23622 | PyObject * obj5 = 0 ; |
23623 | PyObject * obj6 = 0 ; | |
23624 | char *kwnames[] = { | |
23625 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23626 | }; | |
23627 | ||
994141e6 | 23628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23631 | if (obj1) { |
15afbcd0 RD |
23632 | arg2 = (int) SWIG_AsInt(obj1); |
23633 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23634 | } |
d14a1e28 RD |
23635 | if (obj2) { |
23636 | { | |
23637 | arg3 = &temp3; | |
23638 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23639 | } | |
23640 | } | |
23641 | if (obj3) { | |
23642 | { | |
23643 | arg4 = &temp4; | |
23644 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23645 | } | |
23646 | } | |
994141e6 | 23647 | if (obj4) { |
15afbcd0 RD |
23648 | arg5 = (long) SWIG_AsLong(obj4); |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23650 | } |
d14a1e28 | 23651 | if (obj5) { |
15afbcd0 RD |
23652 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
23653 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23654 | SWIG_fail; | |
d14a1e28 | 23655 | if (arg6 == NULL) { |
15afbcd0 RD |
23656 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23657 | SWIG_fail; | |
d14a1e28 RD |
23658 | } |
23659 | } | |
23660 | if (obj6) { | |
23661 | { | |
23662 | arg7 = wxString_in_helper(obj6); | |
23663 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23664 | temp7 = True; |
d14a1e28 RD |
23665 | } |
23666 | } | |
23667 | { | |
e3b71cb8 | 23668 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23670 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23671 | ||
23672 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23673 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23674 | } |
15afbcd0 | 23675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23676 | { |
23677 | if (temp7) | |
23678 | delete arg7; | |
23679 | } | |
23680 | return resultobj; | |
23681 | fail: | |
23682 | { | |
23683 | if (temp7) | |
23684 | delete arg7; | |
23685 | } | |
23686 | return NULL; | |
23687 | } | |
23688 | ||
23689 | ||
23690 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23691 | PyObject *resultobj; | |
23692 | wxListView *result; | |
23693 | char *kwnames[] = { | |
23694 | NULL | |
23695 | }; | |
23696 | ||
23697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23698 | { | |
e3b71cb8 | 23699 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23701 | result = (wxListView *)new wxListView(); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23704 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23705 | } |
15afbcd0 | 23706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23707 | return resultobj; |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj; | |
23715 | wxListView *arg1 = (wxListView *) 0 ; | |
23716 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23717 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23718 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23719 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23720 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23721 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23722 | long arg6 = (long) wxLC_REPORT ; | |
23723 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23724 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23725 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23726 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23727 | bool result; | |
23728 | wxPoint temp4 ; | |
23729 | wxSize temp5 ; | |
e811c8ce | 23730 | bool temp8 = False ; |
d14a1e28 RD |
23731 | PyObject * obj0 = 0 ; |
23732 | PyObject * obj1 = 0 ; | |
994141e6 | 23733 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23734 | PyObject * obj3 = 0 ; |
23735 | PyObject * obj4 = 0 ; | |
994141e6 | 23736 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23737 | PyObject * obj6 = 0 ; |
23738 | PyObject * obj7 = 0 ; | |
23739 | char *kwnames[] = { | |
23740 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23741 | }; | |
23742 | ||
994141e6 | 23743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
23744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23748 | if (obj2) { |
15afbcd0 RD |
23749 | arg3 = (int) SWIG_AsInt(obj2); |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23751 | } |
d14a1e28 RD |
23752 | if (obj3) { |
23753 | { | |
23754 | arg4 = &temp4; | |
23755 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23756 | } | |
23757 | } | |
23758 | if (obj4) { | |
23759 | { | |
23760 | arg5 = &temp5; | |
23761 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23762 | } | |
23763 | } | |
994141e6 | 23764 | if (obj5) { |
15afbcd0 RD |
23765 | arg6 = (long) SWIG_AsLong(obj5); |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23767 | } |
d14a1e28 | 23768 | if (obj6) { |
15afbcd0 RD |
23769 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
23770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23771 | SWIG_fail; | |
d14a1e28 | 23772 | if (arg7 == NULL) { |
15afbcd0 RD |
23773 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23774 | SWIG_fail; | |
d14a1e28 RD |
23775 | } |
23776 | } | |
23777 | if (obj7) { | |
23778 | { | |
23779 | arg8 = wxString_in_helper(obj7); | |
23780 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23781 | temp8 = True; |
d14a1e28 RD |
23782 | } |
23783 | } | |
23784 | { | |
23785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23786 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23787 | ||
23788 | wxPyEndAllowThreads(__tstate); | |
23789 | if (PyErr_Occurred()) SWIG_fail; | |
23790 | } | |
4f89f6a3 RD |
23791 | { |
23792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23793 | } | |
d14a1e28 RD |
23794 | { |
23795 | if (temp8) | |
23796 | delete arg8; | |
23797 | } | |
23798 | return resultobj; | |
23799 | fail: | |
23800 | { | |
23801 | if (temp8) | |
23802 | delete arg8; | |
23803 | } | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
23808 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23809 | PyObject *resultobj; | |
23810 | wxListView *arg1 = (wxListView *) 0 ; | |
23811 | long arg2 ; | |
e811c8ce | 23812 | bool arg3 = (bool) True ; |
d14a1e28 | 23813 | PyObject * obj0 = 0 ; |
994141e6 | 23814 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23815 | PyObject * obj2 = 0 ; |
23816 | char *kwnames[] = { | |
23817 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23818 | }; | |
23819 | ||
15afbcd0 RD |
23820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23823 | arg2 = (long) SWIG_AsLong(obj1); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 23825 | if (obj2) { |
15afbcd0 RD |
23826 | arg3 = (bool) SWIG_AsBool(obj2); |
23827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23828 | } |
23829 | { | |
23830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23831 | (arg1)->Select(arg2,arg3); | |
23832 | ||
23833 | wxPyEndAllowThreads(__tstate); | |
23834 | if (PyErr_Occurred()) SWIG_fail; | |
23835 | } | |
23836 | Py_INCREF(Py_None); resultobj = Py_None; | |
23837 | return resultobj; | |
23838 | fail: | |
23839 | return NULL; | |
23840 | } | |
23841 | ||
23842 | ||
23843 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23844 | PyObject *resultobj; | |
23845 | wxListView *arg1 = (wxListView *) 0 ; | |
23846 | long arg2 ; | |
23847 | PyObject * obj0 = 0 ; | |
994141e6 | 23848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23849 | char *kwnames[] = { |
23850 | (char *) "self",(char *) "index", NULL | |
23851 | }; | |
23852 | ||
994141e6 | 23853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23856 | arg2 = (long) SWIG_AsLong(obj1); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23858 | { |
23859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23860 | (arg1)->Focus(arg2); | |
23861 | ||
23862 | wxPyEndAllowThreads(__tstate); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
23864 | } | |
23865 | Py_INCREF(Py_None); resultobj = Py_None; | |
23866 | return resultobj; | |
23867 | fail: | |
23868 | return NULL; | |
23869 | } | |
23870 | ||
23871 | ||
23872 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23873 | PyObject *resultobj; | |
23874 | wxListView *arg1 = (wxListView *) 0 ; | |
23875 | long result; | |
23876 | PyObject * obj0 = 0 ; | |
23877 | char *kwnames[] = { | |
23878 | (char *) "self", NULL | |
23879 | }; | |
23880 | ||
23881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23884 | { |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23886 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
15afbcd0 | 23891 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23892 | return resultobj; |
23893 | fail: | |
23894 | return NULL; | |
23895 | } | |
23896 | ||
23897 | ||
23898 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23899 | PyObject *resultobj; | |
23900 | wxListView *arg1 = (wxListView *) 0 ; | |
23901 | long arg2 ; | |
23902 | long result; | |
23903 | PyObject * obj0 = 0 ; | |
994141e6 | 23904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23905 | char *kwnames[] = { |
23906 | (char *) "self",(char *) "item", NULL | |
23907 | }; | |
23908 | ||
994141e6 | 23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23912 | arg2 = (long) SWIG_AsLong(obj1); | |
23913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23914 | { |
23915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23916 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23917 | ||
23918 | wxPyEndAllowThreads(__tstate); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | } | |
15afbcd0 | 23921 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23922 | return resultobj; |
23923 | fail: | |
23924 | return NULL; | |
23925 | } | |
23926 | ||
23927 | ||
23928 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23929 | PyObject *resultobj; | |
23930 | wxListView *arg1 = (wxListView *) 0 ; | |
23931 | long result; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self", NULL | |
23935 | }; | |
23936 | ||
23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23940 | { |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
15afbcd0 | 23947 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23948 | return resultobj; |
23949 | fail: | |
23950 | return NULL; | |
23951 | } | |
23952 | ||
23953 | ||
23954 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23955 | PyObject *resultobj; | |
23956 | wxListView *arg1 = (wxListView *) 0 ; | |
23957 | long arg2 ; | |
23958 | bool result; | |
23959 | PyObject * obj0 = 0 ; | |
994141e6 | 23960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23961 | char *kwnames[] = { |
23962 | (char *) "self",(char *) "index", NULL | |
23963 | }; | |
23964 | ||
994141e6 | 23965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23968 | arg2 = (long) SWIG_AsLong(obj1); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23970 | { |
23971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23972 | result = (bool)(arg1)->IsSelected(arg2); | |
23973 | ||
23974 | wxPyEndAllowThreads(__tstate); | |
23975 | if (PyErr_Occurred()) SWIG_fail; | |
23976 | } | |
4f89f6a3 RD |
23977 | { |
23978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23979 | } | |
d14a1e28 RD |
23980 | return resultobj; |
23981 | fail: | |
23982 | return NULL; | |
23983 | } | |
23984 | ||
23985 | ||
23986 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23987 | PyObject *resultobj; | |
23988 | wxListView *arg1 = (wxListView *) 0 ; | |
23989 | int arg2 ; | |
23990 | int arg3 ; | |
23991 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23992 | PyObject * obj1 = 0 ; |
23993 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23994 | char *kwnames[] = { |
23995 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23996 | }; | |
23997 | ||
994141e6 | 23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24001 | arg2 = (int) SWIG_AsInt(obj1); | |
24002 | if (PyErr_Occurred()) SWIG_fail; | |
24003 | arg3 = (int) SWIG_AsInt(obj2); | |
24004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24005 | { |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | (arg1)->SetColumnImage(arg2,arg3); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
24012 | Py_INCREF(Py_None); resultobj = Py_None; | |
24013 | return resultobj; | |
24014 | fail: | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24020 | PyObject *resultobj; | |
24021 | wxListView *arg1 = (wxListView *) 0 ; | |
24022 | int arg2 ; | |
24023 | PyObject * obj0 = 0 ; | |
994141e6 | 24024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24025 | char *kwnames[] = { |
24026 | (char *) "self",(char *) "col", NULL | |
24027 | }; | |
24028 | ||
994141e6 | 24029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24032 | arg2 = (int) SWIG_AsInt(obj1); | |
24033 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24034 | { |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->ClearColumnImage(arg2); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
24049 | PyObject *obj; | |
24050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24051 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24052 | Py_INCREF(obj); | |
24053 | return Py_BuildValue((char *)""); | |
24054 | } | |
b2dc1044 RD |
24055 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
24056 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
24057 | return 1; | |
24058 | } | |
24059 | ||
24060 | ||
24061 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24062 | PyObject *pyobj; | |
24063 | ||
24064 | { | |
24065 | #if wxUSE_UNICODE | |
24066 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24067 | #else | |
24068 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24069 | #endif | |
24070 | } | |
24071 | return pyobj; | |
24072 | } | |
24073 | ||
24074 | ||
d14a1e28 RD |
24075 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
24076 | PyObject *resultobj; | |
24077 | wxTreeItemId *result; | |
24078 | char *kwnames[] = { | |
24079 | NULL | |
24080 | }; | |
24081 | ||
24082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24083 | { | |
24084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24085 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24086 | ||
24087 | wxPyEndAllowThreads(__tstate); | |
24088 | if (PyErr_Occurred()) SWIG_fail; | |
24089 | } | |
15afbcd0 | 24090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24091 | return resultobj; |
24092 | fail: | |
24093 | return NULL; | |
24094 | } | |
24095 | ||
24096 | ||
24097 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24098 | PyObject *resultobj; | |
24099 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | char *kwnames[] = { | |
24102 | (char *) "self", NULL | |
24103 | }; | |
24104 | ||
24105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24108 | { |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | delete arg1; | |
24111 | ||
24112 | wxPyEndAllowThreads(__tstate); | |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
24114 | } | |
24115 | Py_INCREF(Py_None); resultobj = Py_None; | |
24116 | return resultobj; | |
24117 | fail: | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24125 | bool result; | |
24126 | PyObject * obj0 = 0 ; | |
24127 | char *kwnames[] = { | |
24128 | (char *) "self", NULL | |
24129 | }; | |
24130 | ||
24131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24134 | { |
24135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24136 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24137 | ||
24138 | wxPyEndAllowThreads(__tstate); | |
24139 | if (PyErr_Occurred()) SWIG_fail; | |
24140 | } | |
4f89f6a3 RD |
24141 | { |
24142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24143 | } | |
d14a1e28 RD |
24144 | return resultobj; |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
24150 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24151 | PyObject *resultobj; | |
24152 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24153 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24154 | bool result; | |
24155 | PyObject * obj0 = 0 ; | |
24156 | PyObject * obj1 = 0 ; | |
24157 | char *kwnames[] = { | |
24158 | (char *) "self",(char *) "other", NULL | |
24159 | }; | |
24160 | ||
24161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24166 | { |
24167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24168 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24169 | |
24170 | wxPyEndAllowThreads(__tstate); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
24172 | } | |
4f89f6a3 RD |
24173 | { |
24174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24175 | } | |
d14a1e28 RD |
24176 | return resultobj; |
24177 | fail: | |
24178 | return NULL; | |
24179 | } | |
24180 | ||
24181 | ||
24182 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24183 | PyObject *resultobj; | |
24184 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24185 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24186 | bool result; | |
24187 | PyObject * obj0 = 0 ; | |
24188 | PyObject * obj1 = 0 ; | |
24189 | char *kwnames[] = { | |
24190 | (char *) "self",(char *) "other", NULL | |
24191 | }; | |
24192 | ||
24193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24198 | { |
24199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24200 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24201 | |
24202 | wxPyEndAllowThreads(__tstate); | |
24203 | if (PyErr_Occurred()) SWIG_fail; | |
24204 | } | |
4f89f6a3 RD |
24205 | { |
24206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24207 | } | |
d14a1e28 RD |
24208 | return resultobj; |
24209 | fail: | |
24210 | return NULL; | |
24211 | } | |
24212 | ||
24213 | ||
24214 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24215 | PyObject *resultobj; | |
24216 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24217 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24218 | PyObject * obj0 = 0 ; |
24219 | PyObject * obj1 = 0 ; | |
24220 | char *kwnames[] = { | |
24221 | (char *) "self",(char *) "m_pItem", NULL | |
24222 | }; | |
24223 | ||
24224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24227 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24228 | if (arg1) (arg1)->m_pItem = arg2; |
24229 | ||
24230 | Py_INCREF(Py_None); resultobj = Py_None; | |
24231 | return resultobj; | |
24232 | fail: | |
24233 | return NULL; | |
24234 | } | |
24235 | ||
24236 | ||
24237 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24238 | PyObject *resultobj; | |
24239 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24240 | void *result; |
d14a1e28 RD |
24241 | PyObject * obj0 = 0 ; |
24242 | char *kwnames[] = { | |
24243 | (char *) "self", NULL | |
24244 | }; | |
24245 | ||
24246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24249 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24250 | |
15afbcd0 | 24251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24252 | return resultobj; |
24253 | fail: | |
24254 | return NULL; | |
24255 | } | |
24256 | ||
24257 | ||
24258 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24259 | PyObject *obj; | |
24260 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24261 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24262 | Py_INCREF(obj); | |
24263 | return Py_BuildValue((char *)""); | |
24264 | } | |
24265 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24266 | PyObject *resultobj; | |
24267 | PyObject *arg1 = (PyObject *) NULL ; | |
24268 | wxPyTreeItemData *result; | |
24269 | PyObject * obj0 = 0 ; | |
24270 | char *kwnames[] = { | |
24271 | (char *) "obj", NULL | |
24272 | }; | |
24273 | ||
24274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24275 | if (obj0) { | |
24276 | arg1 = obj0; | |
24277 | } | |
24278 | { | |
24279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24280 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24281 | ||
24282 | wxPyEndAllowThreads(__tstate); | |
24283 | if (PyErr_Occurred()) SWIG_fail; | |
24284 | } | |
15afbcd0 | 24285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24286 | return resultobj; |
24287 | fail: | |
24288 | return NULL; | |
24289 | } | |
24290 | ||
24291 | ||
24292 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24293 | PyObject *resultobj; | |
24294 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24295 | PyObject *result; | |
24296 | PyObject * obj0 = 0 ; | |
24297 | char *kwnames[] = { | |
24298 | (char *) "self", NULL | |
24299 | }; | |
24300 | ||
24301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24304 | { |
24305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24306 | result = (PyObject *)(arg1)->GetData(); | |
24307 | ||
24308 | wxPyEndAllowThreads(__tstate); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
24311 | resultobj = result; | |
24312 | return resultobj; | |
24313 | fail: | |
24314 | return NULL; | |
24315 | } | |
24316 | ||
24317 | ||
24318 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24319 | PyObject *resultobj; | |
24320 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24321 | PyObject *arg2 = (PyObject *) 0 ; | |
24322 | PyObject * obj0 = 0 ; | |
24323 | PyObject * obj1 = 0 ; | |
24324 | char *kwnames[] = { | |
24325 | (char *) "self",(char *) "obj", NULL | |
24326 | }; | |
24327 | ||
24328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24331 | arg2 = obj1; |
24332 | { | |
24333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24334 | (arg1)->SetData(arg2); | |
24335 | ||
24336 | wxPyEndAllowThreads(__tstate); | |
24337 | if (PyErr_Occurred()) SWIG_fail; | |
24338 | } | |
24339 | Py_INCREF(Py_None); resultobj = Py_None; | |
24340 | return resultobj; | |
24341 | fail: | |
24342 | return NULL; | |
24343 | } | |
24344 | ||
24345 | ||
24346 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24347 | PyObject *resultobj; | |
24348 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24349 | wxTreeItemId *result; | |
24350 | PyObject * obj0 = 0 ; | |
24351 | char *kwnames[] = { | |
24352 | (char *) "self", NULL | |
24353 | }; | |
24354 | ||
24355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24358 | { |
24359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24360 | { | |
24361 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24362 | result = (wxTreeItemId *) &_result_ref; | |
24363 | } | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
15afbcd0 | 24368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24369 | return resultobj; |
24370 | fail: | |
24371 | return NULL; | |
24372 | } | |
24373 | ||
24374 | ||
24375 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24376 | PyObject *resultobj; | |
24377 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24378 | wxTreeItemId *arg2 = 0 ; | |
24379 | PyObject * obj0 = 0 ; | |
24380 | PyObject * obj1 = 0 ; | |
24381 | char *kwnames[] = { | |
24382 | (char *) "self",(char *) "id", NULL | |
24383 | }; | |
24384 | ||
24385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24390 | SWIG_fail; | |
d14a1e28 | 24391 | if (arg2 == NULL) { |
15afbcd0 RD |
24392 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24393 | SWIG_fail; | |
d14a1e28 RD |
24394 | } |
24395 | { | |
24396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24397 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24398 | ||
24399 | wxPyEndAllowThreads(__tstate); | |
24400 | if (PyErr_Occurred()) SWIG_fail; | |
24401 | } | |
24402 | Py_INCREF(Py_None); resultobj = Py_None; | |
24403 | return resultobj; | |
24404 | fail: | |
24405 | return NULL; | |
24406 | } | |
24407 | ||
24408 | ||
24409 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24410 | PyObject *resultobj; | |
24411 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | char *kwnames[] = { | |
24414 | (char *) "self", NULL | |
24415 | }; | |
24416 | ||
24417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24420 | { |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | wxPyTreeItemData_Destroy(arg1); | |
24423 | ||
24424 | wxPyEndAllowThreads(__tstate); | |
24425 | if (PyErr_Occurred()) SWIG_fail; | |
24426 | } | |
24427 | Py_INCREF(Py_None); resultobj = Py_None; | |
24428 | return resultobj; | |
24429 | fail: | |
24430 | return NULL; | |
24431 | } | |
24432 | ||
24433 | ||
24434 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24435 | PyObject *obj; | |
24436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24437 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24438 | Py_INCREF(obj); | |
24439 | return Py_BuildValue((char *)""); | |
24440 | } | |
24441 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24442 | PyObject *resultobj; | |
24443 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24444 | int arg2 = (int) 0 ; | |
24445 | wxTreeEvent *result; | |
994141e6 RD |
24446 | PyObject * obj0 = 0 ; |
24447 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24448 | char *kwnames[] = { |
24449 | (char *) "commandType",(char *) "id", NULL | |
24450 | }; | |
24451 | ||
994141e6 RD |
24452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24453 | if (obj0) { | |
15afbcd0 RD |
24454 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
24456 | } |
24457 | if (obj1) { | |
15afbcd0 RD |
24458 | arg2 = (int) SWIG_AsInt(obj1); |
24459 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24460 | } |
d14a1e28 RD |
24461 | { |
24462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24463 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24464 | ||
24465 | wxPyEndAllowThreads(__tstate); | |
24466 | if (PyErr_Occurred()) SWIG_fail; | |
24467 | } | |
15afbcd0 | 24468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24469 | return resultobj; |
24470 | fail: | |
24471 | return NULL; | |
24472 | } | |
24473 | ||
24474 | ||
24475 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24476 | PyObject *resultobj; | |
24477 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24478 | wxTreeItemId result; | |
24479 | PyObject * obj0 = 0 ; | |
24480 | char *kwnames[] = { | |
24481 | (char *) "self", NULL | |
24482 | }; | |
24483 | ||
24484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24487 | { |
24488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24489 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24490 | ||
24491 | wxPyEndAllowThreads(__tstate); | |
24492 | if (PyErr_Occurred()) SWIG_fail; | |
24493 | } | |
24494 | { | |
24495 | wxTreeItemId * resultptr; | |
24496 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24498 | } |
24499 | return resultobj; | |
24500 | fail: | |
24501 | return NULL; | |
24502 | } | |
24503 | ||
24504 | ||
24505 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24506 | PyObject *resultobj; | |
24507 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24508 | wxTreeItemId *arg2 = 0 ; | |
24509 | PyObject * obj0 = 0 ; | |
24510 | PyObject * obj1 = 0 ; | |
24511 | char *kwnames[] = { | |
24512 | (char *) "self",(char *) "item", NULL | |
24513 | }; | |
24514 | ||
24515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24520 | SWIG_fail; | |
d14a1e28 | 24521 | if (arg2 == NULL) { |
15afbcd0 RD |
24522 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24523 | SWIG_fail; | |
d14a1e28 RD |
24524 | } |
24525 | { | |
24526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24527 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24528 | ||
24529 | wxPyEndAllowThreads(__tstate); | |
24530 | if (PyErr_Occurred()) SWIG_fail; | |
24531 | } | |
24532 | Py_INCREF(Py_None); resultobj = Py_None; | |
24533 | return resultobj; | |
24534 | fail: | |
24535 | return NULL; | |
24536 | } | |
24537 | ||
24538 | ||
24539 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24540 | PyObject *resultobj; | |
24541 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24542 | wxTreeItemId result; | |
24543 | PyObject * obj0 = 0 ; | |
24544 | char *kwnames[] = { | |
24545 | (char *) "self", NULL | |
24546 | }; | |
24547 | ||
24548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24551 | { |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24554 | ||
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | { | |
24559 | wxTreeItemId * resultptr; | |
24560 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24562 | } |
24563 | return resultobj; | |
24564 | fail: | |
24565 | return NULL; | |
24566 | } | |
24567 | ||
24568 | ||
24569 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24570 | PyObject *resultobj; | |
24571 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24572 | wxTreeItemId *arg2 = 0 ; | |
24573 | PyObject * obj0 = 0 ; | |
24574 | PyObject * obj1 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "self",(char *) "item", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24584 | SWIG_fail; | |
d14a1e28 | 24585 | if (arg2 == NULL) { |
15afbcd0 RD |
24586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24587 | SWIG_fail; | |
d14a1e28 RD |
24588 | } |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | Py_INCREF(Py_None); resultobj = Py_None; | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
24603 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24604 | PyObject *resultobj; | |
24605 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24606 | wxPoint result; | |
24607 | PyObject * obj0 = 0 ; | |
24608 | char *kwnames[] = { | |
24609 | (char *) "self", NULL | |
24610 | }; | |
24611 | ||
24612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24615 | { |
24616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24617 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24618 | ||
24619 | wxPyEndAllowThreads(__tstate); | |
24620 | if (PyErr_Occurred()) SWIG_fail; | |
24621 | } | |
24622 | { | |
24623 | wxPoint * resultptr; | |
24624 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 24625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24626 | } |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj; | |
24635 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24636 | wxPoint *arg2 = 0 ; | |
24637 | wxPoint temp2 ; | |
24638 | PyObject * obj0 = 0 ; | |
24639 | PyObject * obj1 = 0 ; | |
24640 | char *kwnames[] = { | |
24641 | (char *) "self",(char *) "pt", NULL | |
24642 | }; | |
24643 | ||
24644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24647 | { |
24648 | arg2 = &temp2; | |
24649 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24650 | } | |
24651 | { | |
24652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24653 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24654 | ||
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
24658 | Py_INCREF(Py_None); resultobj = Py_None; | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | return NULL; | |
24662 | } | |
24663 | ||
24664 | ||
24665 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24666 | PyObject *resultobj; | |
24667 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24668 | wxKeyEvent *result; | |
24669 | PyObject * obj0 = 0 ; | |
24670 | char *kwnames[] = { | |
24671 | (char *) "self", NULL | |
24672 | }; | |
24673 | ||
24674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24677 | { |
24678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24679 | { | |
24680 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24681 | result = (wxKeyEvent *) &_result_ref; | |
24682 | } | |
24683 | ||
24684 | wxPyEndAllowThreads(__tstate); | |
24685 | if (PyErr_Occurred()) SWIG_fail; | |
24686 | } | |
15afbcd0 | 24687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
24688 | return resultobj; |
24689 | fail: | |
24690 | return NULL; | |
24691 | } | |
24692 | ||
24693 | ||
24694 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24695 | PyObject *resultobj; | |
24696 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24697 | int result; | |
24698 | PyObject * obj0 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24706 | { |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
15afbcd0 | 24713 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24714 | return resultobj; |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24723 | wxKeyEvent *arg2 = 0 ; | |
24724 | PyObject * obj0 = 0 ; | |
24725 | PyObject * obj1 = 0 ; | |
24726 | char *kwnames[] = { | |
24727 | (char *) "self",(char *) "evt", NULL | |
24728 | }; | |
24729 | ||
24730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24734 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24735 | SWIG_fail; | |
d14a1e28 | 24736 | if (arg2 == NULL) { |
15afbcd0 RD |
24737 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24738 | SWIG_fail; | |
d14a1e28 RD |
24739 | } |
24740 | { | |
24741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24742 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24743 | ||
24744 | wxPyEndAllowThreads(__tstate); | |
24745 | if (PyErr_Occurred()) SWIG_fail; | |
24746 | } | |
24747 | Py_INCREF(Py_None); resultobj = Py_None; | |
24748 | return resultobj; | |
24749 | fail: | |
24750 | return NULL; | |
24751 | } | |
24752 | ||
24753 | ||
24754 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24755 | PyObject *resultobj; | |
24756 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24757 | wxString *result; | |
24758 | PyObject * obj0 = 0 ; | |
24759 | char *kwnames[] = { | |
24760 | (char *) "self", NULL | |
24761 | }; | |
24762 | ||
24763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24766 | { |
24767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24768 | { | |
24769 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24770 | result = (wxString *) &_result_ref; | |
24771 | } | |
24772 | ||
24773 | wxPyEndAllowThreads(__tstate); | |
24774 | if (PyErr_Occurred()) SWIG_fail; | |
24775 | } | |
cc6dd355 RD |
24776 | { |
24777 | #if wxUSE_UNICODE | |
24778 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24779 | #else | |
24780 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24781 | #endif | |
24782 | } | |
d14a1e28 RD |
24783 | return resultobj; |
24784 | fail: | |
24785 | return NULL; | |
24786 | } | |
24787 | ||
24788 | ||
24789 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24790 | PyObject *resultobj; | |
24791 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24792 | wxString *arg2 = 0 ; | |
e811c8ce | 24793 | bool temp2 = False ; |
d14a1e28 RD |
24794 | PyObject * obj0 = 0 ; |
24795 | PyObject * obj1 = 0 ; | |
24796 | char *kwnames[] = { | |
24797 | (char *) "self",(char *) "label", NULL | |
24798 | }; | |
24799 | ||
24800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24803 | { |
24804 | arg2 = wxString_in_helper(obj1); | |
24805 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24806 | temp2 = True; |
d14a1e28 RD |
24807 | } |
24808 | { | |
24809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24810 | (arg1)->SetLabel((wxString const &)*arg2); | |
24811 | ||
24812 | wxPyEndAllowThreads(__tstate); | |
24813 | if (PyErr_Occurred()) SWIG_fail; | |
24814 | } | |
24815 | Py_INCREF(Py_None); resultobj = Py_None; | |
24816 | { | |
24817 | if (temp2) | |
24818 | delete arg2; | |
24819 | } | |
24820 | return resultobj; | |
24821 | fail: | |
24822 | { | |
24823 | if (temp2) | |
24824 | delete arg2; | |
24825 | } | |
24826 | return NULL; | |
24827 | } | |
24828 | ||
24829 | ||
24830 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24831 | PyObject *resultobj; | |
24832 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24833 | bool result; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | char *kwnames[] = { | |
24836 | (char *) "self", NULL | |
24837 | }; | |
24838 | ||
24839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24842 | { |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24845 | ||
24846 | wxPyEndAllowThreads(__tstate); | |
24847 | if (PyErr_Occurred()) SWIG_fail; | |
24848 | } | |
4f89f6a3 RD |
24849 | { |
24850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24851 | } | |
d14a1e28 RD |
24852 | return resultobj; |
24853 | fail: | |
24854 | return NULL; | |
24855 | } | |
24856 | ||
24857 | ||
24858 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24859 | PyObject *resultobj; | |
24860 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24861 | bool arg2 ; | |
24862 | PyObject * obj0 = 0 ; | |
24863 | PyObject * obj1 = 0 ; | |
24864 | char *kwnames[] = { | |
24865 | (char *) "self",(char *) "editCancelled", NULL | |
24866 | }; | |
24867 | ||
24868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24871 | arg2 = (bool) SWIG_AsBool(obj1); | |
24872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24873 | { |
24874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24875 | (arg1)->SetEditCanceled(arg2); | |
24876 | ||
24877 | wxPyEndAllowThreads(__tstate); | |
24878 | if (PyErr_Occurred()) SWIG_fail; | |
24879 | } | |
24880 | Py_INCREF(Py_None); resultobj = Py_None; | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
c9c7117a RD |
24887 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24888 | PyObject *resultobj; | |
24889 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24890 | wxString *arg2 = 0 ; | |
24891 | bool temp2 = False ; | |
24892 | PyObject * obj0 = 0 ; | |
24893 | PyObject * obj1 = 0 ; | |
24894 | char *kwnames[] = { | |
24895 | (char *) "self",(char *) "toolTip", NULL | |
24896 | }; | |
24897 | ||
24898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
24901 | { |
24902 | arg2 = wxString_in_helper(obj1); | |
24903 | if (arg2 == NULL) SWIG_fail; | |
24904 | temp2 = True; | |
24905 | } | |
24906 | { | |
24907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24908 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24909 | ||
24910 | wxPyEndAllowThreads(__tstate); | |
24911 | if (PyErr_Occurred()) SWIG_fail; | |
24912 | } | |
24913 | Py_INCREF(Py_None); resultobj = Py_None; | |
24914 | { | |
24915 | if (temp2) | |
24916 | delete arg2; | |
24917 | } | |
24918 | return resultobj; | |
24919 | fail: | |
24920 | { | |
24921 | if (temp2) | |
24922 | delete arg2; | |
24923 | } | |
24924 | return NULL; | |
24925 | } | |
24926 | ||
24927 | ||
d14a1e28 RD |
24928 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24929 | PyObject *obj; | |
24930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24931 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24932 | Py_INCREF(obj); | |
24933 | return Py_BuildValue((char *)""); | |
24934 | } | |
24935 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24936 | PyObject *resultobj; | |
24937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24938 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24939 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24940 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24941 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24942 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24943 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24944 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24945 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 24946 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24947 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24948 | wxPyTreeCtrl *result; | |
24949 | wxPoint temp3 ; | |
24950 | wxSize temp4 ; | |
e811c8ce | 24951 | bool temp7 = False ; |
d14a1e28 | 24952 | PyObject * obj0 = 0 ; |
994141e6 | 24953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24954 | PyObject * obj2 = 0 ; |
24955 | PyObject * obj3 = 0 ; | |
994141e6 | 24956 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24957 | PyObject * obj5 = 0 ; |
24958 | PyObject * obj6 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24961 | }; | |
24962 | ||
994141e6 | 24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24966 | if (obj1) { |
15afbcd0 RD |
24967 | arg2 = (int) SWIG_AsInt(obj1); |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24969 | } |
d14a1e28 RD |
24970 | if (obj2) { |
24971 | { | |
24972 | arg3 = &temp3; | |
24973 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24974 | } | |
24975 | } | |
24976 | if (obj3) { | |
24977 | { | |
994141e6 RD |
24978 | arg4 = &temp4; |
24979 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24980 | } | |
24981 | } | |
24982 | if (obj4) { | |
15afbcd0 RD |
24983 | arg5 = (long) SWIG_AsLong(obj4); |
24984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24985 | } |
24986 | if (obj5) { | |
15afbcd0 RD |
24987 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24988 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24989 | SWIG_fail; | |
d14a1e28 | 24990 | if (arg6 == NULL) { |
15afbcd0 RD |
24991 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24992 | SWIG_fail; | |
d14a1e28 RD |
24993 | } |
24994 | } | |
24995 | if (obj6) { | |
24996 | { | |
24997 | arg7 = wxString_in_helper(obj6); | |
24998 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 24999 | temp7 = True; |
d14a1e28 RD |
25000 | } |
25001 | } | |
25002 | { | |
e3b71cb8 | 25003 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25005 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25006 | ||
25007 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25008 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25009 | } |
b2dc1044 | 25010 | { |
412d302d | 25011 | resultobj = wxPyMake_wxObject(result, 1); |
b2dc1044 | 25012 | } |
d14a1e28 RD |
25013 | { |
25014 | if (temp7) | |
25015 | delete arg7; | |
25016 | } | |
25017 | return resultobj; | |
25018 | fail: | |
25019 | { | |
25020 | if (temp7) | |
25021 | delete arg7; | |
25022 | } | |
25023 | return NULL; | |
25024 | } | |
25025 | ||
25026 | ||
25027 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25028 | PyObject *resultobj; | |
25029 | wxPyTreeCtrl *result; | |
25030 | char *kwnames[] = { | |
25031 | NULL | |
25032 | }; | |
25033 | ||
25034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25035 | { | |
e3b71cb8 | 25036 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25038 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25039 | ||
25040 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25042 | } |
b2dc1044 | 25043 | { |
412d302d | 25044 | resultobj = wxPyMake_wxObject(result, 1); |
b2dc1044 | 25045 | } |
d14a1e28 RD |
25046 | return resultobj; |
25047 | fail: | |
25048 | return NULL; | |
25049 | } | |
25050 | ||
25051 | ||
25052 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25053 | PyObject *resultobj; | |
25054 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25056 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25057 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25058 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25059 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25060 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25061 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25062 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25063 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 25064 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25065 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
25066 | bool result; | |
25067 | wxPoint temp4 ; | |
25068 | wxSize temp5 ; | |
e811c8ce | 25069 | bool temp8 = False ; |
d14a1e28 RD |
25070 | PyObject * obj0 = 0 ; |
25071 | PyObject * obj1 = 0 ; | |
994141e6 | 25072 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25073 | PyObject * obj3 = 0 ; |
25074 | PyObject * obj4 = 0 ; | |
994141e6 | 25075 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25076 | PyObject * obj6 = 0 ; |
25077 | PyObject * obj7 = 0 ; | |
25078 | char *kwnames[] = { | |
25079 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25080 | }; | |
25081 | ||
994141e6 | 25082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
25083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25085 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25087 | if (obj2) { |
15afbcd0 RD |
25088 | arg3 = (int) SWIG_AsInt(obj2); |
25089 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25090 | } |
d14a1e28 RD |
25091 | if (obj3) { |
25092 | { | |
25093 | arg4 = &temp4; | |
25094 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25095 | } | |
25096 | } | |
25097 | if (obj4) { | |
25098 | { | |
25099 | arg5 = &temp5; | |
25100 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25101 | } | |
25102 | } | |
994141e6 | 25103 | if (obj5) { |
15afbcd0 RD |
25104 | arg6 = (long) SWIG_AsLong(obj5); |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25106 | } |
d14a1e28 | 25107 | if (obj6) { |
15afbcd0 RD |
25108 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
25109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25110 | SWIG_fail; | |
d14a1e28 | 25111 | if (arg7 == NULL) { |
15afbcd0 RD |
25112 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25113 | SWIG_fail; | |
d14a1e28 RD |
25114 | } |
25115 | } | |
25116 | if (obj7) { | |
25117 | { | |
25118 | arg8 = wxString_in_helper(obj7); | |
25119 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 25120 | temp8 = True; |
d14a1e28 RD |
25121 | } |
25122 | } | |
25123 | { | |
25124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25125 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25126 | ||
25127 | wxPyEndAllowThreads(__tstate); | |
25128 | if (PyErr_Occurred()) SWIG_fail; | |
25129 | } | |
4f89f6a3 RD |
25130 | { |
25131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25132 | } | |
d14a1e28 RD |
25133 | { |
25134 | if (temp8) | |
25135 | delete arg8; | |
25136 | } | |
25137 | return resultobj; | |
25138 | fail: | |
25139 | { | |
25140 | if (temp8) | |
25141 | delete arg8; | |
25142 | } | |
25143 | return NULL; | |
25144 | } | |
25145 | ||
25146 | ||
25147 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25148 | PyObject *resultobj; | |
25149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25150 | PyObject *arg2 = (PyObject *) 0 ; | |
25151 | PyObject *arg3 = (PyObject *) 0 ; | |
25152 | PyObject * obj0 = 0 ; | |
25153 | PyObject * obj1 = 0 ; | |
25154 | PyObject * obj2 = 0 ; | |
25155 | char *kwnames[] = { | |
25156 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25157 | }; | |
25158 | ||
25159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25162 | arg2 = obj1; |
25163 | arg3 = obj2; | |
25164 | { | |
25165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25166 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25167 | ||
25168 | wxPyEndAllowThreads(__tstate); | |
25169 | if (PyErr_Occurred()) SWIG_fail; | |
25170 | } | |
25171 | Py_INCREF(Py_None); resultobj = Py_None; | |
25172 | return resultobj; | |
25173 | fail: | |
25174 | return NULL; | |
25175 | } | |
25176 | ||
25177 | ||
25178 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25179 | PyObject *resultobj; | |
25180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25181 | size_t result; | |
25182 | PyObject * obj0 = 0 ; | |
25183 | char *kwnames[] = { | |
25184 | (char *) "self", NULL | |
25185 | }; | |
25186 | ||
25187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25190 | { |
25191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25192 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25193 | ||
25194 | wxPyEndAllowThreads(__tstate); | |
25195 | if (PyErr_Occurred()) SWIG_fail; | |
25196 | } | |
15afbcd0 | 25197 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25198 | return resultobj; |
25199 | fail: | |
25200 | return NULL; | |
25201 | } | |
25202 | ||
25203 | ||
25204 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25205 | PyObject *resultobj; | |
25206 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25207 | unsigned int result; | |
25208 | PyObject * obj0 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "self", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25216 | { |
25217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25218 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25219 | ||
25220 | wxPyEndAllowThreads(__tstate); | |
25221 | if (PyErr_Occurred()) SWIG_fail; | |
25222 | } | |
15afbcd0 | 25223 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25224 | return resultobj; |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
25230 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25231 | PyObject *resultobj; | |
25232 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25233 | unsigned int arg2 ; | |
25234 | PyObject * obj0 = 0 ; | |
25235 | PyObject * obj1 = 0 ; | |
25236 | char *kwnames[] = { | |
25237 | (char *) "self",(char *) "indent", NULL | |
25238 | }; | |
25239 | ||
25240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25243 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25245 | { |
25246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25247 | (arg1)->SetIndent(arg2); | |
25248 | ||
25249 | wxPyEndAllowThreads(__tstate); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
25252 | Py_INCREF(Py_None); resultobj = Py_None; | |
25253 | return resultobj; | |
25254 | fail: | |
25255 | return NULL; | |
25256 | } | |
25257 | ||
25258 | ||
25259 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25260 | PyObject *resultobj; | |
25261 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25262 | unsigned int result; | |
25263 | PyObject * obj0 = 0 ; | |
25264 | char *kwnames[] = { | |
25265 | (char *) "self", NULL | |
25266 | }; | |
25267 | ||
25268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25271 | { |
25272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25273 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25274 | ||
25275 | wxPyEndAllowThreads(__tstate); | |
25276 | if (PyErr_Occurred()) SWIG_fail; | |
25277 | } | |
15afbcd0 | 25278 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25279 | return resultobj; |
25280 | fail: | |
25281 | return NULL; | |
25282 | } | |
25283 | ||
25284 | ||
25285 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25286 | PyObject *resultobj; | |
25287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25288 | unsigned int arg2 ; | |
25289 | PyObject * obj0 = 0 ; | |
25290 | PyObject * obj1 = 0 ; | |
25291 | char *kwnames[] = { | |
25292 | (char *) "self",(char *) "spacing", NULL | |
25293 | }; | |
25294 | ||
25295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25298 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25300 | { |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | (arg1)->SetSpacing(arg2); | |
25303 | ||
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | Py_INCREF(Py_None); resultobj = Py_None; | |
25308 | return resultobj; | |
25309 | fail: | |
25310 | return NULL; | |
25311 | } | |
25312 | ||
25313 | ||
25314 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25315 | PyObject *resultobj; | |
25316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25317 | wxImageList *result; | |
25318 | PyObject * obj0 = 0 ; | |
25319 | char *kwnames[] = { | |
25320 | (char *) "self", NULL | |
25321 | }; | |
25322 | ||
25323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25326 | { |
25327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25328 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25329 | ||
25330 | wxPyEndAllowThreads(__tstate); | |
25331 | if (PyErr_Occurred()) SWIG_fail; | |
25332 | } | |
25333 | { | |
412d302d | 25334 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25335 | } |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25343 | PyObject *resultobj; | |
25344 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25345 | wxImageList *result; | |
25346 | PyObject * obj0 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25354 | { |
25355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25356 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25357 | ||
25358 | wxPyEndAllowThreads(__tstate); | |
25359 | if (PyErr_Occurred()) SWIG_fail; | |
25360 | } | |
25361 | { | |
412d302d | 25362 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25363 | } |
25364 | return resultobj; | |
25365 | fail: | |
25366 | return NULL; | |
25367 | } | |
25368 | ||
25369 | ||
25370 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25371 | PyObject *resultobj; | |
25372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25373 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25374 | PyObject * obj0 = 0 ; | |
25375 | PyObject * obj1 = 0 ; | |
25376 | char *kwnames[] = { | |
25377 | (char *) "self",(char *) "imageList", NULL | |
25378 | }; | |
25379 | ||
25380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25385 | { |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | (arg1)->SetImageList(arg2); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | Py_INCREF(Py_None); resultobj = Py_None; | |
25393 | return resultobj; | |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
25399 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25400 | PyObject *resultobj; | |
25401 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25402 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | PyObject * obj1 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self",(char *) "imageList", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25414 | { |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | (arg1)->SetStateImageList(arg2); | |
25417 | ||
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | Py_INCREF(Py_None); resultobj = Py_None; | |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
25428 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25429 | PyObject *resultobj; | |
25430 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25431 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | PyObject * obj1 = 0 ; | |
25434 | char *kwnames[] = { | |
25435 | (char *) "self",(char *) "imageList", NULL | |
25436 | }; | |
25437 | ||
25438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25442 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25443 | { |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | (arg1)->AssignImageList(arg2); | |
25446 | ||
25447 | wxPyEndAllowThreads(__tstate); | |
25448 | if (PyErr_Occurred()) SWIG_fail; | |
25449 | } | |
25450 | Py_INCREF(Py_None); resultobj = Py_None; | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
25457 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25458 | PyObject *resultobj; | |
25459 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25460 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25461 | PyObject * obj0 = 0 ; | |
25462 | PyObject * obj1 = 0 ; | |
25463 | char *kwnames[] = { | |
25464 | (char *) "self",(char *) "imageList", NULL | |
25465 | }; | |
25466 | ||
25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25471 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25472 | { |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | (arg1)->AssignStateImageList(arg2); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | Py_INCREF(Py_None); resultobj = Py_None; | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25489 | wxTreeItemId *arg2 = 0 ; | |
25490 | wxString result; | |
25491 | PyObject * obj0 = 0 ; | |
25492 | PyObject * obj1 = 0 ; | |
25493 | char *kwnames[] = { | |
25494 | (char *) "self",(char *) "item", NULL | |
25495 | }; | |
25496 | ||
25497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25501 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25502 | SWIG_fail; | |
d14a1e28 | 25503 | if (arg2 == NULL) { |
15afbcd0 RD |
25504 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25505 | SWIG_fail; | |
d14a1e28 RD |
25506 | } |
25507 | { | |
25508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25509 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25510 | ||
25511 | wxPyEndAllowThreads(__tstate); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | } | |
25514 | { | |
25515 | #if wxUSE_UNICODE | |
25516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25517 | #else | |
25518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25519 | #endif | |
25520 | } | |
25521 | return resultobj; | |
25522 | fail: | |
25523 | return NULL; | |
25524 | } | |
25525 | ||
25526 | ||
25527 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25528 | PyObject *resultobj; | |
25529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25530 | wxTreeItemId *arg2 = 0 ; | |
25531 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25532 | int result; | |
25533 | PyObject * obj0 = 0 ; | |
25534 | PyObject * obj1 = 0 ; | |
994141e6 | 25535 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25536 | char *kwnames[] = { |
25537 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25538 | }; | |
25539 | ||
994141e6 | 25540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25543 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25545 | SWIG_fail; | |
d14a1e28 | 25546 | if (arg2 == NULL) { |
15afbcd0 RD |
25547 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25548 | SWIG_fail; | |
d14a1e28 | 25549 | } |
994141e6 | 25550 | if (obj2) { |
15afbcd0 RD |
25551 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
25552 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25553 | } |
d14a1e28 RD |
25554 | { |
25555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25556 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25557 | ||
25558 | wxPyEndAllowThreads(__tstate); | |
25559 | if (PyErr_Occurred()) SWIG_fail; | |
25560 | } | |
15afbcd0 | 25561 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25562 | return resultobj; |
25563 | fail: | |
25564 | return NULL; | |
25565 | } | |
25566 | ||
25567 | ||
25568 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25569 | PyObject *resultobj; | |
25570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25571 | wxTreeItemId *arg2 = 0 ; | |
25572 | wxPyTreeItemData *result; | |
25573 | PyObject * obj0 = 0 ; | |
25574 | PyObject * obj1 = 0 ; | |
25575 | char *kwnames[] = { | |
25576 | (char *) "self",(char *) "item", NULL | |
25577 | }; | |
25578 | ||
25579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25584 | SWIG_fail; | |
d14a1e28 | 25585 | if (arg2 == NULL) { |
15afbcd0 RD |
25586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25587 | SWIG_fail; | |
d14a1e28 RD |
25588 | } |
25589 | { | |
25590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25591 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25592 | ||
25593 | wxPyEndAllowThreads(__tstate); | |
25594 | if (PyErr_Occurred()) SWIG_fail; | |
25595 | } | |
15afbcd0 | 25596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
25597 | return resultobj; |
25598 | fail: | |
25599 | return NULL; | |
25600 | } | |
25601 | ||
25602 | ||
25603 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25604 | PyObject *resultobj; | |
25605 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25606 | wxTreeItemId *arg2 = 0 ; | |
25607 | PyObject *result; | |
25608 | PyObject * obj0 = 0 ; | |
25609 | PyObject * obj1 = 0 ; | |
25610 | char *kwnames[] = { | |
25611 | (char *) "self",(char *) "item", NULL | |
25612 | }; | |
25613 | ||
25614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25619 | SWIG_fail; | |
d14a1e28 | 25620 | if (arg2 == NULL) { |
15afbcd0 RD |
25621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25622 | SWIG_fail; | |
d14a1e28 RD |
25623 | } |
25624 | { | |
25625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25626 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25627 | ||
25628 | wxPyEndAllowThreads(__tstate); | |
25629 | if (PyErr_Occurred()) SWIG_fail; | |
25630 | } | |
25631 | resultobj = result; | |
25632 | return resultobj; | |
25633 | fail: | |
25634 | return NULL; | |
25635 | } | |
25636 | ||
25637 | ||
25638 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25639 | PyObject *resultobj; | |
25640 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25641 | wxTreeItemId *arg2 = 0 ; | |
25642 | wxColour result; | |
25643 | PyObject * obj0 = 0 ; | |
25644 | PyObject * obj1 = 0 ; | |
25645 | char *kwnames[] = { | |
25646 | (char *) "self",(char *) "item", NULL | |
25647 | }; | |
25648 | ||
25649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25653 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25654 | SWIG_fail; | |
d14a1e28 | 25655 | if (arg2 == NULL) { |
15afbcd0 RD |
25656 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25657 | SWIG_fail; | |
d14a1e28 RD |
25658 | } |
25659 | { | |
25660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25661 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
25666 | { | |
25667 | wxColour * resultptr; | |
25668 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25670 | } |
25671 | return resultobj; | |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
25677 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25678 | PyObject *resultobj; | |
25679 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25680 | wxTreeItemId *arg2 = 0 ; | |
25681 | wxColour result; | |
25682 | PyObject * obj0 = 0 ; | |
25683 | PyObject * obj1 = 0 ; | |
25684 | char *kwnames[] = { | |
25685 | (char *) "self",(char *) "item", NULL | |
25686 | }; | |
25687 | ||
25688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25693 | SWIG_fail; | |
d14a1e28 | 25694 | if (arg2 == NULL) { |
15afbcd0 RD |
25695 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25696 | SWIG_fail; | |
d14a1e28 RD |
25697 | } |
25698 | { | |
25699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25700 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25701 | ||
25702 | wxPyEndAllowThreads(__tstate); | |
25703 | if (PyErr_Occurred()) SWIG_fail; | |
25704 | } | |
25705 | { | |
25706 | wxColour * resultptr; | |
25707 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25709 | } |
25710 | return resultobj; | |
25711 | fail: | |
25712 | return NULL; | |
25713 | } | |
25714 | ||
25715 | ||
25716 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25717 | PyObject *resultobj; | |
25718 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25719 | wxTreeItemId *arg2 = 0 ; | |
25720 | wxFont result; | |
25721 | PyObject * obj0 = 0 ; | |
25722 | PyObject * obj1 = 0 ; | |
25723 | char *kwnames[] = { | |
25724 | (char *) "self",(char *) "item", NULL | |
25725 | }; | |
25726 | ||
25727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25731 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25732 | SWIG_fail; | |
d14a1e28 | 25733 | if (arg2 == NULL) { |
15afbcd0 RD |
25734 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25735 | SWIG_fail; | |
d14a1e28 RD |
25736 | } |
25737 | { | |
25738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25739 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25740 | ||
25741 | wxPyEndAllowThreads(__tstate); | |
25742 | if (PyErr_Occurred()) SWIG_fail; | |
25743 | } | |
25744 | { | |
25745 | wxFont * resultptr; | |
25746 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 25747 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
25748 | } |
25749 | return resultobj; | |
25750 | fail: | |
25751 | return NULL; | |
25752 | } | |
25753 | ||
25754 | ||
25755 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25756 | PyObject *resultobj; | |
25757 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25758 | wxTreeItemId *arg2 = 0 ; | |
25759 | wxString *arg3 = 0 ; | |
e811c8ce | 25760 | bool temp3 = False ; |
d14a1e28 RD |
25761 | PyObject * obj0 = 0 ; |
25762 | PyObject * obj1 = 0 ; | |
25763 | PyObject * obj2 = 0 ; | |
25764 | char *kwnames[] = { | |
25765 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25766 | }; | |
25767 | ||
25768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25773 | SWIG_fail; | |
d14a1e28 | 25774 | if (arg2 == NULL) { |
15afbcd0 RD |
25775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25776 | SWIG_fail; | |
d14a1e28 RD |
25777 | } |
25778 | { | |
25779 | arg3 = wxString_in_helper(obj2); | |
25780 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25781 | temp3 = True; |
d14a1e28 RD |
25782 | } |
25783 | { | |
25784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25785 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25786 | ||
25787 | wxPyEndAllowThreads(__tstate); | |
25788 | if (PyErr_Occurred()) SWIG_fail; | |
25789 | } | |
25790 | Py_INCREF(Py_None); resultobj = Py_None; | |
25791 | { | |
25792 | if (temp3) | |
25793 | delete arg3; | |
25794 | } | |
25795 | return resultobj; | |
25796 | fail: | |
25797 | { | |
25798 | if (temp3) | |
25799 | delete arg3; | |
25800 | } | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
25805 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25806 | PyObject *resultobj; | |
25807 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25808 | wxTreeItemId *arg2 = 0 ; | |
25809 | int arg3 ; | |
25810 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25811 | PyObject * obj0 = 0 ; | |
25812 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25813 | PyObject * obj2 = 0 ; |
25814 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25815 | char *kwnames[] = { |
25816 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25817 | }; | |
25818 | ||
994141e6 | 25819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25823 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25824 | SWIG_fail; | |
d14a1e28 | 25825 | if (arg2 == NULL) { |
15afbcd0 RD |
25826 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25827 | SWIG_fail; | |
994141e6 | 25828 | } |
15afbcd0 RD |
25829 | arg3 = (int) SWIG_AsInt(obj2); |
25830 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25831 | if (obj3) { |
15afbcd0 RD |
25832 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
25833 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25834 | } |
d14a1e28 RD |
25835 | { |
25836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25837 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25838 | ||
25839 | wxPyEndAllowThreads(__tstate); | |
25840 | if (PyErr_Occurred()) SWIG_fail; | |
25841 | } | |
25842 | Py_INCREF(Py_None); resultobj = Py_None; | |
25843 | return resultobj; | |
25844 | fail: | |
25845 | return NULL; | |
25846 | } | |
25847 | ||
25848 | ||
25849 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25850 | PyObject *resultobj; | |
25851 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25852 | wxTreeItemId *arg2 = 0 ; | |
25853 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25854 | PyObject * obj0 = 0 ; | |
25855 | PyObject * obj1 = 0 ; | |
25856 | PyObject * obj2 = 0 ; | |
25857 | char *kwnames[] = { | |
25858 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25859 | }; | |
25860 | ||
25861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25865 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25866 | SWIG_fail; | |
d14a1e28 | 25867 | if (arg2 == NULL) { |
15afbcd0 RD |
25868 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25869 | SWIG_fail; | |
d14a1e28 | 25870 | } |
15afbcd0 RD |
25871 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
25872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25873 | { |
25874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25875 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25876 | ||
25877 | wxPyEndAllowThreads(__tstate); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
25879 | } | |
25880 | Py_INCREF(Py_None); resultobj = Py_None; | |
25881 | return resultobj; | |
25882 | fail: | |
25883 | return NULL; | |
25884 | } | |
25885 | ||
25886 | ||
25887 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25888 | PyObject *resultobj; | |
25889 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25890 | wxTreeItemId *arg2 = 0 ; | |
25891 | PyObject *arg3 = (PyObject *) 0 ; | |
25892 | PyObject * obj0 = 0 ; | |
25893 | PyObject * obj1 = 0 ; | |
25894 | PyObject * obj2 = 0 ; | |
25895 | char *kwnames[] = { | |
25896 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25897 | }; | |
25898 | ||
25899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25902 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25903 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25904 | SWIG_fail; | |
d14a1e28 | 25905 | if (arg2 == NULL) { |
15afbcd0 RD |
25906 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25907 | SWIG_fail; | |
d14a1e28 RD |
25908 | } |
25909 | arg3 = obj2; | |
25910 | { | |
25911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25912 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25913 | ||
25914 | wxPyEndAllowThreads(__tstate); | |
25915 | if (PyErr_Occurred()) SWIG_fail; | |
25916 | } | |
25917 | Py_INCREF(Py_None); resultobj = Py_None; | |
25918 | return resultobj; | |
25919 | fail: | |
25920 | return NULL; | |
25921 | } | |
25922 | ||
25923 | ||
25924 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25925 | PyObject *resultobj; | |
25926 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25927 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25928 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25929 | PyObject * obj0 = 0 ; |
25930 | PyObject * obj1 = 0 ; | |
25931 | PyObject * obj2 = 0 ; | |
25932 | char *kwnames[] = { | |
25933 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25934 | }; | |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25941 | SWIG_fail; | |
d14a1e28 | 25942 | if (arg2 == NULL) { |
15afbcd0 RD |
25943 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25944 | SWIG_fail; | |
d14a1e28 RD |
25945 | } |
25946 | if (obj2) { | |
15afbcd0 RD |
25947 | arg3 = (bool) SWIG_AsBool(obj2); |
25948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25949 | } |
25950 | { | |
25951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25952 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25953 | ||
25954 | wxPyEndAllowThreads(__tstate); | |
25955 | if (PyErr_Occurred()) SWIG_fail; | |
25956 | } | |
25957 | Py_INCREF(Py_None); resultobj = Py_None; | |
25958 | return resultobj; | |
25959 | fail: | |
25960 | return NULL; | |
25961 | } | |
25962 | ||
25963 | ||
25964 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25965 | PyObject *resultobj; | |
25966 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25967 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25968 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25969 | PyObject * obj0 = 0 ; |
25970 | PyObject * obj1 = 0 ; | |
25971 | PyObject * obj2 = 0 ; | |
25972 | char *kwnames[] = { | |
25973 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25974 | }; | |
25975 | ||
25976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25980 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25981 | SWIG_fail; | |
d14a1e28 | 25982 | if (arg2 == NULL) { |
15afbcd0 RD |
25983 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25984 | SWIG_fail; | |
d14a1e28 RD |
25985 | } |
25986 | if (obj2) { | |
15afbcd0 RD |
25987 | arg3 = (bool) SWIG_AsBool(obj2); |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25989 | } |
25990 | { | |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | Py_INCREF(Py_None); resultobj = Py_None; | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj; | |
26006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26007 | wxTreeItemId *arg2 = 0 ; | |
26008 | wxColour *arg3 = 0 ; | |
26009 | wxColour temp3 ; | |
26010 | PyObject * obj0 = 0 ; | |
26011 | PyObject * obj1 = 0 ; | |
26012 | PyObject * obj2 = 0 ; | |
26013 | char *kwnames[] = { | |
26014 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26015 | }; | |
26016 | ||
26017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26022 | SWIG_fail; | |
d14a1e28 | 26023 | if (arg2 == NULL) { |
15afbcd0 RD |
26024 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26025 | SWIG_fail; | |
d14a1e28 RD |
26026 | } |
26027 | { | |
26028 | arg3 = &temp3; | |
26029 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26030 | } | |
26031 | { | |
26032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26033 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26034 | ||
26035 | wxPyEndAllowThreads(__tstate); | |
26036 | if (PyErr_Occurred()) SWIG_fail; | |
26037 | } | |
26038 | Py_INCREF(Py_None); resultobj = Py_None; | |
26039 | return resultobj; | |
26040 | fail: | |
26041 | return NULL; | |
26042 | } | |
26043 | ||
26044 | ||
26045 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26046 | PyObject *resultobj; | |
26047 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26048 | wxTreeItemId *arg2 = 0 ; | |
26049 | wxColour *arg3 = 0 ; | |
26050 | wxColour temp3 ; | |
26051 | PyObject * obj0 = 0 ; | |
26052 | PyObject * obj1 = 0 ; | |
26053 | PyObject * obj2 = 0 ; | |
26054 | char *kwnames[] = { | |
26055 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26056 | }; | |
26057 | ||
26058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26063 | SWIG_fail; | |
d14a1e28 | 26064 | if (arg2 == NULL) { |
15afbcd0 RD |
26065 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26066 | SWIG_fail; | |
d14a1e28 RD |
26067 | } |
26068 | { | |
26069 | arg3 = &temp3; | |
26070 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26071 | } | |
26072 | { | |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26074 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26075 | ||
26076 | wxPyEndAllowThreads(__tstate); | |
26077 | if (PyErr_Occurred()) SWIG_fail; | |
26078 | } | |
26079 | Py_INCREF(Py_None); resultobj = Py_None; | |
26080 | return resultobj; | |
26081 | fail: | |
26082 | return NULL; | |
26083 | } | |
26084 | ||
26085 | ||
26086 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26087 | PyObject *resultobj; | |
26088 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26089 | wxTreeItemId *arg2 = 0 ; | |
26090 | wxFont *arg3 = 0 ; | |
26091 | PyObject * obj0 = 0 ; | |
26092 | PyObject * obj1 = 0 ; | |
26093 | PyObject * obj2 = 0 ; | |
26094 | char *kwnames[] = { | |
26095 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26096 | }; | |
26097 | ||
26098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26103 | SWIG_fail; | |
d14a1e28 | 26104 | if (arg2 == NULL) { |
15afbcd0 RD |
26105 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26106 | SWIG_fail; | |
d14a1e28 | 26107 | } |
15afbcd0 RD |
26108 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
26109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26110 | SWIG_fail; | |
d14a1e28 | 26111 | if (arg3 == NULL) { |
15afbcd0 RD |
26112 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26113 | SWIG_fail; | |
d14a1e28 RD |
26114 | } |
26115 | { | |
26116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26117 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26118 | ||
26119 | wxPyEndAllowThreads(__tstate); | |
26120 | if (PyErr_Occurred()) SWIG_fail; | |
26121 | } | |
26122 | Py_INCREF(Py_None); resultobj = Py_None; | |
26123 | return resultobj; | |
26124 | fail: | |
26125 | return NULL; | |
26126 | } | |
26127 | ||
26128 | ||
26129 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26130 | PyObject *resultobj; | |
26131 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26132 | wxTreeItemId *arg2 = 0 ; | |
26133 | bool result; | |
26134 | PyObject * obj0 = 0 ; | |
26135 | PyObject * obj1 = 0 ; | |
26136 | char *kwnames[] = { | |
26137 | (char *) "self",(char *) "item", NULL | |
26138 | }; | |
26139 | ||
26140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26144 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26145 | SWIG_fail; | |
d14a1e28 | 26146 | if (arg2 == NULL) { |
15afbcd0 RD |
26147 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26148 | SWIG_fail; | |
d14a1e28 RD |
26149 | } |
26150 | { | |
26151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26152 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26153 | ||
26154 | wxPyEndAllowThreads(__tstate); | |
26155 | if (PyErr_Occurred()) SWIG_fail; | |
26156 | } | |
4f89f6a3 RD |
26157 | { |
26158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26159 | } | |
d14a1e28 RD |
26160 | return resultobj; |
26161 | fail: | |
26162 | return NULL; | |
26163 | } | |
26164 | ||
26165 | ||
26166 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26167 | PyObject *resultobj; | |
26168 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26169 | wxTreeItemId *arg2 = 0 ; | |
26170 | bool result; | |
26171 | PyObject * obj0 = 0 ; | |
26172 | PyObject * obj1 = 0 ; | |
26173 | char *kwnames[] = { | |
26174 | (char *) "self",(char *) "item", NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26181 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26182 | SWIG_fail; | |
d14a1e28 | 26183 | if (arg2 == NULL) { |
15afbcd0 RD |
26184 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26185 | SWIG_fail; | |
d14a1e28 RD |
26186 | } |
26187 | { | |
26188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26189 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26190 | ||
26191 | wxPyEndAllowThreads(__tstate); | |
26192 | if (PyErr_Occurred()) SWIG_fail; | |
26193 | } | |
4f89f6a3 RD |
26194 | { |
26195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26196 | } | |
d14a1e28 RD |
26197 | return resultobj; |
26198 | fail: | |
26199 | return NULL; | |
26200 | } | |
26201 | ||
26202 | ||
26203 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26204 | PyObject *resultobj; | |
26205 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26206 | wxTreeItemId *arg2 = 0 ; | |
26207 | bool result; | |
26208 | PyObject * obj0 = 0 ; | |
26209 | PyObject * obj1 = 0 ; | |
26210 | char *kwnames[] = { | |
26211 | (char *) "self",(char *) "item", NULL | |
26212 | }; | |
26213 | ||
26214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26219 | SWIG_fail; | |
d14a1e28 | 26220 | if (arg2 == NULL) { |
15afbcd0 RD |
26221 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26222 | SWIG_fail; | |
d14a1e28 RD |
26223 | } |
26224 | { | |
26225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26226 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26227 | ||
26228 | wxPyEndAllowThreads(__tstate); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | } | |
4f89f6a3 RD |
26231 | { |
26232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26233 | } | |
d14a1e28 RD |
26234 | return resultobj; |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
26240 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26241 | PyObject *resultobj; | |
26242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26243 | wxTreeItemId *arg2 = 0 ; | |
26244 | bool result; | |
26245 | PyObject * obj0 = 0 ; | |
26246 | PyObject * obj1 = 0 ; | |
26247 | char *kwnames[] = { | |
26248 | (char *) "self",(char *) "item", NULL | |
26249 | }; | |
26250 | ||
26251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26256 | SWIG_fail; | |
d14a1e28 | 26257 | if (arg2 == NULL) { |
15afbcd0 RD |
26258 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26259 | SWIG_fail; | |
d14a1e28 RD |
26260 | } |
26261 | { | |
26262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26263 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26264 | ||
26265 | wxPyEndAllowThreads(__tstate); | |
26266 | if (PyErr_Occurred()) SWIG_fail; | |
26267 | } | |
4f89f6a3 RD |
26268 | { |
26269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26270 | } | |
d14a1e28 RD |
26271 | return resultobj; |
26272 | fail: | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
26277 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26278 | PyObject *resultobj; | |
26279 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26280 | wxTreeItemId *arg2 = 0 ; | |
26281 | bool result; | |
26282 | PyObject * obj0 = 0 ; | |
26283 | PyObject * obj1 = 0 ; | |
26284 | char *kwnames[] = { | |
26285 | (char *) "self",(char *) "item", NULL | |
26286 | }; | |
26287 | ||
26288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26293 | SWIG_fail; | |
d14a1e28 | 26294 | if (arg2 == NULL) { |
15afbcd0 RD |
26295 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26296 | SWIG_fail; | |
d14a1e28 RD |
26297 | } |
26298 | { | |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
4f89f6a3 RD |
26305 | { |
26306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26307 | } | |
d14a1e28 RD |
26308 | return resultobj; |
26309 | fail: | |
26310 | return NULL; | |
26311 | } | |
26312 | ||
26313 | ||
26314 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26315 | PyObject *resultobj; | |
26316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26317 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26318 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26319 | size_t result; |
26320 | PyObject * obj0 = 0 ; | |
26321 | PyObject * obj1 = 0 ; | |
26322 | PyObject * obj2 = 0 ; | |
26323 | char *kwnames[] = { | |
26324 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26325 | }; | |
26326 | ||
26327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26331 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26332 | SWIG_fail; | |
d14a1e28 | 26333 | if (arg2 == NULL) { |
15afbcd0 RD |
26334 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26335 | SWIG_fail; | |
d14a1e28 RD |
26336 | } |
26337 | if (obj2) { | |
15afbcd0 RD |
26338 | arg3 = (bool) SWIG_AsBool(obj2); |
26339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26340 | } |
26341 | { | |
26342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26343 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26344 | ||
26345 | wxPyEndAllowThreads(__tstate); | |
26346 | if (PyErr_Occurred()) SWIG_fail; | |
26347 | } | |
15afbcd0 | 26348 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
26349 | return resultobj; |
26350 | fail: | |
26351 | return NULL; | |
26352 | } | |
26353 | ||
26354 | ||
26355 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26356 | PyObject *resultobj; | |
26357 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26358 | wxTreeItemId result; | |
26359 | PyObject * obj0 = 0 ; | |
26360 | char *kwnames[] = { | |
26361 | (char *) "self", NULL | |
26362 | }; | |
26363 | ||
26364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26367 | { |
26368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26369 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26370 | ||
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | { | |
26375 | wxTreeItemId * resultptr; | |
26376 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26377 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26378 | } |
26379 | return resultobj; | |
26380 | fail: | |
26381 | return NULL; | |
26382 | } | |
26383 | ||
26384 | ||
26385 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26386 | PyObject *resultobj; | |
26387 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26388 | wxTreeItemId result; | |
26389 | PyObject * obj0 = 0 ; | |
26390 | char *kwnames[] = { | |
26391 | (char *) "self", NULL | |
26392 | }; | |
26393 | ||
26394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26397 | { |
26398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26399 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26400 | ||
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
26404 | { | |
26405 | wxTreeItemId * resultptr; | |
26406 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26407 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26408 | } |
26409 | return resultobj; | |
26410 | fail: | |
26411 | return NULL; | |
26412 | } | |
26413 | ||
26414 | ||
26415 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26416 | PyObject *resultobj; | |
26417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26418 | PyObject *result; | |
26419 | PyObject * obj0 = 0 ; | |
26420 | char *kwnames[] = { | |
26421 | (char *) "self", NULL | |
26422 | }; | |
26423 | ||
26424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26427 | { |
26428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26429 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26430 | ||
26431 | wxPyEndAllowThreads(__tstate); | |
26432 | if (PyErr_Occurred()) SWIG_fail; | |
26433 | } | |
26434 | resultobj = result; | |
26435 | return resultobj; | |
26436 | fail: | |
26437 | return NULL; | |
26438 | } | |
26439 | ||
26440 | ||
26441 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26442 | PyObject *resultobj; | |
26443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26444 | wxTreeItemId *arg2 = 0 ; | |
26445 | wxTreeItemId result; | |
26446 | PyObject * obj0 = 0 ; | |
26447 | PyObject * obj1 = 0 ; | |
26448 | char *kwnames[] = { | |
26449 | (char *) "self",(char *) "item", NULL | |
26450 | }; | |
26451 | ||
26452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26456 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26457 | SWIG_fail; | |
d14a1e28 | 26458 | if (arg2 == NULL) { |
15afbcd0 RD |
26459 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26460 | SWIG_fail; | |
d14a1e28 RD |
26461 | } |
26462 | { | |
26463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26464 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26465 | ||
26466 | wxPyEndAllowThreads(__tstate); | |
26467 | if (PyErr_Occurred()) SWIG_fail; | |
26468 | } | |
26469 | { | |
26470 | wxTreeItemId * resultptr; | |
26471 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26473 | } |
26474 | return resultobj; | |
26475 | fail: | |
26476 | return NULL; | |
26477 | } | |
26478 | ||
26479 | ||
26480 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26481 | PyObject *resultobj; | |
26482 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26483 | wxTreeItemId *arg2 = 0 ; | |
26484 | PyObject *result; | |
26485 | PyObject * obj0 = 0 ; | |
26486 | PyObject * obj1 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "self",(char *) "item", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26494 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26496 | SWIG_fail; | |
d14a1e28 | 26497 | if (arg2 == NULL) { |
15afbcd0 RD |
26498 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26499 | SWIG_fail; | |
d14a1e28 RD |
26500 | } |
26501 | { | |
26502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26503 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26504 | ||
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
26508 | resultobj = result; | |
26509 | return resultobj; | |
26510 | fail: | |
26511 | return NULL; | |
26512 | } | |
26513 | ||
26514 | ||
26515 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26516 | PyObject *resultobj; | |
26517 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26518 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26519 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26520 | PyObject *result; |
26521 | PyObject * obj0 = 0 ; | |
26522 | PyObject * obj1 = 0 ; | |
26523 | PyObject * obj2 = 0 ; | |
26524 | char *kwnames[] = { | |
26525 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26526 | }; | |
26527 | ||
26528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26533 | SWIG_fail; | |
d14a1e28 | 26534 | if (arg2 == NULL) { |
15afbcd0 RD |
26535 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26536 | SWIG_fail; | |
d14a1e28 | 26537 | } |
15afbcd0 | 26538 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
26539 | { |
26540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 26541 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
26542 | |
26543 | wxPyEndAllowThreads(__tstate); | |
26544 | if (PyErr_Occurred()) SWIG_fail; | |
26545 | } | |
26546 | resultobj = result; | |
26547 | return resultobj; | |
26548 | fail: | |
26549 | return NULL; | |
26550 | } | |
26551 | ||
26552 | ||
26553 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26554 | PyObject *resultobj; | |
26555 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26556 | wxTreeItemId *arg2 = 0 ; | |
26557 | wxTreeItemId result; | |
26558 | PyObject * obj0 = 0 ; | |
26559 | PyObject * obj1 = 0 ; | |
26560 | char *kwnames[] = { | |
26561 | (char *) "self",(char *) "item", NULL | |
26562 | }; | |
26563 | ||
26564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26568 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26569 | SWIG_fail; | |
d14a1e28 | 26570 | if (arg2 == NULL) { |
15afbcd0 RD |
26571 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26572 | SWIG_fail; | |
d14a1e28 RD |
26573 | } |
26574 | { | |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | { | |
26582 | wxTreeItemId * resultptr; | |
26583 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26584 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26585 | } |
26586 | return resultobj; | |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
26592 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26593 | PyObject *resultobj; | |
26594 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26595 | wxTreeItemId *arg2 = 0 ; | |
26596 | wxTreeItemId result; | |
26597 | PyObject * obj0 = 0 ; | |
26598 | PyObject * obj1 = 0 ; | |
26599 | char *kwnames[] = { | |
26600 | (char *) "self",(char *) "item", NULL | |
26601 | }; | |
26602 | ||
26603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26608 | SWIG_fail; | |
d14a1e28 | 26609 | if (arg2 == NULL) { |
15afbcd0 RD |
26610 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26611 | SWIG_fail; | |
d14a1e28 RD |
26612 | } |
26613 | { | |
26614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26615 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26616 | ||
26617 | wxPyEndAllowThreads(__tstate); | |
26618 | if (PyErr_Occurred()) SWIG_fail; | |
26619 | } | |
26620 | { | |
26621 | wxTreeItemId * resultptr; | |
26622 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26623 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26624 | } |
26625 | return resultobj; | |
26626 | fail: | |
26627 | return NULL; | |
26628 | } | |
26629 | ||
26630 | ||
26631 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26632 | PyObject *resultobj; | |
26633 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26634 | wxTreeItemId *arg2 = 0 ; | |
26635 | wxTreeItemId result; | |
26636 | PyObject * obj0 = 0 ; | |
26637 | PyObject * obj1 = 0 ; | |
26638 | char *kwnames[] = { | |
26639 | (char *) "self",(char *) "item", NULL | |
26640 | }; | |
26641 | ||
26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26647 | SWIG_fail; | |
d14a1e28 | 26648 | if (arg2 == NULL) { |
15afbcd0 RD |
26649 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26650 | SWIG_fail; | |
d14a1e28 RD |
26651 | } |
26652 | { | |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | { | |
26660 | wxTreeItemId * resultptr; | |
26661 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26663 | } |
26664 | return resultobj; | |
26665 | fail: | |
26666 | return NULL; | |
26667 | } | |
26668 | ||
26669 | ||
26670 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26671 | PyObject *resultobj; | |
26672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26673 | wxTreeItemId result; | |
26674 | PyObject * obj0 = 0 ; | |
26675 | char *kwnames[] = { | |
26676 | (char *) "self", NULL | |
26677 | }; | |
26678 | ||
26679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26682 | { |
26683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26684 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26685 | ||
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
26689 | { | |
26690 | wxTreeItemId * resultptr; | |
26691 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26693 | } |
26694 | return resultobj; | |
26695 | fail: | |
26696 | return NULL; | |
26697 | } | |
26698 | ||
26699 | ||
26700 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26701 | PyObject *resultobj; | |
26702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26703 | wxTreeItemId *arg2 = 0 ; | |
26704 | wxTreeItemId result; | |
26705 | PyObject * obj0 = 0 ; | |
26706 | PyObject * obj1 = 0 ; | |
26707 | char *kwnames[] = { | |
26708 | (char *) "self",(char *) "item", NULL | |
26709 | }; | |
26710 | ||
26711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26714 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26716 | SWIG_fail; | |
d14a1e28 | 26717 | if (arg2 == NULL) { |
15afbcd0 RD |
26718 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26719 | SWIG_fail; | |
d14a1e28 RD |
26720 | } |
26721 | { | |
26722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26723 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26724 | ||
26725 | wxPyEndAllowThreads(__tstate); | |
26726 | if (PyErr_Occurred()) SWIG_fail; | |
26727 | } | |
26728 | { | |
26729 | wxTreeItemId * resultptr; | |
26730 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26732 | } |
26733 | return resultobj; | |
26734 | fail: | |
26735 | return NULL; | |
26736 | } | |
26737 | ||
26738 | ||
26739 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26740 | PyObject *resultobj; | |
26741 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26742 | wxTreeItemId *arg2 = 0 ; | |
26743 | wxTreeItemId result; | |
26744 | PyObject * obj0 = 0 ; | |
26745 | PyObject * obj1 = 0 ; | |
26746 | char *kwnames[] = { | |
26747 | (char *) "self",(char *) "item", NULL | |
26748 | }; | |
26749 | ||
26750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26755 | SWIG_fail; | |
d14a1e28 | 26756 | if (arg2 == NULL) { |
15afbcd0 RD |
26757 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26758 | SWIG_fail; | |
d14a1e28 RD |
26759 | } |
26760 | { | |
26761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26762 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26763 | ||
26764 | wxPyEndAllowThreads(__tstate); | |
26765 | if (PyErr_Occurred()) SWIG_fail; | |
26766 | } | |
26767 | { | |
26768 | wxTreeItemId * resultptr; | |
26769 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26771 | } |
26772 | return resultobj; | |
26773 | fail: | |
26774 | return NULL; | |
26775 | } | |
26776 | ||
26777 | ||
26778 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26779 | PyObject *resultobj; | |
26780 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26781 | wxString *arg2 = 0 ; | |
26782 | int arg3 = (int) -1 ; | |
26783 | int arg4 = (int) -1 ; | |
26784 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26785 | wxTreeItemId result; | |
e811c8ce | 26786 | bool temp2 = False ; |
d14a1e28 RD |
26787 | PyObject * obj0 = 0 ; |
26788 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26789 | PyObject * obj2 = 0 ; |
26790 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26791 | PyObject * obj4 = 0 ; |
26792 | char *kwnames[] = { | |
26793 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26794 | }; | |
26795 | ||
994141e6 | 26796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26799 | { |
26800 | arg2 = wxString_in_helper(obj1); | |
26801 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26802 | temp2 = True; |
d14a1e28 | 26803 | } |
994141e6 | 26804 | if (obj2) { |
15afbcd0 RD |
26805 | arg3 = (int) SWIG_AsInt(obj2); |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26807 | } |
26808 | if (obj3) { | |
15afbcd0 RD |
26809 | arg4 = (int) SWIG_AsInt(obj3); |
26810 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26811 | } |
d14a1e28 | 26812 | if (obj4) { |
15afbcd0 RD |
26813 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26815 | } |
26816 | { | |
26817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26818 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26819 | ||
26820 | wxPyEndAllowThreads(__tstate); | |
26821 | if (PyErr_Occurred()) SWIG_fail; | |
26822 | } | |
26823 | { | |
26824 | wxTreeItemId * resultptr; | |
26825 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26827 | } |
26828 | { | |
26829 | if (temp2) | |
26830 | delete arg2; | |
26831 | } | |
26832 | return resultobj; | |
26833 | fail: | |
26834 | { | |
26835 | if (temp2) | |
26836 | delete arg2; | |
26837 | } | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
26842 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26843 | PyObject *resultobj; | |
26844 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26845 | wxTreeItemId *arg2 = 0 ; | |
26846 | wxString *arg3 = 0 ; | |
26847 | int arg4 = (int) -1 ; | |
26848 | int arg5 = (int) -1 ; | |
26849 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26850 | wxTreeItemId result; | |
e811c8ce | 26851 | bool temp3 = False ; |
d14a1e28 RD |
26852 | PyObject * obj0 = 0 ; |
26853 | PyObject * obj1 = 0 ; | |
26854 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26855 | PyObject * obj3 = 0 ; |
26856 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26857 | PyObject * obj5 = 0 ; |
26858 | char *kwnames[] = { | |
26859 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26860 | }; | |
26861 | ||
994141e6 | 26862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26867 | SWIG_fail; | |
d14a1e28 | 26868 | if (arg2 == NULL) { |
15afbcd0 RD |
26869 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26870 | SWIG_fail; | |
d14a1e28 RD |
26871 | } |
26872 | { | |
26873 | arg3 = wxString_in_helper(obj2); | |
26874 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26875 | temp3 = True; |
d14a1e28 | 26876 | } |
994141e6 | 26877 | if (obj3) { |
15afbcd0 RD |
26878 | arg4 = (int) SWIG_AsInt(obj3); |
26879 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26880 | } |
26881 | if (obj4) { | |
15afbcd0 RD |
26882 | arg5 = (int) SWIG_AsInt(obj4); |
26883 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26884 | } |
d14a1e28 | 26885 | if (obj5) { |
15afbcd0 RD |
26886 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26888 | } |
26889 | { | |
26890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26891 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26892 | ||
26893 | wxPyEndAllowThreads(__tstate); | |
26894 | if (PyErr_Occurred()) SWIG_fail; | |
26895 | } | |
26896 | { | |
26897 | wxTreeItemId * resultptr; | |
26898 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26900 | } |
26901 | { | |
26902 | if (temp3) | |
26903 | delete arg3; | |
26904 | } | |
26905 | return resultobj; | |
26906 | fail: | |
26907 | { | |
26908 | if (temp3) | |
26909 | delete arg3; | |
26910 | } | |
26911 | return NULL; | |
26912 | } | |
26913 | ||
26914 | ||
26915 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26916 | PyObject *resultobj; | |
26917 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26918 | wxTreeItemId *arg2 = 0 ; | |
26919 | wxTreeItemId *arg3 = 0 ; | |
26920 | wxString *arg4 = 0 ; | |
26921 | int arg5 = (int) -1 ; | |
26922 | int arg6 = (int) -1 ; | |
26923 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26924 | wxTreeItemId result; | |
e811c8ce | 26925 | bool temp4 = False ; |
d14a1e28 RD |
26926 | PyObject * obj0 = 0 ; |
26927 | PyObject * obj1 = 0 ; | |
26928 | PyObject * obj2 = 0 ; | |
26929 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26930 | PyObject * obj4 = 0 ; |
26931 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26932 | PyObject * obj6 = 0 ; |
26933 | char *kwnames[] = { | |
26934 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26935 | }; | |
26936 | ||
994141e6 | 26937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26941 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26942 | SWIG_fail; | |
d14a1e28 | 26943 | if (arg2 == NULL) { |
15afbcd0 RD |
26944 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26945 | SWIG_fail; | |
d14a1e28 | 26946 | } |
15afbcd0 RD |
26947 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26949 | SWIG_fail; | |
d14a1e28 | 26950 | if (arg3 == NULL) { |
15afbcd0 RD |
26951 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26952 | SWIG_fail; | |
d14a1e28 RD |
26953 | } |
26954 | { | |
26955 | arg4 = wxString_in_helper(obj3); | |
26956 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26957 | temp4 = True; |
d14a1e28 | 26958 | } |
994141e6 | 26959 | if (obj4) { |
15afbcd0 RD |
26960 | arg5 = (int) SWIG_AsInt(obj4); |
26961 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26962 | } |
26963 | if (obj5) { | |
15afbcd0 RD |
26964 | arg6 = (int) SWIG_AsInt(obj5); |
26965 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26966 | } |
d14a1e28 | 26967 | if (obj6) { |
15afbcd0 RD |
26968 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26970 | } |
26971 | { | |
26972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26973 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26974 | ||
26975 | wxPyEndAllowThreads(__tstate); | |
26976 | if (PyErr_Occurred()) SWIG_fail; | |
26977 | } | |
26978 | { | |
26979 | wxTreeItemId * resultptr; | |
26980 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26982 | } |
26983 | { | |
26984 | if (temp4) | |
26985 | delete arg4; | |
26986 | } | |
26987 | return resultobj; | |
26988 | fail: | |
26989 | { | |
26990 | if (temp4) | |
26991 | delete arg4; | |
26992 | } | |
26993 | return NULL; | |
26994 | } | |
26995 | ||
26996 | ||
26997 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26998 | PyObject *resultobj; | |
26999 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27000 | wxTreeItemId *arg2 = 0 ; | |
27001 | size_t arg3 ; | |
27002 | wxString *arg4 = 0 ; | |
27003 | int arg5 = (int) -1 ; | |
27004 | int arg6 = (int) -1 ; | |
27005 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27006 | wxTreeItemId result; | |
e811c8ce | 27007 | bool temp4 = False ; |
d14a1e28 RD |
27008 | PyObject * obj0 = 0 ; |
27009 | PyObject * obj1 = 0 ; | |
27010 | PyObject * obj2 = 0 ; | |
27011 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27012 | PyObject * obj4 = 0 ; |
27013 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27014 | PyObject * obj6 = 0 ; |
27015 | char *kwnames[] = { | |
27016 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27017 | }; | |
27018 | ||
994141e6 | 27019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27024 | SWIG_fail; | |
d14a1e28 | 27025 | if (arg2 == NULL) { |
15afbcd0 RD |
27026 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27027 | SWIG_fail; | |
a41e16b6 | 27028 | } |
15afbcd0 RD |
27029 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27031 | { |
27032 | arg4 = wxString_in_helper(obj3); | |
27033 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27034 | temp4 = True; |
d14a1e28 | 27035 | } |
994141e6 | 27036 | if (obj4) { |
15afbcd0 RD |
27037 | arg5 = (int) SWIG_AsInt(obj4); |
27038 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
27039 | } |
27040 | if (obj5) { | |
15afbcd0 RD |
27041 | arg6 = (int) SWIG_AsInt(obj5); |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27043 | } |
d14a1e28 | 27044 | if (obj6) { |
15afbcd0 RD |
27045 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27047 | } |
27048 | { | |
27049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27050 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27051 | ||
27052 | wxPyEndAllowThreads(__tstate); | |
27053 | if (PyErr_Occurred()) SWIG_fail; | |
27054 | } | |
27055 | { | |
27056 | wxTreeItemId * resultptr; | |
27057 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27059 | } |
27060 | { | |
27061 | if (temp4) | |
27062 | delete arg4; | |
27063 | } | |
27064 | return resultobj; | |
27065 | fail: | |
27066 | { | |
27067 | if (temp4) | |
27068 | delete arg4; | |
27069 | } | |
27070 | return NULL; | |
27071 | } | |
27072 | ||
27073 | ||
27074 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27075 | PyObject *resultobj; | |
27076 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27077 | wxTreeItemId *arg2 = 0 ; | |
27078 | wxString *arg3 = 0 ; | |
27079 | int arg4 = (int) -1 ; | |
27080 | int arg5 = (int) -1 ; | |
27081 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27082 | wxTreeItemId result; | |
e811c8ce | 27083 | bool temp3 = False ; |
d14a1e28 RD |
27084 | PyObject * obj0 = 0 ; |
27085 | PyObject * obj1 = 0 ; | |
27086 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27087 | PyObject * obj3 = 0 ; |
27088 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27089 | PyObject * obj5 = 0 ; |
27090 | char *kwnames[] = { | |
27091 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27092 | }; | |
27093 | ||
994141e6 | 27094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27099 | SWIG_fail; | |
d14a1e28 | 27100 | if (arg2 == NULL) { |
15afbcd0 RD |
27101 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27102 | SWIG_fail; | |
d14a1e28 RD |
27103 | } |
27104 | { | |
27105 | arg3 = wxString_in_helper(obj2); | |
27106 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27107 | temp3 = True; |
d14a1e28 | 27108 | } |
994141e6 | 27109 | if (obj3) { |
15afbcd0 RD |
27110 | arg4 = (int) SWIG_AsInt(obj3); |
27111 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
27112 | } |
27113 | if (obj4) { | |
15afbcd0 RD |
27114 | arg5 = (int) SWIG_AsInt(obj4); |
27115 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27116 | } |
d14a1e28 | 27117 | if (obj5) { |
15afbcd0 RD |
27118 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27120 | } |
27121 | { | |
27122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27123 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27124 | ||
27125 | wxPyEndAllowThreads(__tstate); | |
27126 | if (PyErr_Occurred()) SWIG_fail; | |
27127 | } | |
27128 | { | |
27129 | wxTreeItemId * resultptr; | |
27130 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27132 | } |
27133 | { | |
27134 | if (temp3) | |
27135 | delete arg3; | |
27136 | } | |
27137 | return resultobj; | |
27138 | fail: | |
27139 | { | |
27140 | if (temp3) | |
27141 | delete arg3; | |
27142 | } | |
27143 | return NULL; | |
27144 | } | |
27145 | ||
27146 | ||
27147 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27148 | PyObject *resultobj; | |
27149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27150 | wxTreeItemId *arg2 = 0 ; | |
27151 | PyObject * obj0 = 0 ; | |
27152 | PyObject * obj1 = 0 ; | |
27153 | char *kwnames[] = { | |
27154 | (char *) "self",(char *) "item", NULL | |
27155 | }; | |
27156 | ||
27157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27161 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27162 | SWIG_fail; | |
d14a1e28 | 27163 | if (arg2 == NULL) { |
15afbcd0 RD |
27164 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27165 | SWIG_fail; | |
d14a1e28 RD |
27166 | } |
27167 | { | |
27168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27169 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27170 | ||
27171 | wxPyEndAllowThreads(__tstate); | |
27172 | if (PyErr_Occurred()) SWIG_fail; | |
27173 | } | |
27174 | Py_INCREF(Py_None); resultobj = Py_None; | |
27175 | return resultobj; | |
27176 | fail: | |
27177 | return NULL; | |
27178 | } | |
27179 | ||
27180 | ||
27181 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27182 | PyObject *resultobj; | |
27183 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27184 | wxTreeItemId *arg2 = 0 ; | |
27185 | PyObject * obj0 = 0 ; | |
27186 | PyObject * obj1 = 0 ; | |
27187 | char *kwnames[] = { | |
27188 | (char *) "self",(char *) "item", NULL | |
27189 | }; | |
27190 | ||
27191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27196 | SWIG_fail; | |
d14a1e28 | 27197 | if (arg2 == NULL) { |
15afbcd0 RD |
27198 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27199 | SWIG_fail; | |
d14a1e28 RD |
27200 | } |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | Py_INCREF(Py_None); resultobj = Py_None; | |
27209 | return resultobj; | |
27210 | fail: | |
27211 | return NULL; | |
27212 | } | |
27213 | ||
27214 | ||
27215 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27216 | PyObject *resultobj; | |
27217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27218 | PyObject * obj0 = 0 ; | |
27219 | char *kwnames[] = { | |
27220 | (char *) "self", NULL | |
27221 | }; | |
27222 | ||
27223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27226 | { |
27227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27228 | (arg1)->DeleteAllItems(); | |
27229 | ||
27230 | wxPyEndAllowThreads(__tstate); | |
27231 | if (PyErr_Occurred()) SWIG_fail; | |
27232 | } | |
27233 | Py_INCREF(Py_None); resultobj = Py_None; | |
27234 | return resultobj; | |
27235 | fail: | |
27236 | return NULL; | |
27237 | } | |
27238 | ||
27239 | ||
27240 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27241 | PyObject *resultobj; | |
27242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27243 | wxTreeItemId *arg2 = 0 ; | |
27244 | PyObject * obj0 = 0 ; | |
27245 | PyObject * obj1 = 0 ; | |
27246 | char *kwnames[] = { | |
27247 | (char *) "self",(char *) "item", NULL | |
27248 | }; | |
27249 | ||
27250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27254 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27255 | SWIG_fail; | |
d14a1e28 | 27256 | if (arg2 == NULL) { |
15afbcd0 RD |
27257 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27258 | SWIG_fail; | |
d14a1e28 RD |
27259 | } |
27260 | { | |
27261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27262 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27263 | ||
27264 | wxPyEndAllowThreads(__tstate); | |
27265 | if (PyErr_Occurred()) SWIG_fail; | |
27266 | } | |
27267 | Py_INCREF(Py_None); resultobj = Py_None; | |
27268 | return resultobj; | |
27269 | fail: | |
27270 | return NULL; | |
27271 | } | |
27272 | ||
27273 | ||
27274 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27275 | PyObject *resultobj; | |
27276 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27277 | wxTreeItemId *arg2 = 0 ; | |
27278 | PyObject * obj0 = 0 ; | |
27279 | PyObject * obj1 = 0 ; | |
27280 | char *kwnames[] = { | |
27281 | (char *) "self",(char *) "item", NULL | |
27282 | }; | |
27283 | ||
27284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27288 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27289 | SWIG_fail; | |
d14a1e28 | 27290 | if (arg2 == NULL) { |
15afbcd0 RD |
27291 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27292 | SWIG_fail; | |
d14a1e28 RD |
27293 | } |
27294 | { | |
27295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27296 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27297 | ||
27298 | wxPyEndAllowThreads(__tstate); | |
27299 | if (PyErr_Occurred()) SWIG_fail; | |
27300 | } | |
27301 | Py_INCREF(Py_None); resultobj = Py_None; | |
27302 | return resultobj; | |
27303 | fail: | |
27304 | return NULL; | |
27305 | } | |
27306 | ||
27307 | ||
27308 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27309 | PyObject *resultobj; | |
27310 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27311 | wxTreeItemId *arg2 = 0 ; | |
27312 | PyObject * obj0 = 0 ; | |
27313 | PyObject * obj1 = 0 ; | |
27314 | char *kwnames[] = { | |
27315 | (char *) "self",(char *) "item", NULL | |
27316 | }; | |
27317 | ||
27318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27323 | SWIG_fail; | |
d14a1e28 | 27324 | if (arg2 == NULL) { |
15afbcd0 RD |
27325 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27326 | SWIG_fail; | |
d14a1e28 RD |
27327 | } |
27328 | { | |
27329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27330 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27331 | ||
27332 | wxPyEndAllowThreads(__tstate); | |
27333 | if (PyErr_Occurred()) SWIG_fail; | |
27334 | } | |
27335 | Py_INCREF(Py_None); resultobj = Py_None; | |
27336 | return resultobj; | |
27337 | fail: | |
27338 | return NULL; | |
27339 | } | |
27340 | ||
27341 | ||
27342 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27343 | PyObject *resultobj; | |
27344 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27345 | wxTreeItemId *arg2 = 0 ; | |
27346 | PyObject * obj0 = 0 ; | |
27347 | PyObject * obj1 = 0 ; | |
27348 | char *kwnames[] = { | |
27349 | (char *) "self",(char *) "item", NULL | |
27350 | }; | |
27351 | ||
27352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27355 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27356 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27357 | SWIG_fail; | |
d14a1e28 | 27358 | if (arg2 == NULL) { |
15afbcd0 RD |
27359 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27360 | SWIG_fail; | |
d14a1e28 RD |
27361 | } |
27362 | { | |
27363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27364 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27365 | ||
27366 | wxPyEndAllowThreads(__tstate); | |
27367 | if (PyErr_Occurred()) SWIG_fail; | |
27368 | } | |
27369 | Py_INCREF(Py_None); resultobj = Py_None; | |
27370 | return resultobj; | |
27371 | fail: | |
27372 | return NULL; | |
27373 | } | |
27374 | ||
27375 | ||
27376 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27377 | PyObject *resultobj; | |
27378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27379 | PyObject * obj0 = 0 ; | |
27380 | char *kwnames[] = { | |
27381 | (char *) "self", NULL | |
27382 | }; | |
27383 | ||
27384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27387 | { |
27388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27389 | (arg1)->Unselect(); | |
27390 | ||
27391 | wxPyEndAllowThreads(__tstate); | |
27392 | if (PyErr_Occurred()) SWIG_fail; | |
27393 | } | |
27394 | Py_INCREF(Py_None); resultobj = Py_None; | |
27395 | return resultobj; | |
27396 | fail: | |
27397 | return NULL; | |
27398 | } | |
27399 | ||
27400 | ||
3adfb63b RD |
27401 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
27402 | PyObject *resultobj; | |
27403 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27404 | wxTreeItemId *arg2 = 0 ; | |
27405 | PyObject * obj0 = 0 ; | |
27406 | PyObject * obj1 = 0 ; | |
27407 | char *kwnames[] = { | |
27408 | (char *) "self",(char *) "item", NULL | |
27409 | }; | |
27410 | ||
27411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27414 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27415 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27416 | SWIG_fail; | |
3adfb63b | 27417 | if (arg2 == NULL) { |
15afbcd0 RD |
27418 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27419 | SWIG_fail; | |
3adfb63b RD |
27420 | } |
27421 | { | |
27422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27423 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27424 | ||
27425 | wxPyEndAllowThreads(__tstate); | |
27426 | if (PyErr_Occurred()) SWIG_fail; | |
27427 | } | |
27428 | Py_INCREF(Py_None); resultobj = Py_None; | |
27429 | return resultobj; | |
27430 | fail: | |
27431 | return NULL; | |
27432 | } | |
27433 | ||
27434 | ||
d14a1e28 RD |
27435 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
27436 | PyObject *resultobj; | |
27437 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27438 | PyObject * obj0 = 0 ; | |
27439 | char *kwnames[] = { | |
27440 | (char *) "self", NULL | |
27441 | }; | |
27442 | ||
27443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27446 | { |
27447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27448 | (arg1)->UnselectAll(); | |
27449 | ||
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
27453 | Py_INCREF(Py_None); resultobj = Py_None; | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
27460 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
27461 | PyObject *resultobj; |
27462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27463 | wxTreeItemId *arg2 = 0 ; | |
27464 | bool arg3 = (bool) True ; | |
27465 | PyObject * obj0 = 0 ; | |
27466 | PyObject * obj1 = 0 ; | |
27467 | PyObject * obj2 = 0 ; | |
27468 | char *kwnames[] = { | |
27469 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27470 | }; | |
27471 | ||
27472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27475 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27476 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27477 | SWIG_fail; | |
3adfb63b | 27478 | if (arg2 == NULL) { |
15afbcd0 RD |
27479 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27480 | SWIG_fail; | |
3adfb63b RD |
27481 | } |
27482 | if (obj2) { | |
15afbcd0 RD |
27483 | arg3 = (bool) SWIG_AsBool(obj2); |
27484 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b RD |
27485 | } |
27486 | { | |
27487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27488 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27489 | ||
27490 | wxPyEndAllowThreads(__tstate); | |
27491 | if (PyErr_Occurred()) SWIG_fail; | |
27492 | } | |
27493 | Py_INCREF(Py_None); resultobj = Py_None; | |
27494 | return resultobj; | |
27495 | fail: | |
27496 | return NULL; | |
27497 | } | |
27498 | ||
27499 | ||
27500 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
27501 | PyObject *resultobj; |
27502 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27503 | wxTreeItemId *arg2 = 0 ; | |
27504 | PyObject * obj0 = 0 ; | |
27505 | PyObject * obj1 = 0 ; | |
27506 | char *kwnames[] = { | |
27507 | (char *) "self",(char *) "item", NULL | |
27508 | }; | |
27509 | ||
3adfb63b | 27510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27515 | SWIG_fail; | |
d14a1e28 | 27516 | if (arg2 == NULL) { |
15afbcd0 RD |
27517 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27518 | SWIG_fail; | |
d14a1e28 RD |
27519 | } |
27520 | { | |
27521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27522 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27523 | |
27524 | wxPyEndAllowThreads(__tstate); | |
27525 | if (PyErr_Occurred()) SWIG_fail; | |
27526 | } | |
27527 | Py_INCREF(Py_None); resultobj = Py_None; | |
27528 | return resultobj; | |
27529 | fail: | |
27530 | return NULL; | |
27531 | } | |
27532 | ||
27533 | ||
27534 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27535 | PyObject *resultobj; | |
27536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27537 | wxTreeItemId *arg2 = 0 ; | |
27538 | PyObject * obj0 = 0 ; | |
27539 | PyObject * obj1 = 0 ; | |
27540 | char *kwnames[] = { | |
27541 | (char *) "self",(char *) "item", NULL | |
27542 | }; | |
27543 | ||
27544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27549 | SWIG_fail; | |
d14a1e28 | 27550 | if (arg2 == NULL) { |
15afbcd0 RD |
27551 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27552 | SWIG_fail; | |
d14a1e28 RD |
27553 | } |
27554 | { | |
27555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27556 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27557 | ||
27558 | wxPyEndAllowThreads(__tstate); | |
27559 | if (PyErr_Occurred()) SWIG_fail; | |
27560 | } | |
27561 | Py_INCREF(Py_None); resultobj = Py_None; | |
27562 | return resultobj; | |
27563 | fail: | |
27564 | return NULL; | |
27565 | } | |
27566 | ||
27567 | ||
27568 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27569 | PyObject *resultobj; | |
27570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27571 | wxTreeItemId *arg2 = 0 ; | |
27572 | PyObject * obj0 = 0 ; | |
27573 | PyObject * obj1 = 0 ; | |
27574 | char *kwnames[] = { | |
27575 | (char *) "self",(char *) "item", NULL | |
27576 | }; | |
27577 | ||
27578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27583 | SWIG_fail; | |
d14a1e28 | 27584 | if (arg2 == NULL) { |
15afbcd0 RD |
27585 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27586 | SWIG_fail; | |
d14a1e28 RD |
27587 | } |
27588 | { | |
27589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27590 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27591 | ||
27592 | wxPyEndAllowThreads(__tstate); | |
27593 | if (PyErr_Occurred()) SWIG_fail; | |
27594 | } | |
27595 | Py_INCREF(Py_None); resultobj = Py_None; | |
27596 | return resultobj; | |
27597 | fail: | |
27598 | return NULL; | |
27599 | } | |
27600 | ||
27601 | ||
27602 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27603 | PyObject *resultobj; | |
27604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27605 | wxTreeItemId *arg2 = 0 ; | |
27606 | PyObject * obj0 = 0 ; | |
27607 | PyObject * obj1 = 0 ; | |
27608 | char *kwnames[] = { | |
27609 | (char *) "self",(char *) "item", NULL | |
27610 | }; | |
27611 | ||
27612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27617 | SWIG_fail; | |
d14a1e28 | 27618 | if (arg2 == NULL) { |
15afbcd0 RD |
27619 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27620 | SWIG_fail; | |
d14a1e28 RD |
27621 | } |
27622 | { | |
27623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27624 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27625 | ||
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | Py_INCREF(Py_None); resultobj = Py_None; | |
27630 | return resultobj; | |
27631 | fail: | |
27632 | return NULL; | |
27633 | } | |
27634 | ||
27635 | ||
27636 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27637 | PyObject *resultobj; | |
27638 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27639 | wxTextCtrl *result; | |
27640 | PyObject * obj0 = 0 ; | |
27641 | char *kwnames[] = { | |
27642 | (char *) "self", NULL | |
27643 | }; | |
27644 | ||
27645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27648 | { |
27649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27650 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27651 | ||
27652 | wxPyEndAllowThreads(__tstate); | |
27653 | if (PyErr_Occurred()) SWIG_fail; | |
27654 | } | |
27655 | { | |
412d302d | 27656 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27657 | } |
27658 | return resultobj; | |
27659 | fail: | |
27660 | return NULL; | |
27661 | } | |
27662 | ||
27663 | ||
27664 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27665 | PyObject *resultobj; | |
27666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27667 | wxTreeItemId *arg2 = 0 ; | |
27668 | PyObject * obj0 = 0 ; | |
27669 | PyObject * obj1 = 0 ; | |
27670 | char *kwnames[] = { | |
27671 | (char *) "self",(char *) "item", NULL | |
27672 | }; | |
27673 | ||
27674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27678 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27679 | SWIG_fail; | |
d14a1e28 | 27680 | if (arg2 == NULL) { |
15afbcd0 RD |
27681 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27682 | SWIG_fail; | |
d14a1e28 RD |
27683 | } |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | Py_INCREF(Py_None); resultobj = Py_None; | |
27692 | return resultobj; | |
27693 | fail: | |
27694 | return NULL; | |
27695 | } | |
27696 | ||
27697 | ||
27698 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27699 | PyObject *resultobj; | |
27700 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27701 | wxPoint *arg2 = 0 ; | |
27702 | int *arg3 = 0 ; | |
27703 | wxTreeItemId result; | |
27704 | wxPoint temp2 ; | |
27705 | int temp3 ; | |
27706 | PyObject * obj0 = 0 ; | |
27707 | PyObject * obj1 = 0 ; | |
27708 | char *kwnames[] = { | |
27709 | (char *) "self",(char *) "point", NULL | |
27710 | }; | |
27711 | ||
27712 | arg3 = &temp3; | |
27713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27716 | { |
27717 | arg2 = &temp2; | |
27718 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27719 | } | |
27720 | { | |
27721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27722 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27723 | ||
27724 | wxPyEndAllowThreads(__tstate); | |
27725 | if (PyErr_Occurred()) SWIG_fail; | |
27726 | } | |
27727 | { | |
27728 | wxTreeItemId * resultptr; | |
27729 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27731 | } |
27732 | { | |
27733 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27734 | resultobj = t_output_helper(resultobj,o); | |
27735 | } | |
27736 | return resultobj; | |
27737 | fail: | |
27738 | return NULL; | |
27739 | } | |
27740 | ||
27741 | ||
27742 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27743 | PyObject *resultobj; | |
27744 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27745 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 27746 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27747 | PyObject *result; |
27748 | PyObject * obj0 = 0 ; | |
27749 | PyObject * obj1 = 0 ; | |
27750 | PyObject * obj2 = 0 ; | |
27751 | char *kwnames[] = { | |
27752 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27753 | }; | |
27754 | ||
27755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27760 | SWIG_fail; | |
d14a1e28 | 27761 | if (arg2 == NULL) { |
15afbcd0 RD |
27762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27763 | SWIG_fail; | |
d14a1e28 RD |
27764 | } |
27765 | if (obj2) { | |
15afbcd0 RD |
27766 | arg3 = (bool) SWIG_AsBool(obj2); |
27767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27768 | } |
27769 | { | |
27770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27771 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27772 | ||
27773 | wxPyEndAllowThreads(__tstate); | |
27774 | if (PyErr_Occurred()) SWIG_fail; | |
27775 | } | |
27776 | resultobj = result; | |
27777 | return resultobj; | |
27778 | fail: | |
27779 | return NULL; | |
27780 | } | |
27781 | ||
27782 | ||
74a57fcd RD |
27783 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27784 | PyObject *resultobj; | |
27785 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27786 | wxVisualAttributes result; | |
27787 | PyObject * obj0 = 0 ; | |
27788 | char *kwnames[] = { | |
27789 | (char *) "variant", NULL | |
27790 | }; | |
27791 | ||
27792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27793 | if (obj0) { | |
27794 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27795 | if (PyErr_Occurred()) SWIG_fail; | |
27796 | } | |
27797 | { | |
110da5b0 | 27798 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
27799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27800 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27801 | ||
27802 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 27803 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
27804 | } |
27805 | { | |
27806 | wxVisualAttributes * resultptr; | |
27807 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27809 | } | |
27810 | return resultobj; | |
27811 | fail: | |
27812 | return NULL; | |
27813 | } | |
27814 | ||
27815 | ||
d14a1e28 RD |
27816 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { |
27817 | PyObject *obj; | |
27818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27819 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27820 | Py_INCREF(obj); | |
27821 | return Py_BuildValue((char *)""); | |
27822 | } | |
b2dc1044 RD |
27823 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
27824 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27825 | return 1; | |
27826 | } | |
27827 | ||
27828 | ||
27829 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27830 | PyObject *pyobj; | |
27831 | ||
27832 | { | |
27833 | #if wxUSE_UNICODE | |
27834 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27835 | #else | |
27836 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27837 | #endif | |
27838 | } | |
27839 | return pyobj; | |
27840 | } | |
27841 | ||
27842 | ||
d14a1e28 RD |
27843 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27844 | PyObject *resultobj; | |
27845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27846 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27847 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27848 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27849 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27850 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27851 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27852 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27853 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27854 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27855 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27856 | int arg8 = (int) 0 ; | |
b2dc1044 | 27857 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27858 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27859 | wxGenericDirCtrl *result; | |
e811c8ce | 27860 | bool temp3 = False ; |
d14a1e28 RD |
27861 | wxPoint temp4 ; |
27862 | wxSize temp5 ; | |
e811c8ce RD |
27863 | bool temp7 = False ; |
27864 | bool temp9 = False ; | |
d14a1e28 | 27865 | PyObject * obj0 = 0 ; |
994141e6 | 27866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27867 | PyObject * obj2 = 0 ; |
27868 | PyObject * obj3 = 0 ; | |
27869 | PyObject * obj4 = 0 ; | |
994141e6 | 27870 | PyObject * obj5 = 0 ; |
d14a1e28 | 27871 | PyObject * obj6 = 0 ; |
994141e6 | 27872 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27873 | PyObject * obj8 = 0 ; |
27874 | char *kwnames[] = { | |
27875 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27876 | }; | |
27877 | ||
994141e6 | 27878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
27879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27881 | if (obj1) { |
15afbcd0 RD |
27882 | arg2 = (int const) SWIG_AsInt(obj1); |
27883 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27884 | } |
d14a1e28 RD |
27885 | if (obj2) { |
27886 | { | |
27887 | arg3 = wxString_in_helper(obj2); | |
27888 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27889 | temp3 = True; |
d14a1e28 RD |
27890 | } |
27891 | } | |
27892 | if (obj3) { | |
27893 | { | |
27894 | arg4 = &temp4; | |
27895 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27896 | } | |
27897 | } | |
27898 | if (obj4) { | |
27899 | { | |
27900 | arg5 = &temp5; | |
27901 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27902 | } | |
27903 | } | |
994141e6 | 27904 | if (obj5) { |
15afbcd0 RD |
27905 | arg6 = (long) SWIG_AsLong(obj5); |
27906 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27907 | } |
d14a1e28 RD |
27908 | if (obj6) { |
27909 | { | |
27910 | arg7 = wxString_in_helper(obj6); | |
27911 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 27912 | temp7 = True; |
d14a1e28 RD |
27913 | } |
27914 | } | |
994141e6 | 27915 | if (obj7) { |
15afbcd0 RD |
27916 | arg8 = (int) SWIG_AsInt(obj7); |
27917 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27918 | } |
d14a1e28 RD |
27919 | if (obj8) { |
27920 | { | |
27921 | arg9 = wxString_in_helper(obj8); | |
27922 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 27923 | temp9 = True; |
d14a1e28 RD |
27924 | } |
27925 | } | |
27926 | { | |
e3b71cb8 | 27927 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27929 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27930 | ||
27931 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27932 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27933 | } |
15afbcd0 | 27934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27935 | { |
27936 | if (temp3) | |
27937 | delete arg3; | |
27938 | } | |
27939 | { | |
27940 | if (temp7) | |
27941 | delete arg7; | |
27942 | } | |
27943 | { | |
27944 | if (temp9) | |
27945 | delete arg9; | |
27946 | } | |
27947 | return resultobj; | |
27948 | fail: | |
27949 | { | |
27950 | if (temp3) | |
27951 | delete arg3; | |
27952 | } | |
27953 | { | |
27954 | if (temp7) | |
27955 | delete arg7; | |
27956 | } | |
27957 | { | |
27958 | if (temp9) | |
27959 | delete arg9; | |
27960 | } | |
27961 | return NULL; | |
27962 | } | |
27963 | ||
27964 | ||
27965 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27966 | PyObject *resultobj; | |
27967 | wxGenericDirCtrl *result; | |
27968 | char *kwnames[] = { | |
27969 | NULL | |
27970 | }; | |
27971 | ||
27972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27973 | { | |
e3b71cb8 | 27974 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27976 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27977 | ||
27978 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27979 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27980 | } |
15afbcd0 | 27981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27982 | return resultobj; |
27983 | fail: | |
27984 | return NULL; | |
27985 | } | |
27986 | ||
27987 | ||
27988 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27989 | PyObject *resultobj; | |
27990 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27991 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 27992 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27993 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27994 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27995 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27996 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27997 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27998 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27999 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28000 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28001 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28002 | int arg9 = (int) 0 ; | |
b2dc1044 | 28003 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28004 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
28005 | bool result; | |
e811c8ce | 28006 | bool temp4 = False ; |
d14a1e28 RD |
28007 | wxPoint temp5 ; |
28008 | wxSize temp6 ; | |
e811c8ce RD |
28009 | bool temp8 = False ; |
28010 | bool temp10 = False ; | |
d14a1e28 RD |
28011 | PyObject * obj0 = 0 ; |
28012 | PyObject * obj1 = 0 ; | |
994141e6 | 28013 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28014 | PyObject * obj3 = 0 ; |
28015 | PyObject * obj4 = 0 ; | |
28016 | PyObject * obj5 = 0 ; | |
994141e6 | 28017 | PyObject * obj6 = 0 ; |
d14a1e28 | 28018 | PyObject * obj7 = 0 ; |
994141e6 | 28019 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
28020 | PyObject * obj9 = 0 ; |
28021 | char *kwnames[] = { | |
28022 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28023 | }; | |
28024 | ||
994141e6 | 28025 | 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 |
28026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28030 | if (obj2) { |
15afbcd0 RD |
28031 | arg3 = (int const) SWIG_AsInt(obj2); |
28032 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28033 | } |
d14a1e28 RD |
28034 | if (obj3) { |
28035 | { | |
28036 | arg4 = wxString_in_helper(obj3); | |
28037 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28038 | temp4 = True; |
d14a1e28 RD |
28039 | } |
28040 | } | |
28041 | if (obj4) { | |
28042 | { | |
28043 | arg5 = &temp5; | |
28044 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28045 | } | |
28046 | } | |
28047 | if (obj5) { | |
28048 | { | |
28049 | arg6 = &temp6; | |
28050 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28051 | } | |
28052 | } | |
994141e6 | 28053 | if (obj6) { |
15afbcd0 RD |
28054 | arg7 = (long) SWIG_AsLong(obj6); |
28055 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28056 | } |
d14a1e28 RD |
28057 | if (obj7) { |
28058 | { | |
28059 | arg8 = wxString_in_helper(obj7); | |
28060 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 28061 | temp8 = True; |
d14a1e28 RD |
28062 | } |
28063 | } | |
994141e6 | 28064 | if (obj8) { |
15afbcd0 RD |
28065 | arg9 = (int) SWIG_AsInt(obj8); |
28066 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28067 | } |
d14a1e28 RD |
28068 | if (obj9) { |
28069 | { | |
28070 | arg10 = wxString_in_helper(obj9); | |
28071 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 28072 | temp10 = True; |
d14a1e28 RD |
28073 | } |
28074 | } | |
28075 | { | |
28076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28077 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28078 | ||
28079 | wxPyEndAllowThreads(__tstate); | |
28080 | if (PyErr_Occurred()) SWIG_fail; | |
28081 | } | |
4f89f6a3 RD |
28082 | { |
28083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28084 | } | |
d14a1e28 RD |
28085 | { |
28086 | if (temp4) | |
28087 | delete arg4; | |
28088 | } | |
28089 | { | |
28090 | if (temp8) | |
28091 | delete arg8; | |
28092 | } | |
28093 | { | |
28094 | if (temp10) | |
28095 | delete arg10; | |
28096 | } | |
28097 | return resultobj; | |
28098 | fail: | |
28099 | { | |
28100 | if (temp4) | |
28101 | delete arg4; | |
28102 | } | |
28103 | { | |
28104 | if (temp8) | |
28105 | delete arg8; | |
28106 | } | |
28107 | { | |
28108 | if (temp10) | |
28109 | delete arg10; | |
28110 | } | |
28111 | return NULL; | |
28112 | } | |
28113 | ||
28114 | ||
28115 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28116 | PyObject *resultobj; | |
28117 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28118 | wxString *arg2 = 0 ; | |
28119 | bool result; | |
e811c8ce | 28120 | bool temp2 = False ; |
d14a1e28 RD |
28121 | PyObject * obj0 = 0 ; |
28122 | PyObject * obj1 = 0 ; | |
28123 | char *kwnames[] = { | |
28124 | (char *) "self",(char *) "path", NULL | |
28125 | }; | |
28126 | ||
28127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28130 | { |
28131 | arg2 = wxString_in_helper(obj1); | |
28132 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28133 | temp2 = True; |
d14a1e28 RD |
28134 | } |
28135 | { | |
28136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28137 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28138 | ||
28139 | wxPyEndAllowThreads(__tstate); | |
28140 | if (PyErr_Occurred()) SWIG_fail; | |
28141 | } | |
4f89f6a3 RD |
28142 | { |
28143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28144 | } | |
d14a1e28 RD |
28145 | { |
28146 | if (temp2) | |
28147 | delete arg2; | |
28148 | } | |
28149 | return resultobj; | |
28150 | fail: | |
28151 | { | |
28152 | if (temp2) | |
28153 | delete arg2; | |
28154 | } | |
28155 | return NULL; | |
28156 | } | |
28157 | ||
28158 | ||
28159 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28160 | PyObject *resultobj; | |
28161 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28162 | wxString result; | |
28163 | PyObject * obj0 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self", NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28171 | { |
28172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28173 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28174 | ||
28175 | wxPyEndAllowThreads(__tstate); | |
28176 | if (PyErr_Occurred()) SWIG_fail; | |
28177 | } | |
28178 | { | |
28179 | #if wxUSE_UNICODE | |
28180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28181 | #else | |
28182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28183 | #endif | |
28184 | } | |
28185 | return resultobj; | |
28186 | fail: | |
28187 | return NULL; | |
28188 | } | |
28189 | ||
28190 | ||
28191 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28192 | PyObject *resultobj; | |
28193 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28194 | wxString *arg2 = 0 ; | |
e811c8ce | 28195 | bool temp2 = False ; |
d14a1e28 RD |
28196 | PyObject * obj0 = 0 ; |
28197 | PyObject * obj1 = 0 ; | |
28198 | char *kwnames[] = { | |
28199 | (char *) "self",(char *) "path", NULL | |
28200 | }; | |
28201 | ||
28202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28205 | { |
28206 | arg2 = wxString_in_helper(obj1); | |
28207 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28208 | temp2 = True; |
d14a1e28 RD |
28209 | } |
28210 | { | |
28211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28212 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28213 | ||
28214 | wxPyEndAllowThreads(__tstate); | |
28215 | if (PyErr_Occurred()) SWIG_fail; | |
28216 | } | |
28217 | Py_INCREF(Py_None); resultobj = Py_None; | |
28218 | { | |
28219 | if (temp2) | |
28220 | delete arg2; | |
28221 | } | |
28222 | return resultobj; | |
28223 | fail: | |
28224 | { | |
28225 | if (temp2) | |
28226 | delete arg2; | |
28227 | } | |
28228 | return NULL; | |
28229 | } | |
28230 | ||
28231 | ||
28232 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28233 | PyObject *resultobj; | |
28234 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28235 | wxString result; | |
28236 | PyObject * obj0 = 0 ; | |
28237 | char *kwnames[] = { | |
28238 | (char *) "self", NULL | |
28239 | }; | |
28240 | ||
28241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28244 | { |
28245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28246 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28247 | ||
28248 | wxPyEndAllowThreads(__tstate); | |
28249 | if (PyErr_Occurred()) SWIG_fail; | |
28250 | } | |
28251 | { | |
28252 | #if wxUSE_UNICODE | |
28253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28254 | #else | |
28255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28256 | #endif | |
28257 | } | |
28258 | return resultobj; | |
28259 | fail: | |
28260 | return NULL; | |
28261 | } | |
28262 | ||
28263 | ||
28264 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28265 | PyObject *resultobj; | |
28266 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28267 | wxString result; | |
28268 | PyObject * obj0 = 0 ; | |
28269 | char *kwnames[] = { | |
28270 | (char *) "self", NULL | |
28271 | }; | |
28272 | ||
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28276 | { |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | { | |
28284 | #if wxUSE_UNICODE | |
28285 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28286 | #else | |
28287 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28288 | #endif | |
28289 | } | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
28296 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28297 | PyObject *resultobj; | |
28298 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28299 | wxString *arg2 = 0 ; | |
e811c8ce | 28300 | bool temp2 = False ; |
d14a1e28 RD |
28301 | PyObject * obj0 = 0 ; |
28302 | PyObject * obj1 = 0 ; | |
28303 | char *kwnames[] = { | |
28304 | (char *) "self",(char *) "path", NULL | |
28305 | }; | |
28306 | ||
28307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28310 | { |
28311 | arg2 = wxString_in_helper(obj1); | |
28312 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28313 | temp2 = True; |
d14a1e28 RD |
28314 | } |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | (arg1)->SetPath((wxString const &)*arg2); | |
28318 | ||
28319 | wxPyEndAllowThreads(__tstate); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
28322 | Py_INCREF(Py_None); resultobj = Py_None; | |
28323 | { | |
28324 | if (temp2) | |
28325 | delete arg2; | |
28326 | } | |
28327 | return resultobj; | |
28328 | fail: | |
28329 | { | |
28330 | if (temp2) | |
28331 | delete arg2; | |
28332 | } | |
28333 | return NULL; | |
28334 | } | |
28335 | ||
28336 | ||
28337 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28338 | PyObject *resultobj; | |
28339 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28340 | bool arg2 ; | |
28341 | PyObject * obj0 = 0 ; | |
28342 | PyObject * obj1 = 0 ; | |
28343 | char *kwnames[] = { | |
28344 | (char *) "self",(char *) "show", NULL | |
28345 | }; | |
28346 | ||
28347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28350 | arg2 = (bool) SWIG_AsBool(obj1); | |
28351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28352 | { |
28353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28354 | (arg1)->ShowHidden(arg2); | |
28355 | ||
28356 | wxPyEndAllowThreads(__tstate); | |
28357 | if (PyErr_Occurred()) SWIG_fail; | |
28358 | } | |
28359 | Py_INCREF(Py_None); resultobj = Py_None; | |
28360 | return resultobj; | |
28361 | fail: | |
28362 | return NULL; | |
28363 | } | |
28364 | ||
28365 | ||
28366 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28367 | PyObject *resultobj; | |
28368 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28369 | bool result; | |
28370 | PyObject * obj0 = 0 ; | |
28371 | char *kwnames[] = { | |
28372 | (char *) "self", NULL | |
28373 | }; | |
28374 | ||
28375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28378 | { |
28379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28380 | result = (bool)(arg1)->GetShowHidden(); | |
28381 | ||
28382 | wxPyEndAllowThreads(__tstate); | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
4f89f6a3 RD |
28385 | { |
28386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28387 | } | |
d14a1e28 RD |
28388 | return resultobj; |
28389 | fail: | |
28390 | return NULL; | |
28391 | } | |
28392 | ||
28393 | ||
28394 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28395 | PyObject *resultobj; | |
28396 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28397 | wxString result; | |
28398 | PyObject * obj0 = 0 ; | |
28399 | char *kwnames[] = { | |
28400 | (char *) "self", NULL | |
28401 | }; | |
28402 | ||
28403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28406 | { |
28407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28408 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28409 | ||
28410 | wxPyEndAllowThreads(__tstate); | |
28411 | if (PyErr_Occurred()) SWIG_fail; | |
28412 | } | |
28413 | { | |
28414 | #if wxUSE_UNICODE | |
28415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28416 | #else | |
28417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28418 | #endif | |
28419 | } | |
28420 | return resultobj; | |
28421 | fail: | |
28422 | return NULL; | |
28423 | } | |
28424 | ||
28425 | ||
28426 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28427 | PyObject *resultobj; | |
28428 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28429 | wxString *arg2 = 0 ; | |
e811c8ce | 28430 | bool temp2 = False ; |
d14a1e28 RD |
28431 | PyObject * obj0 = 0 ; |
28432 | PyObject * obj1 = 0 ; | |
28433 | char *kwnames[] = { | |
28434 | (char *) "self",(char *) "filter", NULL | |
28435 | }; | |
28436 | ||
28437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28440 | { |
28441 | arg2 = wxString_in_helper(obj1); | |
28442 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28443 | temp2 = True; |
d14a1e28 RD |
28444 | } |
28445 | { | |
28446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28447 | (arg1)->SetFilter((wxString const &)*arg2); | |
28448 | ||
28449 | wxPyEndAllowThreads(__tstate); | |
28450 | if (PyErr_Occurred()) SWIG_fail; | |
28451 | } | |
28452 | Py_INCREF(Py_None); resultobj = Py_None; | |
28453 | { | |
28454 | if (temp2) | |
28455 | delete arg2; | |
28456 | } | |
28457 | return resultobj; | |
28458 | fail: | |
28459 | { | |
28460 | if (temp2) | |
28461 | delete arg2; | |
28462 | } | |
28463 | return NULL; | |
28464 | } | |
28465 | ||
28466 | ||
28467 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28468 | PyObject *resultobj; | |
28469 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28470 | int result; | |
28471 | PyObject * obj0 = 0 ; | |
28472 | char *kwnames[] = { | |
28473 | (char *) "self", NULL | |
28474 | }; | |
28475 | ||
28476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28479 | { |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
15afbcd0 | 28486 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28487 | return resultobj; |
28488 | fail: | |
28489 | return NULL; | |
28490 | } | |
28491 | ||
28492 | ||
28493 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28494 | PyObject *resultobj; | |
28495 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28496 | int arg2 ; | |
28497 | PyObject * obj0 = 0 ; | |
994141e6 | 28498 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28499 | char *kwnames[] = { |
28500 | (char *) "self",(char *) "n", NULL | |
28501 | }; | |
28502 | ||
994141e6 | 28503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28506 | arg2 = (int) SWIG_AsInt(obj1); | |
28507 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28508 | { |
28509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28510 | (arg1)->SetFilterIndex(arg2); | |
28511 | ||
28512 | wxPyEndAllowThreads(__tstate); | |
28513 | if (PyErr_Occurred()) SWIG_fail; | |
28514 | } | |
28515 | Py_INCREF(Py_None); resultobj = Py_None; | |
28516 | return resultobj; | |
28517 | fail: | |
28518 | return NULL; | |
28519 | } | |
28520 | ||
28521 | ||
28522 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28523 | PyObject *resultobj; | |
28524 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28525 | wxTreeItemId result; | |
28526 | PyObject * obj0 = 0 ; | |
28527 | char *kwnames[] = { | |
28528 | (char *) "self", NULL | |
28529 | }; | |
28530 | ||
28531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28534 | { |
28535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28536 | result = (arg1)->GetRootId(); | |
28537 | ||
28538 | wxPyEndAllowThreads(__tstate); | |
28539 | if (PyErr_Occurred()) SWIG_fail; | |
28540 | } | |
28541 | { | |
28542 | wxTreeItemId * resultptr; | |
28543 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28545 | } |
28546 | return resultobj; | |
28547 | fail: | |
28548 | return NULL; | |
28549 | } | |
28550 | ||
28551 | ||
28552 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28553 | PyObject *resultobj; | |
28554 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 28555 | wxPyTreeCtrl *result; |
d14a1e28 RD |
28556 | PyObject * obj0 = 0 ; |
28557 | char *kwnames[] = { | |
28558 | (char *) "self", NULL | |
28559 | }; | |
28560 | ||
28561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28564 | { |
28565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 28566 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
28567 | |
28568 | wxPyEndAllowThreads(__tstate); | |
28569 | if (PyErr_Occurred()) SWIG_fail; | |
28570 | } | |
28571 | { | |
412d302d | 28572 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28573 | } |
28574 | return resultobj; | |
28575 | fail: | |
28576 | return NULL; | |
28577 | } | |
28578 | ||
28579 | ||
28580 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28581 | PyObject *resultobj; | |
28582 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28583 | wxDirFilterListCtrl *result; | |
28584 | PyObject * obj0 = 0 ; | |
28585 | char *kwnames[] = { | |
28586 | (char *) "self", NULL | |
28587 | }; | |
28588 | ||
28589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28592 | { |
28593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28594 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28595 | ||
28596 | wxPyEndAllowThreads(__tstate); | |
28597 | if (PyErr_Occurred()) SWIG_fail; | |
28598 | } | |
15afbcd0 | 28599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
28600 | return resultobj; |
28601 | fail: | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
28606 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28607 | PyObject *resultobj; | |
28608 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28609 | wxTreeItemId arg2 ; | |
28610 | wxString *arg3 = 0 ; | |
28611 | bool *arg4 = 0 ; | |
28612 | wxTreeItemId result; | |
28613 | wxTreeItemId *argp2 ; | |
e811c8ce | 28614 | bool temp3 = False ; |
d14a1e28 RD |
28615 | bool temp4 ; |
28616 | PyObject * obj0 = 0 ; | |
28617 | PyObject * obj1 = 0 ; | |
28618 | PyObject * obj2 = 0 ; | |
28619 | char *kwnames[] = { | |
28620 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28621 | }; | |
28622 | ||
28623 | arg4 = &temp4; | |
28624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28627 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28628 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28629 | arg2 = *argp2; | |
d14a1e28 RD |
28630 | { |
28631 | arg3 = wxString_in_helper(obj2); | |
28632 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28633 | temp3 = True; |
d14a1e28 RD |
28634 | } |
28635 | { | |
28636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28637 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28638 | ||
28639 | wxPyEndAllowThreads(__tstate); | |
28640 | if (PyErr_Occurred()) SWIG_fail; | |
28641 | } | |
28642 | { | |
28643 | wxTreeItemId * resultptr; | |
28644 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28645 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28646 | } |
28647 | { | |
28648 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28649 | resultobj = t_output_helper(resultobj,o); | |
28650 | } | |
28651 | { | |
28652 | if (temp3) | |
28653 | delete arg3; | |
28654 | } | |
28655 | return resultobj; | |
28656 | fail: | |
28657 | { | |
28658 | if (temp3) | |
28659 | delete arg3; | |
28660 | } | |
28661 | return NULL; | |
28662 | } | |
28663 | ||
28664 | ||
28665 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28666 | PyObject *resultobj; | |
28667 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28668 | PyObject * obj0 = 0 ; | |
28669 | char *kwnames[] = { | |
28670 | (char *) "self", NULL | |
28671 | }; | |
28672 | ||
28673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28676 | { |
28677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28678 | (arg1)->DoResize(); | |
28679 | ||
28680 | wxPyEndAllowThreads(__tstate); | |
28681 | if (PyErr_Occurred()) SWIG_fail; | |
28682 | } | |
28683 | Py_INCREF(Py_None); resultobj = Py_None; | |
28684 | return resultobj; | |
28685 | fail: | |
28686 | return NULL; | |
28687 | } | |
28688 | ||
28689 | ||
28690 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28691 | PyObject *resultobj; | |
28692 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28693 | PyObject * obj0 = 0 ; | |
28694 | char *kwnames[] = { | |
28695 | (char *) "self", NULL | |
28696 | }; | |
28697 | ||
28698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28701 | { |
28702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28703 | (arg1)->ReCreateTree(); | |
28704 | ||
28705 | wxPyEndAllowThreads(__tstate); | |
28706 | if (PyErr_Occurred()) SWIG_fail; | |
28707 | } | |
28708 | Py_INCREF(Py_None); resultobj = Py_None; | |
28709 | return resultobj; | |
28710 | fail: | |
28711 | return NULL; | |
28712 | } | |
28713 | ||
28714 | ||
28715 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28716 | PyObject *obj; | |
28717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28718 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28719 | Py_INCREF(obj); | |
28720 | return Py_BuildValue((char *)""); | |
28721 | } | |
28722 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28723 | PyObject *resultobj; | |
28724 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28725 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28726 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28727 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28728 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28729 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28730 | long arg5 = (long) 0 ; | |
28731 | wxDirFilterListCtrl *result; | |
28732 | wxPoint temp3 ; | |
28733 | wxSize temp4 ; | |
28734 | PyObject * obj0 = 0 ; | |
994141e6 | 28735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28736 | PyObject * obj2 = 0 ; |
28737 | PyObject * obj3 = 0 ; | |
994141e6 | 28738 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28739 | char *kwnames[] = { |
28740 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28741 | }; | |
28742 | ||
994141e6 | 28743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28746 | if (obj1) { |
15afbcd0 RD |
28747 | arg2 = (int const) SWIG_AsInt(obj1); |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28749 | } |
d14a1e28 RD |
28750 | if (obj2) { |
28751 | { | |
28752 | arg3 = &temp3; | |
28753 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28754 | } | |
28755 | } | |
28756 | if (obj3) { | |
28757 | { | |
28758 | arg4 = &temp4; | |
28759 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28760 | } | |
28761 | } | |
994141e6 | 28762 | if (obj4) { |
15afbcd0 RD |
28763 | arg5 = (long) SWIG_AsLong(obj4); |
28764 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28765 | } |
d14a1e28 | 28766 | { |
e3b71cb8 | 28767 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28769 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28770 | ||
28771 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28772 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28773 | } |
15afbcd0 | 28774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28775 | return resultobj; |
28776 | fail: | |
28777 | return NULL; | |
28778 | } | |
28779 | ||
28780 | ||
28781 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28782 | PyObject *resultobj; | |
28783 | wxDirFilterListCtrl *result; | |
28784 | char *kwnames[] = { | |
28785 | NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28789 | { | |
e3b71cb8 | 28790 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28792 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28793 | ||
28794 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28795 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28796 | } |
15afbcd0 | 28797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28798 | return resultobj; |
28799 | fail: | |
28800 | return NULL; | |
28801 | } | |
28802 | ||
28803 | ||
28804 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28805 | PyObject *resultobj; | |
28806 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28807 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28808 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28809 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28810 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28811 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28812 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28813 | long arg6 = (long) 0 ; | |
28814 | bool result; | |
28815 | wxPoint temp4 ; | |
28816 | wxSize temp5 ; | |
28817 | PyObject * obj0 = 0 ; | |
28818 | PyObject * obj1 = 0 ; | |
994141e6 | 28819 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28820 | PyObject * obj3 = 0 ; |
28821 | PyObject * obj4 = 0 ; | |
994141e6 | 28822 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28823 | char *kwnames[] = { |
28824 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28825 | }; | |
28826 | ||
994141e6 | 28827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28832 | if (obj2) { |
15afbcd0 RD |
28833 | arg3 = (int const) SWIG_AsInt(obj2); |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28835 | } |
d14a1e28 RD |
28836 | if (obj3) { |
28837 | { | |
28838 | arg4 = &temp4; | |
28839 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28840 | } | |
28841 | } | |
28842 | if (obj4) { | |
28843 | { | |
28844 | arg5 = &temp5; | |
28845 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28846 | } | |
28847 | } | |
994141e6 | 28848 | if (obj5) { |
15afbcd0 RD |
28849 | arg6 = (long) SWIG_AsLong(obj5); |
28850 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28851 | } |
d14a1e28 RD |
28852 | { |
28853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28854 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28855 | ||
28856 | wxPyEndAllowThreads(__tstate); | |
28857 | if (PyErr_Occurred()) SWIG_fail; | |
28858 | } | |
4f89f6a3 RD |
28859 | { |
28860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28861 | } | |
d14a1e28 RD |
28862 | return resultobj; |
28863 | fail: | |
28864 | return NULL; | |
28865 | } | |
28866 | ||
28867 | ||
28868 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28869 | PyObject *resultobj; | |
28870 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28871 | wxString *arg2 = 0 ; | |
28872 | int arg3 ; | |
e811c8ce | 28873 | bool temp2 = False ; |
d14a1e28 RD |
28874 | PyObject * obj0 = 0 ; |
28875 | PyObject * obj1 = 0 ; | |
994141e6 | 28876 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28877 | char *kwnames[] = { |
28878 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28879 | }; | |
28880 | ||
994141e6 | 28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
28882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28884 | { |
28885 | arg2 = wxString_in_helper(obj1); | |
28886 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28887 | temp2 = True; |
d14a1e28 | 28888 | } |
15afbcd0 RD |
28889 | arg3 = (int) SWIG_AsInt(obj2); |
28890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28891 | { |
28892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28893 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28894 | ||
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
28898 | Py_INCREF(Py_None); resultobj = Py_None; | |
28899 | { | |
28900 | if (temp2) | |
28901 | delete arg2; | |
28902 | } | |
28903 | return resultobj; | |
28904 | fail: | |
28905 | { | |
28906 | if (temp2) | |
28907 | delete arg2; | |
28908 | } | |
28909 | return NULL; | |
28910 | } | |
28911 | ||
28912 | ||
28913 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28914 | PyObject *obj; | |
28915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28916 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28917 | Py_INCREF(obj); | |
28918 | return Py_BuildValue((char *)""); | |
28919 | } | |
28920 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28921 | PyObject *resultobj; | |
28922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 28923 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28924 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28925 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28926 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28927 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28928 | long arg5 = (long) 0 ; | |
28929 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28930 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28931 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28932 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28933 | wxPyControl *result; | |
28934 | wxPoint temp3 ; | |
28935 | wxSize temp4 ; | |
e811c8ce | 28936 | bool temp7 = False ; |
d14a1e28 | 28937 | PyObject * obj0 = 0 ; |
994141e6 | 28938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28939 | PyObject * obj2 = 0 ; |
28940 | PyObject * obj3 = 0 ; | |
994141e6 | 28941 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28942 | PyObject * obj5 = 0 ; |
28943 | PyObject * obj6 = 0 ; | |
28944 | char *kwnames[] = { | |
28945 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28946 | }; | |
28947 | ||
248ed943 | 28948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
28949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
28951 | if (obj1) { |
28952 | arg2 = (int const) SWIG_AsInt(obj1); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
d14a1e28 RD |
28955 | if (obj2) { |
28956 | { | |
28957 | arg3 = &temp3; | |
28958 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28959 | } | |
28960 | } | |
28961 | if (obj3) { | |
28962 | { | |
28963 | arg4 = &temp4; | |
28964 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28965 | } | |
28966 | } | |
994141e6 | 28967 | if (obj4) { |
15afbcd0 RD |
28968 | arg5 = (long) SWIG_AsLong(obj4); |
28969 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28970 | } |
d14a1e28 | 28971 | if (obj5) { |
15afbcd0 RD |
28972 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28974 | SWIG_fail; | |
d14a1e28 | 28975 | if (arg6 == NULL) { |
15afbcd0 RD |
28976 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28977 | SWIG_fail; | |
d14a1e28 RD |
28978 | } |
28979 | } | |
28980 | if (obj6) { | |
28981 | { | |
28982 | arg7 = wxString_in_helper(obj6); | |
28983 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 28984 | temp7 = True; |
d14a1e28 RD |
28985 | } |
28986 | } | |
28987 | { | |
e3b71cb8 | 28988 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28990 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28991 | ||
28992 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28993 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28994 | } |
15afbcd0 | 28995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28996 | { |
28997 | if (temp7) | |
28998 | delete arg7; | |
28999 | } | |
29000 | return resultobj; | |
29001 | fail: | |
29002 | { | |
29003 | if (temp7) | |
29004 | delete arg7; | |
29005 | } | |
29006 | return NULL; | |
29007 | } | |
29008 | ||
29009 | ||
1cb4a8aa RD |
29010 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
29011 | PyObject *resultobj; | |
29012 | wxPyControl *result; | |
29013 | char *kwnames[] = { | |
29014 | NULL | |
29015 | }; | |
29016 | ||
29017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29018 | { | |
e3b71cb8 | 29019 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
29020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29021 | result = (wxPyControl *)new wxPyControl(); | |
29022 | ||
29023 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29024 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
29025 | } |
29026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29027 | return resultobj; | |
29028 | fail: | |
29029 | return NULL; | |
29030 | } | |
29031 | ||
29032 | ||
d14a1e28 RD |
29033 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
29034 | PyObject *resultobj; | |
29035 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29036 | PyObject *arg2 = (PyObject *) 0 ; | |
29037 | PyObject *arg3 = (PyObject *) 0 ; | |
29038 | PyObject * obj0 = 0 ; | |
29039 | PyObject * obj1 = 0 ; | |
29040 | PyObject * obj2 = 0 ; | |
29041 | char *kwnames[] = { | |
29042 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29043 | }; | |
29044 | ||
29045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29048 | arg2 = obj1; |
29049 | arg3 = obj2; | |
29050 | { | |
29051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29052 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29053 | ||
29054 | wxPyEndAllowThreads(__tstate); | |
29055 | if (PyErr_Occurred()) SWIG_fail; | |
29056 | } | |
29057 | Py_INCREF(Py_None); resultobj = Py_None; | |
29058 | return resultobj; | |
29059 | fail: | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
db3e571a RD |
29064 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
29065 | PyObject *resultobj; | |
29066 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29067 | wxSize *arg2 = 0 ; | |
29068 | wxSize temp2 ; | |
29069 | PyObject * obj0 = 0 ; | |
29070 | PyObject * obj1 = 0 ; | |
29071 | char *kwnames[] = { | |
29072 | (char *) "self",(char *) "size", NULL | |
29073 | }; | |
29074 | ||
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29078 | { | |
29079 | arg2 = &temp2; | |
29080 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29081 | } | |
29082 | { | |
29083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29084 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29085 | ||
29086 | wxPyEndAllowThreads(__tstate); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | Py_INCREF(Py_None); resultobj = Py_None; | |
29090 | return resultobj; | |
29091 | fail: | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
d14a1e28 RD |
29096 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
29097 | PyObject *resultobj; | |
29098 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29099 | int arg2 ; | |
29100 | int arg3 ; | |
29101 | int arg4 ; | |
29102 | int arg5 ; | |
29103 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29104 | PyObject * obj1 = 0 ; |
29105 | PyObject * obj2 = 0 ; | |
29106 | PyObject * obj3 = 0 ; | |
29107 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29108 | char *kwnames[] = { |
29109 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29110 | }; | |
29111 | ||
994141e6 | 29112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29115 | arg2 = (int) SWIG_AsInt(obj1); | |
29116 | if (PyErr_Occurred()) SWIG_fail; | |
29117 | arg3 = (int) SWIG_AsInt(obj2); | |
29118 | if (PyErr_Occurred()) SWIG_fail; | |
29119 | arg4 = (int) SWIG_AsInt(obj3); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | arg5 = (int) SWIG_AsInt(obj4); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29123 | { |
29124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29125 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29126 | ||
29127 | wxPyEndAllowThreads(__tstate); | |
29128 | if (PyErr_Occurred()) SWIG_fail; | |
29129 | } | |
29130 | Py_INCREF(Py_None); resultobj = Py_None; | |
29131 | return resultobj; | |
29132 | fail: | |
29133 | return NULL; | |
29134 | } | |
29135 | ||
29136 | ||
29137 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29138 | PyObject *resultobj; | |
29139 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29140 | int arg2 ; | |
29141 | int arg3 ; | |
29142 | int arg4 ; | |
29143 | int arg5 ; | |
29144 | int arg6 = (int) wxSIZE_AUTO ; | |
29145 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29146 | PyObject * obj1 = 0 ; |
29147 | PyObject * obj2 = 0 ; | |
29148 | PyObject * obj3 = 0 ; | |
29149 | PyObject * obj4 = 0 ; | |
29150 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
29151 | char *kwnames[] = { |
29152 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29153 | }; | |
29154 | ||
994141e6 | 29155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29158 | arg2 = (int) SWIG_AsInt(obj1); | |
29159 | if (PyErr_Occurred()) SWIG_fail; | |
29160 | arg3 = (int) SWIG_AsInt(obj2); | |
29161 | if (PyErr_Occurred()) SWIG_fail; | |
29162 | arg4 = (int) SWIG_AsInt(obj3); | |
29163 | if (PyErr_Occurred()) SWIG_fail; | |
29164 | arg5 = (int) SWIG_AsInt(obj4); | |
29165 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29166 | if (obj5) { |
15afbcd0 RD |
29167 | arg6 = (int) SWIG_AsInt(obj5); |
29168 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29169 | } |
d14a1e28 RD |
29170 | { |
29171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29172 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29173 | ||
29174 | wxPyEndAllowThreads(__tstate); | |
29175 | if (PyErr_Occurred()) SWIG_fail; | |
29176 | } | |
29177 | Py_INCREF(Py_None); resultobj = Py_None; | |
29178 | return resultobj; | |
29179 | fail: | |
29180 | return NULL; | |
29181 | } | |
29182 | ||
29183 | ||
29184 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29185 | PyObject *resultobj; | |
29186 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29187 | int arg2 ; | |
29188 | int arg3 ; | |
29189 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29190 | PyObject * obj1 = 0 ; |
29191 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29192 | char *kwnames[] = { |
29193 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29194 | }; | |
29195 | ||
994141e6 | 29196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29199 | arg2 = (int) SWIG_AsInt(obj1); | |
29200 | if (PyErr_Occurred()) SWIG_fail; | |
29201 | arg3 = (int) SWIG_AsInt(obj2); | |
29202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29203 | { |
29204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29205 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29206 | ||
29207 | wxPyEndAllowThreads(__tstate); | |
29208 | if (PyErr_Occurred()) SWIG_fail; | |
29209 | } | |
29210 | Py_INCREF(Py_None); resultobj = Py_None; | |
29211 | return resultobj; | |
29212 | fail: | |
29213 | return NULL; | |
29214 | } | |
29215 | ||
29216 | ||
29217 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29218 | PyObject *resultobj; | |
29219 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29220 | int arg2 ; | |
29221 | int arg3 ; | |
29222 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29223 | PyObject * obj1 = 0 ; |
29224 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29225 | char *kwnames[] = { |
29226 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29227 | }; | |
29228 | ||
994141e6 | 29229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29232 | arg2 = (int) SWIG_AsInt(obj1); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | arg3 = (int) SWIG_AsInt(obj2); | |
29235 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29236 | { |
29237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29238 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29239 | ||
29240 | wxPyEndAllowThreads(__tstate); | |
29241 | if (PyErr_Occurred()) SWIG_fail; | |
29242 | } | |
29243 | Py_INCREF(Py_None); resultobj = Py_None; | |
29244 | return resultobj; | |
29245 | fail: | |
29246 | return NULL; | |
29247 | } | |
29248 | ||
29249 | ||
29250 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29251 | PyObject *resultobj; | |
29252 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29253 | int *arg2 = (int *) 0 ; | |
29254 | int *arg3 = (int *) 0 ; | |
29255 | int temp2 ; | |
29256 | int temp3 ; | |
29257 | PyObject * obj0 = 0 ; | |
29258 | char *kwnames[] = { | |
29259 | (char *) "self", NULL | |
29260 | }; | |
29261 | ||
29262 | arg2 = &temp2; | |
29263 | arg3 = &temp3; | |
29264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29267 | { |
29268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29269 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29270 | ||
29271 | wxPyEndAllowThreads(__tstate); | |
29272 | if (PyErr_Occurred()) SWIG_fail; | |
29273 | } | |
29274 | Py_INCREF(Py_None); resultobj = Py_None; | |
29275 | { | |
29276 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29277 | resultobj = t_output_helper(resultobj,o); | |
29278 | } | |
29279 | { | |
29280 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29281 | resultobj = t_output_helper(resultobj,o); | |
29282 | } | |
29283 | return resultobj; | |
29284 | fail: | |
29285 | return NULL; | |
29286 | } | |
29287 | ||
29288 | ||
29289 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29290 | PyObject *resultobj; | |
29291 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29292 | int *arg2 = (int *) 0 ; | |
29293 | int *arg3 = (int *) 0 ; | |
29294 | int temp2 ; | |
29295 | int temp3 ; | |
29296 | PyObject * obj0 = 0 ; | |
29297 | char *kwnames[] = { | |
29298 | (char *) "self", NULL | |
29299 | }; | |
29300 | ||
29301 | arg2 = &temp2; | |
29302 | arg3 = &temp3; | |
29303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29306 | { |
29307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29308 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29309 | ||
29310 | wxPyEndAllowThreads(__tstate); | |
29311 | if (PyErr_Occurred()) SWIG_fail; | |
29312 | } | |
29313 | Py_INCREF(Py_None); resultobj = Py_None; | |
29314 | { | |
29315 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29316 | resultobj = t_output_helper(resultobj,o); | |
29317 | } | |
29318 | { | |
29319 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29320 | resultobj = t_output_helper(resultobj,o); | |
29321 | } | |
29322 | return resultobj; | |
29323 | fail: | |
29324 | return NULL; | |
29325 | } | |
29326 | ||
29327 | ||
29328 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29329 | PyObject *resultobj; | |
29330 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29331 | int *arg2 = (int *) 0 ; | |
29332 | int *arg3 = (int *) 0 ; | |
29333 | int temp2 ; | |
29334 | int temp3 ; | |
29335 | PyObject * obj0 = 0 ; | |
29336 | char *kwnames[] = { | |
29337 | (char *) "self", NULL | |
29338 | }; | |
29339 | ||
29340 | arg2 = &temp2; | |
29341 | arg3 = &temp3; | |
29342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29345 | { |
29346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29347 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29348 | ||
29349 | wxPyEndAllowThreads(__tstate); | |
29350 | if (PyErr_Occurred()) SWIG_fail; | |
29351 | } | |
29352 | Py_INCREF(Py_None); resultobj = Py_None; | |
29353 | { | |
29354 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29355 | resultobj = t_output_helper(resultobj,o); | |
29356 | } | |
29357 | { | |
29358 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29359 | resultobj = t_output_helper(resultobj,o); | |
29360 | } | |
29361 | return resultobj; | |
29362 | fail: | |
29363 | return NULL; | |
29364 | } | |
29365 | ||
29366 | ||
29367 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29368 | PyObject *resultobj; | |
29369 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29370 | wxSize result; | |
29371 | PyObject * obj0 = 0 ; | |
29372 | char *kwnames[] = { | |
29373 | (char *) "self", NULL | |
29374 | }; | |
29375 | ||
29376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29379 | { |
29380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29381 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29382 | ||
29383 | wxPyEndAllowThreads(__tstate); | |
29384 | if (PyErr_Occurred()) SWIG_fail; | |
29385 | } | |
29386 | { | |
29387 | wxSize * resultptr; | |
29388 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29390 | } |
29391 | return resultobj; | |
29392 | fail: | |
29393 | return NULL; | |
29394 | } | |
29395 | ||
29396 | ||
29397 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29398 | PyObject *resultobj; | |
29399 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29400 | wxSize result; | |
29401 | PyObject * obj0 = 0 ; | |
29402 | char *kwnames[] = { | |
29403 | (char *) "self", NULL | |
29404 | }; | |
29405 | ||
29406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29409 | { |
29410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29411 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29412 | ||
29413 | wxPyEndAllowThreads(__tstate); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
29415 | } | |
29416 | { | |
29417 | wxSize * resultptr; | |
29418 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29420 | } |
29421 | return resultobj; | |
29422 | fail: | |
29423 | return NULL; | |
29424 | } | |
29425 | ||
29426 | ||
29427 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29428 | PyObject *resultobj; | |
29429 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29430 | PyObject * obj0 = 0 ; | |
29431 | char *kwnames[] = { | |
29432 | (char *) "self", NULL | |
29433 | }; | |
29434 | ||
29435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29438 | { |
29439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29440 | (arg1)->base_InitDialog(); | |
29441 | ||
29442 | wxPyEndAllowThreads(__tstate); | |
29443 | if (PyErr_Occurred()) SWIG_fail; | |
29444 | } | |
29445 | Py_INCREF(Py_None); resultobj = Py_None; | |
29446 | return resultobj; | |
29447 | fail: | |
29448 | return NULL; | |
29449 | } | |
29450 | ||
29451 | ||
29452 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29453 | PyObject *resultobj; | |
29454 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29455 | bool result; | |
29456 | PyObject * obj0 = 0 ; | |
29457 | char *kwnames[] = { | |
29458 | (char *) "self", NULL | |
29459 | }; | |
29460 | ||
29461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29464 | { |
29465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29466 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29467 | ||
29468 | wxPyEndAllowThreads(__tstate); | |
29469 | if (PyErr_Occurred()) SWIG_fail; | |
29470 | } | |
4f89f6a3 RD |
29471 | { |
29472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29473 | } | |
d14a1e28 RD |
29474 | return resultobj; |
29475 | fail: | |
29476 | return NULL; | |
29477 | } | |
29478 | ||
29479 | ||
29480 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29481 | PyObject *resultobj; | |
29482 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29483 | bool result; | |
29484 | PyObject * obj0 = 0 ; | |
29485 | char *kwnames[] = { | |
29486 | (char *) "self", NULL | |
29487 | }; | |
29488 | ||
29489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29492 | { |
29493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29494 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29495 | ||
29496 | wxPyEndAllowThreads(__tstate); | |
29497 | if (PyErr_Occurred()) SWIG_fail; | |
29498 | } | |
4f89f6a3 RD |
29499 | { |
29500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29501 | } | |
d14a1e28 RD |
29502 | return resultobj; |
29503 | fail: | |
29504 | return NULL; | |
29505 | } | |
29506 | ||
29507 | ||
29508 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29509 | PyObject *resultobj; | |
29510 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29511 | bool result; | |
29512 | PyObject * obj0 = 0 ; | |
29513 | char *kwnames[] = { | |
29514 | (char *) "self", NULL | |
29515 | }; | |
29516 | ||
29517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29520 | { |
29521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29522 | result = (bool)(arg1)->base_Validate(); | |
29523 | ||
29524 | wxPyEndAllowThreads(__tstate); | |
29525 | if (PyErr_Occurred()) SWIG_fail; | |
29526 | } | |
4f89f6a3 RD |
29527 | { |
29528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29529 | } | |
d14a1e28 RD |
29530 | return resultobj; |
29531 | fail: | |
29532 | return NULL; | |
29533 | } | |
29534 | ||
29535 | ||
29536 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29537 | PyObject *resultobj; | |
29538 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29539 | bool result; | |
29540 | PyObject * obj0 = 0 ; | |
29541 | char *kwnames[] = { | |
29542 | (char *) "self", NULL | |
29543 | }; | |
29544 | ||
29545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29548 | { |
29549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29550 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29551 | ||
29552 | wxPyEndAllowThreads(__tstate); | |
29553 | if (PyErr_Occurred()) SWIG_fail; | |
29554 | } | |
4f89f6a3 RD |
29555 | { |
29556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29557 | } | |
d14a1e28 RD |
29558 | return resultobj; |
29559 | fail: | |
29560 | return NULL; | |
29561 | } | |
29562 | ||
29563 | ||
29564 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29565 | PyObject *resultobj; | |
29566 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29567 | bool result; | |
29568 | PyObject * obj0 = 0 ; | |
29569 | char *kwnames[] = { | |
29570 | (char *) "self", NULL | |
29571 | }; | |
29572 | ||
29573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29576 | { |
29577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29578 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29579 | ||
29580 | wxPyEndAllowThreads(__tstate); | |
29581 | if (PyErr_Occurred()) SWIG_fail; | |
29582 | } | |
4f89f6a3 RD |
29583 | { |
29584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29585 | } | |
d14a1e28 RD |
29586 | return resultobj; |
29587 | fail: | |
29588 | return NULL; | |
29589 | } | |
29590 | ||
29591 | ||
29592 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29593 | PyObject *resultobj; | |
29594 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29595 | wxSize result; | |
29596 | PyObject * obj0 = 0 ; | |
29597 | char *kwnames[] = { | |
29598 | (char *) "self", NULL | |
29599 | }; | |
29600 | ||
29601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29604 | { |
29605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29606 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29607 | ||
29608 | wxPyEndAllowThreads(__tstate); | |
29609 | if (PyErr_Occurred()) SWIG_fail; | |
29610 | } | |
29611 | { | |
29612 | wxSize * resultptr; | |
29613 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29614 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29615 | } |
29616 | return resultobj; | |
29617 | fail: | |
29618 | return NULL; | |
29619 | } | |
29620 | ||
29621 | ||
29622 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29623 | PyObject *resultobj; | |
29624 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29625 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29626 | PyObject * obj0 = 0 ; | |
29627 | PyObject * obj1 = 0 ; | |
29628 | char *kwnames[] = { | |
29629 | (char *) "self",(char *) "child", NULL | |
29630 | }; | |
29631 | ||
29632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29637 | { |
29638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29639 | (arg1)->base_AddChild(arg2); | |
29640 | ||
29641 | wxPyEndAllowThreads(__tstate); | |
29642 | if (PyErr_Occurred()) SWIG_fail; | |
29643 | } | |
29644 | Py_INCREF(Py_None); resultobj = Py_None; | |
29645 | return resultobj; | |
29646 | fail: | |
29647 | return NULL; | |
29648 | } | |
29649 | ||
29650 | ||
29651 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29652 | PyObject *resultobj; | |
29653 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29654 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29655 | PyObject * obj0 = 0 ; | |
29656 | PyObject * obj1 = 0 ; | |
29657 | char *kwnames[] = { | |
29658 | (char *) "self",(char *) "child", NULL | |
29659 | }; | |
29660 | ||
29661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29664 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29666 | { |
29667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29668 | (arg1)->base_RemoveChild(arg2); | |
29669 | ||
29670 | wxPyEndAllowThreads(__tstate); | |
29671 | if (PyErr_Occurred()) SWIG_fail; | |
29672 | } | |
29673 | Py_INCREF(Py_None); resultobj = Py_None; | |
29674 | return resultobj; | |
29675 | fail: | |
29676 | return NULL; | |
29677 | } | |
29678 | ||
29679 | ||
1cb4a8aa RD |
29680 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
29681 | PyObject *resultobj; | |
29682 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29683 | bool result; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | char *kwnames[] = { | |
29686 | (char *) "self", NULL | |
29687 | }; | |
29688 | ||
29689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29692 | { | |
29693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 29694 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
29695 | |
29696 | wxPyEndAllowThreads(__tstate); | |
29697 | if (PyErr_Occurred()) SWIG_fail; | |
29698 | } | |
29699 | { | |
29700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29701 | } | |
29702 | return resultobj; | |
29703 | fail: | |
29704 | return NULL; | |
29705 | } | |
29706 | ||
29707 | ||
29708 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29709 | PyObject *resultobj; | |
29710 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29711 | wxColour *arg2 = 0 ; | |
29712 | wxColour temp2 ; | |
29713 | PyObject * obj0 = 0 ; | |
29714 | PyObject * obj1 = 0 ; | |
29715 | char *kwnames[] = { | |
29716 | (char *) "self",(char *) "c", NULL | |
29717 | }; | |
29718 | ||
29719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29722 | { | |
29723 | arg2 = &temp2; | |
29724 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29725 | } | |
29726 | { | |
29727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29728 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29729 | ||
29730 | wxPyEndAllowThreads(__tstate); | |
29731 | if (PyErr_Occurred()) SWIG_fail; | |
29732 | } | |
29733 | Py_INCREF(Py_None); resultobj = Py_None; | |
29734 | return resultobj; | |
29735 | fail: | |
29736 | return NULL; | |
29737 | } | |
29738 | ||
29739 | ||
db3e571a RD |
29740 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29741 | PyObject *resultobj; | |
29742 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29743 | wxVisualAttributes result; | |
29744 | PyObject * obj0 = 0 ; | |
29745 | char *kwnames[] = { | |
29746 | (char *) "self", NULL | |
29747 | }; | |
29748 | ||
29749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29752 | { | |
29753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29754 | result = (arg1)->base_GetDefaultAttributes(); | |
29755 | ||
29756 | wxPyEndAllowThreads(__tstate); | |
29757 | if (PyErr_Occurred()) SWIG_fail; | |
29758 | } | |
29759 | { | |
29760 | wxVisualAttributes * resultptr; | |
29761 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29762 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29763 | } | |
29764 | return resultobj; | |
29765 | fail: | |
29766 | return NULL; | |
29767 | } | |
29768 | ||
29769 | ||
d14a1e28 RD |
29770 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29771 | PyObject *obj; | |
29772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29773 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29774 | Py_INCREF(obj); | |
29775 | return Py_BuildValue((char *)""); | |
29776 | } | |
29777 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29778 | PyObject *resultobj; | |
29779 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 29780 | int arg2 = (int) 0 ; |
d14a1e28 RD |
29781 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29782 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29783 | wxHelpEvent *result; | |
29784 | wxPoint temp3 ; | |
994141e6 RD |
29785 | PyObject * obj0 = 0 ; |
29786 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29787 | PyObject * obj2 = 0 ; |
29788 | char *kwnames[] = { | |
29789 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29790 | }; | |
29791 | ||
994141e6 RD |
29792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29793 | if (obj0) { | |
15afbcd0 RD |
29794 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
29795 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
29796 | } |
29797 | if (obj1) { | |
15afbcd0 RD |
29798 | arg2 = (int) SWIG_AsInt(obj1); |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29800 | } |
d14a1e28 RD |
29801 | if (obj2) { |
29802 | { | |
29803 | arg3 = &temp3; | |
29804 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29805 | } | |
29806 | } | |
29807 | { | |
29808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29809 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29810 | ||
29811 | wxPyEndAllowThreads(__tstate); | |
29812 | if (PyErr_Occurred()) SWIG_fail; | |
29813 | } | |
15afbcd0 | 29814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29815 | return resultobj; |
29816 | fail: | |
29817 | return NULL; | |
29818 | } | |
29819 | ||
29820 | ||
29821 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29822 | PyObject *resultobj; | |
29823 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 29824 | wxPoint result; |
d14a1e28 RD |
29825 | PyObject * obj0 = 0 ; |
29826 | char *kwnames[] = { | |
29827 | (char *) "self", NULL | |
29828 | }; | |
29829 | ||
29830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29833 | { |
29834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 29835 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29836 | |
29837 | wxPyEndAllowThreads(__tstate); | |
29838 | if (PyErr_Occurred()) SWIG_fail; | |
29839 | } | |
15afbcd0 RD |
29840 | { |
29841 | wxPoint * resultptr; | |
29842 | resultptr = new wxPoint((wxPoint &) result); | |
29843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29844 | } | |
d14a1e28 RD |
29845 | return resultobj; |
29846 | fail: | |
29847 | return NULL; | |
29848 | } | |
29849 | ||
29850 | ||
29851 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29852 | PyObject *resultobj; | |
29853 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29854 | wxPoint *arg2 = 0 ; | |
29855 | wxPoint temp2 ; | |
29856 | PyObject * obj0 = 0 ; | |
29857 | PyObject * obj1 = 0 ; | |
29858 | char *kwnames[] = { | |
29859 | (char *) "self",(char *) "pos", NULL | |
29860 | }; | |
29861 | ||
29862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29865 | { |
29866 | arg2 = &temp2; | |
29867 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29868 | } | |
29869 | { | |
29870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29871 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29872 | ||
29873 | wxPyEndAllowThreads(__tstate); | |
29874 | if (PyErr_Occurred()) SWIG_fail; | |
29875 | } | |
29876 | Py_INCREF(Py_None); resultobj = Py_None; | |
29877 | return resultobj; | |
29878 | fail: | |
29879 | return NULL; | |
29880 | } | |
29881 | ||
29882 | ||
29883 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29884 | PyObject *resultobj; | |
29885 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29886 | wxString *result; | |
29887 | PyObject * obj0 = 0 ; | |
29888 | char *kwnames[] = { | |
29889 | (char *) "self", NULL | |
29890 | }; | |
29891 | ||
29892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29895 | { |
29896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29897 | { | |
29898 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29899 | result = (wxString *) &_result_ref; | |
29900 | } | |
29901 | ||
29902 | wxPyEndAllowThreads(__tstate); | |
29903 | if (PyErr_Occurred()) SWIG_fail; | |
29904 | } | |
cc6dd355 RD |
29905 | { |
29906 | #if wxUSE_UNICODE | |
29907 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29908 | #else | |
29909 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29910 | #endif | |
29911 | } | |
d14a1e28 RD |
29912 | return resultobj; |
29913 | fail: | |
29914 | return NULL; | |
29915 | } | |
29916 | ||
29917 | ||
29918 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29919 | PyObject *resultobj; | |
29920 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29921 | wxString *arg2 = 0 ; | |
e811c8ce | 29922 | bool temp2 = False ; |
d14a1e28 RD |
29923 | PyObject * obj0 = 0 ; |
29924 | PyObject * obj1 = 0 ; | |
29925 | char *kwnames[] = { | |
29926 | (char *) "self",(char *) "link", NULL | |
29927 | }; | |
29928 | ||
29929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29932 | { |
29933 | arg2 = wxString_in_helper(obj1); | |
29934 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29935 | temp2 = True; |
d14a1e28 RD |
29936 | } |
29937 | { | |
29938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29939 | (arg1)->SetLink((wxString const &)*arg2); | |
29940 | ||
29941 | wxPyEndAllowThreads(__tstate); | |
29942 | if (PyErr_Occurred()) SWIG_fail; | |
29943 | } | |
29944 | Py_INCREF(Py_None); resultobj = Py_None; | |
29945 | { | |
29946 | if (temp2) | |
29947 | delete arg2; | |
29948 | } | |
29949 | return resultobj; | |
29950 | fail: | |
29951 | { | |
29952 | if (temp2) | |
29953 | delete arg2; | |
29954 | } | |
29955 | return NULL; | |
29956 | } | |
29957 | ||
29958 | ||
29959 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29960 | PyObject *resultobj; | |
29961 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29962 | wxString *result; | |
29963 | PyObject * obj0 = 0 ; | |
29964 | char *kwnames[] = { | |
29965 | (char *) "self", NULL | |
29966 | }; | |
29967 | ||
29968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29971 | { |
29972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29973 | { | |
29974 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29975 | result = (wxString *) &_result_ref; | |
29976 | } | |
29977 | ||
29978 | wxPyEndAllowThreads(__tstate); | |
29979 | if (PyErr_Occurred()) SWIG_fail; | |
29980 | } | |
cc6dd355 RD |
29981 | { |
29982 | #if wxUSE_UNICODE | |
29983 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29984 | #else | |
29985 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29986 | #endif | |
29987 | } | |
d14a1e28 RD |
29988 | return resultobj; |
29989 | fail: | |
29990 | return NULL; | |
29991 | } | |
29992 | ||
29993 | ||
29994 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29995 | PyObject *resultobj; | |
29996 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29997 | wxString *arg2 = 0 ; | |
e811c8ce | 29998 | bool temp2 = False ; |
d14a1e28 RD |
29999 | PyObject * obj0 = 0 ; |
30000 | PyObject * obj1 = 0 ; | |
30001 | char *kwnames[] = { | |
30002 | (char *) "self",(char *) "target", NULL | |
30003 | }; | |
30004 | ||
30005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30008 | { |
30009 | arg2 = wxString_in_helper(obj1); | |
30010 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30011 | temp2 = True; |
d14a1e28 RD |
30012 | } |
30013 | { | |
30014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30015 | (arg1)->SetTarget((wxString const &)*arg2); | |
30016 | ||
30017 | wxPyEndAllowThreads(__tstate); | |
30018 | if (PyErr_Occurred()) SWIG_fail; | |
30019 | } | |
30020 | Py_INCREF(Py_None); resultobj = Py_None; | |
30021 | { | |
30022 | if (temp2) | |
30023 | delete arg2; | |
30024 | } | |
30025 | return resultobj; | |
30026 | fail: | |
30027 | { | |
30028 | if (temp2) | |
30029 | delete arg2; | |
30030 | } | |
30031 | return NULL; | |
30032 | } | |
30033 | ||
30034 | ||
30035 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
30036 | PyObject *obj; | |
30037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30038 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30039 | Py_INCREF(obj); | |
30040 | return Py_BuildValue((char *)""); | |
30041 | } | |
30042 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30043 | PyObject *resultobj; | |
30044 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 30045 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30046 | wxContextHelp *result; |
30047 | PyObject * obj0 = 0 ; | |
30048 | PyObject * obj1 = 0 ; | |
30049 | char *kwnames[] = { | |
30050 | (char *) "window",(char *) "doNow", NULL | |
30051 | }; | |
30052 | ||
30053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30054 | if (obj0) { | |
15afbcd0 RD |
30055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30057 | } |
30058 | if (obj1) { | |
15afbcd0 RD |
30059 | arg2 = (bool) SWIG_AsBool(obj1); |
30060 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30061 | } |
30062 | { | |
e3b71cb8 | 30063 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30065 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30066 | ||
30067 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30068 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30069 | } |
15afbcd0 | 30070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
30071 | return resultobj; |
30072 | fail: | |
30073 | return NULL; | |
30074 | } | |
30075 | ||
30076 | ||
30077 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30078 | PyObject *resultobj; | |
30079 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30080 | PyObject * obj0 = 0 ; | |
30081 | char *kwnames[] = { | |
30082 | (char *) "self", NULL | |
30083 | }; | |
30084 | ||
30085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30088 | { |
30089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30090 | delete arg1; | |
30091 | ||
30092 | wxPyEndAllowThreads(__tstate); | |
30093 | if (PyErr_Occurred()) SWIG_fail; | |
30094 | } | |
30095 | Py_INCREF(Py_None); resultobj = Py_None; | |
30096 | return resultobj; | |
30097 | fail: | |
30098 | return NULL; | |
30099 | } | |
30100 | ||
30101 | ||
30102 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30103 | PyObject *resultobj; | |
30104 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30105 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30106 | bool result; | |
30107 | PyObject * obj0 = 0 ; | |
30108 | PyObject * obj1 = 0 ; | |
30109 | char *kwnames[] = { | |
30110 | (char *) "self",(char *) "window", NULL | |
30111 | }; | |
30112 | ||
30113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30116 | if (obj1) { |
15afbcd0 RD |
30117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
30118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30119 | } |
30120 | { | |
30121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30122 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30123 | ||
30124 | wxPyEndAllowThreads(__tstate); | |
30125 | if (PyErr_Occurred()) SWIG_fail; | |
30126 | } | |
4f89f6a3 RD |
30127 | { |
30128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30129 | } | |
d14a1e28 RD |
30130 | return resultobj; |
30131 | fail: | |
30132 | return NULL; | |
30133 | } | |
30134 | ||
30135 | ||
30136 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30137 | PyObject *resultobj; | |
30138 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30139 | bool result; | |
30140 | PyObject * obj0 = 0 ; | |
30141 | char *kwnames[] = { | |
30142 | (char *) "self", NULL | |
30143 | }; | |
30144 | ||
30145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30148 | { |
30149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30150 | result = (bool)(arg1)->EndContextHelp(); | |
30151 | ||
30152 | wxPyEndAllowThreads(__tstate); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | } | |
4f89f6a3 RD |
30155 | { |
30156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30157 | } | |
d14a1e28 RD |
30158 | return resultobj; |
30159 | fail: | |
30160 | return NULL; | |
30161 | } | |
30162 | ||
30163 | ||
30164 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30165 | PyObject *obj; | |
30166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30167 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30168 | Py_INCREF(obj); | |
30169 | return Py_BuildValue((char *)""); | |
30170 | } | |
30171 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30172 | PyObject *resultobj; | |
30173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30174 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30175 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30176 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30177 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30178 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30179 | long arg5 = (long) wxBU_AUTODRAW ; | |
30180 | wxContextHelpButton *result; | |
30181 | wxPoint temp3 ; | |
30182 | wxSize temp4 ; | |
30183 | PyObject * obj0 = 0 ; | |
994141e6 | 30184 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30185 | PyObject * obj2 = 0 ; |
30186 | PyObject * obj3 = 0 ; | |
994141e6 | 30187 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30188 | char *kwnames[] = { |
30189 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30190 | }; | |
30191 | ||
994141e6 | 30192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30195 | if (obj1) { |
15afbcd0 RD |
30196 | arg2 = (int) SWIG_AsInt(obj1); |
30197 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30198 | } |
d14a1e28 RD |
30199 | if (obj2) { |
30200 | { | |
30201 | arg3 = &temp3; | |
30202 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30203 | } | |
30204 | } | |
30205 | if (obj3) { | |
30206 | { | |
30207 | arg4 = &temp4; | |
30208 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30209 | } | |
30210 | } | |
994141e6 | 30211 | if (obj4) { |
15afbcd0 RD |
30212 | arg5 = (long) SWIG_AsLong(obj4); |
30213 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30214 | } |
d14a1e28 | 30215 | { |
e3b71cb8 | 30216 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30218 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30219 | ||
30220 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30221 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30222 | } |
15afbcd0 | 30223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30224 | return resultobj; |
30225 | fail: | |
30226 | return NULL; | |
30227 | } | |
30228 | ||
30229 | ||
30230 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30231 | PyObject *obj; | |
30232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30233 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30234 | Py_INCREF(obj); | |
30235 | return Py_BuildValue((char *)""); | |
30236 | } | |
30237 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30238 | PyObject *resultobj; | |
30239 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30240 | wxHelpProvider *result; | |
30241 | PyObject * obj0 = 0 ; | |
30242 | char *kwnames[] = { | |
30243 | (char *) "helpProvider", NULL | |
30244 | }; | |
30245 | ||
30246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30249 | { |
30250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30251 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30252 | ||
30253 | wxPyEndAllowThreads(__tstate); | |
30254 | if (PyErr_Occurred()) SWIG_fail; | |
30255 | } | |
15afbcd0 | 30256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30257 | return resultobj; |
30258 | fail: | |
30259 | return NULL; | |
30260 | } | |
30261 | ||
30262 | ||
30263 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30264 | PyObject *resultobj; | |
30265 | wxHelpProvider *result; | |
30266 | char *kwnames[] = { | |
30267 | NULL | |
30268 | }; | |
30269 | ||
30270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30271 | { | |
30272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30273 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30274 | ||
30275 | wxPyEndAllowThreads(__tstate); | |
30276 | if (PyErr_Occurred()) SWIG_fail; | |
30277 | } | |
15afbcd0 | 30278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30279 | return resultobj; |
30280 | fail: | |
30281 | return NULL; | |
30282 | } | |
30283 | ||
30284 | ||
30285 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30286 | PyObject *resultobj; | |
30287 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30288 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30289 | wxString result; | |
30290 | PyObject * obj0 = 0 ; | |
30291 | PyObject * obj1 = 0 ; | |
30292 | char *kwnames[] = { | |
30293 | (char *) "self",(char *) "window", NULL | |
30294 | }; | |
30295 | ||
30296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30301 | { |
30302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30303 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30304 | ||
30305 | wxPyEndAllowThreads(__tstate); | |
30306 | if (PyErr_Occurred()) SWIG_fail; | |
30307 | } | |
30308 | { | |
30309 | #if wxUSE_UNICODE | |
30310 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30311 | #else | |
30312 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30313 | #endif | |
30314 | } | |
30315 | return resultobj; | |
30316 | fail: | |
30317 | return NULL; | |
30318 | } | |
30319 | ||
30320 | ||
30321 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30322 | PyObject *resultobj; | |
30323 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30325 | bool result; | |
30326 | PyObject * obj0 = 0 ; | |
30327 | PyObject * obj1 = 0 ; | |
30328 | char *kwnames[] = { | |
30329 | (char *) "self",(char *) "window", NULL | |
30330 | }; | |
30331 | ||
30332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30337 | { |
30338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30339 | result = (bool)(arg1)->ShowHelp(arg2); | |
30340 | ||
30341 | wxPyEndAllowThreads(__tstate); | |
30342 | if (PyErr_Occurred()) SWIG_fail; | |
30343 | } | |
4f89f6a3 RD |
30344 | { |
30345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30346 | } | |
d14a1e28 RD |
30347 | return resultobj; |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
30353 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30354 | PyObject *resultobj; | |
30355 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30357 | wxString *arg3 = 0 ; | |
e811c8ce | 30358 | bool temp3 = False ; |
d14a1e28 RD |
30359 | PyObject * obj0 = 0 ; |
30360 | PyObject * obj1 = 0 ; | |
30361 | PyObject * obj2 = 0 ; | |
30362 | char *kwnames[] = { | |
30363 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30364 | }; | |
30365 | ||
30366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30371 | { |
30372 | arg3 = wxString_in_helper(obj2); | |
30373 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30374 | temp3 = True; |
d14a1e28 RD |
30375 | } |
30376 | { | |
30377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30378 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30379 | ||
30380 | wxPyEndAllowThreads(__tstate); | |
30381 | if (PyErr_Occurred()) SWIG_fail; | |
30382 | } | |
30383 | Py_INCREF(Py_None); resultobj = Py_None; | |
30384 | { | |
30385 | if (temp3) | |
30386 | delete arg3; | |
30387 | } | |
30388 | return resultobj; | |
30389 | fail: | |
30390 | { | |
30391 | if (temp3) | |
30392 | delete arg3; | |
30393 | } | |
30394 | return NULL; | |
30395 | } | |
30396 | ||
30397 | ||
30398 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30399 | PyObject *resultobj; | |
30400 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30401 | int arg2 ; |
d14a1e28 | 30402 | wxString *arg3 = 0 ; |
e811c8ce | 30403 | bool temp3 = False ; |
d14a1e28 | 30404 | PyObject * obj0 = 0 ; |
994141e6 | 30405 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30406 | PyObject * obj2 = 0 ; |
30407 | char *kwnames[] = { | |
30408 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30409 | }; | |
30410 | ||
994141e6 | 30411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30414 | arg2 = (int) SWIG_AsInt(obj1); | |
30415 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30416 | { |
30417 | arg3 = wxString_in_helper(obj2); | |
30418 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30419 | temp3 = True; |
d14a1e28 RD |
30420 | } |
30421 | { | |
30422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30423 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30424 | ||
30425 | wxPyEndAllowThreads(__tstate); | |
30426 | if (PyErr_Occurred()) SWIG_fail; | |
30427 | } | |
30428 | Py_INCREF(Py_None); resultobj = Py_None; | |
30429 | { | |
30430 | if (temp3) | |
30431 | delete arg3; | |
30432 | } | |
30433 | return resultobj; | |
30434 | fail: | |
30435 | { | |
30436 | if (temp3) | |
30437 | delete arg3; | |
30438 | } | |
30439 | return NULL; | |
30440 | } | |
30441 | ||
30442 | ||
15afbcd0 RD |
30443 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
30444 | PyObject *resultobj; | |
30445 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30446 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30447 | PyObject * obj0 = 0 ; | |
30448 | PyObject * obj1 = 0 ; | |
30449 | char *kwnames[] = { | |
30450 | (char *) "self",(char *) "window", NULL | |
30451 | }; | |
30452 | ||
30453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30458 | { | |
30459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30460 | (arg1)->RemoveHelp(arg2); | |
30461 | ||
30462 | wxPyEndAllowThreads(__tstate); | |
30463 | if (PyErr_Occurred()) SWIG_fail; | |
30464 | } | |
30465 | Py_INCREF(Py_None); resultobj = Py_None; | |
30466 | return resultobj; | |
30467 | fail: | |
30468 | return NULL; | |
30469 | } | |
30470 | ||
30471 | ||
d14a1e28 RD |
30472 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
30473 | PyObject *resultobj; | |
30474 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30475 | PyObject * obj0 = 0 ; | |
30476 | char *kwnames[] = { | |
30477 | (char *) "self", NULL | |
30478 | }; | |
30479 | ||
30480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30483 | { |
30484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30485 | wxHelpProvider_Destroy(arg1); | |
30486 | ||
30487 | wxPyEndAllowThreads(__tstate); | |
30488 | if (PyErr_Occurred()) SWIG_fail; | |
30489 | } | |
30490 | Py_INCREF(Py_None); resultobj = Py_None; | |
30491 | return resultobj; | |
30492 | fail: | |
30493 | return NULL; | |
30494 | } | |
30495 | ||
30496 | ||
30497 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30498 | PyObject *obj; | |
30499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30500 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30501 | Py_INCREF(obj); | |
30502 | return Py_BuildValue((char *)""); | |
30503 | } | |
30504 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30505 | PyObject *resultobj; | |
30506 | wxSimpleHelpProvider *result; | |
30507 | char *kwnames[] = { | |
30508 | NULL | |
30509 | }; | |
30510 | ||
30511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30512 | { | |
30513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30514 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30515 | ||
30516 | wxPyEndAllowThreads(__tstate); | |
30517 | if (PyErr_Occurred()) SWIG_fail; | |
30518 | } | |
15afbcd0 | 30519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30520 | return resultobj; |
30521 | fail: | |
30522 | return NULL; | |
30523 | } | |
30524 | ||
30525 | ||
30526 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30527 | PyObject *obj; | |
30528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30529 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30530 | Py_INCREF(obj); | |
30531 | return Py_BuildValue((char *)""); | |
30532 | } | |
e811c8ce RD |
30533 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
30534 | PyObject *resultobj; | |
30535 | wxBitmap *arg1 = 0 ; | |
30536 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30537 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30538 | wxGenericDragImage *result; | |
30539 | PyObject * obj0 = 0 ; | |
30540 | PyObject * obj1 = 0 ; | |
30541 | char *kwnames[] = { | |
30542 | (char *) "image",(char *) "cursor", NULL | |
30543 | }; | |
30544 | ||
30545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
30547 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30548 | SWIG_fail; | |
e811c8ce | 30549 | if (arg1 == NULL) { |
15afbcd0 RD |
30550 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30551 | SWIG_fail; | |
e811c8ce RD |
30552 | } |
30553 | if (obj1) { | |
15afbcd0 RD |
30554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30556 | SWIG_fail; | |
e811c8ce | 30557 | if (arg2 == NULL) { |
15afbcd0 RD |
30558 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30559 | SWIG_fail; | |
e811c8ce RD |
30560 | } |
30561 | } | |
30562 | { | |
e3b71cb8 | 30563 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30565 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30566 | ||
30567 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30568 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30569 | } |
15afbcd0 | 30570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30571 | return resultobj; |
30572 | fail: | |
30573 | return NULL; | |
30574 | } | |
30575 | ||
30576 | ||
30577 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30578 | PyObject *resultobj; | |
30579 | wxIcon *arg1 = 0 ; | |
30580 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30581 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30582 | wxGenericDragImage *result; | |
30583 | PyObject * obj0 = 0 ; | |
30584 | PyObject * obj1 = 0 ; | |
30585 | char *kwnames[] = { | |
30586 | (char *) "image",(char *) "cursor", NULL | |
30587 | }; | |
30588 | ||
30589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
30591 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30592 | SWIG_fail; | |
e811c8ce | 30593 | if (arg1 == NULL) { |
15afbcd0 RD |
30594 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30595 | SWIG_fail; | |
e811c8ce RD |
30596 | } |
30597 | if (obj1) { | |
15afbcd0 RD |
30598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30600 | SWIG_fail; | |
e811c8ce | 30601 | if (arg2 == NULL) { |
15afbcd0 RD |
30602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30603 | SWIG_fail; | |
e811c8ce RD |
30604 | } |
30605 | } | |
30606 | { | |
e3b71cb8 | 30607 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30609 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30610 | ||
30611 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30612 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30613 | } |
15afbcd0 | 30614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30615 | return resultobj; |
30616 | fail: | |
30617 | return NULL; | |
30618 | } | |
30619 | ||
30620 | ||
30621 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30622 | PyObject *resultobj; | |
30623 | wxString *arg1 = 0 ; | |
30624 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30625 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30626 | wxGenericDragImage *result; | |
30627 | bool temp1 = False ; | |
30628 | PyObject * obj0 = 0 ; | |
30629 | PyObject * obj1 = 0 ; | |
30630 | char *kwnames[] = { | |
30631 | (char *) "str",(char *) "cursor", NULL | |
30632 | }; | |
30633 | ||
30634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30635 | { | |
30636 | arg1 = wxString_in_helper(obj0); | |
30637 | if (arg1 == NULL) SWIG_fail; | |
30638 | temp1 = True; | |
30639 | } | |
30640 | if (obj1) { | |
15afbcd0 RD |
30641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30643 | SWIG_fail; | |
e811c8ce | 30644 | if (arg2 == NULL) { |
15afbcd0 RD |
30645 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30646 | SWIG_fail; | |
e811c8ce RD |
30647 | } |
30648 | } | |
30649 | { | |
e3b71cb8 | 30650 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30652 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30655 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30656 | } |
15afbcd0 | 30657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30658 | { |
30659 | if (temp1) | |
30660 | delete arg1; | |
30661 | } | |
30662 | return resultobj; | |
30663 | fail: | |
30664 | { | |
30665 | if (temp1) | |
30666 | delete arg1; | |
30667 | } | |
30668 | return NULL; | |
30669 | } | |
30670 | ||
30671 | ||
30672 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30673 | PyObject *resultobj; | |
30674 | wxPyTreeCtrl *arg1 = 0 ; | |
30675 | wxTreeItemId *arg2 = 0 ; | |
30676 | wxGenericDragImage *result; | |
30677 | PyObject * obj0 = 0 ; | |
30678 | PyObject * obj1 = 0 ; | |
30679 | char *kwnames[] = { | |
30680 | (char *) "treeCtrl",(char *) "id", NULL | |
30681 | }; | |
30682 | ||
30683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
30685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30686 | SWIG_fail; | |
e811c8ce | 30687 | if (arg1 == NULL) { |
15afbcd0 RD |
30688 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30689 | SWIG_fail; | |
e811c8ce | 30690 | } |
15afbcd0 RD |
30691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
30692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30693 | SWIG_fail; | |
e811c8ce | 30694 | if (arg2 == NULL) { |
15afbcd0 RD |
30695 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30696 | SWIG_fail; | |
e811c8ce RD |
30697 | } |
30698 | { | |
e3b71cb8 | 30699 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30701 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30702 | ||
30703 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30704 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30705 | } |
15afbcd0 | 30706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30707 | return resultobj; |
30708 | fail: | |
30709 | return NULL; | |
30710 | } | |
30711 | ||
30712 | ||
30713 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30714 | PyObject *resultobj; | |
30715 | wxPyListCtrl *arg1 = 0 ; | |
30716 | long arg2 ; | |
30717 | wxGenericDragImage *result; | |
30718 | PyObject * obj0 = 0 ; | |
994141e6 | 30719 | PyObject * obj1 = 0 ; |
e811c8ce RD |
30720 | char *kwnames[] = { |
30721 | (char *) "listCtrl",(char *) "id", NULL | |
30722 | }; | |
30723 | ||
994141e6 | 30724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
30726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30727 | SWIG_fail; | |
e811c8ce | 30728 | if (arg1 == NULL) { |
15afbcd0 RD |
30729 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30730 | SWIG_fail; | |
994141e6 | 30731 | } |
15afbcd0 RD |
30732 | arg2 = (long) SWIG_AsLong(obj1); |
30733 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce | 30734 | { |
e3b71cb8 | 30735 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30737 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30738 | ||
30739 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30740 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30741 | } |
15afbcd0 | 30742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30743 | return resultobj; |
30744 | fail: | |
30745 | return NULL; | |
30746 | } | |
30747 | ||
30748 | ||
30749 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30750 | PyObject *resultobj; | |
30751 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30752 | PyObject * obj0 = 0 ; | |
30753 | char *kwnames[] = { | |
30754 | (char *) "self", NULL | |
30755 | }; | |
30756 | ||
30757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30760 | { |
30761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30762 | delete arg1; | |
30763 | ||
30764 | wxPyEndAllowThreads(__tstate); | |
30765 | if (PyErr_Occurred()) SWIG_fail; | |
30766 | } | |
30767 | Py_INCREF(Py_None); resultobj = Py_None; | |
30768 | return resultobj; | |
30769 | fail: | |
30770 | return NULL; | |
30771 | } | |
30772 | ||
30773 | ||
30774 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30775 | PyObject *resultobj; | |
30776 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30777 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30778 | PyObject * obj0 = 0 ; | |
30779 | PyObject * obj1 = 0 ; | |
30780 | char *kwnames[] = { | |
30781 | (char *) "self",(char *) "bitmap", NULL | |
30782 | }; | |
30783 | ||
30784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30789 | { |
30790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30791 | (arg1)->SetBackingBitmap(arg2); | |
30792 | ||
30793 | wxPyEndAllowThreads(__tstate); | |
30794 | if (PyErr_Occurred()) SWIG_fail; | |
30795 | } | |
30796 | Py_INCREF(Py_None); resultobj = Py_None; | |
30797 | return resultobj; | |
30798 | fail: | |
30799 | return NULL; | |
30800 | } | |
30801 | ||
30802 | ||
30803 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30804 | PyObject *resultobj; | |
30805 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30806 | wxPoint *arg2 = 0 ; | |
30807 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30808 | bool arg4 = (bool) False ; | |
30809 | wxRect *arg5 = (wxRect *) NULL ; | |
30810 | bool result; | |
30811 | wxPoint temp2 ; | |
30812 | PyObject * obj0 = 0 ; | |
30813 | PyObject * obj1 = 0 ; | |
30814 | PyObject * obj2 = 0 ; | |
30815 | PyObject * obj3 = 0 ; | |
30816 | PyObject * obj4 = 0 ; | |
30817 | char *kwnames[] = { | |
30818 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30819 | }; | |
30820 | ||
30821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30824 | { |
30825 | arg2 = &temp2; | |
30826 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30827 | } | |
15afbcd0 RD |
30828 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 30830 | if (obj3) { |
15afbcd0 RD |
30831 | arg4 = (bool) SWIG_AsBool(obj3); |
30832 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30833 | } |
30834 | if (obj4) { | |
15afbcd0 RD |
30835 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30837 | } |
30838 | { | |
30839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30840 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30841 | ||
30842 | wxPyEndAllowThreads(__tstate); | |
30843 | if (PyErr_Occurred()) SWIG_fail; | |
30844 | } | |
4f89f6a3 RD |
30845 | { |
30846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30847 | } | |
e811c8ce RD |
30848 | return resultobj; |
30849 | fail: | |
30850 | return NULL; | |
30851 | } | |
30852 | ||
30853 | ||
30854 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30855 | PyObject *resultobj; | |
30856 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30857 | wxPoint *arg2 = 0 ; | |
30858 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30859 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30860 | bool result; | |
30861 | wxPoint temp2 ; | |
30862 | PyObject * obj0 = 0 ; | |
30863 | PyObject * obj1 = 0 ; | |
30864 | PyObject * obj2 = 0 ; | |
30865 | PyObject * obj3 = 0 ; | |
30866 | char *kwnames[] = { | |
30867 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30868 | }; | |
30869 | ||
30870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30873 | { |
30874 | arg2 = &temp2; | |
30875 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30876 | } | |
15afbcd0 RD |
30877 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30879 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30881 | { |
30882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30883 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30884 | ||
30885 | wxPyEndAllowThreads(__tstate); | |
30886 | if (PyErr_Occurred()) SWIG_fail; | |
30887 | } | |
4f89f6a3 RD |
30888 | { |
30889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30890 | } | |
e811c8ce RD |
30891 | return resultobj; |
30892 | fail: | |
30893 | return NULL; | |
30894 | } | |
30895 | ||
30896 | ||
30897 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30898 | PyObject *resultobj; | |
30899 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30900 | bool result; | |
30901 | PyObject * obj0 = 0 ; | |
30902 | char *kwnames[] = { | |
30903 | (char *) "self", NULL | |
30904 | }; | |
30905 | ||
30906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30909 | { |
30910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30911 | result = (bool)(arg1)->EndDrag(); | |
30912 | ||
30913 | wxPyEndAllowThreads(__tstate); | |
30914 | if (PyErr_Occurred()) SWIG_fail; | |
30915 | } | |
4f89f6a3 RD |
30916 | { |
30917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30918 | } | |
e811c8ce RD |
30919 | return resultobj; |
30920 | fail: | |
30921 | return NULL; | |
30922 | } | |
30923 | ||
30924 | ||
30925 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30926 | PyObject *resultobj; | |
30927 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30928 | wxPoint *arg2 = 0 ; | |
30929 | bool result; | |
30930 | wxPoint temp2 ; | |
30931 | PyObject * obj0 = 0 ; | |
30932 | PyObject * obj1 = 0 ; | |
30933 | char *kwnames[] = { | |
30934 | (char *) "self",(char *) "pt", NULL | |
30935 | }; | |
30936 | ||
30937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30940 | { |
30941 | arg2 = &temp2; | |
30942 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30943 | } | |
30944 | { | |
30945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30946 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30947 | ||
30948 | wxPyEndAllowThreads(__tstate); | |
30949 | if (PyErr_Occurred()) SWIG_fail; | |
30950 | } | |
4f89f6a3 RD |
30951 | { |
30952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30953 | } | |
e811c8ce RD |
30954 | return resultobj; |
30955 | fail: | |
30956 | return NULL; | |
30957 | } | |
30958 | ||
30959 | ||
30960 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30961 | PyObject *resultobj; | |
30962 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30963 | bool result; | |
30964 | PyObject * obj0 = 0 ; | |
30965 | char *kwnames[] = { | |
30966 | (char *) "self", NULL | |
30967 | }; | |
30968 | ||
30969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30972 | { |
30973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30974 | result = (bool)(arg1)->Show(); | |
30975 | ||
30976 | wxPyEndAllowThreads(__tstate); | |
30977 | if (PyErr_Occurred()) SWIG_fail; | |
30978 | } | |
4f89f6a3 RD |
30979 | { |
30980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30981 | } | |
e811c8ce RD |
30982 | return resultobj; |
30983 | fail: | |
30984 | return NULL; | |
30985 | } | |
30986 | ||
30987 | ||
30988 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30989 | PyObject *resultobj; | |
30990 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30991 | bool result; | |
30992 | PyObject * obj0 = 0 ; | |
30993 | char *kwnames[] = { | |
30994 | (char *) "self", NULL | |
30995 | }; | |
30996 | ||
30997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31000 | { |
31001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31002 | result = (bool)(arg1)->Hide(); | |
31003 | ||
31004 | wxPyEndAllowThreads(__tstate); | |
31005 | if (PyErr_Occurred()) SWIG_fail; | |
31006 | } | |
4f89f6a3 RD |
31007 | { |
31008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31009 | } | |
e811c8ce RD |
31010 | return resultobj; |
31011 | fail: | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
31016 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31017 | PyObject *resultobj; | |
31018 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31019 | wxPoint *arg2 = 0 ; | |
31020 | wxRect result; | |
31021 | wxPoint temp2 ; | |
31022 | PyObject * obj0 = 0 ; | |
31023 | PyObject * obj1 = 0 ; | |
31024 | char *kwnames[] = { | |
31025 | (char *) "self",(char *) "pos", NULL | |
31026 | }; | |
31027 | ||
31028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31031 | { |
31032 | arg2 = &temp2; | |
31033 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31034 | } | |
31035 | { | |
31036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31037 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31038 | ||
31039 | wxPyEndAllowThreads(__tstate); | |
31040 | if (PyErr_Occurred()) SWIG_fail; | |
31041 | } | |
31042 | { | |
31043 | wxRect * resultptr; | |
31044 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 31045 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
31046 | } |
31047 | return resultobj; | |
31048 | fail: | |
31049 | return NULL; | |
31050 | } | |
31051 | ||
31052 | ||
31053 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31054 | PyObject *resultobj; | |
31055 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31056 | wxDC *arg2 = 0 ; | |
31057 | wxPoint *arg3 = 0 ; | |
31058 | bool result; | |
31059 | wxPoint temp3 ; | |
31060 | PyObject * obj0 = 0 ; | |
31061 | PyObject * obj1 = 0 ; | |
31062 | PyObject * obj2 = 0 ; | |
31063 | char *kwnames[] = { | |
31064 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31065 | }; | |
31066 | ||
31067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31072 | SWIG_fail; | |
e811c8ce | 31073 | if (arg2 == NULL) { |
15afbcd0 RD |
31074 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31075 | SWIG_fail; | |
e811c8ce RD |
31076 | } |
31077 | { | |
31078 | arg3 = &temp3; | |
31079 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31080 | } | |
31081 | { | |
31082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31083 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31084 | ||
31085 | wxPyEndAllowThreads(__tstate); | |
31086 | if (PyErr_Occurred()) SWIG_fail; | |
31087 | } | |
4f89f6a3 RD |
31088 | { |
31089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31090 | } | |
e811c8ce RD |
31091 | return resultobj; |
31092 | fail: | |
31093 | return NULL; | |
31094 | } | |
31095 | ||
31096 | ||
31097 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31098 | PyObject *resultobj; | |
31099 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31100 | wxDC *arg2 = 0 ; | |
31101 | wxMemoryDC *arg3 = 0 ; | |
31102 | wxRect *arg4 = 0 ; | |
31103 | wxRect *arg5 = 0 ; | |
31104 | bool result; | |
31105 | wxRect temp4 ; | |
31106 | wxRect temp5 ; | |
31107 | PyObject * obj0 = 0 ; | |
31108 | PyObject * obj1 = 0 ; | |
31109 | PyObject * obj2 = 0 ; | |
31110 | PyObject * obj3 = 0 ; | |
31111 | PyObject * obj4 = 0 ; | |
31112 | char *kwnames[] = { | |
31113 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31114 | }; | |
31115 | ||
31116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31121 | SWIG_fail; | |
e811c8ce | 31122 | if (arg2 == NULL) { |
15afbcd0 RD |
31123 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31124 | SWIG_fail; | |
e811c8ce | 31125 | } |
15afbcd0 RD |
31126 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
31127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31128 | SWIG_fail; | |
e811c8ce | 31129 | if (arg3 == NULL) { |
15afbcd0 RD |
31130 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31131 | SWIG_fail; | |
e811c8ce RD |
31132 | } |
31133 | { | |
31134 | arg4 = &temp4; | |
31135 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31136 | } | |
31137 | { | |
31138 | arg5 = &temp5; | |
31139 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31140 | } | |
31141 | { | |
31142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31143 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31144 | ||
31145 | wxPyEndAllowThreads(__tstate); | |
31146 | if (PyErr_Occurred()) SWIG_fail; | |
31147 | } | |
4f89f6a3 RD |
31148 | { |
31149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31150 | } | |
e811c8ce RD |
31151 | return resultobj; |
31152 | fail: | |
31153 | return NULL; | |
31154 | } | |
31155 | ||
31156 | ||
31157 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31158 | PyObject *resultobj; | |
31159 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31160 | wxPoint *arg2 = 0 ; | |
31161 | wxPoint *arg3 = 0 ; | |
31162 | bool arg4 ; | |
31163 | bool arg5 ; | |
31164 | bool result; | |
31165 | wxPoint temp2 ; | |
31166 | wxPoint temp3 ; | |
31167 | PyObject * obj0 = 0 ; | |
31168 | PyObject * obj1 = 0 ; | |
31169 | PyObject * obj2 = 0 ; | |
31170 | PyObject * obj3 = 0 ; | |
31171 | PyObject * obj4 = 0 ; | |
31172 | char *kwnames[] = { | |
31173 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31174 | }; | |
31175 | ||
31176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31179 | { |
31180 | arg2 = &temp2; | |
31181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31182 | } | |
31183 | { | |
31184 | arg3 = &temp3; | |
31185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31186 | } | |
15afbcd0 RD |
31187 | arg4 = (bool) SWIG_AsBool(obj3); |
31188 | if (PyErr_Occurred()) SWIG_fail; | |
31189 | arg5 = (bool) SWIG_AsBool(obj4); | |
31190 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
31191 | { |
31192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31193 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31194 | ||
31195 | wxPyEndAllowThreads(__tstate); | |
31196 | if (PyErr_Occurred()) SWIG_fail; | |
31197 | } | |
4f89f6a3 RD |
31198 | { |
31199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31200 | } | |
e811c8ce RD |
31201 | return resultobj; |
31202 | fail: | |
31203 | return NULL; | |
31204 | } | |
31205 | ||
31206 | ||
31207 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31208 | PyObject *obj; | |
31209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31210 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31211 | Py_INCREF(obj); | |
31212 | return Py_BuildValue((char *)""); | |
31213 | } | |
31214 | static PyMethodDef SwigMethods[] = { | |
31215 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31216 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31217 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31218 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31219 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31220 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31221 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31222 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31223 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31224 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31226 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31227 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31228 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31237 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31241 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31242 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31243 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31244 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31245 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31247 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31248 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31249 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31252 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
31253 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31254 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31255 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31256 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31257 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31258 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31259 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31260 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31261 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31262 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31263 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31264 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31265 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31266 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31267 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31268 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 31269 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 31270 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
121b9a67 RD |
31271 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31272 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31273 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31274 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31275 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31276 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31277 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31278 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31279 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31280 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31281 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31282 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31283 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31284 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31285 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31286 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31287 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31288 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31289 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31290 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31291 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31292 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31293 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31295 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31296 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31297 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31299 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31302 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31303 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31304 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31305 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31306 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31307 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31308 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31309 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31311 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31312 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31313 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31314 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31315 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31316 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31317 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31318 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31319 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31320 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31321 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31322 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31323 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31325 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31327 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31328 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31329 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
31335 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
31336 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31337 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31338 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31339 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
31340 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31343 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31344 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31345 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31346 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31347 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31348 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
908b74cd | 31349 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
994141e6 | 31350 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31351 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
31352 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31353 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31354 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31355 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31356 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31357 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31358 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31359 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31360 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31361 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31362 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31363 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31364 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31365 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31366 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31367 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31368 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31369 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31370 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31371 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31372 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31373 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
5e4ca4a8 | 31374 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31375 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31376 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31377 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31378 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31379 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31380 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31381 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31382 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31383 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31384 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31385 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31386 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31387 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31388 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31389 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31390 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31391 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31392 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31393 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31394 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31395 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31398 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31400 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31401 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31402 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31403 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31404 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31405 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31408 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31410 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 31413 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31414 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
31415 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31416 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31417 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31418 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31420 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31421 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
31422 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31425 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31426 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31427 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31428 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31429 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31432 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31433 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31434 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31435 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31436 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31437 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31438 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31440 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31445 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31446 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31447 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31448 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31450 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31451 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31452 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31453 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31454 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31456 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31457 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31458 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31463 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31464 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31465 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31467 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31468 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31469 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31470 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31471 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31472 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31475 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31476 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
d1e20054 RD |
31477 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
31478 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31481 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
31482 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31483 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31484 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31488 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31489 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31495 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31496 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31497 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31498 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31499 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31504 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31505 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31506 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31509 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31510 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31511 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31512 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31517 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31518 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31519 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31520 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31529 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31530 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31531 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31532 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31538 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31539 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31540 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31543 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31544 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31545 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31551 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31552 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31554 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31555 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31556 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31559 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31560 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31561 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31567 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31575 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31576 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31577 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31579 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31584 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31586 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31588 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31591 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31596 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31597 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31599 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31609 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31615 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31616 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31622 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31626 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
31628 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
31629 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31630 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
31631 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31641 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31644 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31645 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31646 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31647 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31658 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31659 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 31668 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31669 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
31670 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31671 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31675 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31676 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31677 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31679 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31680 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31681 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31683 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31684 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31687 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31688 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31689 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31690 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31700 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31702 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31713 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31714 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31721 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31722 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31741 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31749 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31754 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31755 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31756 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31762 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31768 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31781 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31786 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31788 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31789 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31790 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31796 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 31807 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31808 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
31809 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31817 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31820 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31821 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31825 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31826 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31827 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31828 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31829 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31830 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31837 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31838 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, |
31839 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31847 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31850 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31851 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31852 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31859 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31864 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31866 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31872 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31873 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31874 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31875 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31877 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31878 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31879 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 31880 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31881 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
31882 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31893 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31894 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31895 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31896 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31897 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31898 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31899 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31900 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31901 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31902 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31903 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31904 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31905 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31906 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31907 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31908 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31909 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31910 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31911 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31912 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31913 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31914 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31915 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31916 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31917 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31918 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31919 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31920 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31921 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31922 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31923 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31924 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31925 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31926 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31927 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31928 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31929 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31930 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31931 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31932 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31933 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31934 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31935 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31936 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31937 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31938 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31939 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31940 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31941 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31942 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31943 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31944 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31945 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31946 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31947 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31948 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31949 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31950 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31951 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31952 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31953 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31954 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31955 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31956 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, |
31957 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31958 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31959 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31960 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31961 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31962 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31963 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31964 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31965 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31966 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31967 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31968 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31969 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31970 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31971 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31972 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31973 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31974 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31975 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31976 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31977 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31978 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31979 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31980 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31981 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31982 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31983 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31984 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa | 31985 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31986 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
db3e571a | 31987 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31988 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
31989 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31990 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31991 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31992 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31993 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31994 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31995 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31996 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31997 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31998 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31999 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32000 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
32001 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
32002 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
32003 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
32004 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
32005 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa RD |
32006 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
32007 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
db3e571a | 32008 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
32009 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
32010 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
32011 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32012 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32013 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
32014 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
32015 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32016 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32017 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
32018 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32019 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32020 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32021 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32022 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
32023 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
32024 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
32025 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
32026 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
32027 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
32028 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
32029 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
32030 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 32031 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
32032 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
32033 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
32034 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
32035 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
32036 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
32037 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
32038 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
32039 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
32040 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
32041 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32042 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
32043 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
32044 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
32045 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
32046 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
32047 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
32048 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
32049 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
32050 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32051 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32052 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32053 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
32054 | { NULL, NULL } |
32055 | }; | |
32056 | ||
32057 | ||
32058 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32059 | ||
32060 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32061 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32062 | } | |
32063 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32064 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32065 | } | |
32066 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32067 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32068 | } | |
32069 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32070 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32071 | } | |
32072 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32073 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32074 | } | |
32075 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32076 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32077 | } | |
32078 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32079 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32080 | } | |
32081 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32082 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32083 | } | |
32084 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32085 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32086 | } | |
32087 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32088 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32089 | } | |
32090 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32091 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32092 | } | |
32093 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32094 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32095 | } | |
32096 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32097 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32098 | } | |
32099 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32100 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32101 | } | |
32102 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32103 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32104 | } | |
32105 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32106 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32107 | } | |
32108 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32109 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32110 | } | |
32111 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32112 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32113 | } | |
32114 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32115 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32116 | } | |
32117 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32118 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32119 | } | |
32120 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32121 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32122 | } | |
32123 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32124 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32125 | } | |
32126 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32127 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32128 | } | |
32129 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32130 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32131 | } | |
32132 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32133 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32134 | } | |
32135 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32136 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32137 | } | |
32138 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32139 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32140 | } | |
32141 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32142 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32143 | } | |
32144 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32145 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32146 | } | |
32147 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32148 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32149 | } | |
32150 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32151 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32152 | } | |
32153 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32154 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32155 | } | |
32156 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32157 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32158 | } | |
32159 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32160 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32161 | } | |
32162 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32163 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32164 | } | |
32165 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32166 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32167 | } | |
32168 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32169 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32170 | } | |
32171 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32172 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32173 | } | |
32174 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32175 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32176 | } | |
32177 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32178 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32179 | } | |
32180 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32181 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32182 | } | |
32183 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32184 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32185 | } | |
32186 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32187 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32188 | } | |
32189 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32190 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32191 | } | |
32192 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32194 | } | |
32195 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32196 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32197 | } | |
32198 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32199 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32200 | } | |
32201 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32202 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32203 | } | |
32204 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32205 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32206 | } | |
32207 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32208 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32209 | } | |
32210 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32211 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32212 | } | |
32213 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32214 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32215 | } | |
d1e20054 RD |
32216 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32217 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32218 | } | |
d14a1e28 RD |
32219 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32220 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32221 | } | |
32222 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32223 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32224 | } | |
32225 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32226 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32227 | } | |
32228 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32229 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32230 | } | |
32231 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32232 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32233 | } | |
32234 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32235 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32236 | } | |
32237 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32238 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32239 | } | |
32240 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32241 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32242 | } | |
32243 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32244 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32245 | } | |
32246 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32247 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32248 | } | |
32249 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32250 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32251 | } | |
32252 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32253 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32254 | } | |
32255 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32256 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32257 | } | |
32258 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32259 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32260 | } | |
32261 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32262 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32263 | } | |
32264 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32265 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32266 | } | |
32267 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32268 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32269 | } | |
32270 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32271 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32272 | } | |
32273 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32274 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32275 | } | |
32276 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32277 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32278 | } | |
32279 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32280 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32281 | } | |
32282 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32283 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32284 | } | |
32285 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32286 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32287 | } | |
32288 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32289 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32290 | } | |
32291 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32292 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32293 | } | |
32294 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32295 | return (void *)((wxControl *) ((wxButton *) x)); | |
32296 | } | |
32297 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32298 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32299 | } | |
32300 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32301 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32302 | } | |
32303 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32304 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32305 | } | |
32306 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32307 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32308 | } | |
32309 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32310 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32311 | } | |
32312 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32313 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32314 | } | |
32315 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32316 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32317 | } | |
32318 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32319 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32320 | } | |
32321 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32322 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32323 | } | |
32324 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32325 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32326 | } | |
32327 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32328 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32329 | } | |
32330 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32331 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32332 | } | |
32333 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32334 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32335 | } | |
32336 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32337 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32338 | } | |
32339 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32340 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32341 | } | |
32342 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32343 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32344 | } | |
32345 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32346 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32347 | } | |
32348 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32349 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32350 | } | |
32351 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32352 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32353 | } | |
d1e20054 RD |
32354 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32355 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32356 | } | |
d14a1e28 RD |
32357 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32358 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32359 | } | |
32360 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32361 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32362 | } | |
32363 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32364 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32365 | } | |
32366 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32367 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32368 | } | |
32369 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32370 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32371 | } | |
32372 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32373 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32374 | } | |
32375 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32376 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32377 | } | |
32378 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32379 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32380 | } | |
32381 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32382 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32383 | } | |
32384 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32385 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32386 | } | |
32387 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32388 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32389 | } | |
32390 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32391 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32392 | } | |
32393 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32394 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32395 | } | |
32396 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32397 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32398 | } | |
32399 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32400 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32401 | } | |
32402 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32403 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32404 | } | |
32405 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32406 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32407 | } | |
32408 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32409 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32410 | } | |
32411 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32412 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32413 | } | |
32414 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32415 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32416 | } | |
32417 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32418 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32419 | } | |
32420 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32421 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32422 | } | |
32423 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32424 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32425 | } | |
32426 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32427 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32428 | } | |
32429 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32430 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32431 | } | |
32432 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32433 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32434 | } | |
32435 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32436 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32437 | } | |
32438 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32439 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32440 | } | |
32441 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32442 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32443 | } | |
32444 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32445 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32446 | } | |
32447 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32448 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32449 | } | |
32450 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32451 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32452 | } | |
32453 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32454 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32455 | } | |
32456 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32457 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32458 | } | |
32459 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32460 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32461 | } | |
32462 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32463 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32464 | } | |
32465 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32466 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32467 | } | |
32468 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32469 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32470 | } | |
32471 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32473 | } | |
32474 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32476 | } | |
32477 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32479 | } | |
32480 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32482 | } | |
32483 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32484 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32485 | } | |
32486 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32487 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32488 | } | |
32489 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32490 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32491 | } | |
32492 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32493 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32494 | } | |
32495 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32496 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32497 | } | |
32498 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32499 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32500 | } | |
32501 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32502 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32503 | } | |
32504 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32505 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32506 | } | |
32507 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32508 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32509 | } | |
32510 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32511 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32512 | } | |
32513 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32515 | } | |
32516 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32517 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32518 | } | |
32519 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32520 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32521 | } | |
32522 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32523 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32524 | } | |
32525 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32526 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32527 | } | |
32528 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32529 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32530 | } | |
32531 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32532 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32533 | } | |
32534 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32535 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32536 | } | |
32537 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32538 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32539 | } | |
32540 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32541 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32542 | } | |
32543 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32544 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32545 | } | |
32546 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32547 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32548 | } | |
32549 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32550 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32551 | } | |
32552 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32553 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32554 | } | |
32555 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32556 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32557 | } | |
32558 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32560 | } | |
32561 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32563 | } | |
32564 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32566 | } | |
32567 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32568 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32569 | } | |
32570 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32571 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32572 | } | |
32573 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32574 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32575 | } | |
32576 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32577 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32578 | } | |
32579 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32580 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32581 | } | |
32582 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32583 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32584 | } | |
32585 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32586 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32587 | } | |
32588 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32589 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32590 | } | |
32591 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32592 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32593 | } | |
32594 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32595 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32596 | } | |
32597 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32599 | } | |
32600 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32601 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32602 | } | |
32603 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32605 | } | |
32606 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32607 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32608 | } | |
32609 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32611 | } | |
32612 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32613 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32614 | } | |
32615 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32616 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32617 | } | |
32618 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32620 | } | |
32621 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32622 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32623 | } | |
32624 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32625 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32626 | } | |
32627 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32628 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32629 | } | |
32630 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32631 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32632 | } | |
32633 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32634 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32635 | } | |
32636 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32637 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32638 | } | |
32639 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32641 | } | |
32642 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32643 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32644 | } | |
32645 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32646 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32647 | } | |
32648 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32649 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32650 | } | |
32651 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32652 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32653 | } | |
32654 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32655 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32656 | } | |
32657 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32658 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32659 | } | |
32660 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32661 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32662 | } | |
32663 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32664 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32665 | } | |
32666 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32667 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32668 | } | |
32669 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32670 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32671 | } | |
32672 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32674 | } | |
32675 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32676 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32677 | } | |
32678 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32679 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32680 | } | |
32681 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32682 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32683 | } | |
32684 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32685 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32686 | } | |
32687 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32688 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32689 | } | |
32690 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32691 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32692 | } | |
32693 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32695 | } | |
32696 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32698 | } | |
32699 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32701 | } | |
32702 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32703 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32704 | } | |
32705 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32706 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32707 | } | |
32708 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32709 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32710 | } | |
32711 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32712 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32713 | } | |
32714 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32715 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32716 | } | |
32717 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32718 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32719 | } | |
32720 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32722 | } | |
32723 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32725 | } | |
32726 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32728 | } | |
d14a1e28 RD |
32729 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
32730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32731 | } | |
1e0c8722 RD |
32732 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
32733 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32734 | } | |
d14a1e28 RD |
32735 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
32736 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32737 | } | |
32738 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32739 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32740 | } | |
1e0c8722 RD |
32741 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32742 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32743 | } | |
d14a1e28 RD |
32744 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
32745 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32746 | } | |
32747 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32748 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32749 | } | |
32750 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32752 | } | |
32753 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32755 | } | |
32756 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32757 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32758 | } | |
32759 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32760 | return (void *)((wxObject *) ((wxImage *) x)); | |
32761 | } | |
32762 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32763 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32764 | } | |
32765 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32766 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32767 | } | |
d1e20054 RD |
32768 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
32769 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32770 | } | |
e811c8ce RD |
32771 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
32772 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32773 | } | |
d14a1e28 RD |
32774 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
32775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32776 | } | |
32777 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32778 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32779 | } | |
32780 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32781 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32782 | } | |
32783 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32784 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32785 | } | |
32786 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32787 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32788 | } | |
32789 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32790 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32791 | } | |
32792 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32793 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32794 | } | |
32795 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32796 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32797 | } | |
32798 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32799 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32800 | } | |
32801 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32802 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32803 | } | |
32804 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32805 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32806 | } | |
32807 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32808 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32809 | } | |
32810 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32811 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32812 | } | |
32813 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32814 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32815 | } | |
32816 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32817 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32818 | } | |
32819 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32820 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32821 | } | |
32822 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32824 | } | |
32825 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32826 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32827 | } | |
32828 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32829 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32830 | } | |
32831 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32833 | } | |
32834 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32835 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32836 | } | |
32837 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32838 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32839 | } | |
32840 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32842 | } | |
32843 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32844 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32845 | } | |
32846 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32847 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32848 | } | |
32849 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32851 | } | |
32852 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32853 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32854 | } | |
32855 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32856 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32857 | } | |
32858 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32859 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32860 | } | |
32861 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32862 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32863 | } | |
32864 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32865 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32866 | } | |
32867 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32868 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32869 | } | |
32870 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32871 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32872 | } | |
32873 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32874 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32875 | } | |
32876 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32877 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32878 | } | |
32879 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32880 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32881 | } | |
32882 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32883 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32884 | } | |
32885 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32886 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32887 | } | |
32888 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32889 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32890 | } | |
32891 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32892 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
32893 | } | |
32894 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32895 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32896 | } | |
32897 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32898 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32899 | } | |
32900 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32901 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32902 | } | |
32903 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32904 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32905 | } | |
32906 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32907 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32908 | } | |
32909 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32910 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32911 | } | |
32912 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32913 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32914 | } | |
32915 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32916 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32917 | } | |
32918 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32919 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32920 | } | |
32921 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32922 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32923 | } | |
32924 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32925 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32926 | } | |
32927 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32928 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32929 | } | |
32930 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32931 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32932 | } | |
32933 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32934 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32935 | } | |
32936 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32937 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32938 | } | |
32939 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32940 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32941 | } | |
32942 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32943 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32944 | } | |
32945 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32946 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32947 | } | |
32948 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32949 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32950 | } | |
32951 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32952 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32953 | } | |
32954 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32955 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32956 | } | |
32957 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32958 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32959 | } | |
32960 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32961 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32962 | } | |
32963 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32964 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32965 | } | |
32966 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32967 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32968 | } | |
32969 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32970 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32971 | } | |
32972 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32973 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32974 | } | |
32975 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32976 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32977 | } | |
32978 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32979 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32980 | } | |
32981 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32982 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32983 | } | |
32984 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32985 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32986 | } | |
32987 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32988 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32989 | } | |
32990 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32991 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32992 | } | |
32993 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32994 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32995 | } | |
32996 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32997 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32998 | } | |
32999 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33000 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33001 | } | |
d1e20054 RD |
33002 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
33003 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33004 | } | |
d14a1e28 RD |
33005 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
33006 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33007 | } | |
33008 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33009 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33010 | } | |
33011 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33012 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33013 | } | |
33014 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33015 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33016 | } | |
33017 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33018 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33019 | } | |
33020 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33021 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33022 | } | |
33023 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33024 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33025 | } | |
33026 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33027 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33028 | } | |
15afbcd0 RD |
33029 | 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}}; |
33030 | 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}}; | |
33031 | 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}}; | |
33032 | 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}}; | |
33033 | 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}}; | |
33034 | 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}}; | |
33035 | 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}}; | |
33036 | 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}}; | |
33037 | 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}}; | |
33038 | 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 | 33039 | 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 | 33040 | 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 |
33041 | 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}}; |
33042 | 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}}; | |
33043 | 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}}; | |
33044 | 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}}; | |
33045 | 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}}; | |
33046 | 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}}; | |
33047 | 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}}; | |
33048 | 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}}; | |
33049 | 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}}; | |
33050 | 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}}; | |
33051 | 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}}; | |
33052 | 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}}; | |
33053 | 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}}; | |
33054 | 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}}; | |
33055 | 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}}; | |
33056 | 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}}; | |
33057 | 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 | 33058 | 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 |
33059 | 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}}; |
33060 | 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}}; | |
33061 | 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}}; | |
33062 | 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}}; | |
33063 | 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}}; | |
33064 | 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}}; | |
33065 | 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}}; | |
33066 | 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}}; | |
33067 | 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}}; | |
33068 | 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}}; | |
33069 | 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}}; | |
33070 | 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}}; | |
33071 | 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 | 33072 | 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 | 33073 | 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 |
33074 | 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}}; |
33075 | 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}}; | |
33076 | 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}}; | |
33077 | 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}}; | |
33078 | 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}}; | |
33079 | 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}}; | |
33080 | 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}}; | |
33081 | 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}}; | |
33082 | 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}}; | |
33083 | 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}}; | |
33084 | 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}}; | |
33085 | 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}}; | |
33086 | 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}}; | |
33087 | 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}}; | |
33088 | 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}}; | |
33089 | 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}}; | |
33090 | 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}}; | |
33091 | 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}}; | |
33092 | 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}}; | |
33093 | 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}}; | |
33094 | 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}}; | |
33095 | 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}}; | |
33096 | 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}}; | |
33097 | 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}}; | |
33098 | 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}}; | |
33099 | 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}}; | |
33100 | 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}}; | |
33101 | 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}}; | |
33102 | 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}}; | |
33103 | 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}}; | |
33104 | 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}}; | |
33105 | 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}}; | |
33106 | 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}}; | |
33107 | 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}}; | |
33108 | 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}}; | |
33109 | 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}}; | |
33110 | 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}}; | |
33111 | 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}}; | |
33112 | 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}}; | |
33113 | 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 |
33114 | |
33115 | static swig_type_info *swig_types_initial[] = { | |
33116 | _swigt__p_wxTextUrlEvent, | |
33117 | _swigt__p_wxBookCtrlEvent, | |
33118 | _swigt__p_wxSizer, | |
d14a1e28 RD |
33119 | _swigt__p_wxCheckBox, |
33120 | _swigt__p_wxPyTreeCtrl, | |
33121 | _swigt__p_wxEvent, | |
33122 | _swigt__p_wxGenericDirCtrl, | |
33123 | _swigt__p_bool, | |
33124 | _swigt__p_wxPyTreeItemData, | |
33125 | _swigt__p_wxItemContainer, | |
d14a1e28 | 33126 | _swigt__p_wxPyListCtrl, |
74a57fcd | 33127 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
33128 | _swigt__p_wxStaticLine, |
33129 | _swigt__p_wxControl, | |
33130 | _swigt__p_wxPyControl, | |
33131 | _swigt__p_wxGauge, | |
33132 | _swigt__p_wxToolBarBase, | |
33133 | _swigt__p_wxFont, | |
33134 | _swigt__p_wxToggleButton, | |
33135 | _swigt__p_wxRadioButton, | |
33136 | _swigt__p_wxChoice, | |
e811c8ce | 33137 | _swigt__p_wxMemoryDC, |
d14a1e28 | 33138 | _swigt__p_wxListItemAttr, |
58203fa6 | 33139 | _swigt__p_void, |
d14a1e28 RD |
33140 | _swigt__p_int, |
33141 | _swigt__p_wxSize, | |
e811c8ce | 33142 | _swigt__p_wxDC, |
d14a1e28 RD |
33143 | _swigt__p_wxListView, |
33144 | _swigt__p_wxIcon, | |
74a57fcd | 33145 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
33146 | _swigt__p_wxTextCtrl, |
33147 | _swigt__p_wxNotebook, | |
33148 | _swigt__p_wxNotifyEvent, | |
33149 | _swigt__p_wxArrayString, | |
33150 | _swigt__p_wxListbook, | |
33151 | _swigt__p_wxStaticBitmap, | |
33152 | _swigt__p_wxSlider, | |
33153 | _swigt__p_wxStaticBox, | |
33154 | _swigt__p_wxArrayInt, | |
33155 | _swigt__p_wxContextHelp, | |
33156 | _swigt__p_long, | |
33157 | _swigt__p_wxEvtHandler, | |
33158 | _swigt__p_wxListEvent, | |
d14a1e28 | 33159 | _swigt__p_wxCheckListBox, |
74a57fcd | 33160 | _swigt__p_wxListBox, |
d14a1e28 RD |
33161 | _swigt__p_wxBookCtrl, |
33162 | _swigt__p_wxSpinButton, | |
33163 | _swigt__p_wxButton, | |
33164 | _swigt__p_wxBitmapButton, | |
33165 | _swigt__p_wxRect, | |
33166 | _swigt__p_wxContextHelpButton, | |
33167 | _swigt__p_wxRadioBox, | |
33168 | _swigt__p_wxScrollBar, | |
994141e6 | 33169 | _swigt__p_char, |
d14a1e28 RD |
33170 | _swigt__p_wxTreeItemId, |
33171 | _swigt__p_wxComboBox, | |
33172 | _swigt__p_wxHelpEvent, | |
33173 | _swigt__p_wxListItem, | |
33174 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33175 | _swigt__p_wxSpinEvent, |
e811c8ce | 33176 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33177 | _swigt__p_wxSpinCtrl, |
33178 | _swigt__p_wxImageList, | |
33179 | _swigt__p_wxHelpProvider, | |
33180 | _swigt__p_wxTextAttr, | |
33181 | _swigt__p_wxSimpleHelpProvider, | |
33182 | _swigt__p_wxPoint, | |
33183 | _swigt__p_wxListbookEvent, | |
33184 | _swigt__p_wxNotebookEvent, | |
33185 | _swigt__p_wxObject, | |
e811c8ce | 33186 | _swigt__p_wxCursor, |
d14a1e28 RD |
33187 | _swigt__p_wxKeyEvent, |
33188 | _swigt__p_wxWindow, | |
33189 | _swigt__p_wxString, | |
33190 | _swigt__p_wxBitmap, | |
33191 | _swigt__p_wxTreeEvent, | |
33192 | _swigt__p_wxMouseEvent, | |
33193 | _swigt__p_wxCommandEvent, | |
33194 | _swigt__p_wxStaticText, | |
33195 | _swigt__p_wxControlWithItems, | |
33196 | _swigt__p_wxToolBarToolBase, | |
33197 | _swigt__p_wxColour, | |
33198 | _swigt__p_wxToolBar, | |
33199 | _swigt__p_wxBookCtrlSizer, | |
33200 | _swigt__p_wxValidator, | |
33201 | 0 | |
33202 | }; | |
33203 | ||
33204 | ||
33205 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33206 | ||
33207 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
33208 | {0}}; |
33209 | ||
33210 | #ifdef __cplusplus | |
33211 | } | |
33212 | #endif | |
33213 | ||
33214 | #ifdef __cplusplus | |
33215 | extern "C" | |
33216 | #endif | |
33217 | SWIGEXPORT(void) SWIG_init(void) { | |
33218 | static PyObject *SWIG_globals = 0; | |
33219 | static int typeinit = 0; | |
33220 | PyObject *m, *d; | |
33221 | int i; | |
33222 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33223 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33224 | d = PyModule_GetDict(m); | |
33225 | ||
33226 | if (!typeinit) { | |
33227 | for (i = 0; swig_types_initial[i]; i++) { | |
33228 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33229 | } | |
33230 | typeinit = 1; | |
33231 | } | |
33232 | SWIG_InstallConstants(d,swig_const_table); | |
33233 | ||
b2dc1044 RD |
33234 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33235 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
15afbcd0 RD |
33236 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
33237 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33238 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33239 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33240 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33241 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33242 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
15afbcd0 RD |
33243 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
33244 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33245 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33246 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33247 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33248 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33249 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33250 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33251 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
15afbcd0 RD |
33252 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
33253 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33254 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33255 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33256 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33257 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33258 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33259 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33260 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
15afbcd0 RD |
33261 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
33262 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33263 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33264 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33265 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33266 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33267 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33268 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33269 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33270 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33271 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33272 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33273 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33274 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33275 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33276 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33277 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33278 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33279 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33280 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33281 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33282 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33283 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33284 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33285 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33286 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33287 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33288 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33289 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33290 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33291 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33292 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33293 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33294 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33295 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33296 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33297 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33298 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33299 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33300 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33301 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33302 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33303 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33304 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33305 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33306 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33307 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33308 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
15afbcd0 RD |
33309 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
33310 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33311 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33312 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 33313 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33314 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33315 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33316 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33317 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33318 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33319 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
15afbcd0 RD |
33320 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
33321 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33322 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33323 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33324 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33325 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33326 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33327 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33328 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33329 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33330 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33331 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33332 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
33333 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33334 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33335 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33336 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33337 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33338 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33339 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33340 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
33341 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33342 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33343 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33344 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33345 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33346 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33347 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33348 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33349 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33350 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33351 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33352 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33353 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33354 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
15afbcd0 RD |
33355 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
33356 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33357 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33358 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33359 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33360 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33361 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33362 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33363 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33364 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33365 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33366 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33367 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33368 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33369 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33370 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33371 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33372 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33373 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33374 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33375 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33376 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33377 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33378 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33379 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33380 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33381 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33382 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33383 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33384 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33385 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33386 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33387 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33388 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33389 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33390 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33391 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33392 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33393 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33394 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33395 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33396 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33397 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33398 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33399 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33400 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33401 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33402 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33403 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33404 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33405 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33406 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33407 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33408 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33409 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33410 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33411 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33412 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33413 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33414 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33415 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33416 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33417 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33418 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33419 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33420 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33421 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33422 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33423 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33424 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33425 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33426 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33427 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33428 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33429 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33430 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33431 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33432 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33433 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33434 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33435 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33436 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33437 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33438 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33439 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33440 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33441 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33442 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33443 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33444 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33445 | ||
33446 | // Map renamed classes back to their common name for OOR | |
33447 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33448 | ||
b2dc1044 | 33449 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
15afbcd0 RD |
33450 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
33451 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33452 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33453 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33454 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33455 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33456 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33457 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33458 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33459 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33460 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33461 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33462 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33463 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33464 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33465 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33466 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33467 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33468 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33469 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33470 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33471 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33472 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33473 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33474 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33475 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33476 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33477 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33478 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33479 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33480 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33481 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33482 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33483 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33484 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33485 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33486 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33487 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33488 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33489 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33490 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33491 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33492 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33493 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33494 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33495 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33496 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33497 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33498 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33499 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33500 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33501 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33502 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33503 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 33504 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
33505 | |
33506 | // Map renamed classes back to their common name for OOR | |
33507 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33508 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33509 | ||
b2dc1044 | 33510 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
15afbcd0 RD |
33511 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
33512 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33513 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33514 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33515 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33516 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33517 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
33518 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33519 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
33520 | |
33521 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33522 | ||
d14a1e28 RD |
33523 | } |
33524 |