]>
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 | ||
d14a1e28 | 655 | |
33b885b9 | 656 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
657 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
658 | // Python aware sorting function for wxPyListCtrl | |
659 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
660 | int retval = 0; | |
661 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 662 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
663 | |
664 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
665 | PyObject* result = PyEval_CallObject(func, args); | |
666 | Py_DECREF(args); | |
667 | if (result) { | |
668 | retval = PyInt_AsLong(result); | |
669 | Py_DECREF(result); | |
670 | } | |
671 | ||
4f89f6a3 | 672 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
673 | return retval; |
674 | } | |
675 | ||
676 | // C++ Version of a Python aware class | |
677 | class wxPyListCtrl : public wxListCtrl { | |
678 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
679 | public: | |
680 | wxPyListCtrl() : wxListCtrl() {} | |
681 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
682 | const wxPoint& pos, | |
683 | const wxSize& size, | |
684 | long style, | |
685 | const wxValidator& validator, | |
686 | const wxString& name) : | |
687 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
688 | ||
689 | bool Create(wxWindow* parent, wxWindowID id, | |
690 | const wxPoint& pos, | |
691 | const wxSize& size, | |
692 | long style, | |
693 | const wxValidator& validator, | |
694 | const wxString& name) { | |
695 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
696 | } | |
697 | ||
698 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
699 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
700 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
701 | ||
702 | PYPRIVATE; | |
703 | }; | |
704 | ||
705 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
706 | ||
707 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
708 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
709 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
710 | ||
711 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
712 | wxListItem item; | |
713 | item.SetMask( wxLIST_MASK_STATE | | |
714 | wxLIST_MASK_TEXT | | |
715 | wxLIST_MASK_IMAGE | | |
716 | wxLIST_MASK_DATA | | |
717 | wxLIST_SET_ITEM | | |
718 | wxLIST_MASK_WIDTH | | |
719 | wxLIST_MASK_FORMAT | |
720 | ); | |
721 | if (self->GetColumn(col, item)) | |
722 | return new wxListItem(item); | |
723 | else | |
724 | return NULL; | |
725 | } | |
726 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
727 | wxListItem* info = new wxListItem; | |
728 | info->m_itemId = itemId; | |
729 | info->m_col = col; | |
730 | info->m_mask = 0xFFFF; | |
731 | self->GetItem(*info); | |
732 | return info; | |
733 | } | |
734 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
735 | wxPoint pos; | |
736 | self->GetItemPosition(item, pos); | |
737 | return pos; | |
738 | } | |
739 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
740 | wxRect rect; | |
741 | self->GetItemRect(item, rect, code); | |
742 | return rect; | |
743 | } | |
744 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
745 | if (!PyCallable_Check(func)) | |
e811c8ce | 746 | return False; |
d14a1e28 RD |
747 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
748 | } | |
749 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
750 | ||
751 | ||
752 | ||
753 | return (wxWindow*)self->m_mainWin; | |
754 | ||
755 | } | |
756 | ||
757 | #include <wx/treectrl.h> | |
758 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 759 | |
33b885b9 | 760 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
22faec7d RD |
761 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
762 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
763 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
764 | // C++ version of Python aware wxTreeCtrl | |
765 | class wxPyTreeCtrl : public wxTreeCtrl { | |
766 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
767 | public: | |
768 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
769 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
770 | const wxPoint& pos, | |
771 | const wxSize& size, | |
772 | long style, | |
773 | const wxValidator& validator, | |
774 | const wxString& name) : | |
775 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
776 | ||
777 | bool Create(wxWindow *parent, wxWindowID id, | |
778 | const wxPoint& pos, | |
779 | const wxSize& size, | |
780 | long style, | |
781 | const wxValidator& validator, | |
782 | const wxString& name) { | |
783 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
784 | } | |
785 | ||
786 | ||
787 | int OnCompareItems(const wxTreeItemId& item1, | |
788 | const wxTreeItemId& item2) { | |
789 | int rval = 0; | |
790 | bool found; | |
4f89f6a3 | 791 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 792 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
e811c8ce RD |
793 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
794 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
795 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
796 | Py_DECREF(o1); | |
797 | Py_DECREF(o2); | |
798 | } | |
4f89f6a3 | 799 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
800 | if (! found) |
801 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
802 | return rval; | |
803 | } | |
804 | PYPRIVATE; | |
805 | }; | |
806 | ||
807 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
808 | ||
809 | ||
994141e6 | 810 | |
15afbcd0 RD |
811 | #if UINT_MAX < LONG_MAX |
812 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
813 | #else | |
814 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
815 | #endif | |
816 | ||
817 | ||
818 | SWIGSTATICINLINE(unsigned long) | |
819 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
820 | unsigned long max_value) | |
821 | { | |
822 | if (!PyErr_Occurred()) { | |
823 | if (value > max_value) { | |
824 | PyObject *err = | |
825 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
826 | value, type, max_value); | |
827 | PyErr_SetObject(PyExc_OverflowError, err); | |
828 | Py_DECREF(err); | |
829 | } | |
830 | } | |
831 | return value; | |
832 | } | |
994141e6 RD |
833 | |
834 | ||
15afbcd0 RD |
835 | #if UINT_MAX != ULONG_MAX |
836 | SWIGSTATICINLINE(unsigned int) | |
837 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 838 | { |
15afbcd0 RD |
839 | return swig_numeric_cast(unsigned int, |
840 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
841 | "unsigned int", UINT_MAX)); | |
842 | } | |
843 | #else | |
844 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
845 | #endif | |
846 | ||
847 | ||
848 | SWIGSTATICINLINE(int) | |
849 | SWIG_CheckUnsignedInt(PyObject* obj) | |
850 | { | |
851 | SWIG_AsUnsignedInt(obj); | |
852 | if (PyErr_Occurred()) { | |
853 | PyErr_Clear(); | |
854 | return 0; | |
855 | } else { | |
856 | return 1; | |
857 | } | |
994141e6 RD |
858 | } |
859 | ||
d14a1e28 RD |
860 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
861 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
862 | if (data == NULL) { | |
863 | data = new wxPyTreeItemData(); | |
864 | data->SetId(item); // set the id | |
865 | self->SetItemData(item, data); | |
866 | } | |
867 | return data; | |
868 | } | |
869 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
870 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
871 | if (data == NULL) { | |
872 | data = new wxPyTreeItemData(); | |
873 | data->SetId(item); // set the id | |
874 | self->SetItemData(item, data); | |
875 | } | |
876 | return data->GetData(); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
879 | data->SetId(item); // set the id | |
880 | self->SetItemData(item, data); | |
881 | } | |
882 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
883 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
884 | if (data == NULL) { | |
885 | data = new wxPyTreeItemData(obj); | |
886 | data->SetId(item); // set the id | |
887 | self->SetItemData(item, data); | |
888 | } else | |
889 | data->SetData(obj); | |
890 | } | |
891 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 892 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
893 | PyObject* rval = PyList_New(0); |
894 | wxArrayTreeItemIds array; | |
895 | size_t num, x; | |
896 | num = self->GetSelections(array); | |
897 | for (x=0; x < num; x++) { | |
898 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 899 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 | 900 | PyList_Append(rval, item); |
1a10c483 | 901 | Py_DECREF(item); |
d14a1e28 | 902 | } |
4f89f6a3 | 903 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
904 | return rval; |
905 | } | |
906 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
907 | void* cookie = 0; |
908 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 909 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 910 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
911 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
912 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 913 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
914 | return tup; |
915 | } | |
58203fa6 RD |
916 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
917 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 918 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 919 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
920 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
921 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 922 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
923 | return tup; |
924 | } | |
925 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
926 | wxRect rect; | |
927 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 928 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 929 | wxRect* r = new wxRect(rect); |
e811c8ce | 930 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 931 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
932 | return val; |
933 | } | |
934 | else | |
935 | RETURN_NONE(); | |
936 | } | |
b2dc1044 | 937 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
938 | // C++ version of Python aware wxControl |
939 | class wxPyControl : public wxControl | |
940 | { | |
941 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
942 | public: | |
943 | wxPyControl() : wxControl() {} | |
944 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
945 | const wxPoint& pos = wxDefaultPosition, | |
946 | const wxSize& size = wxDefaultSize, | |
947 | long style = 0, | |
948 | const wxValidator& validator=wxDefaultValidator, | |
949 | const wxString& name = wxPyControlNameStr) | |
950 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
951 | ||
db3e571a | 952 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
953 | |
954 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
955 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
956 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
957 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
958 | ||
959 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
960 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
961 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
962 | ||
963 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
964 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
965 | ||
966 | DEC_PYCALLBACK__(InitDialog); | |
967 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
968 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
969 | DEC_PYCALLBACK_BOOL_(Validate); | |
970 | ||
971 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
972 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
973 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
974 | ||
975 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
976 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
977 | ||
db3e571a | 978 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 979 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 980 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 981 | |
d14a1e28 RD |
982 | PYPRIVATE; |
983 | }; | |
984 | ||
985 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
986 | ||
987 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
988 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
989 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
990 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
991 | ||
992 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
993 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
994 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
995 | ||
996 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
997 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
998 | ||
999 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1000 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1001 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1002 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1003 | ||
1004 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1005 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1006 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1007 | ||
1008 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1009 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1010 | ||
db3e571a | 1011 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1012 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1013 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1014 | |
1015 | ||
1016 | ||
1017 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1018 | |
1019 | #include <wx/generic/dragimgg.h> | |
1020 | ||
d14a1e28 RD |
1021 | #ifdef __cplusplus |
1022 | extern "C" { | |
1023 | #endif | |
b2dc1044 RD |
1024 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
1025 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1026 | return 1; | |
1027 | } | |
1028 | ||
1029 | ||
1030 | static PyObject *_wrap_ButtonNameStr_get() { | |
1031 | PyObject *pyobj; | |
1032 | ||
1033 | { | |
1034 | #if wxUSE_UNICODE | |
1035 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1036 | #else | |
1037 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1038 | #endif | |
1039 | } | |
1040 | return pyobj; | |
1041 | } | |
1042 | ||
1043 | ||
d14a1e28 RD |
1044 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1045 | PyObject *resultobj; | |
1046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1047 | int arg2 ; |
d14a1e28 RD |
1048 | wxString *arg3 = 0 ; |
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 | ||
994141e6 | 1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO: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; | |
1078 | arg2 = (int) SWIG_AsInt(obj1); | |
1079 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1080 | { |
1081 | arg3 = wxString_in_helper(obj2); | |
1082 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 1083 | temp3 = True; |
d14a1e28 RD |
1084 | } |
1085 | if (obj3) { | |
1086 | { | |
1087 | arg4 = &temp4; | |
1088 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1089 | } | |
1090 | } | |
1091 | if (obj4) { | |
1092 | { | |
1093 | arg5 = &temp5; | |
1094 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1095 | } | |
1096 | } | |
994141e6 | 1097 | if (obj5) { |
15afbcd0 RD |
1098 | arg6 = (long) SWIG_AsLong(obj5); |
1099 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1100 | } |
d14a1e28 | 1101 | if (obj6) { |
15afbcd0 RD |
1102 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1103 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1104 | SWIG_fail; | |
d14a1e28 | 1105 | if (arg7 == NULL) { |
15afbcd0 RD |
1106 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1107 | SWIG_fail; | |
d14a1e28 RD |
1108 | } |
1109 | } | |
1110 | if (obj7) { | |
1111 | { | |
1112 | arg8 = wxString_in_helper(obj7); | |
1113 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1114 | temp8 = True; |
d14a1e28 RD |
1115 | } |
1116 | } | |
1117 | { | |
1118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1119 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1120 | ||
1121 | wxPyEndAllowThreads(__tstate); | |
1122 | if (PyErr_Occurred()) SWIG_fail; | |
1123 | } | |
1124 | { | |
1125 | resultobj = wxPyMake_wxObject(result); | |
1126 | } | |
1127 | { | |
1128 | if (temp3) | |
1129 | delete arg3; | |
1130 | } | |
1131 | { | |
1132 | if (temp8) | |
1133 | delete arg8; | |
1134 | } | |
1135 | return resultobj; | |
1136 | fail: | |
1137 | { | |
1138 | if (temp3) | |
1139 | delete arg3; | |
1140 | } | |
1141 | { | |
1142 | if (temp8) | |
1143 | delete arg8; | |
1144 | } | |
1145 | return NULL; | |
1146 | } | |
1147 | ||
1148 | ||
1149 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject *resultobj; | |
1151 | wxButton *result; | |
1152 | char *kwnames[] = { | |
1153 | NULL | |
1154 | }; | |
1155 | ||
1156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1157 | { | |
1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1159 | result = (wxButton *)new wxButton(); | |
1160 | ||
1161 | wxPyEndAllowThreads(__tstate); | |
1162 | if (PyErr_Occurred()) SWIG_fail; | |
1163 | } | |
1164 | { | |
1165 | resultobj = wxPyMake_wxObject(result); | |
1166 | } | |
1167 | return resultobj; | |
1168 | fail: | |
1169 | return NULL; | |
1170 | } | |
1171 | ||
1172 | ||
1173 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1174 | PyObject *resultobj; | |
1175 | wxButton *arg1 = (wxButton *) 0 ; | |
1176 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1177 | int arg3 ; |
d14a1e28 RD |
1178 | wxString *arg4 = 0 ; |
1179 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1180 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1181 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1182 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1183 | long arg7 = (long) 0 ; | |
1184 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1185 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1186 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1187 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1188 | bool result; | |
e811c8ce | 1189 | bool temp4 = False ; |
d14a1e28 RD |
1190 | wxPoint temp5 ; |
1191 | wxSize temp6 ; | |
e811c8ce | 1192 | bool temp9 = False ; |
d14a1e28 RD |
1193 | PyObject * obj0 = 0 ; |
1194 | PyObject * obj1 = 0 ; | |
994141e6 | 1195 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1196 | PyObject * obj3 = 0 ; |
1197 | PyObject * obj4 = 0 ; | |
1198 | PyObject * obj5 = 0 ; | |
994141e6 | 1199 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1200 | PyObject * obj7 = 0 ; |
1201 | PyObject * obj8 = 0 ; | |
1202 | char *kwnames[] = { | |
1203 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1204 | }; | |
1205 | ||
994141e6 | 1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1211 | arg3 = (int) SWIG_AsInt(obj2); | |
1212 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1213 | { |
1214 | arg4 = wxString_in_helper(obj3); | |
1215 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1216 | temp4 = True; |
d14a1e28 RD |
1217 | } |
1218 | if (obj4) { | |
1219 | { | |
1220 | arg5 = &temp5; | |
1221 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1222 | } | |
1223 | } | |
1224 | if (obj5) { | |
1225 | { | |
1226 | arg6 = &temp6; | |
1227 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1228 | } | |
1229 | } | |
994141e6 | 1230 | if (obj6) { |
15afbcd0 RD |
1231 | arg7 = (long) SWIG_AsLong(obj6); |
1232 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1233 | } |
d14a1e28 | 1234 | if (obj7) { |
15afbcd0 RD |
1235 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1237 | SWIG_fail; | |
d14a1e28 | 1238 | if (arg8 == NULL) { |
15afbcd0 RD |
1239 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1240 | SWIG_fail; | |
d14a1e28 RD |
1241 | } |
1242 | } | |
1243 | if (obj8) { | |
1244 | { | |
1245 | arg9 = wxString_in_helper(obj8); | |
1246 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1247 | temp9 = True; |
d14a1e28 RD |
1248 | } |
1249 | } | |
1250 | { | |
1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1252 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1253 | ||
1254 | wxPyEndAllowThreads(__tstate); | |
1255 | if (PyErr_Occurred()) SWIG_fail; | |
1256 | } | |
4f89f6a3 RD |
1257 | { |
1258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1259 | } | |
d14a1e28 RD |
1260 | { |
1261 | if (temp4) | |
1262 | delete arg4; | |
1263 | } | |
1264 | { | |
1265 | if (temp9) | |
1266 | delete arg9; | |
1267 | } | |
1268 | return resultobj; | |
1269 | fail: | |
1270 | { | |
1271 | if (temp4) | |
1272 | delete arg4; | |
1273 | } | |
1274 | { | |
1275 | if (temp9) | |
1276 | delete arg9; | |
1277 | } | |
1278 | return NULL; | |
1279 | } | |
1280 | ||
1281 | ||
1282 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1283 | PyObject *resultobj; | |
1284 | wxButton *arg1 = (wxButton *) 0 ; | |
1285 | PyObject * obj0 = 0 ; | |
1286 | char *kwnames[] = { | |
1287 | (char *) "self", NULL | |
1288 | }; | |
1289 | ||
1290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1293 | { |
1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1295 | (arg1)->SetDefault(); | |
1296 | ||
1297 | wxPyEndAllowThreads(__tstate); | |
1298 | if (PyErr_Occurred()) SWIG_fail; | |
1299 | } | |
1300 | Py_INCREF(Py_None); resultobj = Py_None; | |
1301 | return resultobj; | |
1302 | fail: | |
1303 | return NULL; | |
1304 | } | |
1305 | ||
1306 | ||
1307 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1308 | PyObject *resultobj; | |
1309 | wxSize result; | |
1310 | char *kwnames[] = { | |
1311 | NULL | |
1312 | }; | |
1313 | ||
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1315 | { | |
1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1317 | result = wxButton::GetDefaultSize(); | |
1318 | ||
1319 | wxPyEndAllowThreads(__tstate); | |
1320 | if (PyErr_Occurred()) SWIG_fail; | |
1321 | } | |
1322 | { | |
1323 | wxSize * resultptr; | |
1324 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1325 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1326 | } |
1327 | return resultobj; | |
1328 | fail: | |
1329 | return NULL; | |
1330 | } | |
1331 | ||
1332 | ||
22bfe96c RD |
1333 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1334 | PyObject *resultobj; | |
1335 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1336 | wxVisualAttributes result; | |
1337 | PyObject * obj0 = 0 ; | |
1338 | char *kwnames[] = { | |
1339 | (char *) "variant", NULL | |
1340 | }; | |
1341 | ||
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1343 | if (obj0) { | |
1344 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1345 | if (PyErr_Occurred()) SWIG_fail; | |
1346 | } | |
1347 | { | |
1348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1349 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1350 | ||
1351 | wxPyEndAllowThreads(__tstate); | |
1352 | if (PyErr_Occurred()) SWIG_fail; | |
1353 | } | |
1354 | { | |
1355 | wxVisualAttributes * resultptr; | |
1356 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1358 | } | |
1359 | return resultobj; | |
1360 | fail: | |
1361 | return NULL; | |
1362 | } | |
1363 | ||
1364 | ||
d14a1e28 RD |
1365 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1366 | PyObject *obj; | |
1367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1368 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1369 | Py_INCREF(obj); | |
1370 | return Py_BuildValue((char *)""); | |
1371 | } | |
1372 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1373 | PyObject *resultobj; | |
1374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1375 | int arg2 ; |
d14a1e28 RD |
1376 | wxBitmap *arg3 = 0 ; |
1377 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1378 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1379 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1380 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1381 | long arg6 = (long) wxBU_AUTODRAW ; | |
1382 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1383 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1384 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1385 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1386 | wxBitmapButton *result; | |
1387 | wxPoint temp4 ; | |
1388 | wxSize temp5 ; | |
e811c8ce | 1389 | bool temp8 = False ; |
d14a1e28 | 1390 | PyObject * obj0 = 0 ; |
994141e6 | 1391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1392 | PyObject * obj2 = 0 ; |
1393 | PyObject * obj3 = 0 ; | |
1394 | PyObject * obj4 = 0 ; | |
994141e6 | 1395 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1396 | PyObject * obj6 = 0 ; |
1397 | PyObject * obj7 = 0 ; | |
1398 | char *kwnames[] = { | |
1399 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1400 | }; | |
1401 | ||
994141e6 | 1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1405 | arg2 = (int) SWIG_AsInt(obj1); | |
1406 | if (PyErr_Occurred()) SWIG_fail; | |
1407 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1408 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1409 | SWIG_fail; | |
d14a1e28 | 1410 | if (arg3 == NULL) { |
15afbcd0 RD |
1411 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1412 | SWIG_fail; | |
d14a1e28 RD |
1413 | } |
1414 | if (obj3) { | |
1415 | { | |
1416 | arg4 = &temp4; | |
1417 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1418 | } | |
1419 | } | |
1420 | if (obj4) { | |
1421 | { | |
1422 | arg5 = &temp5; | |
1423 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1424 | } | |
1425 | } | |
994141e6 | 1426 | if (obj5) { |
15afbcd0 RD |
1427 | arg6 = (long) SWIG_AsLong(obj5); |
1428 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1429 | } |
d14a1e28 | 1430 | if (obj6) { |
15afbcd0 RD |
1431 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1433 | SWIG_fail; | |
d14a1e28 | 1434 | if (arg7 == NULL) { |
15afbcd0 RD |
1435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1436 | SWIG_fail; | |
d14a1e28 RD |
1437 | } |
1438 | } | |
1439 | if (obj7) { | |
1440 | { | |
1441 | arg8 = wxString_in_helper(obj7); | |
1442 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1443 | temp8 = True; |
d14a1e28 RD |
1444 | } |
1445 | } | |
1446 | { | |
1447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1448 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1449 | ||
1450 | wxPyEndAllowThreads(__tstate); | |
1451 | if (PyErr_Occurred()) SWIG_fail; | |
1452 | } | |
1453 | { | |
1454 | resultobj = wxPyMake_wxObject(result); | |
1455 | } | |
1456 | { | |
1457 | if (temp8) | |
1458 | delete arg8; | |
1459 | } | |
1460 | return resultobj; | |
1461 | fail: | |
1462 | { | |
1463 | if (temp8) | |
1464 | delete arg8; | |
1465 | } | |
1466 | return NULL; | |
1467 | } | |
1468 | ||
1469 | ||
1470 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject *resultobj; | |
1472 | wxBitmapButton *result; | |
1473 | char *kwnames[] = { | |
1474 | NULL | |
1475 | }; | |
1476 | ||
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1478 | { | |
1479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1480 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1481 | ||
1482 | wxPyEndAllowThreads(__tstate); | |
1483 | if (PyErr_Occurred()) SWIG_fail; | |
1484 | } | |
1485 | { | |
1486 | resultobj = wxPyMake_wxObject(result); | |
1487 | } | |
1488 | return resultobj; | |
1489 | fail: | |
1490 | return NULL; | |
1491 | } | |
1492 | ||
1493 | ||
1494 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1495 | PyObject *resultobj; | |
1496 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1497 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1498 | int arg3 ; |
d14a1e28 RD |
1499 | wxBitmap *arg4 = 0 ; |
1500 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1501 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1502 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1503 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1504 | long arg7 = (long) wxBU_AUTODRAW ; | |
1505 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1506 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1507 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1508 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1509 | bool result; | |
1510 | wxPoint temp5 ; | |
1511 | wxSize temp6 ; | |
e811c8ce | 1512 | bool temp9 = False ; |
d14a1e28 RD |
1513 | PyObject * obj0 = 0 ; |
1514 | PyObject * obj1 = 0 ; | |
994141e6 | 1515 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1516 | PyObject * obj3 = 0 ; |
1517 | PyObject * obj4 = 0 ; | |
1518 | PyObject * obj5 = 0 ; | |
994141e6 | 1519 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1520 | PyObject * obj7 = 0 ; |
1521 | PyObject * obj8 = 0 ; | |
1522 | char *kwnames[] = { | |
1523 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1524 | }; | |
1525 | ||
994141e6 | 1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1531 | arg3 = (int) SWIG_AsInt(obj2); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1534 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1535 | SWIG_fail; | |
d14a1e28 | 1536 | if (arg4 == NULL) { |
15afbcd0 RD |
1537 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1538 | SWIG_fail; | |
d14a1e28 RD |
1539 | } |
1540 | if (obj4) { | |
1541 | { | |
1542 | arg5 = &temp5; | |
1543 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1544 | } | |
1545 | } | |
1546 | if (obj5) { | |
1547 | { | |
1548 | arg6 = &temp6; | |
1549 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1550 | } | |
1551 | } | |
994141e6 | 1552 | if (obj6) { |
15afbcd0 RD |
1553 | arg7 = (long) SWIG_AsLong(obj6); |
1554 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1555 | } |
d14a1e28 | 1556 | if (obj7) { |
15afbcd0 RD |
1557 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1559 | SWIG_fail; | |
d14a1e28 | 1560 | if (arg8 == NULL) { |
15afbcd0 RD |
1561 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1562 | SWIG_fail; | |
d14a1e28 RD |
1563 | } |
1564 | } | |
1565 | if (obj8) { | |
1566 | { | |
1567 | arg9 = wxString_in_helper(obj8); | |
1568 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1569 | temp9 = True; |
d14a1e28 RD |
1570 | } |
1571 | } | |
1572 | { | |
1573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1574 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1575 | ||
1576 | wxPyEndAllowThreads(__tstate); | |
1577 | if (PyErr_Occurred()) SWIG_fail; | |
1578 | } | |
4f89f6a3 RD |
1579 | { |
1580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1581 | } | |
d14a1e28 RD |
1582 | { |
1583 | if (temp9) | |
1584 | delete arg9; | |
1585 | } | |
1586 | return resultobj; | |
1587 | fail: | |
1588 | { | |
1589 | if (temp9) | |
1590 | delete arg9; | |
1591 | } | |
1592 | return NULL; | |
1593 | } | |
1594 | ||
1595 | ||
1596 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject *resultobj; | |
1598 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1599 | wxBitmap result; | |
1600 | PyObject * obj0 = 0 ; | |
1601 | char *kwnames[] = { | |
1602 | (char *) "self", NULL | |
1603 | }; | |
1604 | ||
1605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1608 | { |
1609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1610 | result = (arg1)->GetBitmapLabel(); | |
1611 | ||
1612 | wxPyEndAllowThreads(__tstate); | |
1613 | if (PyErr_Occurred()) SWIG_fail; | |
1614 | } | |
1615 | { | |
1616 | wxBitmap * resultptr; | |
1617 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1619 | } |
1620 | return resultobj; | |
1621 | fail: | |
1622 | return NULL; | |
1623 | } | |
1624 | ||
1625 | ||
1626 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject *resultobj; | |
1628 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1629 | wxBitmap result; | |
1630 | PyObject * obj0 = 0 ; | |
1631 | char *kwnames[] = { | |
1632 | (char *) "self", NULL | |
1633 | }; | |
1634 | ||
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1638 | { |
1639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1640 | result = (arg1)->GetBitmapDisabled(); | |
1641 | ||
1642 | wxPyEndAllowThreads(__tstate); | |
1643 | if (PyErr_Occurred()) SWIG_fail; | |
1644 | } | |
1645 | { | |
1646 | wxBitmap * resultptr; | |
1647 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1649 | } |
1650 | return resultobj; | |
1651 | fail: | |
1652 | return NULL; | |
1653 | } | |
1654 | ||
1655 | ||
1656 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1657 | PyObject *resultobj; | |
1658 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1659 | wxBitmap result; | |
1660 | PyObject * obj0 = 0 ; | |
1661 | char *kwnames[] = { | |
1662 | (char *) "self", NULL | |
1663 | }; | |
1664 | ||
1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1668 | { |
1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1670 | result = (arg1)->GetBitmapFocus(); | |
1671 | ||
1672 | wxPyEndAllowThreads(__tstate); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | } | |
1675 | { | |
1676 | wxBitmap * resultptr; | |
1677 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1678 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1679 | } |
1680 | return resultobj; | |
1681 | fail: | |
1682 | return NULL; | |
1683 | } | |
1684 | ||
1685 | ||
1686 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject *resultobj; | |
1688 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1689 | wxBitmap result; | |
1690 | PyObject * obj0 = 0 ; | |
1691 | char *kwnames[] = { | |
1692 | (char *) "self", NULL | |
1693 | }; | |
1694 | ||
1695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1698 | { |
1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1700 | result = (arg1)->GetBitmapSelected(); | |
1701 | ||
1702 | wxPyEndAllowThreads(__tstate); | |
1703 | if (PyErr_Occurred()) SWIG_fail; | |
1704 | } | |
1705 | { | |
1706 | wxBitmap * resultptr; | |
1707 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1709 | } |
1710 | return resultobj; | |
1711 | fail: | |
1712 | return NULL; | |
1713 | } | |
1714 | ||
1715 | ||
1716 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1717 | PyObject *resultobj; | |
1718 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1719 | wxBitmap *arg2 = 0 ; | |
1720 | PyObject * obj0 = 0 ; | |
1721 | PyObject * obj1 = 0 ; | |
1722 | char *kwnames[] = { | |
1723 | (char *) "self",(char *) "bitmap", NULL | |
1724 | }; | |
1725 | ||
1726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1731 | SWIG_fail; | |
d14a1e28 | 1732 | if (arg2 == NULL) { |
15afbcd0 RD |
1733 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1734 | SWIG_fail; | |
d14a1e28 RD |
1735 | } |
1736 | { | |
1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1738 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1739 | ||
1740 | wxPyEndAllowThreads(__tstate); | |
1741 | if (PyErr_Occurred()) SWIG_fail; | |
1742 | } | |
1743 | Py_INCREF(Py_None); resultobj = Py_None; | |
1744 | return resultobj; | |
1745 | fail: | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
1750 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject *resultobj; | |
1752 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1753 | wxBitmap *arg2 = 0 ; | |
1754 | PyObject * obj0 = 0 ; | |
1755 | PyObject * obj1 = 0 ; | |
1756 | char *kwnames[] = { | |
1757 | (char *) "self",(char *) "bitmap", NULL | |
1758 | }; | |
1759 | ||
1760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1765 | SWIG_fail; | |
d14a1e28 | 1766 | if (arg2 == NULL) { |
15afbcd0 RD |
1767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1768 | SWIG_fail; | |
d14a1e28 RD |
1769 | } |
1770 | { | |
1771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1772 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1773 | ||
1774 | wxPyEndAllowThreads(__tstate); | |
1775 | if (PyErr_Occurred()) SWIG_fail; | |
1776 | } | |
1777 | Py_INCREF(Py_None); resultobj = Py_None; | |
1778 | return resultobj; | |
1779 | fail: | |
1780 | return NULL; | |
1781 | } | |
1782 | ||
1783 | ||
1784 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject *resultobj; | |
1786 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1787 | wxBitmap *arg2 = 0 ; | |
1788 | PyObject * obj0 = 0 ; | |
1789 | PyObject * obj1 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "self",(char *) "bitmap", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1798 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1799 | SWIG_fail; | |
d14a1e28 | 1800 | if (arg2 == NULL) { |
15afbcd0 RD |
1801 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1802 | SWIG_fail; | |
d14a1e28 RD |
1803 | } |
1804 | { | |
1805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1806 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1807 | ||
1808 | wxPyEndAllowThreads(__tstate); | |
1809 | if (PyErr_Occurred()) SWIG_fail; | |
1810 | } | |
1811 | Py_INCREF(Py_None); resultobj = Py_None; | |
1812 | return resultobj; | |
1813 | fail: | |
1814 | return NULL; | |
1815 | } | |
1816 | ||
1817 | ||
1818 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1821 | wxBitmap *arg2 = 0 ; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | PyObject * obj1 = 0 ; | |
1824 | char *kwnames[] = { | |
1825 | (char *) "self",(char *) "bitmap", NULL | |
1826 | }; | |
1827 | ||
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1833 | SWIG_fail; | |
d14a1e28 | 1834 | if (arg2 == NULL) { |
15afbcd0 RD |
1835 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1836 | SWIG_fail; | |
d14a1e28 RD |
1837 | } |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | } | |
1845 | Py_INCREF(Py_None); resultobj = Py_None; | |
1846 | return resultobj; | |
1847 | fail: | |
1848 | return NULL; | |
1849 | } | |
1850 | ||
1851 | ||
1852 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject *resultobj; | |
1854 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1855 | int arg2 ; | |
1856 | int arg3 ; | |
1857 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1858 | PyObject * obj1 = 0 ; |
1859 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1860 | char *kwnames[] = { |
1861 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1862 | }; | |
1863 | ||
994141e6 | 1864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
1865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1867 | arg2 = (int) SWIG_AsInt(obj1); | |
1868 | if (PyErr_Occurred()) SWIG_fail; | |
1869 | arg3 = (int) SWIG_AsInt(obj2); | |
1870 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1871 | { |
1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1873 | (arg1)->SetMargins(arg2,arg3); | |
1874 | ||
1875 | wxPyEndAllowThreads(__tstate); | |
1876 | if (PyErr_Occurred()) SWIG_fail; | |
1877 | } | |
1878 | Py_INCREF(Py_None); resultobj = Py_None; | |
1879 | return resultobj; | |
1880 | fail: | |
1881 | return NULL; | |
1882 | } | |
1883 | ||
1884 | ||
1885 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject *resultobj; | |
1887 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1888 | int result; | |
1889 | PyObject * obj0 = 0 ; | |
1890 | char *kwnames[] = { | |
1891 | (char *) "self", NULL | |
1892 | }; | |
1893 | ||
1894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1897 | { |
1898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1899 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1900 | ||
1901 | wxPyEndAllowThreads(__tstate); | |
1902 | if (PyErr_Occurred()) SWIG_fail; | |
1903 | } | |
15afbcd0 | 1904 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1905 | return resultobj; |
1906 | fail: | |
1907 | return NULL; | |
1908 | } | |
1909 | ||
1910 | ||
1911 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1912 | PyObject *resultobj; | |
1913 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1914 | int result; | |
1915 | PyObject * obj0 = 0 ; | |
1916 | char *kwnames[] = { | |
1917 | (char *) "self", NULL | |
1918 | }; | |
1919 | ||
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1923 | { |
1924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1925 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1926 | ||
1927 | wxPyEndAllowThreads(__tstate); | |
1928 | if (PyErr_Occurred()) SWIG_fail; | |
1929 | } | |
15afbcd0 | 1930 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1931 | return resultobj; |
1932 | fail: | |
1933 | return NULL; | |
1934 | } | |
1935 | ||
1936 | ||
1937 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1938 | PyObject *obj; | |
1939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1940 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1941 | Py_INCREF(obj); | |
1942 | return Py_BuildValue((char *)""); | |
1943 | } | |
b2dc1044 RD |
1944 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1945 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1946 | return 1; | |
1947 | } | |
1948 | ||
1949 | ||
1950 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1951 | PyObject *pyobj; | |
1952 | ||
1953 | { | |
1954 | #if wxUSE_UNICODE | |
1955 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1956 | #else | |
1957 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1958 | #endif | |
1959 | } | |
1960 | return pyobj; | |
1961 | } | |
1962 | ||
1963 | ||
d14a1e28 RD |
1964 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1965 | PyObject *resultobj; | |
1966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1967 | int arg2 ; |
d14a1e28 RD |
1968 | wxString *arg3 = 0 ; |
1969 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1970 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1971 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1972 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1973 | long arg6 = (long) 0 ; | |
1974 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1975 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1976 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1977 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1978 | wxCheckBox *result; | |
e811c8ce | 1979 | bool temp3 = False ; |
d14a1e28 RD |
1980 | wxPoint temp4 ; |
1981 | wxSize temp5 ; | |
e811c8ce | 1982 | bool temp8 = False ; |
d14a1e28 | 1983 | PyObject * obj0 = 0 ; |
994141e6 | 1984 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1985 | PyObject * obj2 = 0 ; |
1986 | PyObject * obj3 = 0 ; | |
1987 | PyObject * obj4 = 0 ; | |
994141e6 | 1988 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1989 | PyObject * obj6 = 0 ; |
1990 | PyObject * obj7 = 0 ; | |
1991 | char *kwnames[] = { | |
1992 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1993 | }; | |
1994 | ||
994141e6 | 1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1998 | arg2 = (int) SWIG_AsInt(obj1); | |
1999 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2000 | { |
2001 | arg3 = wxString_in_helper(obj2); | |
2002 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2003 | temp3 = True; |
d14a1e28 RD |
2004 | } |
2005 | if (obj3) { | |
2006 | { | |
2007 | arg4 = &temp4; | |
2008 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2009 | } | |
2010 | } | |
2011 | if (obj4) { | |
2012 | { | |
2013 | arg5 = &temp5; | |
2014 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2015 | } | |
2016 | } | |
994141e6 | 2017 | if (obj5) { |
15afbcd0 RD |
2018 | arg6 = (long) SWIG_AsLong(obj5); |
2019 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2020 | } |
d14a1e28 | 2021 | if (obj6) { |
15afbcd0 RD |
2022 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2024 | SWIG_fail; | |
d14a1e28 | 2025 | if (arg7 == NULL) { |
15afbcd0 RD |
2026 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2027 | SWIG_fail; | |
d14a1e28 RD |
2028 | } |
2029 | } | |
2030 | if (obj7) { | |
2031 | { | |
2032 | arg8 = wxString_in_helper(obj7); | |
2033 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2034 | temp8 = True; |
d14a1e28 RD |
2035 | } |
2036 | } | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
15afbcd0 | 2044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2045 | { |
2046 | if (temp3) | |
2047 | delete arg3; | |
2048 | } | |
2049 | { | |
2050 | if (temp8) | |
2051 | delete arg8; | |
2052 | } | |
2053 | return resultobj; | |
2054 | fail: | |
2055 | { | |
2056 | if (temp3) | |
2057 | delete arg3; | |
2058 | } | |
2059 | { | |
2060 | if (temp8) | |
2061 | delete arg8; | |
2062 | } | |
2063 | return NULL; | |
2064 | } | |
2065 | ||
2066 | ||
2067 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2068 | PyObject *resultobj; | |
2069 | wxCheckBox *result; | |
2070 | char *kwnames[] = { | |
2071 | NULL | |
2072 | }; | |
2073 | ||
2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2075 | { | |
2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2077 | result = (wxCheckBox *)new wxCheckBox(); | |
2078 | ||
2079 | wxPyEndAllowThreads(__tstate); | |
2080 | if (PyErr_Occurred()) SWIG_fail; | |
2081 | } | |
15afbcd0 | 2082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2083 | return resultobj; |
2084 | fail: | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
2089 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2090 | PyObject *resultobj; | |
2091 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2093 | int arg3 ; |
d14a1e28 RD |
2094 | wxString *arg4 = 0 ; |
2095 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2096 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2097 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2098 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2099 | long arg7 = (long) 0 ; | |
2100 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2101 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2102 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2103 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2104 | bool result; | |
e811c8ce | 2105 | bool temp4 = False ; |
d14a1e28 RD |
2106 | wxPoint temp5 ; |
2107 | wxSize temp6 ; | |
e811c8ce | 2108 | bool temp9 = False ; |
d14a1e28 RD |
2109 | PyObject * obj0 = 0 ; |
2110 | PyObject * obj1 = 0 ; | |
994141e6 | 2111 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2112 | PyObject * obj3 = 0 ; |
2113 | PyObject * obj4 = 0 ; | |
2114 | PyObject * obj5 = 0 ; | |
994141e6 | 2115 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2116 | PyObject * obj7 = 0 ; |
2117 | PyObject * obj8 = 0 ; | |
2118 | char *kwnames[] = { | |
2119 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2120 | }; | |
2121 | ||
994141e6 | 2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2125 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2127 | arg3 = (int) SWIG_AsInt(obj2); | |
2128 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2129 | { |
2130 | arg4 = wxString_in_helper(obj3); | |
2131 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2132 | temp4 = True; |
d14a1e28 RD |
2133 | } |
2134 | if (obj4) { | |
2135 | { | |
2136 | arg5 = &temp5; | |
2137 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2138 | } | |
2139 | } | |
2140 | if (obj5) { | |
2141 | { | |
2142 | arg6 = &temp6; | |
2143 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2144 | } | |
2145 | } | |
994141e6 | 2146 | if (obj6) { |
15afbcd0 RD |
2147 | arg7 = (long) SWIG_AsLong(obj6); |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2149 | } |
d14a1e28 | 2150 | if (obj7) { |
15afbcd0 RD |
2151 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2153 | SWIG_fail; | |
d14a1e28 | 2154 | if (arg8 == NULL) { |
15afbcd0 RD |
2155 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2156 | SWIG_fail; | |
d14a1e28 RD |
2157 | } |
2158 | } | |
2159 | if (obj8) { | |
2160 | { | |
2161 | arg9 = wxString_in_helper(obj8); | |
2162 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2163 | temp9 = True; |
d14a1e28 RD |
2164 | } |
2165 | } | |
2166 | { | |
2167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2168 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2169 | ||
2170 | wxPyEndAllowThreads(__tstate); | |
2171 | if (PyErr_Occurred()) SWIG_fail; | |
2172 | } | |
4f89f6a3 RD |
2173 | { |
2174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2175 | } | |
d14a1e28 RD |
2176 | { |
2177 | if (temp4) | |
2178 | delete arg4; | |
2179 | } | |
2180 | { | |
2181 | if (temp9) | |
2182 | delete arg9; | |
2183 | } | |
2184 | return resultobj; | |
2185 | fail: | |
2186 | { | |
2187 | if (temp4) | |
2188 | delete arg4; | |
2189 | } | |
2190 | { | |
2191 | if (temp9) | |
2192 | delete arg9; | |
2193 | } | |
2194 | return NULL; | |
2195 | } | |
2196 | ||
2197 | ||
2198 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject *resultobj; | |
2200 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2201 | bool result; | |
2202 | PyObject * obj0 = 0 ; | |
2203 | char *kwnames[] = { | |
2204 | (char *) "self", NULL | |
2205 | }; | |
2206 | ||
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2210 | { |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | result = (bool)(arg1)->GetValue(); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
4f89f6a3 RD |
2217 | { |
2218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2219 | } | |
d14a1e28 RD |
2220 | return resultobj; |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject *resultobj; | |
2228 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2229 | bool result; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | char *kwnames[] = { | |
2232 | (char *) "self", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2238 | { |
2239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2240 | result = (bool)(arg1)->IsChecked(); | |
2241 | ||
2242 | wxPyEndAllowThreads(__tstate); | |
2243 | if (PyErr_Occurred()) SWIG_fail; | |
2244 | } | |
4f89f6a3 RD |
2245 | { |
2246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2247 | } | |
d14a1e28 RD |
2248 | return resultobj; |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject *resultobj; | |
2256 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2257 | bool arg2 ; | |
2258 | PyObject * obj0 = 0 ; | |
2259 | PyObject * obj1 = 0 ; | |
2260 | char *kwnames[] = { | |
2261 | (char *) "self",(char *) "state", NULL | |
2262 | }; | |
2263 | ||
2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2267 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2268 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2269 | { |
2270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2271 | (arg1)->SetValue(arg2); | |
2272 | ||
2273 | wxPyEndAllowThreads(__tstate); | |
2274 | if (PyErr_Occurred()) SWIG_fail; | |
2275 | } | |
2276 | Py_INCREF(Py_None); resultobj = Py_None; | |
2277 | return resultobj; | |
2278 | fail: | |
2279 | return NULL; | |
2280 | } | |
2281 | ||
2282 | ||
2283 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2284 | PyObject *resultobj; | |
2285 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2286 | int result; | |
2287 | PyObject * obj0 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2295 | { |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | } | |
15afbcd0 | 2302 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2303 | return resultobj; |
2304 | fail: | |
2305 | return NULL; | |
2306 | } | |
2307 | ||
2308 | ||
2309 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject *resultobj; | |
2311 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2312 | int arg2 ; | |
2313 | PyObject * obj0 = 0 ; | |
994141e6 | 2314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2315 | char *kwnames[] = { |
2316 | (char *) "self",(char *) "state", NULL | |
2317 | }; | |
2318 | ||
994141e6 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2322 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2324 | { |
2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2326 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2327 | ||
2328 | wxPyEndAllowThreads(__tstate); | |
2329 | if (PyErr_Occurred()) SWIG_fail; | |
2330 | } | |
2331 | Py_INCREF(Py_None); resultobj = Py_None; | |
2332 | return resultobj; | |
2333 | fail: | |
2334 | return NULL; | |
2335 | } | |
2336 | ||
2337 | ||
2338 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2339 | PyObject *resultobj; | |
2340 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2341 | bool result; | |
2342 | PyObject * obj0 = 0 ; | |
2343 | char *kwnames[] = { | |
2344 | (char *) "self", NULL | |
2345 | }; | |
2346 | ||
2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2350 | { |
2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2352 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2353 | ||
2354 | wxPyEndAllowThreads(__tstate); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | } | |
4f89f6a3 RD |
2357 | { |
2358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2359 | } | |
d14a1e28 RD |
2360 | return resultobj; |
2361 | fail: | |
2362 | return NULL; | |
2363 | } | |
2364 | ||
2365 | ||
2366 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2367 | PyObject *resultobj; | |
2368 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2369 | bool result; | |
2370 | PyObject * obj0 = 0 ; | |
2371 | char *kwnames[] = { | |
2372 | (char *) "self", NULL | |
2373 | }; | |
2374 | ||
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2378 | { |
2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2380 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2381 | ||
2382 | wxPyEndAllowThreads(__tstate); | |
2383 | if (PyErr_Occurred()) SWIG_fail; | |
2384 | } | |
4f89f6a3 RD |
2385 | { |
2386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2387 | } | |
d14a1e28 RD |
2388 | return resultobj; |
2389 | fail: | |
2390 | return NULL; | |
2391 | } | |
2392 | ||
2393 | ||
22bfe96c RD |
2394 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2395 | PyObject *resultobj; | |
2396 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2397 | wxVisualAttributes result; | |
2398 | PyObject * obj0 = 0 ; | |
2399 | char *kwnames[] = { | |
2400 | (char *) "variant", NULL | |
2401 | }; | |
2402 | ||
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2404 | if (obj0) { | |
2405 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2406 | if (PyErr_Occurred()) SWIG_fail; | |
2407 | } | |
2408 | { | |
2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2410 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2411 | ||
2412 | wxPyEndAllowThreads(__tstate); | |
2413 | if (PyErr_Occurred()) SWIG_fail; | |
2414 | } | |
2415 | { | |
2416 | wxVisualAttributes * resultptr; | |
2417 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2419 | } | |
2420 | return resultobj; | |
2421 | fail: | |
2422 | return NULL; | |
2423 | } | |
2424 | ||
2425 | ||
d14a1e28 RD |
2426 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2427 | PyObject *obj; | |
2428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2429 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2430 | Py_INCREF(obj); | |
2431 | return Py_BuildValue((char *)""); | |
2432 | } | |
b2dc1044 RD |
2433 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2434 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2435 | return 1; | |
2436 | } | |
2437 | ||
2438 | ||
2439 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2440 | PyObject *pyobj; | |
2441 | ||
2442 | { | |
2443 | #if wxUSE_UNICODE | |
2444 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2445 | #else | |
2446 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2447 | #endif | |
2448 | } | |
2449 | return pyobj; | |
2450 | } | |
2451 | ||
2452 | ||
d14a1e28 RD |
2453 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2454 | PyObject *resultobj; | |
2455 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2456 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2457 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2458 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2459 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2460 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2461 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2462 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2463 | long arg6 = (long) 0 ; | |
2464 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2465 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2466 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2467 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2468 | wxChoice *result; |
2469 | wxPoint temp3 ; | |
2470 | wxSize temp4 ; | |
3adfb63b | 2471 | bool temp5 = False ; |
e811c8ce | 2472 | bool temp8 = False ; |
d14a1e28 | 2473 | PyObject * obj0 = 0 ; |
994141e6 | 2474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2475 | PyObject * obj2 = 0 ; |
2476 | PyObject * obj3 = 0 ; | |
2477 | PyObject * obj4 = 0 ; | |
994141e6 | 2478 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2479 | PyObject * obj6 = 0 ; |
2480 | PyObject * obj7 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2483 | }; | |
2484 | ||
a95a7133 | 2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2488 | if (obj1) { |
2489 | arg2 = (int) SWIG_AsInt(obj1); | |
2490 | if (PyErr_Occurred()) SWIG_fail; | |
2491 | } | |
d14a1e28 RD |
2492 | if (obj2) { |
2493 | { | |
2494 | arg3 = &temp3; | |
2495 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2496 | } | |
2497 | } | |
2498 | if (obj3) { | |
2499 | { | |
2500 | arg4 = &temp4; | |
2501 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2502 | } | |
2503 | } | |
2504 | if (obj4) { | |
2505 | { | |
4d5c3d91 RD |
2506 | if (! PySequence_Check(obj4)) { |
2507 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2508 | SWIG_fail; | |
2509 | } | |
2510 | arg5 = new wxArrayString; | |
3adfb63b | 2511 | temp5 = True; |
4d5c3d91 RD |
2512 | int i, len=PySequence_Length(obj4); |
2513 | for (i=0; i<len; i++) { | |
2514 | PyObject* item = PySequence_GetItem(obj4, i); | |
2515 | #if wxUSE_UNICODE | |
2516 | PyObject* str = PyObject_Unicode(item); | |
2517 | #else | |
2518 | PyObject* str = PyObject_Str(item); | |
2519 | #endif | |
74a57fcd | 2520 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2521 | arg5->Add(Py2wxString(str)); |
2522 | Py_DECREF(item); | |
2523 | Py_DECREF(str); | |
2524 | } | |
d14a1e28 RD |
2525 | } |
2526 | } | |
994141e6 | 2527 | if (obj5) { |
15afbcd0 RD |
2528 | arg6 = (long) SWIG_AsLong(obj5); |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2530 | } |
d14a1e28 | 2531 | if (obj6) { |
15afbcd0 RD |
2532 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2534 | SWIG_fail; | |
4d5c3d91 | 2535 | if (arg7 == NULL) { |
15afbcd0 RD |
2536 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2537 | SWIG_fail; | |
d14a1e28 RD |
2538 | } |
2539 | } | |
2540 | if (obj7) { | |
2541 | { | |
4d5c3d91 RD |
2542 | arg8 = wxString_in_helper(obj7); |
2543 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2544 | temp8 = True; |
d14a1e28 RD |
2545 | } |
2546 | } | |
2547 | { | |
2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2549 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2550 | |
2551 | wxPyEndAllowThreads(__tstate); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | } | |
15afbcd0 | 2554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2555 | { |
3adfb63b | 2556 | if (temp5) delete arg5; |
d14a1e28 RD |
2557 | } |
2558 | { | |
2559 | if (temp8) | |
4d5c3d91 | 2560 | delete arg8; |
d14a1e28 RD |
2561 | } |
2562 | return resultobj; | |
2563 | fail: | |
2564 | { | |
3adfb63b | 2565 | if (temp5) delete arg5; |
d14a1e28 RD |
2566 | } |
2567 | { | |
2568 | if (temp8) | |
4d5c3d91 | 2569 | delete arg8; |
d14a1e28 RD |
2570 | } |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
2575 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2576 | PyObject *resultobj; | |
2577 | wxChoice *result; | |
2578 | char *kwnames[] = { | |
2579 | NULL | |
2580 | }; | |
2581 | ||
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2583 | { | |
2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2585 | result = (wxChoice *)new wxChoice(); | |
2586 | ||
2587 | wxPyEndAllowThreads(__tstate); | |
2588 | if (PyErr_Occurred()) SWIG_fail; | |
2589 | } | |
15afbcd0 | 2590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2591 | return resultobj; |
2592 | fail: | |
2593 | return NULL; | |
2594 | } | |
2595 | ||
2596 | ||
2597 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2598 | PyObject *resultobj; | |
2599 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2601 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2602 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2603 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2604 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2605 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2606 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2607 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2608 | long arg7 = (long) 0 ; | |
2609 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2610 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2611 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2612 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2613 | bool result; |
2614 | wxPoint temp4 ; | |
2615 | wxSize temp5 ; | |
3adfb63b | 2616 | bool temp6 = False ; |
e811c8ce | 2617 | bool temp9 = False ; |
d14a1e28 RD |
2618 | PyObject * obj0 = 0 ; |
2619 | PyObject * obj1 = 0 ; | |
994141e6 | 2620 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2621 | PyObject * obj3 = 0 ; |
2622 | PyObject * obj4 = 0 ; | |
2623 | PyObject * obj5 = 0 ; | |
994141e6 | 2624 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2625 | PyObject * obj7 = 0 ; |
2626 | PyObject * obj8 = 0 ; | |
2627 | char *kwnames[] = { | |
2628 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2629 | }; | |
2630 | ||
a95a7133 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2636 | if (obj2) { |
2637 | arg3 = (int) SWIG_AsInt(obj2); | |
2638 | if (PyErr_Occurred()) SWIG_fail; | |
2639 | } | |
d14a1e28 RD |
2640 | if (obj3) { |
2641 | { | |
2642 | arg4 = &temp4; | |
2643 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2644 | } | |
2645 | } | |
2646 | if (obj4) { | |
2647 | { | |
2648 | arg5 = &temp5; | |
2649 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2650 | } | |
2651 | } | |
2652 | if (obj5) { | |
2653 | { | |
4d5c3d91 RD |
2654 | if (! PySequence_Check(obj5)) { |
2655 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2656 | SWIG_fail; | |
2657 | } | |
2658 | arg6 = new wxArrayString; | |
3adfb63b | 2659 | temp6 = True; |
4d5c3d91 RD |
2660 | int i, len=PySequence_Length(obj5); |
2661 | for (i=0; i<len; i++) { | |
2662 | PyObject* item = PySequence_GetItem(obj5, i); | |
2663 | #if wxUSE_UNICODE | |
2664 | PyObject* str = PyObject_Unicode(item); | |
2665 | #else | |
2666 | PyObject* str = PyObject_Str(item); | |
2667 | #endif | |
74a57fcd | 2668 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2669 | arg6->Add(Py2wxString(str)); |
2670 | Py_DECREF(item); | |
2671 | Py_DECREF(str); | |
2672 | } | |
d14a1e28 RD |
2673 | } |
2674 | } | |
994141e6 | 2675 | if (obj6) { |
15afbcd0 RD |
2676 | arg7 = (long) SWIG_AsLong(obj6); |
2677 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2678 | } |
d14a1e28 | 2679 | if (obj7) { |
15afbcd0 RD |
2680 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2681 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2682 | SWIG_fail; | |
4d5c3d91 | 2683 | if (arg8 == NULL) { |
15afbcd0 RD |
2684 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2685 | SWIG_fail; | |
d14a1e28 RD |
2686 | } |
2687 | } | |
2688 | if (obj8) { | |
2689 | { | |
4d5c3d91 RD |
2690 | arg9 = wxString_in_helper(obj8); |
2691 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2692 | temp9 = True; |
d14a1e28 RD |
2693 | } |
2694 | } | |
2695 | { | |
2696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2697 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2698 | |
2699 | wxPyEndAllowThreads(__tstate); | |
2700 | if (PyErr_Occurred()) SWIG_fail; | |
2701 | } | |
4f89f6a3 RD |
2702 | { |
2703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2704 | } | |
d14a1e28 | 2705 | { |
3adfb63b | 2706 | if (temp6) delete arg6; |
d14a1e28 RD |
2707 | } |
2708 | { | |
2709 | if (temp9) | |
4d5c3d91 | 2710 | delete arg9; |
d14a1e28 RD |
2711 | } |
2712 | return resultobj; | |
2713 | fail: | |
2714 | { | |
3adfb63b | 2715 | if (temp6) delete arg6; |
d14a1e28 RD |
2716 | } |
2717 | { | |
2718 | if (temp9) | |
4d5c3d91 | 2719 | delete arg9; |
d14a1e28 RD |
2720 | } |
2721 | return NULL; | |
2722 | } | |
2723 | ||
2724 | ||
d14a1e28 RD |
2725 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2726 | PyObject *resultobj; | |
2727 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2728 | int arg2 ; | |
2729 | PyObject * obj0 = 0 ; | |
994141e6 | 2730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2731 | char *kwnames[] = { |
2732 | (char *) "self",(char *) "n", NULL | |
2733 | }; | |
2734 | ||
994141e6 | 2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2738 | arg2 = (int const) SWIG_AsInt(obj1); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2740 | { |
2741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2742 | (arg1)->SetSelection(arg2); | |
2743 | ||
2744 | wxPyEndAllowThreads(__tstate); | |
2745 | if (PyErr_Occurred()) SWIG_fail; | |
2746 | } | |
2747 | Py_INCREF(Py_None); resultobj = Py_None; | |
2748 | return resultobj; | |
2749 | fail: | |
2750 | return NULL; | |
2751 | } | |
2752 | ||
2753 | ||
2754 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2755 | PyObject *resultobj; | |
2756 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2757 | wxString *arg2 = 0 ; | |
121b9a67 | 2758 | bool result; |
e811c8ce | 2759 | bool temp2 = False ; |
d14a1e28 RD |
2760 | PyObject * obj0 = 0 ; |
2761 | PyObject * obj1 = 0 ; | |
2762 | char *kwnames[] = { | |
2763 | (char *) "self",(char *) "string", NULL | |
2764 | }; | |
2765 | ||
2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2769 | { |
2770 | arg2 = wxString_in_helper(obj1); | |
2771 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2772 | temp2 = True; |
d14a1e28 RD |
2773 | } |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2776 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2777 | |
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
121b9a67 RD |
2781 | { |
2782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2783 | } | |
d14a1e28 RD |
2784 | { |
2785 | if (temp2) | |
2786 | delete arg2; | |
2787 | } | |
2788 | return resultobj; | |
2789 | fail: | |
2790 | { | |
2791 | if (temp2) | |
2792 | delete arg2; | |
2793 | } | |
2794 | return NULL; | |
2795 | } | |
2796 | ||
2797 | ||
2798 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject *resultobj; | |
2800 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2801 | int arg2 ; | |
2802 | wxString *arg3 = 0 ; | |
e811c8ce | 2803 | bool temp3 = False ; |
d14a1e28 | 2804 | PyObject * obj0 = 0 ; |
994141e6 | 2805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2806 | PyObject * obj2 = 0 ; |
2807 | char *kwnames[] = { | |
fcafa8a9 | 2808 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2809 | }; |
2810 | ||
994141e6 | 2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2814 | arg2 = (int) SWIG_AsInt(obj1); | |
2815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2816 | { |
2817 | arg3 = wxString_in_helper(obj2); | |
2818 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2819 | temp3 = True; |
d14a1e28 RD |
2820 | } |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2823 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2824 | ||
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
2828 | Py_INCREF(Py_None); resultobj = Py_None; | |
2829 | { | |
2830 | if (temp3) | |
2831 | delete arg3; | |
2832 | } | |
2833 | return resultobj; | |
2834 | fail: | |
2835 | { | |
2836 | if (temp3) | |
2837 | delete arg3; | |
2838 | } | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
22bfe96c RD |
2843 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2844 | PyObject *resultobj; | |
2845 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2846 | wxVisualAttributes result; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "variant", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2853 | if (obj0) { | |
2854 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2855 | if (PyErr_Occurred()) SWIG_fail; | |
2856 | } | |
2857 | { | |
2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2859 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2860 | ||
2861 | wxPyEndAllowThreads(__tstate); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
2863 | } | |
2864 | { | |
2865 | wxVisualAttributes * resultptr; | |
2866 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2868 | } | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
d14a1e28 RD |
2875 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2876 | PyObject *obj; | |
2877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2878 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2879 | Py_INCREF(obj); | |
2880 | return Py_BuildValue((char *)""); | |
2881 | } | |
b2dc1044 RD |
2882 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2883 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2884 | return 1; | |
2885 | } | |
2886 | ||
2887 | ||
2888 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2889 | PyObject *pyobj; | |
2890 | ||
2891 | { | |
2892 | #if wxUSE_UNICODE | |
2893 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2894 | #else | |
2895 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2896 | #endif | |
2897 | } | |
2898 | return pyobj; | |
2899 | } | |
2900 | ||
2901 | ||
d14a1e28 RD |
2902 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2903 | PyObject *resultobj; | |
2904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2905 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2906 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2907 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2908 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2909 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2910 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2911 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2912 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2913 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2914 | long arg7 = (long) 0 ; | |
2915 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2916 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2917 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2918 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2919 | wxComboBox *result; |
e811c8ce | 2920 | bool temp3 = False ; |
d14a1e28 RD |
2921 | wxPoint temp4 ; |
2922 | wxSize temp5 ; | |
3adfb63b | 2923 | bool temp6 = False ; |
e811c8ce | 2924 | bool temp9 = False ; |
d14a1e28 | 2925 | PyObject * obj0 = 0 ; |
994141e6 | 2926 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2927 | PyObject * obj2 = 0 ; |
2928 | PyObject * obj3 = 0 ; | |
2929 | PyObject * obj4 = 0 ; | |
2930 | PyObject * obj5 = 0 ; | |
994141e6 | 2931 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2932 | PyObject * obj7 = 0 ; |
2933 | PyObject * obj8 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2936 | }; | |
2937 | ||
a95a7133 | 2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2941 | if (obj1) { |
2942 | arg2 = (int) SWIG_AsInt(obj1); | |
2943 | if (PyErr_Occurred()) SWIG_fail; | |
2944 | } | |
d14a1e28 RD |
2945 | if (obj2) { |
2946 | { | |
2947 | arg3 = wxString_in_helper(obj2); | |
2948 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2949 | temp3 = True; |
d14a1e28 RD |
2950 | } |
2951 | } | |
2952 | if (obj3) { | |
2953 | { | |
2954 | arg4 = &temp4; | |
2955 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2956 | } | |
2957 | } | |
2958 | if (obj4) { | |
2959 | { | |
2960 | arg5 = &temp5; | |
2961 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2962 | } | |
2963 | } | |
2964 | if (obj5) { | |
2965 | { | |
4d5c3d91 RD |
2966 | if (! PySequence_Check(obj5)) { |
2967 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2968 | SWIG_fail; | |
2969 | } | |
2970 | arg6 = new wxArrayString; | |
3adfb63b | 2971 | temp6 = True; |
4d5c3d91 RD |
2972 | int i, len=PySequence_Length(obj5); |
2973 | for (i=0; i<len; i++) { | |
2974 | PyObject* item = PySequence_GetItem(obj5, i); | |
2975 | #if wxUSE_UNICODE | |
2976 | PyObject* str = PyObject_Unicode(item); | |
2977 | #else | |
2978 | PyObject* str = PyObject_Str(item); | |
2979 | #endif | |
74a57fcd | 2980 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2981 | arg6->Add(Py2wxString(str)); |
2982 | Py_DECREF(item); | |
2983 | Py_DECREF(str); | |
2984 | } | |
d14a1e28 RD |
2985 | } |
2986 | } | |
994141e6 | 2987 | if (obj6) { |
15afbcd0 RD |
2988 | arg7 = (long) SWIG_AsLong(obj6); |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2990 | } |
d14a1e28 | 2991 | if (obj7) { |
15afbcd0 RD |
2992 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2994 | SWIG_fail; | |
4d5c3d91 | 2995 | if (arg8 == NULL) { |
15afbcd0 RD |
2996 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2997 | SWIG_fail; | |
d14a1e28 RD |
2998 | } |
2999 | } | |
3000 | if (obj8) { | |
3001 | { | |
4d5c3d91 RD |
3002 | arg9 = wxString_in_helper(obj8); |
3003 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3004 | temp9 = True; |
d14a1e28 RD |
3005 | } |
3006 | } | |
3007 | { | |
3008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3009 | 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 |
3010 | |
3011 | wxPyEndAllowThreads(__tstate); | |
3012 | if (PyErr_Occurred()) SWIG_fail; | |
3013 | } | |
15afbcd0 | 3014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3015 | { |
3016 | if (temp3) | |
3017 | delete arg3; | |
3018 | } | |
3019 | { | |
3adfb63b | 3020 | if (temp6) delete arg6; |
d14a1e28 RD |
3021 | } |
3022 | { | |
3023 | if (temp9) | |
4d5c3d91 | 3024 | delete arg9; |
d14a1e28 RD |
3025 | } |
3026 | return resultobj; | |
3027 | fail: | |
3028 | { | |
3029 | if (temp3) | |
3030 | delete arg3; | |
3031 | } | |
3032 | { | |
3adfb63b | 3033 | if (temp6) delete arg6; |
d14a1e28 RD |
3034 | } |
3035 | { | |
3036 | if (temp9) | |
4d5c3d91 | 3037 | delete arg9; |
d14a1e28 RD |
3038 | } |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxComboBox *result; | |
3046 | char *kwnames[] = { | |
3047 | NULL | |
3048 | }; | |
3049 | ||
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (wxComboBox *)new wxComboBox(); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
15afbcd0 | 3058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3059 | return resultobj; |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
3065 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3066 | PyObject *resultobj; | |
3067 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3068 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3069 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3070 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3071 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3072 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3073 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3074 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3075 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3076 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3077 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3078 | long arg8 = (long) 0 ; | |
3079 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3080 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3081 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3082 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3083 | bool result; |
e811c8ce | 3084 | bool temp4 = False ; |
d14a1e28 RD |
3085 | wxPoint temp5 ; |
3086 | wxSize temp6 ; | |
3adfb63b | 3087 | bool temp7 = False ; |
e811c8ce | 3088 | bool temp10 = False ; |
d14a1e28 RD |
3089 | PyObject * obj0 = 0 ; |
3090 | PyObject * obj1 = 0 ; | |
994141e6 | 3091 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3092 | PyObject * obj3 = 0 ; |
3093 | PyObject * obj4 = 0 ; | |
3094 | PyObject * obj5 = 0 ; | |
3095 | PyObject * obj6 = 0 ; | |
994141e6 | 3096 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3097 | PyObject * obj8 = 0 ; |
3098 | PyObject * obj9 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3101 | }; | |
3102 | ||
a95a7133 | 3103 | 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 |
3104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
3108 | if (obj2) { |
3109 | arg3 = (int) SWIG_AsInt(obj2); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
d14a1e28 RD |
3112 | if (obj3) { |
3113 | { | |
3114 | arg4 = wxString_in_helper(obj3); | |
3115 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3116 | temp4 = True; |
d14a1e28 RD |
3117 | } |
3118 | } | |
3119 | if (obj4) { | |
3120 | { | |
3121 | arg5 = &temp5; | |
3122 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3123 | } | |
3124 | } | |
3125 | if (obj5) { | |
3126 | { | |
3127 | arg6 = &temp6; | |
3128 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3129 | } | |
3130 | } | |
3131 | if (obj6) { | |
3132 | { | |
4d5c3d91 RD |
3133 | if (! PySequence_Check(obj6)) { |
3134 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3135 | SWIG_fail; | |
3136 | } | |
3137 | arg7 = new wxArrayString; | |
3adfb63b | 3138 | temp7 = True; |
4d5c3d91 RD |
3139 | int i, len=PySequence_Length(obj6); |
3140 | for (i=0; i<len; i++) { | |
3141 | PyObject* item = PySequence_GetItem(obj6, i); | |
3142 | #if wxUSE_UNICODE | |
3143 | PyObject* str = PyObject_Unicode(item); | |
3144 | #else | |
3145 | PyObject* str = PyObject_Str(item); | |
3146 | #endif | |
74a57fcd | 3147 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3148 | arg7->Add(Py2wxString(str)); |
3149 | Py_DECREF(item); | |
3150 | Py_DECREF(str); | |
3151 | } | |
d14a1e28 RD |
3152 | } |
3153 | } | |
994141e6 | 3154 | if (obj7) { |
15afbcd0 RD |
3155 | arg8 = (long) SWIG_AsLong(obj7); |
3156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3157 | } |
d14a1e28 | 3158 | if (obj8) { |
15afbcd0 RD |
3159 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3161 | SWIG_fail; | |
4d5c3d91 | 3162 | if (arg9 == NULL) { |
15afbcd0 RD |
3163 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3164 | SWIG_fail; | |
d14a1e28 RD |
3165 | } |
3166 | } | |
3167 | if (obj9) { | |
3168 | { | |
4d5c3d91 RD |
3169 | arg10 = wxString_in_helper(obj9); |
3170 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 3171 | temp10 = True; |
d14a1e28 RD |
3172 | } |
3173 | } | |
3174 | { | |
3175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3176 | 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 |
3177 | |
3178 | wxPyEndAllowThreads(__tstate); | |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
3180 | } | |
4f89f6a3 RD |
3181 | { |
3182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3183 | } | |
d14a1e28 RD |
3184 | { |
3185 | if (temp4) | |
3186 | delete arg4; | |
3187 | } | |
3188 | { | |
3adfb63b | 3189 | if (temp7) delete arg7; |
d14a1e28 RD |
3190 | } |
3191 | { | |
3192 | if (temp10) | |
4d5c3d91 | 3193 | delete arg10; |
d14a1e28 RD |
3194 | } |
3195 | return resultobj; | |
3196 | fail: | |
3197 | { | |
3198 | if (temp4) | |
3199 | delete arg4; | |
3200 | } | |
3201 | { | |
3adfb63b | 3202 | if (temp7) delete arg7; |
d14a1e28 RD |
3203 | } |
3204 | { | |
3205 | if (temp10) | |
4d5c3d91 | 3206 | delete arg10; |
d14a1e28 RD |
3207 | } |
3208 | return NULL; | |
3209 | } | |
3210 | ||
3211 | ||
3212 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3213 | PyObject *resultobj; | |
3214 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3215 | wxString result; | |
3216 | PyObject * obj0 = 0 ; | |
3217 | char *kwnames[] = { | |
3218 | (char *) "self", NULL | |
3219 | }; | |
3220 | ||
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3224 | { |
3225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3226 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3227 | ||
3228 | wxPyEndAllowThreads(__tstate); | |
3229 | if (PyErr_Occurred()) SWIG_fail; | |
3230 | } | |
3231 | { | |
3232 | #if wxUSE_UNICODE | |
3233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3234 | #else | |
3235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3236 | #endif | |
3237 | } | |
3238 | return resultobj; | |
3239 | fail: | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj; | |
3246 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3247 | wxString *arg2 = 0 ; | |
e811c8ce | 3248 | bool temp2 = False ; |
d14a1e28 RD |
3249 | PyObject * obj0 = 0 ; |
3250 | PyObject * obj1 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self",(char *) "value", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3258 | { |
3259 | arg2 = wxString_in_helper(obj1); | |
3260 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3261 | temp2 = True; |
d14a1e28 RD |
3262 | } |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | (arg1)->SetValue((wxString const &)*arg2); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | Py_INCREF(Py_None); resultobj = Py_None; | |
3271 | { | |
3272 | if (temp2) | |
3273 | delete arg2; | |
3274 | } | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | { | |
3278 | if (temp2) | |
3279 | delete arg2; | |
3280 | } | |
3281 | return NULL; | |
3282 | } | |
3283 | ||
3284 | ||
3285 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3286 | PyObject *resultobj; | |
3287 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | char *kwnames[] = { | |
3290 | (char *) "self", NULL | |
3291 | }; | |
3292 | ||
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3296 | { |
3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3298 | (arg1)->Copy(); | |
3299 | ||
3300 | wxPyEndAllowThreads(__tstate); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | } | |
3303 | Py_INCREF(Py_None); resultobj = Py_None; | |
3304 | return resultobj; | |
3305 | fail: | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
3310 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj; | |
3312 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3313 | PyObject * obj0 = 0 ; | |
3314 | char *kwnames[] = { | |
3315 | (char *) "self", NULL | |
3316 | }; | |
3317 | ||
3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3321 | { |
3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3323 | (arg1)->Cut(); | |
3324 | ||
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | Py_INCREF(Py_None); resultobj = Py_None; | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
3335 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject *resultobj; | |
3337 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3338 | PyObject * obj0 = 0 ; | |
3339 | char *kwnames[] = { | |
3340 | (char *) "self", NULL | |
3341 | }; | |
3342 | ||
3343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3346 | { |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3348 | (arg1)->Paste(); | |
3349 | ||
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
3353 | Py_INCREF(Py_None); resultobj = Py_None; | |
3354 | return resultobj; | |
3355 | fail: | |
3356 | return NULL; | |
3357 | } | |
3358 | ||
3359 | ||
3360 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject *resultobj; | |
3362 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3363 | long arg2 ; | |
3364 | PyObject * obj0 = 0 ; | |
994141e6 | 3365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3366 | char *kwnames[] = { |
3367 | (char *) "self",(char *) "pos", NULL | |
3368 | }; | |
3369 | ||
994141e6 | 3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3373 | arg2 = (long) SWIG_AsLong(obj1); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3375 | { |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | (arg1)->SetInsertionPoint(arg2); | |
3378 | ||
3379 | wxPyEndAllowThreads(__tstate); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | } | |
3382 | Py_INCREF(Py_None); resultobj = Py_None; | |
3383 | return resultobj; | |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
3389 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3390 | PyObject *resultobj; | |
3391 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3392 | long result; | |
3393 | PyObject * obj0 = 0 ; | |
3394 | char *kwnames[] = { | |
3395 | (char *) "self", NULL | |
3396 | }; | |
3397 | ||
3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3401 | { |
3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3403 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3404 | ||
3405 | wxPyEndAllowThreads(__tstate); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
15afbcd0 | 3408 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3409 | return resultobj; |
3410 | fail: | |
3411 | return NULL; | |
3412 | } | |
3413 | ||
3414 | ||
3415 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject *resultobj; | |
3417 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3418 | long result; | |
3419 | PyObject * obj0 = 0 ; | |
3420 | char *kwnames[] = { | |
3421 | (char *) "self", NULL | |
3422 | }; | |
3423 | ||
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3427 | { |
3428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3429 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3430 | ||
3431 | wxPyEndAllowThreads(__tstate); | |
3432 | if (PyErr_Occurred()) SWIG_fail; | |
3433 | } | |
15afbcd0 | 3434 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3435 | return resultobj; |
3436 | fail: | |
3437 | return NULL; | |
3438 | } | |
3439 | ||
3440 | ||
3441 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject *resultobj; | |
3443 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3444 | long arg2 ; | |
3445 | long arg3 ; | |
3446 | wxString *arg4 = 0 ; | |
e811c8ce | 3447 | bool temp4 = False ; |
d14a1e28 | 3448 | PyObject * obj0 = 0 ; |
994141e6 RD |
3449 | PyObject * obj1 = 0 ; |
3450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3451 | PyObject * obj3 = 0 ; |
3452 | char *kwnames[] = { | |
3453 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3454 | }; | |
3455 | ||
994141e6 | 3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3459 | arg2 = (long) SWIG_AsLong(obj1); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | arg3 = (long) SWIG_AsLong(obj2); | |
3462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3463 | { |
3464 | arg4 = wxString_in_helper(obj3); | |
3465 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3466 | temp4 = True; |
d14a1e28 RD |
3467 | } |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | } | |
3475 | Py_INCREF(Py_None); resultobj = Py_None; | |
3476 | { | |
3477 | if (temp4) | |
3478 | delete arg4; | |
3479 | } | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | { | |
3483 | if (temp4) | |
3484 | delete arg4; | |
3485 | } | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
fd3f2efe RD |
3490 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3491 | PyObject *resultobj; | |
3492 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3493 | int arg2 ; | |
3494 | PyObject * obj0 = 0 ; | |
994141e6 | 3495 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3496 | char *kwnames[] = { |
3497 | (char *) "self",(char *) "n", NULL | |
3498 | }; | |
3499 | ||
994141e6 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3503 | arg2 = (int) SWIG_AsInt(obj1); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
fd3f2efe RD |
3505 | { |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | (arg1)->SetSelection(arg2); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | Py_INCREF(Py_None); resultobj = Py_None; | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
d14a1e28 RD |
3519 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3520 | PyObject *resultobj; | |
3521 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3522 | long arg2 ; | |
3523 | long arg3 ; | |
3524 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3525 | PyObject * obj1 = 0 ; |
3526 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3527 | char *kwnames[] = { |
3528 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3529 | }; | |
3530 | ||
994141e6 | 3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3534 | arg2 = (long) SWIG_AsLong(obj1); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | arg3 = (long) SWIG_AsLong(obj2); | |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3538 | { |
3539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3540 | (arg1)->SetSelection(arg2,arg3); | |
3541 | ||
3542 | wxPyEndAllowThreads(__tstate); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | } | |
3545 | Py_INCREF(Py_None); resultobj = Py_None; | |
3546 | return resultobj; | |
3547 | fail: | |
3548 | return NULL; | |
3549 | } | |
3550 | ||
3551 | ||
121b9a67 RD |
3552 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3553 | PyObject *resultobj; | |
3554 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3555 | wxString *arg2 = 0 ; | |
3556 | bool result; | |
3557 | bool temp2 = False ; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | PyObject * obj1 = 0 ; | |
3560 | char *kwnames[] = { | |
3561 | (char *) "self",(char *) "string", NULL | |
3562 | }; | |
3563 | ||
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3567 | { | |
3568 | arg2 = wxString_in_helper(obj1); | |
3569 | if (arg2 == NULL) SWIG_fail; | |
3570 | temp2 = True; | |
3571 | } | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | { | |
3580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3581 | } | |
3582 | { | |
3583 | if (temp2) | |
3584 | delete arg2; | |
3585 | } | |
3586 | return resultobj; | |
3587 | fail: | |
3588 | { | |
3589 | if (temp2) | |
3590 | delete arg2; | |
3591 | } | |
3592 | return NULL; | |
3593 | } | |
3594 | ||
3595 | ||
3596 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3597 | PyObject *resultobj; | |
3598 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3599 | int arg2 ; | |
3600 | wxString *arg3 = 0 ; | |
3601 | bool temp3 = False ; | |
3602 | PyObject * obj0 = 0 ; | |
3603 | PyObject * obj1 = 0 ; | |
3604 | PyObject * obj2 = 0 ; | |
3605 | char *kwnames[] = { | |
3606 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3607 | }; | |
3608 | ||
3609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3612 | arg2 = (int) SWIG_AsInt(obj1); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | { | |
3615 | arg3 = wxString_in_helper(obj2); | |
3616 | if (arg3 == NULL) SWIG_fail; | |
3617 | temp3 = True; | |
3618 | } | |
3619 | { | |
3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3621 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3622 | ||
3623 | wxPyEndAllowThreads(__tstate); | |
3624 | if (PyErr_Occurred()) SWIG_fail; | |
3625 | } | |
3626 | Py_INCREF(Py_None); resultobj = Py_None; | |
3627 | { | |
3628 | if (temp3) | |
3629 | delete arg3; | |
3630 | } | |
3631 | return resultobj; | |
3632 | fail: | |
3633 | { | |
3634 | if (temp3) | |
3635 | delete arg3; | |
3636 | } | |
3637 | return NULL; | |
3638 | } | |
3639 | ||
3640 | ||
d14a1e28 RD |
3641 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3642 | PyObject *resultobj; | |
3643 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3644 | bool arg2 ; | |
3645 | PyObject * obj0 = 0 ; | |
3646 | PyObject * obj1 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self",(char *) "editable", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3654 | arg2 = (bool) SWIG_AsBool(obj1); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3656 | { |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | (arg1)->SetEditable(arg2); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) SWIG_fail; | |
3662 | } | |
3663 | Py_INCREF(Py_None); resultobj = Py_None; | |
3664 | return resultobj; | |
3665 | fail: | |
3666 | return NULL; | |
3667 | } | |
3668 | ||
3669 | ||
3670 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject *resultobj; | |
3672 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3673 | PyObject * obj0 = 0 ; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "self", NULL | |
3676 | }; | |
3677 | ||
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3681 | { |
3682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3683 | (arg1)->SetInsertionPointEnd(); | |
3684 | ||
3685 | wxPyEndAllowThreads(__tstate); | |
3686 | if (PyErr_Occurred()) SWIG_fail; | |
3687 | } | |
3688 | Py_INCREF(Py_None); resultobj = Py_None; | |
3689 | return resultobj; | |
3690 | fail: | |
3691 | return NULL; | |
3692 | } | |
3693 | ||
3694 | ||
3695 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3696 | PyObject *resultobj; | |
3697 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3698 | long arg2 ; | |
3699 | long arg3 ; | |
3700 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3701 | PyObject * obj1 = 0 ; |
3702 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3703 | char *kwnames[] = { |
3704 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3705 | }; | |
3706 | ||
994141e6 | 3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3710 | arg2 = (long) SWIG_AsLong(obj1); | |
3711 | if (PyErr_Occurred()) SWIG_fail; | |
3712 | arg3 = (long) SWIG_AsLong(obj2); | |
3713 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3714 | { |
3715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3716 | (arg1)->Remove(arg2,arg3); | |
3717 | ||
3718 | wxPyEndAllowThreads(__tstate); | |
3719 | if (PyErr_Occurred()) SWIG_fail; | |
3720 | } | |
3721 | Py_INCREF(Py_None); resultobj = Py_None; | |
3722 | return resultobj; | |
3723 | fail: | |
3724 | return NULL; | |
3725 | } | |
3726 | ||
3727 | ||
22bfe96c RD |
3728 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3729 | PyObject *resultobj; | |
3730 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3731 | wxVisualAttributes result; | |
3732 | PyObject * obj0 = 0 ; | |
3733 | char *kwnames[] = { | |
3734 | (char *) "variant", NULL | |
3735 | }; | |
3736 | ||
3737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3738 | if (obj0) { | |
3739 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | { | |
3750 | wxVisualAttributes * resultptr; | |
3751 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3753 | } | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
d14a1e28 RD |
3760 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3761 | PyObject *obj; | |
3762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3763 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3764 | Py_INCREF(obj); | |
3765 | return Py_BuildValue((char *)""); | |
3766 | } | |
b2dc1044 RD |
3767 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3768 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3769 | return 1; | |
3770 | } | |
3771 | ||
3772 | ||
3773 | static PyObject *_wrap_GaugeNameStr_get() { | |
3774 | PyObject *pyobj; | |
3775 | ||
3776 | { | |
3777 | #if wxUSE_UNICODE | |
3778 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3779 | #else | |
3780 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3781 | #endif | |
3782 | } | |
3783 | return pyobj; | |
3784 | } | |
3785 | ||
3786 | ||
d14a1e28 RD |
3787 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3788 | PyObject *resultobj; | |
3789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3790 | int arg2 ; |
d14a1e28 RD |
3791 | int arg3 ; |
3792 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3793 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3794 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3795 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3796 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3797 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3798 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3799 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3800 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3801 | wxGauge *result; | |
3802 | wxPoint temp4 ; | |
3803 | wxSize temp5 ; | |
e811c8ce | 3804 | bool temp8 = False ; |
d14a1e28 | 3805 | PyObject * obj0 = 0 ; |
994141e6 RD |
3806 | PyObject * obj1 = 0 ; |
3807 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3808 | PyObject * obj3 = 0 ; |
3809 | PyObject * obj4 = 0 ; | |
994141e6 | 3810 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3811 | PyObject * obj6 = 0 ; |
3812 | PyObject * obj7 = 0 ; | |
3813 | char *kwnames[] = { | |
3814 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3815 | }; | |
3816 | ||
994141e6 | 3817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3820 | arg2 = (int) SWIG_AsInt(obj1); | |
3821 | if (PyErr_Occurred()) SWIG_fail; | |
3822 | arg3 = (int) SWIG_AsInt(obj2); | |
3823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3824 | if (obj3) { |
3825 | { | |
3826 | arg4 = &temp4; | |
3827 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3828 | } | |
3829 | } | |
3830 | if (obj4) { | |
3831 | { | |
3832 | arg5 = &temp5; | |
3833 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3834 | } | |
3835 | } | |
994141e6 | 3836 | if (obj5) { |
15afbcd0 RD |
3837 | arg6 = (long) SWIG_AsLong(obj5); |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3839 | } |
d14a1e28 | 3840 | if (obj6) { |
15afbcd0 RD |
3841 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3843 | SWIG_fail; | |
d14a1e28 | 3844 | if (arg7 == NULL) { |
15afbcd0 RD |
3845 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3846 | SWIG_fail; | |
d14a1e28 RD |
3847 | } |
3848 | } | |
3849 | if (obj7) { | |
3850 | { | |
3851 | arg8 = wxString_in_helper(obj7); | |
3852 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3853 | temp8 = True; |
d14a1e28 RD |
3854 | } |
3855 | } | |
3856 | { | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
15afbcd0 | 3863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3864 | { |
3865 | if (temp8) | |
3866 | delete arg8; | |
3867 | } | |
3868 | return resultobj; | |
3869 | fail: | |
3870 | { | |
3871 | if (temp8) | |
3872 | delete arg8; | |
3873 | } | |
3874 | return NULL; | |
3875 | } | |
3876 | ||
3877 | ||
3878 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject *resultobj; | |
3880 | wxGauge *result; | |
3881 | char *kwnames[] = { | |
3882 | NULL | |
3883 | }; | |
3884 | ||
3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3886 | { | |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | result = (wxGauge *)new wxGauge(); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
15afbcd0 | 3893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3894 | return resultobj; |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3903 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3904 | int arg3 ; |
d14a1e28 RD |
3905 | int arg4 ; |
3906 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3907 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3908 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3909 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3910 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3911 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3912 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3913 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3914 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3915 | bool result; | |
3916 | wxPoint temp5 ; | |
3917 | wxSize temp6 ; | |
e811c8ce | 3918 | bool temp9 = False ; |
d14a1e28 RD |
3919 | PyObject * obj0 = 0 ; |
3920 | PyObject * obj1 = 0 ; | |
994141e6 RD |
3921 | PyObject * obj2 = 0 ; |
3922 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3923 | PyObject * obj4 = 0 ; |
3924 | PyObject * obj5 = 0 ; | |
994141e6 | 3925 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3926 | PyObject * obj7 = 0 ; |
3927 | PyObject * obj8 = 0 ; | |
3928 | char *kwnames[] = { | |
3929 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3930 | }; | |
3931 | ||
994141e6 | 3932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3937 | arg3 = (int) SWIG_AsInt(obj2); | |
3938 | if (PyErr_Occurred()) SWIG_fail; | |
3939 | arg4 = (int) SWIG_AsInt(obj3); | |
3940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3941 | if (obj4) { |
3942 | { | |
3943 | arg5 = &temp5; | |
3944 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3945 | } | |
3946 | } | |
3947 | if (obj5) { | |
3948 | { | |
3949 | arg6 = &temp6; | |
3950 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3951 | } | |
3952 | } | |
994141e6 | 3953 | if (obj6) { |
15afbcd0 RD |
3954 | arg7 = (long) SWIG_AsLong(obj6); |
3955 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3956 | } |
d14a1e28 | 3957 | if (obj7) { |
15afbcd0 RD |
3958 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3960 | SWIG_fail; | |
d14a1e28 | 3961 | if (arg8 == NULL) { |
15afbcd0 RD |
3962 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3963 | SWIG_fail; | |
d14a1e28 RD |
3964 | } |
3965 | } | |
3966 | if (obj8) { | |
3967 | { | |
3968 | arg9 = wxString_in_helper(obj8); | |
3969 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3970 | temp9 = True; |
d14a1e28 RD |
3971 | } |
3972 | } | |
3973 | { | |
3974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3975 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3976 | ||
3977 | wxPyEndAllowThreads(__tstate); | |
3978 | if (PyErr_Occurred()) SWIG_fail; | |
3979 | } | |
4f89f6a3 RD |
3980 | { |
3981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3982 | } | |
d14a1e28 RD |
3983 | { |
3984 | if (temp9) | |
3985 | delete arg9; | |
3986 | } | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | { | |
3990 | if (temp9) | |
3991 | delete arg9; | |
3992 | } | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
3997 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3998 | PyObject *resultobj; | |
3999 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4000 | int arg2 ; | |
4001 | PyObject * obj0 = 0 ; | |
994141e6 | 4002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4003 | char *kwnames[] = { |
4004 | (char *) "self",(char *) "range", NULL | |
4005 | }; | |
4006 | ||
994141e6 | 4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4010 | arg2 = (int) SWIG_AsInt(obj1); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4012 | { |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | (arg1)->SetRange(arg2); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | Py_INCREF(Py_None); resultobj = Py_None; | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4029 | int result; | |
4030 | PyObject * obj0 = 0 ; | |
4031 | char *kwnames[] = { | |
4032 | (char *) "self", NULL | |
4033 | }; | |
4034 | ||
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4038 | { |
4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4040 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4041 | ||
4042 | wxPyEndAllowThreads(__tstate); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | } | |
15afbcd0 | 4045 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4046 | return resultobj; |
4047 | fail: | |
4048 | return NULL; | |
4049 | } | |
4050 | ||
4051 | ||
4052 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4053 | PyObject *resultobj; | |
4054 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4055 | int arg2 ; | |
4056 | PyObject * obj0 = 0 ; | |
994141e6 | 4057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4058 | char *kwnames[] = { |
4059 | (char *) "self",(char *) "pos", NULL | |
4060 | }; | |
4061 | ||
994141e6 | 4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4065 | arg2 = (int) SWIG_AsInt(obj1); | |
4066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4067 | { |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4069 | (arg1)->SetValue(arg2); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | } | |
4074 | Py_INCREF(Py_None); resultobj = Py_None; | |
4075 | return resultobj; | |
4076 | fail: | |
4077 | return NULL; | |
4078 | } | |
4079 | ||
4080 | ||
4081 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject *resultobj; | |
4083 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4084 | int result; | |
4085 | PyObject * obj0 = 0 ; | |
4086 | char *kwnames[] = { | |
4087 | (char *) "self", NULL | |
4088 | }; | |
4089 | ||
4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4093 | { |
4094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4095 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4096 | ||
4097 | wxPyEndAllowThreads(__tstate); | |
4098 | if (PyErr_Occurred()) SWIG_fail; | |
4099 | } | |
15afbcd0 | 4100 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4101 | return resultobj; |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
4107 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4108 | PyObject *resultobj; | |
4109 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4110 | bool result; | |
4111 | PyObject * obj0 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4119 | { |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4f89f6a3 RD |
4126 | { |
4127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4128 | } | |
d14a1e28 RD |
4129 | return resultobj; |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
4135 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject *resultobj; | |
4137 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4138 | int arg2 ; | |
4139 | PyObject * obj0 = 0 ; | |
994141e6 | 4140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4141 | char *kwnames[] = { |
4142 | (char *) "self",(char *) "w", NULL | |
4143 | }; | |
4144 | ||
994141e6 | 4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4148 | arg2 = (int) SWIG_AsInt(obj1); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4150 | { |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | (arg1)->SetShadowWidth(arg2); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | Py_INCREF(Py_None); resultobj = Py_None; | |
4158 | return resultobj; | |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
4164 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4165 | PyObject *resultobj; | |
4166 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4167 | int result; | |
4168 | PyObject * obj0 = 0 ; | |
4169 | char *kwnames[] = { | |
4170 | (char *) "self", NULL | |
4171 | }; | |
4172 | ||
4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4176 | { |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4178 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
4181 | if (PyErr_Occurred()) SWIG_fail; | |
4182 | } | |
15afbcd0 | 4183 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4184 | return resultobj; |
4185 | fail: | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
4190 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject *resultobj; | |
4192 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4193 | int arg2 ; | |
4194 | PyObject * obj0 = 0 ; | |
994141e6 | 4195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4196 | char *kwnames[] = { |
4197 | (char *) "self",(char *) "w", NULL | |
4198 | }; | |
4199 | ||
994141e6 | 4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4203 | arg2 = (int) SWIG_AsInt(obj1); | |
4204 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4205 | { |
4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4207 | (arg1)->SetBezelFace(arg2); | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | Py_INCREF(Py_None); resultobj = Py_None; | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
4219 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4220 | PyObject *resultobj; | |
4221 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4222 | int result; | |
4223 | PyObject * obj0 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "self", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4231 | { |
4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4233 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4234 | ||
4235 | wxPyEndAllowThreads(__tstate); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
15afbcd0 | 4238 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4239 | return resultobj; |
4240 | fail: | |
4241 | return NULL; | |
4242 | } | |
4243 | ||
4244 | ||
22bfe96c RD |
4245 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4246 | PyObject *resultobj; | |
4247 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4248 | wxVisualAttributes result; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "variant", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4255 | if (obj0) { | |
4256 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
4258 | } | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4262 | ||
4263 | wxPyEndAllowThreads(__tstate); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4266 | { | |
4267 | wxVisualAttributes * resultptr; | |
4268 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4270 | } | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
d14a1e28 RD |
4277 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4278 | PyObject *obj; | |
4279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4280 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4281 | Py_INCREF(obj); | |
4282 | return Py_BuildValue((char *)""); | |
4283 | } | |
b2dc1044 RD |
4284 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
4285 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4286 | return 1; | |
4287 | } | |
4288 | ||
4289 | ||
4290 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4291 | PyObject *pyobj; | |
4292 | ||
4293 | { | |
4294 | #if wxUSE_UNICODE | |
4295 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4296 | #else | |
4297 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4298 | #endif | |
4299 | } | |
4300 | return pyobj; | |
4301 | } | |
4302 | ||
4303 | ||
4304 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4305 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4306 | return 1; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4311 | PyObject *pyobj; | |
4312 | ||
4313 | { | |
4314 | #if wxUSE_UNICODE | |
4315 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4316 | #else | |
4317 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4318 | #endif | |
4319 | } | |
4320 | return pyobj; | |
4321 | } | |
4322 | ||
4323 | ||
4324 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4325 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4326 | return 1; | |
4327 | } | |
4328 | ||
4329 | ||
4330 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4331 | PyObject *pyobj; | |
4332 | ||
4333 | { | |
4334 | #if wxUSE_UNICODE | |
4335 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4336 | #else | |
4337 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4338 | #endif | |
4339 | } | |
4340 | return pyobj; | |
4341 | } | |
4342 | ||
4343 | ||
d14a1e28 RD |
4344 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4345 | PyObject *resultobj; | |
4346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4347 | int arg2 ; |
d14a1e28 RD |
4348 | wxString *arg3 = 0 ; |
4349 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4350 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4351 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4352 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4353 | long arg6 = (long) 0 ; | |
4354 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4355 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4356 | wxStaticBox *result; | |
e811c8ce | 4357 | bool temp3 = False ; |
d14a1e28 RD |
4358 | wxPoint temp4 ; |
4359 | wxSize temp5 ; | |
e811c8ce | 4360 | bool temp7 = False ; |
d14a1e28 | 4361 | PyObject * obj0 = 0 ; |
994141e6 | 4362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4363 | PyObject * obj2 = 0 ; |
4364 | PyObject * obj3 = 0 ; | |
4365 | PyObject * obj4 = 0 ; | |
994141e6 | 4366 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4367 | PyObject * obj6 = 0 ; |
4368 | char *kwnames[] = { | |
4369 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4370 | }; | |
4371 | ||
994141e6 | 4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4375 | arg2 = (int) SWIG_AsInt(obj1); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4377 | { |
4378 | arg3 = wxString_in_helper(obj2); | |
4379 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4380 | temp3 = True; |
d14a1e28 RD |
4381 | } |
4382 | if (obj3) { | |
4383 | { | |
4384 | arg4 = &temp4; | |
4385 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4386 | } | |
4387 | } | |
4388 | if (obj4) { | |
4389 | { | |
4390 | arg5 = &temp5; | |
4391 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4392 | } | |
4393 | } | |
994141e6 | 4394 | if (obj5) { |
15afbcd0 RD |
4395 | arg6 = (long) SWIG_AsLong(obj5); |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4397 | } |
d14a1e28 RD |
4398 | if (obj6) { |
4399 | { | |
4400 | arg7 = wxString_in_helper(obj6); | |
4401 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4402 | temp7 = True; |
d14a1e28 RD |
4403 | } |
4404 | } | |
4405 | { | |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4407 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
4410 | if (PyErr_Occurred()) SWIG_fail; | |
4411 | } | |
4412 | { | |
4413 | resultobj = wxPyMake_wxObject(result); | |
4414 | } | |
4415 | { | |
4416 | if (temp3) | |
4417 | delete arg3; | |
4418 | } | |
4419 | { | |
4420 | if (temp7) | |
4421 | delete arg7; | |
4422 | } | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | { | |
4426 | if (temp3) | |
4427 | delete arg3; | |
4428 | } | |
4429 | { | |
4430 | if (temp7) | |
4431 | delete arg7; | |
4432 | } | |
4433 | return NULL; | |
4434 | } | |
4435 | ||
4436 | ||
4437 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject *resultobj; | |
4439 | wxStaticBox *result; | |
4440 | char *kwnames[] = { | |
4441 | NULL | |
4442 | }; | |
4443 | ||
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4445 | { | |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = (wxStaticBox *)new wxStaticBox(); | |
4448 | ||
4449 | wxPyEndAllowThreads(__tstate); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | { | |
4453 | resultobj = wxPyMake_wxObject(result); | |
4454 | } | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4464 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4465 | int arg3 ; |
d14a1e28 RD |
4466 | wxString *arg4 = 0 ; |
4467 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4468 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4469 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4470 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4471 | long arg7 = (long) 0 ; | |
4472 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4473 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4474 | bool result; | |
e811c8ce | 4475 | bool temp4 = False ; |
d14a1e28 RD |
4476 | wxPoint temp5 ; |
4477 | wxSize temp6 ; | |
e811c8ce | 4478 | bool temp8 = False ; |
d14a1e28 RD |
4479 | PyObject * obj0 = 0 ; |
4480 | PyObject * obj1 = 0 ; | |
994141e6 | 4481 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4482 | PyObject * obj3 = 0 ; |
4483 | PyObject * obj4 = 0 ; | |
4484 | PyObject * obj5 = 0 ; | |
994141e6 | 4485 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4486 | PyObject * obj7 = 0 ; |
4487 | char *kwnames[] = { | |
4488 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4489 | }; | |
4490 | ||
994141e6 | 4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4494 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4496 | arg3 = (int) SWIG_AsInt(obj2); | |
4497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4498 | { |
4499 | arg4 = wxString_in_helper(obj3); | |
4500 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4501 | temp4 = True; |
d14a1e28 RD |
4502 | } |
4503 | if (obj4) { | |
4504 | { | |
4505 | arg5 = &temp5; | |
4506 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4507 | } | |
4508 | } | |
4509 | if (obj5) { | |
4510 | { | |
4511 | arg6 = &temp6; | |
4512 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4513 | } | |
4514 | } | |
994141e6 | 4515 | if (obj6) { |
15afbcd0 RD |
4516 | arg7 = (long) SWIG_AsLong(obj6); |
4517 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4518 | } |
d14a1e28 RD |
4519 | if (obj7) { |
4520 | { | |
4521 | arg8 = wxString_in_helper(obj7); | |
4522 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4523 | temp8 = True; |
d14a1e28 RD |
4524 | } |
4525 | } | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
4f89f6a3 RD |
4533 | { |
4534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4535 | } | |
d14a1e28 RD |
4536 | { |
4537 | if (temp4) | |
4538 | delete arg4; | |
4539 | } | |
4540 | { | |
4541 | if (temp8) | |
4542 | delete arg8; | |
4543 | } | |
4544 | return resultobj; | |
4545 | fail: | |
4546 | { | |
4547 | if (temp4) | |
4548 | delete arg4; | |
4549 | } | |
4550 | { | |
4551 | if (temp8) | |
4552 | delete arg8; | |
4553 | } | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
22bfe96c RD |
4558 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4559 | PyObject *resultobj; | |
4560 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4561 | wxVisualAttributes result; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | char *kwnames[] = { | |
4564 | (char *) "variant", NULL | |
4565 | }; | |
4566 | ||
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4568 | if (obj0) { | |
4569 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | { | |
4580 | wxVisualAttributes * resultptr; | |
4581 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4583 | } | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
d14a1e28 RD |
4590 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4591 | PyObject *obj; | |
4592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4593 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4594 | Py_INCREF(obj); | |
4595 | return Py_BuildValue((char *)""); | |
4596 | } | |
4597 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4598 | PyObject *resultobj; | |
4599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4600 | int arg2 ; |
d14a1e28 RD |
4601 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4602 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4603 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4604 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4605 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4606 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4607 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4608 | wxStaticLine *result; | |
4609 | wxPoint temp3 ; | |
4610 | wxSize temp4 ; | |
e811c8ce | 4611 | bool temp6 = False ; |
d14a1e28 | 4612 | PyObject * obj0 = 0 ; |
994141e6 | 4613 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4614 | PyObject * obj2 = 0 ; |
4615 | PyObject * obj3 = 0 ; | |
994141e6 | 4616 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4617 | PyObject * obj5 = 0 ; |
4618 | char *kwnames[] = { | |
4619 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4620 | }; | |
4621 | ||
994141e6 | 4622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4625 | arg2 = (int) SWIG_AsInt(obj1); | |
4626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4627 | if (obj2) { |
4628 | { | |
4629 | arg3 = &temp3; | |
4630 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4631 | } | |
4632 | } | |
4633 | if (obj3) { | |
4634 | { | |
4635 | arg4 = &temp4; | |
4636 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4637 | } | |
4638 | } | |
994141e6 | 4639 | if (obj4) { |
15afbcd0 RD |
4640 | arg5 = (long) SWIG_AsLong(obj4); |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4642 | } |
d14a1e28 RD |
4643 | if (obj5) { |
4644 | { | |
4645 | arg6 = wxString_in_helper(obj5); | |
4646 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4647 | temp6 = True; |
d14a1e28 RD |
4648 | } |
4649 | } | |
4650 | { | |
4651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4652 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4653 | ||
4654 | wxPyEndAllowThreads(__tstate); | |
4655 | if (PyErr_Occurred()) SWIG_fail; | |
4656 | } | |
15afbcd0 | 4657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4658 | { |
4659 | if (temp6) | |
4660 | delete arg6; | |
4661 | } | |
4662 | return resultobj; | |
4663 | fail: | |
4664 | { | |
4665 | if (temp6) | |
4666 | delete arg6; | |
4667 | } | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
4672 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4673 | PyObject *resultobj; | |
4674 | wxStaticLine *result; | |
4675 | char *kwnames[] = { | |
4676 | NULL | |
4677 | }; | |
4678 | ||
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | result = (wxStaticLine *)new wxStaticLine(); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
15afbcd0 | 4687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4688 | return resultobj; |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
4694 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject *resultobj; | |
4696 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4697 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4698 | int arg3 ; |
d14a1e28 RD |
4699 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4700 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4701 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4702 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4703 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4704 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4705 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4706 | bool result; | |
4707 | wxPoint temp4 ; | |
4708 | wxSize temp5 ; | |
e811c8ce | 4709 | bool temp7 = False ; |
d14a1e28 RD |
4710 | PyObject * obj0 = 0 ; |
4711 | PyObject * obj1 = 0 ; | |
994141e6 | 4712 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4713 | PyObject * obj3 = 0 ; |
4714 | PyObject * obj4 = 0 ; | |
994141e6 | 4715 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4716 | PyObject * obj6 = 0 ; |
4717 | char *kwnames[] = { | |
4718 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4719 | }; | |
4720 | ||
994141e6 | 4721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4726 | arg3 = (int) SWIG_AsInt(obj2); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4728 | if (obj3) { |
4729 | { | |
4730 | arg4 = &temp4; | |
4731 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4732 | } | |
4733 | } | |
4734 | if (obj4) { | |
4735 | { | |
4736 | arg5 = &temp5; | |
4737 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4738 | } | |
4739 | } | |
994141e6 | 4740 | if (obj5) { |
15afbcd0 RD |
4741 | arg6 = (long) SWIG_AsLong(obj5); |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4743 | } |
d14a1e28 RD |
4744 | if (obj6) { |
4745 | { | |
4746 | arg7 = wxString_in_helper(obj6); | |
4747 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4748 | temp7 = True; |
d14a1e28 RD |
4749 | } |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
4f89f6a3 RD |
4758 | { |
4759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4760 | } | |
d14a1e28 RD |
4761 | { |
4762 | if (temp7) | |
4763 | delete arg7; | |
4764 | } | |
4765 | return resultobj; | |
4766 | fail: | |
4767 | { | |
4768 | if (temp7) | |
4769 | delete arg7; | |
4770 | } | |
4771 | return NULL; | |
4772 | } | |
4773 | ||
4774 | ||
4775 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4776 | PyObject *resultobj; | |
4777 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4778 | bool result; | |
4779 | PyObject * obj0 = 0 ; | |
4780 | char *kwnames[] = { | |
4781 | (char *) "self", NULL | |
4782 | }; | |
4783 | ||
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4787 | { |
4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4789 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4790 | ||
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4f89f6a3 RD |
4794 | { |
4795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4796 | } | |
d14a1e28 RD |
4797 | return resultobj; |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
4803 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4804 | PyObject *resultobj; | |
4805 | int result; | |
4806 | char *kwnames[] = { | |
4807 | NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4811 | { | |
4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4813 | result = (int)wxStaticLine::GetDefaultSize(); | |
4814 | ||
4815 | wxPyEndAllowThreads(__tstate); | |
4816 | if (PyErr_Occurred()) SWIG_fail; | |
4817 | } | |
15afbcd0 | 4818 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4819 | return resultobj; |
4820 | fail: | |
4821 | return NULL; | |
4822 | } | |
4823 | ||
4824 | ||
22bfe96c RD |
4825 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4826 | PyObject *resultobj; | |
4827 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4828 | wxVisualAttributes result; | |
4829 | PyObject * obj0 = 0 ; | |
4830 | char *kwnames[] = { | |
4831 | (char *) "variant", NULL | |
4832 | }; | |
4833 | ||
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4835 | if (obj0) { | |
4836 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4837 | if (PyErr_Occurred()) SWIG_fail; | |
4838 | } | |
4839 | { | |
4840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4841 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4842 | ||
4843 | wxPyEndAllowThreads(__tstate); | |
4844 | if (PyErr_Occurred()) SWIG_fail; | |
4845 | } | |
4846 | { | |
4847 | wxVisualAttributes * resultptr; | |
4848 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4850 | } | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
4854 | } | |
4855 | ||
4856 | ||
d14a1e28 RD |
4857 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4858 | PyObject *obj; | |
4859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4860 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4861 | Py_INCREF(obj); | |
4862 | return Py_BuildValue((char *)""); | |
4863 | } | |
4864 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject *resultobj; | |
4866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4867 | int arg2 ; |
d14a1e28 RD |
4868 | wxString *arg3 = 0 ; |
4869 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4870 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4871 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4872 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4873 | long arg6 = (long) 0 ; | |
4874 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4875 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4876 | wxStaticText *result; | |
e811c8ce | 4877 | bool temp3 = False ; |
d14a1e28 RD |
4878 | wxPoint temp4 ; |
4879 | wxSize temp5 ; | |
e811c8ce | 4880 | bool temp7 = False ; |
d14a1e28 | 4881 | PyObject * obj0 = 0 ; |
994141e6 | 4882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4883 | PyObject * obj2 = 0 ; |
4884 | PyObject * obj3 = 0 ; | |
4885 | PyObject * obj4 = 0 ; | |
994141e6 | 4886 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4887 | PyObject * obj6 = 0 ; |
4888 | char *kwnames[] = { | |
4889 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4890 | }; | |
4891 | ||
994141e6 | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4895 | arg2 = (int) SWIG_AsInt(obj1); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4897 | { |
4898 | arg3 = wxString_in_helper(obj2); | |
4899 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4900 | temp3 = True; |
d14a1e28 RD |
4901 | } |
4902 | if (obj3) { | |
4903 | { | |
4904 | arg4 = &temp4; | |
4905 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4906 | } | |
4907 | } | |
4908 | if (obj4) { | |
4909 | { | |
4910 | arg5 = &temp5; | |
4911 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4912 | } | |
4913 | } | |
994141e6 | 4914 | if (obj5) { |
15afbcd0 RD |
4915 | arg6 = (long) SWIG_AsLong(obj5); |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4917 | } |
d14a1e28 RD |
4918 | if (obj6) { |
4919 | { | |
4920 | arg7 = wxString_in_helper(obj6); | |
4921 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4922 | temp7 = True; |
d14a1e28 RD |
4923 | } |
4924 | } | |
4925 | { | |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4928 | ||
4929 | wxPyEndAllowThreads(__tstate); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | } | |
15afbcd0 | 4932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4933 | { |
4934 | if (temp3) | |
4935 | delete arg3; | |
4936 | } | |
4937 | { | |
4938 | if (temp7) | |
4939 | delete arg7; | |
4940 | } | |
4941 | return resultobj; | |
4942 | fail: | |
4943 | { | |
4944 | if (temp3) | |
4945 | delete arg3; | |
4946 | } | |
4947 | { | |
4948 | if (temp7) | |
4949 | delete arg7; | |
4950 | } | |
4951 | return NULL; | |
4952 | } | |
4953 | ||
4954 | ||
4955 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject *resultobj; | |
4957 | wxStaticText *result; | |
4958 | char *kwnames[] = { | |
4959 | NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | result = (wxStaticText *)new wxStaticText(); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
15afbcd0 | 4970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4971 | return resultobj; |
4972 | fail: | |
4973 | return NULL; | |
4974 | } | |
4975 | ||
4976 | ||
4977 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4978 | PyObject *resultobj; | |
4979 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4980 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4981 | int arg3 ; |
d14a1e28 RD |
4982 | wxString *arg4 = 0 ; |
4983 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4984 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4985 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4986 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4987 | long arg7 = (long) 0 ; | |
4988 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4989 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4990 | bool result; | |
e811c8ce | 4991 | bool temp4 = False ; |
d14a1e28 RD |
4992 | wxPoint temp5 ; |
4993 | wxSize temp6 ; | |
e811c8ce | 4994 | bool temp8 = False ; |
d14a1e28 RD |
4995 | PyObject * obj0 = 0 ; |
4996 | PyObject * obj1 = 0 ; | |
994141e6 | 4997 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4998 | PyObject * obj3 = 0 ; |
4999 | PyObject * obj4 = 0 ; | |
5000 | PyObject * obj5 = 0 ; | |
994141e6 | 5001 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5002 | PyObject * obj7 = 0 ; |
5003 | char *kwnames[] = { | |
5004 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5005 | }; | |
5006 | ||
994141e6 | 5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5012 | arg3 = (int) SWIG_AsInt(obj2); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5014 | { |
5015 | arg4 = wxString_in_helper(obj3); | |
5016 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5017 | temp4 = True; |
d14a1e28 RD |
5018 | } |
5019 | if (obj4) { | |
5020 | { | |
5021 | arg5 = &temp5; | |
5022 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5023 | } | |
5024 | } | |
5025 | if (obj5) { | |
5026 | { | |
5027 | arg6 = &temp6; | |
5028 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5029 | } | |
5030 | } | |
994141e6 | 5031 | if (obj6) { |
15afbcd0 RD |
5032 | arg7 = (long) SWIG_AsLong(obj6); |
5033 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5034 | } |
d14a1e28 RD |
5035 | if (obj7) { |
5036 | { | |
5037 | arg8 = wxString_in_helper(obj7); | |
5038 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5039 | temp8 = True; |
d14a1e28 RD |
5040 | } |
5041 | } | |
5042 | { | |
5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5044 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5045 | ||
5046 | wxPyEndAllowThreads(__tstate); | |
5047 | if (PyErr_Occurred()) SWIG_fail; | |
5048 | } | |
4f89f6a3 RD |
5049 | { |
5050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5051 | } | |
d14a1e28 RD |
5052 | { |
5053 | if (temp4) | |
5054 | delete arg4; | |
5055 | } | |
5056 | { | |
5057 | if (temp8) | |
5058 | delete arg8; | |
5059 | } | |
5060 | return resultobj; | |
5061 | fail: | |
5062 | { | |
5063 | if (temp4) | |
5064 | delete arg4; | |
5065 | } | |
5066 | { | |
5067 | if (temp8) | |
5068 | delete arg8; | |
5069 | } | |
5070 | return NULL; | |
5071 | } | |
5072 | ||
5073 | ||
22bfe96c RD |
5074 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5075 | PyObject *resultobj; | |
5076 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5077 | wxVisualAttributes result; | |
5078 | PyObject * obj0 = 0 ; | |
5079 | char *kwnames[] = { | |
5080 | (char *) "variant", NULL | |
5081 | }; | |
5082 | ||
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5084 | if (obj0) { | |
5085 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | { | |
5089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5090 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5091 | ||
5092 | wxPyEndAllowThreads(__tstate); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
5095 | { | |
5096 | wxVisualAttributes * resultptr; | |
5097 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5099 | } | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
d14a1e28 RD |
5106 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5107 | PyObject *obj; | |
5108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5109 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5110 | Py_INCREF(obj); | |
5111 | return Py_BuildValue((char *)""); | |
5112 | } | |
5113 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject *resultobj; | |
5115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5116 | int arg2 ; |
d14a1e28 RD |
5117 | wxBitmap *arg3 = 0 ; |
5118 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5119 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5120 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5121 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5122 | long arg6 = (long) 0 ; | |
5123 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5124 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5125 | wxStaticBitmap *result; | |
5126 | wxPoint temp4 ; | |
5127 | wxSize temp5 ; | |
e811c8ce | 5128 | bool temp7 = False ; |
d14a1e28 | 5129 | PyObject * obj0 = 0 ; |
994141e6 | 5130 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5131 | PyObject * obj2 = 0 ; |
5132 | PyObject * obj3 = 0 ; | |
5133 | PyObject * obj4 = 0 ; | |
994141e6 | 5134 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5135 | PyObject * obj6 = 0 ; |
5136 | char *kwnames[] = { | |
5137 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5138 | }; | |
5139 | ||
994141e6 | 5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5143 | arg2 = (int) SWIG_AsInt(obj1); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5147 | SWIG_fail; | |
d14a1e28 | 5148 | if (arg3 == NULL) { |
15afbcd0 RD |
5149 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5150 | SWIG_fail; | |
d14a1e28 RD |
5151 | } |
5152 | if (obj3) { | |
5153 | { | |
5154 | arg4 = &temp4; | |
5155 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5156 | } | |
5157 | } | |
5158 | if (obj4) { | |
5159 | { | |
5160 | arg5 = &temp5; | |
5161 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5162 | } | |
5163 | } | |
994141e6 | 5164 | if (obj5) { |
15afbcd0 RD |
5165 | arg6 = (long) SWIG_AsLong(obj5); |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5167 | } |
d14a1e28 RD |
5168 | if (obj6) { |
5169 | { | |
5170 | arg7 = wxString_in_helper(obj6); | |
5171 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5172 | temp7 = True; |
d14a1e28 RD |
5173 | } |
5174 | } | |
5175 | { | |
5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5177 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5178 | ||
5179 | wxPyEndAllowThreads(__tstate); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | } | |
15afbcd0 | 5182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5183 | { |
5184 | if (temp7) | |
5185 | delete arg7; | |
5186 | } | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | { | |
5190 | if (temp7) | |
5191 | delete arg7; | |
5192 | } | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
5197 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxStaticBitmap *result; | |
5200 | char *kwnames[] = { | |
5201 | NULL | |
5202 | }; | |
5203 | ||
5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5205 | { | |
5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5207 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5208 | ||
5209 | wxPyEndAllowThreads(__tstate); | |
5210 | if (PyErr_Occurred()) SWIG_fail; | |
5211 | } | |
15afbcd0 | 5212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5213 | return resultobj; |
5214 | fail: | |
5215 | return NULL; | |
5216 | } | |
5217 | ||
5218 | ||
5219 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5220 | PyObject *resultobj; | |
5221 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5223 | int arg3 ; |
d14a1e28 RD |
5224 | wxBitmap *arg4 = 0 ; |
5225 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5226 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5227 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5228 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5229 | long arg7 = (long) 0 ; | |
5230 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5231 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5232 | bool result; | |
5233 | wxPoint temp5 ; | |
5234 | wxSize temp6 ; | |
e811c8ce | 5235 | bool temp8 = False ; |
d14a1e28 RD |
5236 | PyObject * obj0 = 0 ; |
5237 | PyObject * obj1 = 0 ; | |
994141e6 | 5238 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5239 | PyObject * obj3 = 0 ; |
5240 | PyObject * obj4 = 0 ; | |
5241 | PyObject * obj5 = 0 ; | |
994141e6 | 5242 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5243 | PyObject * obj7 = 0 ; |
5244 | char *kwnames[] = { | |
5245 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5246 | }; | |
5247 | ||
994141e6 | 5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5253 | arg3 = (int) SWIG_AsInt(obj2); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5256 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5257 | SWIG_fail; | |
d14a1e28 | 5258 | if (arg4 == NULL) { |
15afbcd0 RD |
5259 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5260 | SWIG_fail; | |
d14a1e28 RD |
5261 | } |
5262 | if (obj4) { | |
5263 | { | |
5264 | arg5 = &temp5; | |
5265 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5266 | } | |
5267 | } | |
5268 | if (obj5) { | |
5269 | { | |
5270 | arg6 = &temp6; | |
5271 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5272 | } | |
5273 | } | |
994141e6 | 5274 | if (obj6) { |
15afbcd0 RD |
5275 | arg7 = (long) SWIG_AsLong(obj6); |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5277 | } |
d14a1e28 RD |
5278 | if (obj7) { |
5279 | { | |
5280 | arg8 = wxString_in_helper(obj7); | |
5281 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5282 | temp8 = True; |
d14a1e28 RD |
5283 | } |
5284 | } | |
5285 | { | |
5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5287 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5288 | ||
5289 | wxPyEndAllowThreads(__tstate); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | } | |
4f89f6a3 RD |
5292 | { |
5293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5294 | } | |
d14a1e28 RD |
5295 | { |
5296 | if (temp8) | |
5297 | delete arg8; | |
5298 | } | |
5299 | return resultobj; | |
5300 | fail: | |
5301 | { | |
5302 | if (temp8) | |
5303 | delete arg8; | |
5304 | } | |
5305 | return NULL; | |
5306 | } | |
5307 | ||
5308 | ||
5309 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5310 | PyObject *resultobj; | |
5311 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5312 | wxBitmap result; | |
5313 | PyObject * obj0 = 0 ; | |
5314 | char *kwnames[] = { | |
5315 | (char *) "self", NULL | |
5316 | }; | |
5317 | ||
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5321 | { |
5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5323 | result = (arg1)->GetBitmap(); | |
5324 | ||
5325 | wxPyEndAllowThreads(__tstate); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | } | |
5328 | { | |
5329 | wxBitmap * resultptr; | |
5330 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5331 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5332 | } |
5333 | return resultobj; | |
5334 | fail: | |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj; | |
5341 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5342 | wxBitmap *arg2 = 0 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | PyObject * obj1 = 0 ; | |
5345 | char *kwnames[] = { | |
5346 | (char *) "self",(char *) "bitmap", NULL | |
5347 | }; | |
5348 | ||
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5354 | SWIG_fail; | |
d14a1e28 | 5355 | if (arg2 == NULL) { |
15afbcd0 RD |
5356 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5357 | SWIG_fail; | |
d14a1e28 RD |
5358 | } |
5359 | { | |
5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5361 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5362 | ||
5363 | wxPyEndAllowThreads(__tstate); | |
5364 | if (PyErr_Occurred()) SWIG_fail; | |
5365 | } | |
5366 | Py_INCREF(Py_None); resultobj = Py_None; | |
5367 | return resultobj; | |
5368 | fail: | |
5369 | return NULL; | |
5370 | } | |
5371 | ||
5372 | ||
5373 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5374 | PyObject *resultobj; | |
5375 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5376 | wxIcon *arg2 = 0 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | PyObject * obj1 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self",(char *) "icon", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5388 | SWIG_fail; | |
d14a1e28 | 5389 | if (arg2 == NULL) { |
15afbcd0 RD |
5390 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5391 | SWIG_fail; | |
d14a1e28 RD |
5392 | } |
5393 | { | |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | Py_INCREF(Py_None); resultobj = Py_None; | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
22bfe96c RD |
5407 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5408 | PyObject *resultobj; | |
5409 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5410 | wxVisualAttributes result; | |
5411 | PyObject * obj0 = 0 ; | |
5412 | char *kwnames[] = { | |
5413 | (char *) "variant", NULL | |
5414 | }; | |
5415 | ||
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5417 | if (obj0) { | |
5418 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
5428 | { | |
5429 | wxVisualAttributes * resultptr; | |
5430 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5432 | } | |
5433 | return resultobj; | |
5434 | fail: | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
d14a1e28 RD |
5439 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5440 | PyObject *obj; | |
5441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5442 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5443 | Py_INCREF(obj); | |
5444 | return Py_BuildValue((char *)""); | |
5445 | } | |
b2dc1044 RD |
5446 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
5447 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5448 | return 1; | |
5449 | } | |
5450 | ||
5451 | ||
5452 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5453 | PyObject *pyobj; | |
5454 | ||
5455 | { | |
5456 | #if wxUSE_UNICODE | |
5457 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5458 | #else | |
5459 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5460 | #endif | |
5461 | } | |
5462 | return pyobj; | |
5463 | } | |
5464 | ||
5465 | ||
d14a1e28 RD |
5466 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5467 | PyObject *resultobj; | |
5468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5469 | int arg2 ; |
d14a1e28 RD |
5470 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5471 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5472 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5473 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5474 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5475 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5476 | long arg6 = (long) 0 ; | |
5477 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5478 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5479 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5480 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5481 | wxListBox *result; |
5482 | wxPoint temp3 ; | |
5483 | wxSize temp4 ; | |
3adfb63b | 5484 | bool temp5 = False ; |
e811c8ce | 5485 | bool temp8 = False ; |
d14a1e28 | 5486 | PyObject * obj0 = 0 ; |
994141e6 | 5487 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5488 | PyObject * obj2 = 0 ; |
5489 | PyObject * obj3 = 0 ; | |
5490 | PyObject * obj4 = 0 ; | |
994141e6 | 5491 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5492 | PyObject * obj6 = 0 ; |
5493 | PyObject * obj7 = 0 ; | |
5494 | char *kwnames[] = { | |
5495 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5496 | }; | |
5497 | ||
994141e6 | 5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5501 | arg2 = (int) SWIG_AsInt(obj1); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5503 | if (obj2) { |
5504 | { | |
5505 | arg3 = &temp3; | |
5506 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5507 | } | |
5508 | } | |
5509 | if (obj3) { | |
5510 | { | |
5511 | arg4 = &temp4; | |
5512 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5513 | } | |
5514 | } | |
5515 | if (obj4) { | |
5516 | { | |
4d5c3d91 RD |
5517 | if (! PySequence_Check(obj4)) { |
5518 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5519 | SWIG_fail; | |
5520 | } | |
5521 | arg5 = new wxArrayString; | |
3adfb63b | 5522 | temp5 = True; |
4d5c3d91 RD |
5523 | int i, len=PySequence_Length(obj4); |
5524 | for (i=0; i<len; i++) { | |
5525 | PyObject* item = PySequence_GetItem(obj4, i); | |
5526 | #if wxUSE_UNICODE | |
5527 | PyObject* str = PyObject_Unicode(item); | |
5528 | #else | |
5529 | PyObject* str = PyObject_Str(item); | |
5530 | #endif | |
74a57fcd | 5531 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5532 | arg5->Add(Py2wxString(str)); |
5533 | Py_DECREF(item); | |
5534 | Py_DECREF(str); | |
5535 | } | |
d14a1e28 RD |
5536 | } |
5537 | } | |
994141e6 | 5538 | if (obj5) { |
15afbcd0 RD |
5539 | arg6 = (long) SWIG_AsLong(obj5); |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5541 | } |
d14a1e28 | 5542 | if (obj6) { |
15afbcd0 RD |
5543 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5545 | SWIG_fail; | |
4d5c3d91 | 5546 | if (arg7 == NULL) { |
15afbcd0 RD |
5547 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5548 | SWIG_fail; | |
d14a1e28 RD |
5549 | } |
5550 | } | |
5551 | if (obj7) { | |
5552 | { | |
4d5c3d91 RD |
5553 | arg8 = wxString_in_helper(obj7); |
5554 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5555 | temp8 = True; |
d14a1e28 RD |
5556 | } |
5557 | } | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5560 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5561 | |
5562 | wxPyEndAllowThreads(__tstate); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | } | |
15afbcd0 | 5565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5566 | { |
3adfb63b | 5567 | if (temp5) delete arg5; |
d14a1e28 RD |
5568 | } |
5569 | { | |
5570 | if (temp8) | |
4d5c3d91 | 5571 | delete arg8; |
d14a1e28 RD |
5572 | } |
5573 | return resultobj; | |
5574 | fail: | |
5575 | { | |
3adfb63b | 5576 | if (temp5) delete arg5; |
d14a1e28 RD |
5577 | } |
5578 | { | |
5579 | if (temp8) | |
4d5c3d91 | 5580 | delete arg8; |
d14a1e28 RD |
5581 | } |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj; | |
5588 | wxListBox *result; | |
5589 | char *kwnames[] = { | |
5590 | NULL | |
5591 | }; | |
5592 | ||
5593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5594 | { | |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | result = (wxListBox *)new wxListBox(); | |
5597 | ||
5598 | wxPyEndAllowThreads(__tstate); | |
5599 | if (PyErr_Occurred()) SWIG_fail; | |
5600 | } | |
15afbcd0 | 5601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5602 | return resultobj; |
5603 | fail: | |
5604 | return NULL; | |
5605 | } | |
5606 | ||
5607 | ||
5608 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5609 | PyObject *resultobj; | |
5610 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5611 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5612 | int arg3 ; |
d14a1e28 RD |
5613 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5614 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5615 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5616 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5617 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5618 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5619 | long arg7 = (long) 0 ; | |
5620 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5621 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5622 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5623 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5624 | bool result; |
5625 | wxPoint temp4 ; | |
5626 | wxSize temp5 ; | |
3adfb63b | 5627 | bool temp6 = False ; |
e811c8ce | 5628 | bool temp9 = False ; |
d14a1e28 RD |
5629 | PyObject * obj0 = 0 ; |
5630 | PyObject * obj1 = 0 ; | |
994141e6 | 5631 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5632 | PyObject * obj3 = 0 ; |
5633 | PyObject * obj4 = 0 ; | |
5634 | PyObject * obj5 = 0 ; | |
994141e6 | 5635 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5636 | PyObject * obj7 = 0 ; |
5637 | PyObject * obj8 = 0 ; | |
5638 | char *kwnames[] = { | |
5639 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5640 | }; | |
5641 | ||
994141e6 | 5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5647 | arg3 = (int) SWIG_AsInt(obj2); | |
5648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5649 | if (obj3) { |
5650 | { | |
5651 | arg4 = &temp4; | |
5652 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5653 | } | |
5654 | } | |
5655 | if (obj4) { | |
5656 | { | |
5657 | arg5 = &temp5; | |
5658 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5659 | } | |
5660 | } | |
5661 | if (obj5) { | |
5662 | { | |
4d5c3d91 RD |
5663 | if (! PySequence_Check(obj5)) { |
5664 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5665 | SWIG_fail; | |
5666 | } | |
5667 | arg6 = new wxArrayString; | |
3adfb63b | 5668 | temp6 = True; |
4d5c3d91 RD |
5669 | int i, len=PySequence_Length(obj5); |
5670 | for (i=0; i<len; i++) { | |
5671 | PyObject* item = PySequence_GetItem(obj5, i); | |
5672 | #if wxUSE_UNICODE | |
5673 | PyObject* str = PyObject_Unicode(item); | |
5674 | #else | |
5675 | PyObject* str = PyObject_Str(item); | |
5676 | #endif | |
74a57fcd | 5677 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5678 | arg6->Add(Py2wxString(str)); |
5679 | Py_DECREF(item); | |
5680 | Py_DECREF(str); | |
5681 | } | |
d14a1e28 RD |
5682 | } |
5683 | } | |
994141e6 | 5684 | if (obj6) { |
15afbcd0 RD |
5685 | arg7 = (long) SWIG_AsLong(obj6); |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5687 | } |
d14a1e28 | 5688 | if (obj7) { |
15afbcd0 RD |
5689 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5691 | SWIG_fail; | |
4d5c3d91 | 5692 | if (arg8 == NULL) { |
15afbcd0 RD |
5693 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5694 | SWIG_fail; | |
d14a1e28 RD |
5695 | } |
5696 | } | |
5697 | if (obj8) { | |
5698 | { | |
4d5c3d91 RD |
5699 | arg9 = wxString_in_helper(obj8); |
5700 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5701 | temp9 = True; |
d14a1e28 RD |
5702 | } |
5703 | } | |
5704 | { | |
5705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5706 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5707 | |
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
5710 | } | |
4f89f6a3 RD |
5711 | { |
5712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5713 | } | |
d14a1e28 | 5714 | { |
3adfb63b | 5715 | if (temp6) delete arg6; |
d14a1e28 RD |
5716 | } |
5717 | { | |
5718 | if (temp9) | |
4d5c3d91 | 5719 | delete arg9; |
d14a1e28 RD |
5720 | } |
5721 | return resultobj; | |
5722 | fail: | |
5723 | { | |
3adfb63b | 5724 | if (temp6) delete arg6; |
d14a1e28 RD |
5725 | } |
5726 | { | |
5727 | if (temp9) | |
4d5c3d91 | 5728 | delete arg9; |
d14a1e28 RD |
5729 | } |
5730 | return NULL; | |
5731 | } | |
5732 | ||
5733 | ||
5734 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5735 | PyObject *resultobj; | |
5736 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5737 | wxString *arg2 = 0 ; | |
5738 | int arg3 ; | |
5739 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5740 | bool temp2 = False ; |
d14a1e28 RD |
5741 | PyObject * obj0 = 0 ; |
5742 | PyObject * obj1 = 0 ; | |
994141e6 | 5743 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5744 | PyObject * obj3 = 0 ; |
5745 | char *kwnames[] = { | |
5746 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5747 | }; | |
5748 | ||
994141e6 | 5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5752 | { |
5753 | arg2 = wxString_in_helper(obj1); | |
5754 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5755 | temp2 = True; |
d14a1e28 | 5756 | } |
15afbcd0 RD |
5757 | arg3 = (int) SWIG_AsInt(obj2); |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5759 | if (obj3) { |
5760 | arg4 = obj3; | |
5761 | } | |
5762 | { | |
5763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5764 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5765 | ||
5766 | wxPyEndAllowThreads(__tstate); | |
5767 | if (PyErr_Occurred()) SWIG_fail; | |
5768 | } | |
5769 | Py_INCREF(Py_None); resultobj = Py_None; | |
5770 | { | |
5771 | if (temp2) | |
5772 | delete arg2; | |
5773 | } | |
5774 | return resultobj; | |
5775 | fail: | |
5776 | { | |
5777 | if (temp2) | |
5778 | delete arg2; | |
5779 | } | |
5780 | return NULL; | |
5781 | } | |
5782 | ||
5783 | ||
5784 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5785 | PyObject *resultobj; | |
5786 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5787 | wxArrayString *arg2 = 0 ; | |
5788 | int arg3 ; | |
3adfb63b | 5789 | bool temp2 = False ; |
d14a1e28 RD |
5790 | PyObject * obj0 = 0 ; |
5791 | PyObject * obj1 = 0 ; | |
994141e6 | 5792 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5793 | char *kwnames[] = { |
5794 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5795 | }; | |
5796 | ||
994141e6 | 5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5800 | { |
5801 | if (! PySequence_Check(obj1)) { | |
5802 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5803 | SWIG_fail; | |
5804 | } | |
5805 | arg2 = new wxArrayString; | |
3adfb63b | 5806 | temp2 = True; |
d14a1e28 RD |
5807 | int i, len=PySequence_Length(obj1); |
5808 | for (i=0; i<len; i++) { | |
5809 | PyObject* item = PySequence_GetItem(obj1, i); | |
5810 | #if wxUSE_UNICODE | |
5811 | PyObject* str = PyObject_Unicode(item); | |
5812 | #else | |
5813 | PyObject* str = PyObject_Str(item); | |
5814 | #endif | |
74a57fcd | 5815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5816 | arg2->Add(Py2wxString(str)); |
5817 | Py_DECREF(item); | |
5818 | Py_DECREF(str); | |
5819 | } | |
5820 | } | |
15afbcd0 RD |
5821 | arg3 = (int) SWIG_AsInt(obj2); |
5822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5823 | { |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | Py_INCREF(Py_None); resultobj = Py_None; | |
5831 | { | |
3adfb63b | 5832 | if (temp2) delete arg2; |
d14a1e28 RD |
5833 | } |
5834 | return resultobj; | |
5835 | fail: | |
5836 | { | |
3adfb63b | 5837 | if (temp2) delete arg2; |
d14a1e28 RD |
5838 | } |
5839 | return NULL; | |
5840 | } | |
5841 | ||
5842 | ||
5843 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject *resultobj; | |
5845 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5846 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 5847 | bool temp2 = False ; |
d14a1e28 RD |
5848 | PyObject * obj0 = 0 ; |
5849 | PyObject * obj1 = 0 ; | |
5850 | char *kwnames[] = { | |
5851 | (char *) "self",(char *) "items", NULL | |
5852 | }; | |
5853 | ||
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5857 | { |
5858 | if (! PySequence_Check(obj1)) { | |
5859 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5860 | SWIG_fail; | |
5861 | } | |
5862 | arg2 = new wxArrayString; | |
3adfb63b | 5863 | temp2 = True; |
d14a1e28 RD |
5864 | int i, len=PySequence_Length(obj1); |
5865 | for (i=0; i<len; i++) { | |
5866 | PyObject* item = PySequence_GetItem(obj1, i); | |
5867 | #if wxUSE_UNICODE | |
5868 | PyObject* str = PyObject_Unicode(item); | |
5869 | #else | |
5870 | PyObject* str = PyObject_Str(item); | |
5871 | #endif | |
74a57fcd | 5872 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5873 | arg2->Add(Py2wxString(str)); |
5874 | Py_DECREF(item); | |
5875 | Py_DECREF(str); | |
5876 | } | |
5877 | } | |
5878 | { | |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | (arg1)->Set((wxArrayString const &)*arg2); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
5885 | Py_INCREF(Py_None); resultobj = Py_None; | |
5886 | { | |
3adfb63b | 5887 | if (temp2) delete arg2; |
d14a1e28 RD |
5888 | } |
5889 | return resultobj; | |
5890 | fail: | |
5891 | { | |
3adfb63b | 5892 | if (temp2) delete arg2; |
d14a1e28 RD |
5893 | } |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
5898 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5899 | PyObject *resultobj; | |
5900 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5901 | int arg2 ; | |
5902 | bool result; | |
5903 | PyObject * obj0 = 0 ; | |
994141e6 | 5904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5905 | char *kwnames[] = { |
5906 | (char *) "self",(char *) "n", NULL | |
5907 | }; | |
5908 | ||
994141e6 | 5909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5912 | arg2 = (int) SWIG_AsInt(obj1); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5914 | { |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
4f89f6a3 RD |
5921 | { |
5922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5923 | } | |
d14a1e28 RD |
5924 | return resultobj; |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
5930 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject *resultobj; | |
5932 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5933 | int arg2 ; | |
e811c8ce | 5934 | bool arg3 = (bool) True ; |
d14a1e28 | 5935 | PyObject * obj0 = 0 ; |
994141e6 | 5936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5937 | PyObject * obj2 = 0 ; |
5938 | char *kwnames[] = { | |
5939 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5940 | }; | |
5941 | ||
994141e6 | 5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5945 | arg2 = (int) SWIG_AsInt(obj1); | |
5946 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 5947 | if (obj2) { |
15afbcd0 RD |
5948 | arg3 = (bool) SWIG_AsBool(obj2); |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5950 | } |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | (arg1)->SetSelection(arg2,arg3); | |
5954 | ||
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | Py_INCREF(Py_None); resultobj = Py_None; | |
5959 | return resultobj; | |
5960 | fail: | |
5961 | return NULL; | |
5962 | } | |
5963 | ||
5964 | ||
5965 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5966 | PyObject *resultobj; | |
5967 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5968 | int arg2 ; | |
5969 | PyObject * obj0 = 0 ; | |
994141e6 | 5970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5971 | char *kwnames[] = { |
5972 | (char *) "self",(char *) "n", NULL | |
5973 | }; | |
5974 | ||
994141e6 | 5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5978 | arg2 = (int) SWIG_AsInt(obj1); | |
5979 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5980 | { |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | (arg1)->Select(arg2); | |
5983 | ||
5984 | wxPyEndAllowThreads(__tstate); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | } | |
5987 | Py_INCREF(Py_None); resultobj = Py_None; | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
5994 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5997 | int arg2 ; | |
5998 | PyObject * obj0 = 0 ; | |
994141e6 | 5999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6000 | char *kwnames[] = { |
6001 | (char *) "self",(char *) "n", NULL | |
6002 | }; | |
6003 | ||
994141e6 | 6004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6007 | arg2 = (int) SWIG_AsInt(obj1); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6009 | { |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | (arg1)->Deselect(arg2); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | Py_INCREF(Py_None); resultobj = Py_None; | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
6020 | } | |
6021 | ||
6022 | ||
6023 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6024 | PyObject *resultobj; | |
6025 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6026 | int arg2 = (int) -1 ; | |
6027 | PyObject * obj0 = 0 ; | |
994141e6 | 6028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6029 | char *kwnames[] = { |
6030 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6031 | }; | |
6032 | ||
994141e6 | 6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6036 | if (obj1) { |
15afbcd0 RD |
6037 | arg2 = (int) SWIG_AsInt(obj1); |
6038 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6039 | } |
d14a1e28 RD |
6040 | { |
6041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6042 | (arg1)->DeselectAll(arg2); | |
6043 | ||
6044 | wxPyEndAllowThreads(__tstate); | |
6045 | if (PyErr_Occurred()) SWIG_fail; | |
6046 | } | |
6047 | Py_INCREF(Py_None); resultobj = Py_None; | |
6048 | return resultobj; | |
6049 | fail: | |
6050 | return NULL; | |
6051 | } | |
6052 | ||
6053 | ||
6054 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject *resultobj; | |
6056 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6057 | wxString *arg2 = 0 ; | |
e811c8ce | 6058 | bool arg3 = (bool) True ; |
d14a1e28 | 6059 | bool result; |
e811c8ce | 6060 | bool temp2 = False ; |
d14a1e28 RD |
6061 | PyObject * obj0 = 0 ; |
6062 | PyObject * obj1 = 0 ; | |
6063 | PyObject * obj2 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6071 | { |
6072 | arg2 = wxString_in_helper(obj1); | |
6073 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6074 | temp2 = True; |
d14a1e28 RD |
6075 | } |
6076 | if (obj2) { | |
15afbcd0 RD |
6077 | arg3 = (bool) SWIG_AsBool(obj2); |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6079 | } |
6080 | { | |
6081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6082 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6083 | ||
6084 | wxPyEndAllowThreads(__tstate); | |
6085 | if (PyErr_Occurred()) SWIG_fail; | |
6086 | } | |
4f89f6a3 RD |
6087 | { |
6088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6089 | } | |
d14a1e28 RD |
6090 | { |
6091 | if (temp2) | |
6092 | delete arg2; | |
6093 | } | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | { | |
6097 | if (temp2) | |
6098 | delete arg2; | |
6099 | } | |
6100 | return NULL; | |
6101 | } | |
6102 | ||
6103 | ||
6104 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject *resultobj; | |
6106 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6107 | PyObject *result; | |
6108 | PyObject * obj0 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "self", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6116 | { |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | resultobj = result; | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6131 | PyObject *resultobj; | |
6132 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6133 | int arg2 ; | |
6134 | PyObject * obj0 = 0 ; | |
994141e6 | 6135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6136 | char *kwnames[] = { |
6137 | (char *) "self",(char *) "n", NULL | |
6138 | }; | |
6139 | ||
994141e6 | 6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6143 | arg2 = (int) SWIG_AsInt(obj1); | |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6145 | { |
6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6147 | (arg1)->SetFirstItem(arg2); | |
6148 | ||
6149 | wxPyEndAllowThreads(__tstate); | |
6150 | if (PyErr_Occurred()) SWIG_fail; | |
6151 | } | |
6152 | Py_INCREF(Py_None); resultobj = Py_None; | |
6153 | return resultobj; | |
6154 | fail: | |
6155 | return NULL; | |
6156 | } | |
6157 | ||
6158 | ||
6159 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject *resultobj; | |
6161 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6162 | wxString *arg2 = 0 ; | |
e811c8ce | 6163 | bool temp2 = False ; |
d14a1e28 RD |
6164 | PyObject * obj0 = 0 ; |
6165 | PyObject * obj1 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self",(char *) "s", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6173 | { |
6174 | arg2 = wxString_in_helper(obj1); | |
6175 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6176 | temp2 = True; |
d14a1e28 RD |
6177 | } |
6178 | { | |
6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6180 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6181 | ||
6182 | wxPyEndAllowThreads(__tstate); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | } | |
6185 | Py_INCREF(Py_None); resultobj = Py_None; | |
6186 | { | |
6187 | if (temp2) | |
6188 | delete arg2; | |
6189 | } | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | { | |
6193 | if (temp2) | |
6194 | delete arg2; | |
6195 | } | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
6200 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6201 | PyObject *resultobj; | |
6202 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6203 | int arg2 ; | |
6204 | PyObject * obj0 = 0 ; | |
994141e6 | 6205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6206 | char *kwnames[] = { |
6207 | (char *) "self",(char *) "n", NULL | |
6208 | }; | |
6209 | ||
994141e6 | 6210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6213 | arg2 = (int) SWIG_AsInt(obj1); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6215 | { |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | (arg1)->EnsureVisible(arg2); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | Py_INCREF(Py_None); resultobj = Py_None; | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject *resultobj; | |
6231 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6232 | wxString *arg2 = 0 ; | |
e811c8ce | 6233 | bool temp2 = False ; |
d14a1e28 RD |
6234 | PyObject * obj0 = 0 ; |
6235 | PyObject * obj1 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "self",(char *) "s", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6243 | { |
6244 | arg2 = wxString_in_helper(obj1); | |
6245 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6246 | temp2 = True; |
d14a1e28 RD |
6247 | } |
6248 | { | |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6251 | ||
6252 | wxPyEndAllowThreads(__tstate); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | } | |
6255 | Py_INCREF(Py_None); resultobj = Py_None; | |
6256 | { | |
6257 | if (temp2) | |
6258 | delete arg2; | |
6259 | } | |
6260 | return resultobj; | |
6261 | fail: | |
6262 | { | |
6263 | if (temp2) | |
6264 | delete arg2; | |
6265 | } | |
6266 | return NULL; | |
6267 | } | |
6268 | ||
6269 | ||
6270 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6271 | PyObject *resultobj; | |
6272 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6273 | bool result; | |
6274 | PyObject * obj0 = 0 ; | |
6275 | char *kwnames[] = { | |
6276 | (char *) "self", NULL | |
6277 | }; | |
6278 | ||
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6282 | { |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
4f89f6a3 RD |
6289 | { |
6290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6291 | } | |
d14a1e28 RD |
6292 | return resultobj; |
6293 | fail: | |
6294 | return NULL; | |
6295 | } | |
6296 | ||
6297 | ||
c3eb6258 RD |
6298 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
6299 | PyObject *resultobj; | |
6300 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6301 | int arg2 ; | |
6302 | wxColour *arg3 = 0 ; | |
6303 | wxColour temp3 ; | |
6304 | PyObject * obj0 = 0 ; | |
6305 | PyObject * obj1 = 0 ; | |
6306 | PyObject * obj2 = 0 ; | |
6307 | char *kwnames[] = { | |
6308 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6309 | }; | |
6310 | ||
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6314 | arg2 = (int) SWIG_AsInt(obj1); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6316 | { |
6317 | arg3 = &temp3; | |
6318 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6319 | } | |
6320 | { | |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6323 | ||
6324 | wxPyEndAllowThreads(__tstate); | |
6325 | if (PyErr_Occurred()) SWIG_fail; | |
6326 | } | |
6327 | Py_INCREF(Py_None); resultobj = Py_None; | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | return NULL; | |
6331 | } | |
6332 | ||
6333 | ||
6334 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6335 | PyObject *resultobj; | |
6336 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6337 | int arg2 ; | |
6338 | wxColour *arg3 = 0 ; | |
6339 | wxColour temp3 ; | |
6340 | PyObject * obj0 = 0 ; | |
6341 | PyObject * obj1 = 0 ; | |
6342 | PyObject * obj2 = 0 ; | |
6343 | char *kwnames[] = { | |
6344 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6345 | }; | |
6346 | ||
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6350 | arg2 = (int) SWIG_AsInt(obj1); | |
6351 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6352 | { |
6353 | arg3 = &temp3; | |
6354 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6355 | } | |
6356 | { | |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) SWIG_fail; | |
6362 | } | |
6363 | Py_INCREF(Py_None); resultobj = Py_None; | |
6364 | return resultobj; | |
6365 | fail: | |
6366 | return NULL; | |
6367 | } | |
6368 | ||
6369 | ||
6370 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6371 | PyObject *resultobj; | |
6372 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6373 | int arg2 ; | |
6374 | wxFont *arg3 = 0 ; | |
6375 | PyObject * obj0 = 0 ; | |
6376 | PyObject * obj1 = 0 ; | |
6377 | PyObject * obj2 = 0 ; | |
6378 | char *kwnames[] = { | |
6379 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6380 | }; | |
6381 | ||
6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6385 | arg2 = (int) SWIG_AsInt(obj1); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6389 | SWIG_fail; | |
c3eb6258 | 6390 | if (arg3 == NULL) { |
15afbcd0 RD |
6391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6392 | SWIG_fail; | |
c3eb6258 RD |
6393 | } |
6394 | { | |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | Py_INCREF(Py_None); resultobj = Py_None; | |
6402 | return resultobj; | |
6403 | fail: | |
6404 | return NULL; | |
6405 | } | |
6406 | ||
6407 | ||
74a57fcd RD |
6408 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6409 | PyObject *resultobj; | |
6410 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6411 | wxVisualAttributes result; | |
6412 | PyObject * obj0 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "variant", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6418 | if (obj0) { | |
6419 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6420 | if (PyErr_Occurred()) SWIG_fail; | |
6421 | } | |
6422 | { | |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6424 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6425 | ||
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | } | |
6429 | { | |
6430 | wxVisualAttributes * resultptr; | |
6431 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6433 | } | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
d14a1e28 RD |
6440 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6441 | PyObject *obj; | |
6442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6443 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6444 | Py_INCREF(obj); | |
6445 | return Py_BuildValue((char *)""); | |
6446 | } | |
6447 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject *resultobj; | |
6449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6450 | int arg2 ; |
d14a1e28 RD |
6451 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6452 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6453 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6454 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6455 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6456 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6457 | long arg6 = (long) 0 ; | |
6458 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6459 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6460 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6461 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6462 | wxCheckListBox *result; |
6463 | wxPoint temp3 ; | |
6464 | wxSize temp4 ; | |
3adfb63b | 6465 | bool temp5 = False ; |
e811c8ce | 6466 | bool temp8 = False ; |
d14a1e28 | 6467 | PyObject * obj0 = 0 ; |
994141e6 | 6468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6469 | PyObject * obj2 = 0 ; |
6470 | PyObject * obj3 = 0 ; | |
6471 | PyObject * obj4 = 0 ; | |
994141e6 | 6472 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6473 | PyObject * obj6 = 0 ; |
6474 | PyObject * obj7 = 0 ; | |
6475 | char *kwnames[] = { | |
6476 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6477 | }; | |
6478 | ||
994141e6 | 6479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6482 | arg2 = (int) SWIG_AsInt(obj1); | |
6483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6484 | if (obj2) { |
6485 | { | |
6486 | arg3 = &temp3; | |
6487 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6488 | } | |
6489 | } | |
6490 | if (obj3) { | |
6491 | { | |
6492 | arg4 = &temp4; | |
6493 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6494 | } | |
6495 | } | |
6496 | if (obj4) { | |
6497 | { | |
4d5c3d91 RD |
6498 | if (! PySequence_Check(obj4)) { |
6499 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6500 | SWIG_fail; | |
6501 | } | |
6502 | arg5 = new wxArrayString; | |
3adfb63b | 6503 | temp5 = True; |
4d5c3d91 RD |
6504 | int i, len=PySequence_Length(obj4); |
6505 | for (i=0; i<len; i++) { | |
6506 | PyObject* item = PySequence_GetItem(obj4, i); | |
6507 | #if wxUSE_UNICODE | |
6508 | PyObject* str = PyObject_Unicode(item); | |
6509 | #else | |
6510 | PyObject* str = PyObject_Str(item); | |
6511 | #endif | |
74a57fcd | 6512 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6513 | arg5->Add(Py2wxString(str)); |
6514 | Py_DECREF(item); | |
6515 | Py_DECREF(str); | |
6516 | } | |
d14a1e28 RD |
6517 | } |
6518 | } | |
994141e6 | 6519 | if (obj5) { |
15afbcd0 RD |
6520 | arg6 = (long) SWIG_AsLong(obj5); |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6522 | } |
d14a1e28 | 6523 | if (obj6) { |
15afbcd0 RD |
6524 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6525 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6526 | SWIG_fail; | |
4d5c3d91 | 6527 | if (arg7 == NULL) { |
15afbcd0 RD |
6528 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6529 | SWIG_fail; | |
d14a1e28 RD |
6530 | } |
6531 | } | |
6532 | if (obj7) { | |
6533 | { | |
4d5c3d91 RD |
6534 | arg8 = wxString_in_helper(obj7); |
6535 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6536 | temp8 = True; |
d14a1e28 RD |
6537 | } |
6538 | } | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6541 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6542 | |
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
15afbcd0 | 6546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6547 | { |
3adfb63b | 6548 | if (temp5) delete arg5; |
d14a1e28 RD |
6549 | } |
6550 | { | |
6551 | if (temp8) | |
4d5c3d91 | 6552 | delete arg8; |
d14a1e28 RD |
6553 | } |
6554 | return resultobj; | |
6555 | fail: | |
6556 | { | |
3adfb63b | 6557 | if (temp5) delete arg5; |
d14a1e28 RD |
6558 | } |
6559 | { | |
6560 | if (temp8) | |
4d5c3d91 | 6561 | delete arg8; |
d14a1e28 RD |
6562 | } |
6563 | return NULL; | |
6564 | } | |
6565 | ||
6566 | ||
6567 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject *resultobj; | |
6569 | wxCheckListBox *result; | |
6570 | char *kwnames[] = { | |
6571 | NULL | |
6572 | }; | |
6573 | ||
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
15afbcd0 | 6582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6583 | return resultobj; |
6584 | fail: | |
6585 | return NULL; | |
6586 | } | |
6587 | ||
6588 | ||
6589 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6590 | PyObject *resultobj; | |
6591 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6593 | int arg3 ; |
d14a1e28 RD |
6594 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6595 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6596 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6597 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6598 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6599 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6600 | long arg7 = (long) 0 ; | |
6601 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6602 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6603 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6604 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6605 | bool result; |
6606 | wxPoint temp4 ; | |
6607 | wxSize temp5 ; | |
3adfb63b | 6608 | bool temp6 = False ; |
e811c8ce | 6609 | bool temp9 = False ; |
d14a1e28 RD |
6610 | PyObject * obj0 = 0 ; |
6611 | PyObject * obj1 = 0 ; | |
994141e6 | 6612 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6613 | PyObject * obj3 = 0 ; |
6614 | PyObject * obj4 = 0 ; | |
6615 | PyObject * obj5 = 0 ; | |
994141e6 | 6616 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6617 | PyObject * obj7 = 0 ; |
6618 | PyObject * obj8 = 0 ; | |
6619 | char *kwnames[] = { | |
6620 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6621 | }; | |
6622 | ||
994141e6 | 6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6628 | arg3 = (int) SWIG_AsInt(obj2); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6630 | if (obj3) { |
6631 | { | |
6632 | arg4 = &temp4; | |
6633 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6634 | } | |
6635 | } | |
6636 | if (obj4) { | |
6637 | { | |
6638 | arg5 = &temp5; | |
6639 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6640 | } | |
6641 | } | |
6642 | if (obj5) { | |
6643 | { | |
4d5c3d91 RD |
6644 | if (! PySequence_Check(obj5)) { |
6645 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6646 | SWIG_fail; | |
6647 | } | |
6648 | arg6 = new wxArrayString; | |
3adfb63b | 6649 | temp6 = True; |
4d5c3d91 RD |
6650 | int i, len=PySequence_Length(obj5); |
6651 | for (i=0; i<len; i++) { | |
6652 | PyObject* item = PySequence_GetItem(obj5, i); | |
6653 | #if wxUSE_UNICODE | |
6654 | PyObject* str = PyObject_Unicode(item); | |
6655 | #else | |
6656 | PyObject* str = PyObject_Str(item); | |
6657 | #endif | |
74a57fcd | 6658 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6659 | arg6->Add(Py2wxString(str)); |
6660 | Py_DECREF(item); | |
6661 | Py_DECREF(str); | |
6662 | } | |
d14a1e28 RD |
6663 | } |
6664 | } | |
994141e6 | 6665 | if (obj6) { |
15afbcd0 RD |
6666 | arg7 = (long) SWIG_AsLong(obj6); |
6667 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6668 | } |
d14a1e28 | 6669 | if (obj7) { |
15afbcd0 RD |
6670 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6672 | SWIG_fail; | |
4d5c3d91 | 6673 | if (arg8 == NULL) { |
15afbcd0 RD |
6674 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6675 | SWIG_fail; | |
d14a1e28 RD |
6676 | } |
6677 | } | |
6678 | if (obj8) { | |
6679 | { | |
4d5c3d91 RD |
6680 | arg9 = wxString_in_helper(obj8); |
6681 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6682 | temp9 = True; |
d14a1e28 RD |
6683 | } |
6684 | } | |
6685 | { | |
6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6687 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6688 | |
6689 | wxPyEndAllowThreads(__tstate); | |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
4f89f6a3 RD |
6692 | { |
6693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6694 | } | |
d14a1e28 | 6695 | { |
3adfb63b | 6696 | if (temp6) delete arg6; |
d14a1e28 RD |
6697 | } |
6698 | { | |
6699 | if (temp9) | |
4d5c3d91 | 6700 | delete arg9; |
d14a1e28 RD |
6701 | } |
6702 | return resultobj; | |
6703 | fail: | |
6704 | { | |
3adfb63b | 6705 | if (temp6) delete arg6; |
d14a1e28 RD |
6706 | } |
6707 | { | |
6708 | if (temp9) | |
4d5c3d91 | 6709 | delete arg9; |
d14a1e28 RD |
6710 | } |
6711 | return NULL; | |
6712 | } | |
6713 | ||
6714 | ||
6715 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject *resultobj; | |
6717 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6718 | int arg2 ; | |
6719 | bool result; | |
6720 | PyObject * obj0 = 0 ; | |
994141e6 | 6721 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6722 | char *kwnames[] = { |
6723 | (char *) "self",(char *) "index", NULL | |
6724 | }; | |
6725 | ||
994141e6 | 6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6729 | arg2 = (int) SWIG_AsInt(obj1); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6731 | { |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | result = (bool)(arg1)->IsChecked(arg2); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
4f89f6a3 RD |
6738 | { |
6739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6740 | } | |
d14a1e28 RD |
6741 | return resultobj; |
6742 | fail: | |
6743 | return NULL; | |
6744 | } | |
6745 | ||
6746 | ||
6747 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject *resultobj; | |
6749 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6750 | int arg2 ; | |
e811c8ce | 6751 | int arg3 = (int) True ; |
d14a1e28 | 6752 | PyObject * obj0 = 0 ; |
994141e6 RD |
6753 | PyObject * obj1 = 0 ; |
6754 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6755 | char *kwnames[] = { |
6756 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6757 | }; | |
6758 | ||
994141e6 | 6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6762 | arg2 = (int) SWIG_AsInt(obj1); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6764 | if (obj2) { |
15afbcd0 RD |
6765 | arg3 = (int) SWIG_AsInt(obj2); |
6766 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6767 | } |
d14a1e28 RD |
6768 | { |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | (arg1)->Check(arg2,arg3); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
6775 | Py_INCREF(Py_None); resultobj = Py_None; | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6785 | int result; | |
6786 | PyObject * obj0 = 0 ; | |
6787 | char *kwnames[] = { | |
6788 | (char *) "self", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6794 | { |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | result = (int)(arg1)->GetItemHeight(); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) SWIG_fail; | |
6800 | } | |
15afbcd0 | 6801 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6802 | return resultobj; |
6803 | fail: | |
6804 | return NULL; | |
6805 | } | |
6806 | ||
6807 | ||
6808 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6809 | PyObject *resultobj; | |
6810 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6811 | wxPoint *arg2 = 0 ; | |
6812 | int result; | |
6813 | wxPoint temp2 ; | |
6814 | PyObject * obj0 = 0 ; | |
6815 | PyObject * obj1 = 0 ; | |
6816 | char *kwnames[] = { | |
6817 | (char *) "self",(char *) "pt", NULL | |
6818 | }; | |
6819 | ||
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6823 | { |
6824 | arg2 = &temp2; | |
6825 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6826 | } | |
6827 | { | |
6828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6829 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6830 | ||
6831 | wxPyEndAllowThreads(__tstate); | |
6832 | if (PyErr_Occurred()) SWIG_fail; | |
6833 | } | |
15afbcd0 | 6834 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6835 | return resultobj; |
6836 | fail: | |
6837 | return NULL; | |
6838 | } | |
6839 | ||
6840 | ||
6841 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject *resultobj; | |
6843 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
6844 | int arg2 ; |
6845 | int arg3 ; | |
d14a1e28 RD |
6846 | int result; |
6847 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6848 | PyObject * obj1 = 0 ; |
6849 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6850 | char *kwnames[] = { |
6851 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6852 | }; | |
6853 | ||
994141e6 | 6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6857 | arg2 = (int) SWIG_AsInt(obj1); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
6859 | arg3 = (int) SWIG_AsInt(obj2); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6861 | { |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6864 | ||
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
15afbcd0 | 6868 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6869 | return resultobj; |
6870 | fail: | |
6871 | return NULL; | |
6872 | } | |
6873 | ||
6874 | ||
6875 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6876 | PyObject *obj; | |
6877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6878 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6879 | Py_INCREF(obj); | |
6880 | return Py_BuildValue((char *)""); | |
6881 | } | |
b2dc1044 RD |
6882 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
6883 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6884 | return 1; | |
6885 | } | |
6886 | ||
6887 | ||
6888 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6889 | PyObject *pyobj; | |
6890 | ||
6891 | { | |
6892 | #if wxUSE_UNICODE | |
6893 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6894 | #else | |
6895 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6896 | #endif | |
6897 | } | |
6898 | return pyobj; | |
6899 | } | |
6900 | ||
6901 | ||
d14a1e28 RD |
6902 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6903 | PyObject *resultobj; | |
6904 | wxTextAttr *result; | |
6905 | ||
6906 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6907 | { | |
6908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6909 | result = (wxTextAttr *)new wxTextAttr(); | |
6910 | ||
6911 | wxPyEndAllowThreads(__tstate); | |
6912 | if (PyErr_Occurred()) SWIG_fail; | |
6913 | } | |
15afbcd0 | 6914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6915 | return resultobj; |
6916 | fail: | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6922 | PyObject *resultobj; | |
6923 | wxColour *arg1 = 0 ; | |
6924 | wxColour const &arg2_defvalue = wxNullColour ; | |
6925 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6926 | wxFont const &arg3_defvalue = wxNullFont ; | |
6927 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6928 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6929 | wxTextAttr *result; | |
6930 | wxColour temp1 ; | |
6931 | wxColour temp2 ; | |
6932 | PyObject * obj0 = 0 ; | |
6933 | PyObject * obj1 = 0 ; | |
6934 | PyObject * obj2 = 0 ; | |
994141e6 | 6935 | PyObject * obj3 = 0 ; |
d14a1e28 | 6936 | |
994141e6 | 6937 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6938 | { |
6939 | arg1 = &temp1; | |
6940 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6941 | } | |
6942 | if (obj1) { | |
6943 | { | |
6944 | arg2 = &temp2; | |
6945 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6946 | } | |
6947 | } | |
6948 | if (obj2) { | |
15afbcd0 RD |
6949 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
6950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6951 | SWIG_fail; | |
d14a1e28 | 6952 | if (arg3 == NULL) { |
15afbcd0 RD |
6953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6954 | SWIG_fail; | |
d14a1e28 RD |
6955 | } |
6956 | } | |
994141e6 | 6957 | if (obj3) { |
15afbcd0 RD |
6958 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
6959 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6960 | } |
d14a1e28 RD |
6961 | { |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
15afbcd0 | 6968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6969 | return resultobj; |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6976 | int argc; | |
6977 | PyObject *argv[5]; | |
6978 | int ii; | |
6979 | ||
6980 | argc = PyObject_Length(args); | |
6981 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6982 | argv[ii] = PyTuple_GetItem(args,ii); | |
6983 | } | |
6984 | if (argc == 0) { | |
6985 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6986 | } | |
6987 | if ((argc >= 1) && (argc <= 4)) { | |
6988 | int _v; | |
6989 | { | |
6990 | _v = wxColour_typecheck(argv[0]); | |
6991 | } | |
6992 | if (_v) { | |
6993 | if (argc <= 1) { | |
6994 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6995 | } | |
6996 | { | |
6997 | _v = wxColour_typecheck(argv[1]); | |
6998 | } | |
6999 | if (_v) { | |
7000 | if (argc <= 2) { | |
7001 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7002 | } | |
7003 | { | |
7004 | void *ptr; | |
15afbcd0 | 7005 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { |
d14a1e28 RD |
7006 | _v = 0; |
7007 | PyErr_Clear(); | |
7008 | } else { | |
7009 | _v = 1; | |
7010 | } | |
7011 | } | |
7012 | if (_v) { | |
7013 | if (argc <= 3) { | |
7014 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7015 | } | |
15afbcd0 | 7016 | _v = SWIG_CheckInt(argv[3]); |
994141e6 RD |
7017 | if (_v) { |
7018 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
7019 | } | |
d14a1e28 RD |
7020 | } |
7021 | } | |
7022 | } | |
7023 | } | |
7024 | ||
7025 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
7026 | return NULL; | |
7027 | } | |
7028 | ||
7029 | ||
994141e6 | 7030 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7031 | PyObject *resultobj; |
7032 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7033 | PyObject * obj0 = 0 ; | |
7034 | char *kwnames[] = { | |
7035 | (char *) "self", NULL | |
7036 | }; | |
7037 | ||
994141e6 | 7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7041 | { |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7043 | delete arg1; |
d14a1e28 RD |
7044 | |
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | Py_INCREF(Py_None); resultobj = Py_None; | |
7049 | return resultobj; | |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
994141e6 RD |
7055 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
7056 | PyObject *resultobj; | |
7057 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7058 | PyObject * obj0 = 0 ; | |
7059 | char *kwnames[] = { | |
7060 | (char *) "self", NULL | |
7061 | }; | |
7062 | ||
7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7066 | { |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | (arg1)->Init(); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | Py_INCREF(Py_None); resultobj = Py_None; | |
7074 | return resultobj; | |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
7081 | PyObject *resultobj; |
7082 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7083 | wxColour *arg2 = 0 ; | |
7084 | wxColour temp2 ; | |
7085 | PyObject * obj0 = 0 ; | |
7086 | PyObject * obj1 = 0 ; | |
7087 | char *kwnames[] = { | |
7088 | (char *) "self",(char *) "colText", NULL | |
7089 | }; | |
7090 | ||
7091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7094 | { |
7095 | arg2 = &temp2; | |
7096 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7097 | } | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | Py_INCREF(Py_None); resultobj = Py_None; | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | return NULL; | |
7109 | } | |
7110 | ||
7111 | ||
7112 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject *resultobj; | |
7114 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7115 | wxColour *arg2 = 0 ; | |
7116 | wxColour temp2 ; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self",(char *) "colBack", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7126 | { |
7127 | arg2 = &temp2; | |
7128 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | Py_INCREF(Py_None); resultobj = Py_None; | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7145 | PyObject *resultobj; | |
7146 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7147 | wxFont *arg2 = 0 ; | |
7148 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | PyObject * obj1 = 0 ; | |
994141e6 | 7151 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7152 | char *kwnames[] = { |
7153 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7154 | }; | |
7155 | ||
994141e6 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7159 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7161 | SWIG_fail; | |
d14a1e28 | 7162 | if (arg2 == NULL) { |
15afbcd0 RD |
7163 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7164 | SWIG_fail; | |
d14a1e28 | 7165 | } |
994141e6 | 7166 | if (obj2) { |
15afbcd0 RD |
7167 | arg3 = (long) SWIG_AsLong(obj2); |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7169 | } |
d14a1e28 RD |
7170 | { |
7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7172 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7173 | ||
7174 | wxPyEndAllowThreads(__tstate); | |
7175 | if (PyErr_Occurred()) SWIG_fail; | |
7176 | } | |
7177 | Py_INCREF(Py_None); resultobj = Py_None; | |
7178 | return resultobj; | |
7179 | fail: | |
7180 | return NULL; | |
7181 | } | |
7182 | ||
7183 | ||
7184 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject *resultobj; | |
7186 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7187 | int arg2 ; | |
7188 | PyObject * obj0 = 0 ; | |
994141e6 | 7189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7190 | char *kwnames[] = { |
7191 | (char *) "self",(char *) "alignment", NULL | |
7192 | }; | |
7193 | ||
994141e6 | 7194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7197 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7199 | { |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | Py_INCREF(Py_None); resultobj = Py_None; | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
7213 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7214 | PyObject *resultobj; | |
7215 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7216 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 7217 | bool temp2 = False ; |
d14a1e28 RD |
7218 | PyObject * obj0 = 0 ; |
7219 | PyObject * obj1 = 0 ; | |
7220 | char *kwnames[] = { | |
7221 | (char *) "self",(char *) "tabs", NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7227 | { |
7228 | if (! PySequence_Check(obj1)) { | |
7229 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7230 | SWIG_fail; | |
7231 | } | |
7232 | arg2 = new wxArrayInt; | |
3adfb63b | 7233 | temp2 = True; |
d14a1e28 RD |
7234 | int i, len=PySequence_Length(obj1); |
7235 | for (i=0; i<len; i++) { | |
7236 | PyObject* item = PySequence_GetItem(obj1, i); | |
7237 | PyObject* number = PyNumber_Int(item); | |
7238 | arg2->Add(PyInt_AS_LONG(number)); | |
7239 | Py_DECREF(item); | |
7240 | Py_DECREF(number); | |
7241 | } | |
7242 | } | |
7243 | { | |
7244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7245 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7246 | ||
7247 | wxPyEndAllowThreads(__tstate); | |
7248 | if (PyErr_Occurred()) SWIG_fail; | |
7249 | } | |
7250 | Py_INCREF(Py_None); resultobj = Py_None; | |
7251 | { | |
3adfb63b | 7252 | if (temp2) delete arg2; |
d14a1e28 RD |
7253 | } |
7254 | return resultobj; | |
7255 | fail: | |
7256 | { | |
3adfb63b | 7257 | if (temp2) delete arg2; |
d14a1e28 RD |
7258 | } |
7259 | return NULL; | |
7260 | } | |
7261 | ||
7262 | ||
7263 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject *resultobj; | |
7265 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7266 | int arg2 ; | |
5e4ca4a8 | 7267 | int arg3 = (int) 0 ; |
d14a1e28 | 7268 | PyObject * obj0 = 0 ; |
994141e6 | 7269 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7270 | PyObject * obj2 = 0 ; |
d14a1e28 | 7271 | char *kwnames[] = { |
5e4ca4a8 | 7272 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7273 | }; |
7274 | ||
5e4ca4a8 | 7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7278 | arg2 = (int) SWIG_AsInt(obj1); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
5e4ca4a8 RD |
7280 | if (obj2) { |
7281 | arg3 = (int) SWIG_AsInt(obj2); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
d14a1e28 RD |
7284 | { |
7285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7286 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7287 | |
7288 | wxPyEndAllowThreads(__tstate); | |
7289 | if (PyErr_Occurred()) SWIG_fail; | |
7290 | } | |
7291 | Py_INCREF(Py_None); resultobj = Py_None; | |
7292 | return resultobj; | |
7293 | fail: | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7299 | PyObject *resultobj; | |
7300 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7301 | int arg2 ; | |
7302 | PyObject * obj0 = 0 ; | |
994141e6 | 7303 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7304 | char *kwnames[] = { |
7305 | (char *) "self",(char *) "indent", NULL | |
7306 | }; | |
7307 | ||
994141e6 | 7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7311 | arg2 = (int) SWIG_AsInt(obj1); | |
7312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7313 | { |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | (arg1)->SetRightIndent(arg2); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | Py_INCREF(Py_None); resultobj = Py_None; | |
7321 | return resultobj; | |
7322 | fail: | |
7323 | return NULL; | |
7324 | } | |
7325 | ||
7326 | ||
7327 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7328 | PyObject *resultobj; | |
7329 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7330 | long arg2 ; | |
7331 | PyObject * obj0 = 0 ; | |
994141e6 | 7332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7333 | char *kwnames[] = { |
7334 | (char *) "self",(char *) "flags", NULL | |
7335 | }; | |
7336 | ||
994141e6 | 7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7340 | arg2 = (long) SWIG_AsLong(obj1); | |
7341 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7342 | { |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | (arg1)->SetFlags(arg2); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | Py_INCREF(Py_None); resultobj = Py_None; | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7359 | bool result; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | char *kwnames[] = { | |
7362 | (char *) "self", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7368 | { |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
4f89f6a3 RD |
7375 | { |
7376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7377 | } | |
d14a1e28 RD |
7378 | return resultobj; |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
7384 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject *resultobj; | |
7386 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7387 | bool result; | |
7388 | PyObject * obj0 = 0 ; | |
7389 | char *kwnames[] = { | |
7390 | (char *) "self", NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7396 | { |
7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7398 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7399 | ||
7400 | wxPyEndAllowThreads(__tstate); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
4f89f6a3 RD |
7403 | { |
7404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7405 | } | |
d14a1e28 RD |
7406 | return resultobj; |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7415 | bool result; | |
7416 | PyObject * obj0 = 0 ; | |
7417 | char *kwnames[] = { | |
7418 | (char *) "self", NULL | |
7419 | }; | |
7420 | ||
7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7424 | { |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
4f89f6a3 RD |
7431 | { |
7432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7433 | } | |
d14a1e28 RD |
7434 | return resultobj; |
7435 | fail: | |
7436 | return NULL; | |
7437 | } | |
7438 | ||
7439 | ||
7440 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7441 | PyObject *resultobj; | |
7442 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7443 | bool result; | |
7444 | PyObject * obj0 = 0 ; | |
7445 | char *kwnames[] = { | |
7446 | (char *) "self", NULL | |
7447 | }; | |
7448 | ||
7449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7452 | { |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7454 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7455 | ||
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
4f89f6a3 RD |
7459 | { |
7460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7461 | } | |
d14a1e28 RD |
7462 | return resultobj; |
7463 | fail: | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject *resultobj; | |
7470 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7471 | bool result; | |
7472 | PyObject * obj0 = 0 ; | |
7473 | char *kwnames[] = { | |
7474 | (char *) "self", NULL | |
7475 | }; | |
7476 | ||
7477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7480 | { |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
4f89f6a3 RD |
7487 | { |
7488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7489 | } | |
d14a1e28 RD |
7490 | return resultobj; |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj; | |
7498 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7499 | bool result; | |
7500 | PyObject * obj0 = 0 ; | |
7501 | char *kwnames[] = { | |
7502 | (char *) "self", NULL | |
7503 | }; | |
7504 | ||
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7508 | { |
7509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7510 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7511 | ||
7512 | wxPyEndAllowThreads(__tstate); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | } | |
4f89f6a3 RD |
7515 | { |
7516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7517 | } | |
d14a1e28 RD |
7518 | return resultobj; |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
7524 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7525 | PyObject *resultobj; | |
7526 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7527 | bool result; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7536 | { |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
4f89f6a3 RD |
7543 | { |
7544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7545 | } | |
d14a1e28 RD |
7546 | return resultobj; |
7547 | fail: | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
7552 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7555 | long arg2 ; | |
7556 | bool result; | |
7557 | PyObject * obj0 = 0 ; | |
994141e6 | 7558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7559 | char *kwnames[] = { |
7560 | (char *) "self",(char *) "flag", NULL | |
7561 | }; | |
7562 | ||
994141e6 | 7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7566 | arg2 = (long) SWIG_AsLong(obj1); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7568 | { |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
4f89f6a3 RD |
7575 | { |
7576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7577 | } | |
d14a1e28 RD |
7578 | return resultobj; |
7579 | fail: | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject *resultobj; | |
7586 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7587 | wxColour *result; | |
7588 | PyObject * obj0 = 0 ; | |
7589 | char *kwnames[] = { | |
7590 | (char *) "self", NULL | |
7591 | }; | |
7592 | ||
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7596 | { |
7597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7598 | { | |
7599 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7600 | result = (wxColour *) &_result_ref; | |
7601 | } | |
7602 | ||
7603 | wxPyEndAllowThreads(__tstate); | |
7604 | if (PyErr_Occurred()) SWIG_fail; | |
7605 | } | |
15afbcd0 | 7606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7607 | return resultobj; |
7608 | fail: | |
7609 | return NULL; | |
7610 | } | |
7611 | ||
7612 | ||
7613 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7614 | PyObject *resultobj; | |
7615 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7616 | wxColour *result; | |
7617 | PyObject * obj0 = 0 ; | |
7618 | char *kwnames[] = { | |
7619 | (char *) "self", NULL | |
7620 | }; | |
7621 | ||
7622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7625 | { |
7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7627 | { | |
7628 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7629 | result = (wxColour *) &_result_ref; | |
7630 | } | |
7631 | ||
7632 | wxPyEndAllowThreads(__tstate); | |
7633 | if (PyErr_Occurred()) SWIG_fail; | |
7634 | } | |
15afbcd0 | 7635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7636 | return resultobj; |
7637 | fail: | |
7638 | return NULL; | |
7639 | } | |
7640 | ||
7641 | ||
7642 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7643 | PyObject *resultobj; | |
7644 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7645 | wxFont *result; | |
7646 | PyObject * obj0 = 0 ; | |
7647 | char *kwnames[] = { | |
7648 | (char *) "self", NULL | |
7649 | }; | |
7650 | ||
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7654 | { |
7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7656 | { | |
7657 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7658 | result = (wxFont *) &_result_ref; | |
7659 | } | |
7660 | ||
7661 | wxPyEndAllowThreads(__tstate); | |
7662 | if (PyErr_Occurred()) SWIG_fail; | |
7663 | } | |
4276dc52 RD |
7664 | { |
7665 | wxFont* resultptr = new wxFont(*result); | |
7666 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7667 | } | |
d14a1e28 RD |
7668 | return resultobj; |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7677 | int result; | |
7678 | PyObject * obj0 = 0 ; | |
7679 | char *kwnames[] = { | |
7680 | (char *) "self", NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7686 | { |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7689 | ||
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) SWIG_fail; | |
7692 | } | |
15afbcd0 | 7693 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7694 | return resultobj; |
7695 | fail: | |
7696 | return NULL; | |
7697 | } | |
7698 | ||
7699 | ||
7700 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj; | |
7702 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7703 | wxArrayInt *result; | |
7704 | PyObject * obj0 = 0 ; | |
7705 | char *kwnames[] = { | |
7706 | (char *) "self", NULL | |
7707 | }; | |
7708 | ||
7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7712 | { |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | { | |
7715 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7716 | result = (wxArrayInt *) &_result_ref; | |
7717 | } | |
7718 | ||
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | { | |
7723 | resultobj = PyList_New(0); | |
7724 | size_t idx; | |
7725 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7726 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7727 | PyList_Append(resultobj, val); | |
7728 | Py_DECREF(val); | |
7729 | } | |
7730 | } | |
7731 | return resultobj; | |
7732 | fail: | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7740 | long result; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | char *kwnames[] = { | |
7743 | (char *) "self", NULL | |
7744 | }; | |
7745 | ||
7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7749 | { |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
15afbcd0 | 7756 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7757 | return resultobj; |
7758 | fail: | |
7759 | return NULL; | |
7760 | } | |
7761 | ||
7762 | ||
5e4ca4a8 RD |
7763 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7764 | PyObject *resultobj; | |
7765 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7766 | long result; | |
7767 | PyObject * obj0 = 0 ; | |
7768 | char *kwnames[] = { | |
7769 | (char *) "self", NULL | |
7770 | }; | |
7771 | ||
7772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7775 | { | |
7776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7777 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7778 | ||
7779 | wxPyEndAllowThreads(__tstate); | |
7780 | if (PyErr_Occurred()) SWIG_fail; | |
7781 | } | |
7782 | resultobj = SWIG_FromLong((long)result); | |
7783 | return resultobj; | |
7784 | fail: | |
7785 | return NULL; | |
7786 | } | |
7787 | ||
7788 | ||
d14a1e28 RD |
7789 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7790 | PyObject *resultobj; | |
7791 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7792 | long result; | |
7793 | PyObject * obj0 = 0 ; | |
7794 | char *kwnames[] = { | |
7795 | (char *) "self", NULL | |
7796 | }; | |
7797 | ||
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7801 | { |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7804 | ||
7805 | wxPyEndAllowThreads(__tstate); | |
7806 | if (PyErr_Occurred()) SWIG_fail; | |
7807 | } | |
15afbcd0 | 7808 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7809 | return resultobj; |
7810 | fail: | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
7815 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject *resultobj; | |
7817 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7818 | long result; | |
7819 | PyObject * obj0 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7827 | { |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
15afbcd0 | 7834 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7835 | return resultobj; |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7844 | bool result; | |
7845 | PyObject * obj0 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "self", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7853 | { |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
4f89f6a3 RD |
7860 | { |
7861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7862 | } | |
d14a1e28 RD |
7863 | return resultobj; |
7864 | fail: | |
7865 | return NULL; | |
7866 | } | |
7867 | ||
7868 | ||
7869 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj; | |
7871 | wxTextAttr *arg1 = 0 ; | |
7872 | wxTextAttr *arg2 = 0 ; | |
7873 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7874 | wxTextAttr result; | |
7875 | PyObject * obj0 = 0 ; | |
7876 | PyObject * obj1 = 0 ; | |
7877 | PyObject * obj2 = 0 ; | |
7878 | char *kwnames[] = { | |
7879 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7880 | }; | |
7881 | ||
7882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7885 | SWIG_fail; | |
d14a1e28 | 7886 | if (arg1 == NULL) { |
15afbcd0 RD |
7887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7888 | SWIG_fail; | |
d14a1e28 | 7889 | } |
15afbcd0 RD |
7890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7892 | SWIG_fail; | |
d14a1e28 | 7893 | if (arg2 == NULL) { |
15afbcd0 RD |
7894 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7895 | SWIG_fail; | |
d14a1e28 | 7896 | } |
15afbcd0 RD |
7897 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7899 | { |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | { | |
7907 | wxTextAttr * resultptr; | |
7908 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 7909 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7910 | } |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7918 | PyObject *obj; | |
7919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7920 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7921 | Py_INCREF(obj); | |
7922 | return Py_BuildValue((char *)""); | |
7923 | } | |
7924 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject *resultobj; | |
7926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 7927 | int arg2 ; |
d14a1e28 RD |
7928 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7929 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7930 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7931 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7932 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7933 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7934 | long arg6 = (long) 0 ; | |
7935 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7936 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7937 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7938 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7939 | wxTextCtrl *result; | |
e811c8ce | 7940 | bool temp3 = False ; |
d14a1e28 RD |
7941 | wxPoint temp4 ; |
7942 | wxSize temp5 ; | |
e811c8ce | 7943 | bool temp8 = False ; |
d14a1e28 | 7944 | PyObject * obj0 = 0 ; |
994141e6 | 7945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7946 | PyObject * obj2 = 0 ; |
7947 | PyObject * obj3 = 0 ; | |
7948 | PyObject * obj4 = 0 ; | |
994141e6 | 7949 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7950 | PyObject * obj6 = 0 ; |
7951 | PyObject * obj7 = 0 ; | |
7952 | char *kwnames[] = { | |
7953 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7954 | }; | |
7955 | ||
994141e6 | 7956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
7957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7959 | arg2 = (int) SWIG_AsInt(obj1); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7961 | if (obj2) { |
7962 | { | |
7963 | arg3 = wxString_in_helper(obj2); | |
7964 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7965 | temp3 = True; |
d14a1e28 RD |
7966 | } |
7967 | } | |
7968 | if (obj3) { | |
7969 | { | |
7970 | arg4 = &temp4; | |
7971 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7972 | } | |
7973 | } | |
7974 | if (obj4) { | |
7975 | { | |
7976 | arg5 = &temp5; | |
7977 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7978 | } | |
7979 | } | |
994141e6 | 7980 | if (obj5) { |
15afbcd0 RD |
7981 | arg6 = (long) SWIG_AsLong(obj5); |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7983 | } |
d14a1e28 | 7984 | if (obj6) { |
15afbcd0 RD |
7985 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7987 | SWIG_fail; | |
d14a1e28 | 7988 | if (arg7 == NULL) { |
15afbcd0 RD |
7989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7990 | SWIG_fail; | |
d14a1e28 RD |
7991 | } |
7992 | } | |
7993 | if (obj7) { | |
7994 | { | |
7995 | arg8 = wxString_in_helper(obj7); | |
7996 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 7997 | temp8 = True; |
d14a1e28 RD |
7998 | } |
7999 | } | |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | { | |
8008 | resultobj = wxPyMake_wxObject(result); | |
8009 | } | |
8010 | { | |
8011 | if (temp3) | |
8012 | delete arg3; | |
8013 | } | |
8014 | { | |
8015 | if (temp8) | |
8016 | delete arg8; | |
8017 | } | |
8018 | return resultobj; | |
8019 | fail: | |
8020 | { | |
8021 | if (temp3) | |
8022 | delete arg3; | |
8023 | } | |
8024 | { | |
8025 | if (temp8) | |
8026 | delete arg8; | |
8027 | } | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8033 | PyObject *resultobj; | |
8034 | wxTextCtrl *result; | |
8035 | char *kwnames[] = { | |
8036 | NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | { | |
8048 | resultobj = wxPyMake_wxObject(result); | |
8049 | } | |
8050 | return resultobj; | |
8051 | fail: | |
8052 | return NULL; | |
8053 | } | |
8054 | ||
8055 | ||
8056 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8057 | PyObject *resultobj; | |
8058 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8060 | int arg3 ; |
d14a1e28 RD |
8061 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8062 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8063 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8064 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8065 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8066 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8067 | long arg7 = (long) 0 ; | |
8068 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8069 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8070 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8071 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8072 | bool result; | |
e811c8ce | 8073 | bool temp4 = False ; |
d14a1e28 RD |
8074 | wxPoint temp5 ; |
8075 | wxSize temp6 ; | |
e811c8ce | 8076 | bool temp9 = False ; |
d14a1e28 RD |
8077 | PyObject * obj0 = 0 ; |
8078 | PyObject * obj1 = 0 ; | |
994141e6 | 8079 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8080 | PyObject * obj3 = 0 ; |
8081 | PyObject * obj4 = 0 ; | |
8082 | PyObject * obj5 = 0 ; | |
994141e6 | 8083 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8084 | PyObject * obj7 = 0 ; |
8085 | PyObject * obj8 = 0 ; | |
8086 | char *kwnames[] = { | |
8087 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8088 | }; | |
8089 | ||
994141e6 | 8090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8095 | arg3 = (int) SWIG_AsInt(obj2); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8097 | if (obj3) { |
8098 | { | |
8099 | arg4 = wxString_in_helper(obj3); | |
8100 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8101 | temp4 = True; |
d14a1e28 RD |
8102 | } |
8103 | } | |
8104 | if (obj4) { | |
8105 | { | |
8106 | arg5 = &temp5; | |
8107 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8108 | } | |
8109 | } | |
8110 | if (obj5) { | |
8111 | { | |
8112 | arg6 = &temp6; | |
8113 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8114 | } | |
8115 | } | |
994141e6 | 8116 | if (obj6) { |
15afbcd0 RD |
8117 | arg7 = (long) SWIG_AsLong(obj6); |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8119 | } |
d14a1e28 | 8120 | if (obj7) { |
15afbcd0 RD |
8121 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8122 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8123 | SWIG_fail; | |
d14a1e28 | 8124 | if (arg8 == NULL) { |
15afbcd0 RD |
8125 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8126 | SWIG_fail; | |
d14a1e28 RD |
8127 | } |
8128 | } | |
8129 | if (obj8) { | |
8130 | { | |
8131 | arg9 = wxString_in_helper(obj8); | |
8132 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 8133 | temp9 = True; |
d14a1e28 RD |
8134 | } |
8135 | } | |
8136 | { | |
8137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8138 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8139 | ||
8140 | wxPyEndAllowThreads(__tstate); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
4f89f6a3 RD |
8143 | { |
8144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8145 | } | |
d14a1e28 RD |
8146 | { |
8147 | if (temp4) | |
8148 | delete arg4; | |
8149 | } | |
8150 | { | |
8151 | if (temp9) | |
8152 | delete arg9; | |
8153 | } | |
8154 | return resultobj; | |
8155 | fail: | |
8156 | { | |
8157 | if (temp4) | |
8158 | delete arg4; | |
8159 | } | |
8160 | { | |
8161 | if (temp9) | |
8162 | delete arg9; | |
8163 | } | |
8164 | return NULL; | |
8165 | } | |
8166 | ||
8167 | ||
8168 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8169 | PyObject *resultobj; | |
8170 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8171 | wxString result; | |
8172 | PyObject * obj0 = 0 ; | |
8173 | char *kwnames[] = { | |
8174 | (char *) "self", NULL | |
8175 | }; | |
8176 | ||
8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8180 | { |
8181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8182 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8183 | ||
8184 | wxPyEndAllowThreads(__tstate); | |
8185 | if (PyErr_Occurred()) SWIG_fail; | |
8186 | } | |
8187 | { | |
8188 | #if wxUSE_UNICODE | |
8189 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8190 | #else | |
8191 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8192 | #endif | |
8193 | } | |
8194 | return resultobj; | |
8195 | fail: | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
8200 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject *resultobj; | |
8202 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8203 | wxString *arg2 = 0 ; | |
e811c8ce | 8204 | bool temp2 = False ; |
d14a1e28 RD |
8205 | PyObject * obj0 = 0 ; |
8206 | PyObject * obj1 = 0 ; | |
8207 | char *kwnames[] = { | |
8208 | (char *) "self",(char *) "value", NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8214 | { |
8215 | arg2 = wxString_in_helper(obj1); | |
8216 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8217 | temp2 = True; |
d14a1e28 RD |
8218 | } |
8219 | { | |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | (arg1)->SetValue((wxString const &)*arg2); | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | Py_INCREF(Py_None); resultobj = Py_None; | |
8227 | { | |
8228 | if (temp2) | |
8229 | delete arg2; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp2) | |
8235 | delete arg2; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8244 | long arg2 ; | |
8245 | long arg3 ; | |
8246 | wxString result; | |
8247 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8248 | PyObject * obj1 = 0 ; |
8249 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8250 | char *kwnames[] = { |
8251 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8252 | }; | |
8253 | ||
994141e6 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8257 | arg2 = (long) SWIG_AsLong(obj1); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | arg3 = (long) SWIG_AsLong(obj2); | |
8260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8261 | { |
8262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8263 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8264 | ||
8265 | wxPyEndAllowThreads(__tstate); | |
8266 | if (PyErr_Occurred()) SWIG_fail; | |
8267 | } | |
8268 | { | |
8269 | #if wxUSE_UNICODE | |
8270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8271 | #else | |
8272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8273 | #endif | |
8274 | } | |
8275 | return resultobj; | |
8276 | fail: | |
8277 | return NULL; | |
8278 | } | |
8279 | ||
8280 | ||
8281 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8282 | PyObject *resultobj; | |
8283 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8284 | long arg2 ; | |
8285 | int result; | |
8286 | PyObject * obj0 = 0 ; | |
994141e6 | 8287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8288 | char *kwnames[] = { |
8289 | (char *) "self",(char *) "lineNo", NULL | |
8290 | }; | |
8291 | ||
994141e6 | 8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8295 | arg2 = (long) SWIG_AsLong(obj1); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8297 | { |
8298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8299 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8300 | ||
8301 | wxPyEndAllowThreads(__tstate); | |
8302 | if (PyErr_Occurred()) SWIG_fail; | |
8303 | } | |
15afbcd0 | 8304 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8305 | return resultobj; |
8306 | fail: | |
8307 | return NULL; | |
8308 | } | |
8309 | ||
8310 | ||
8311 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8312 | PyObject *resultobj; | |
8313 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8314 | long arg2 ; | |
8315 | wxString result; | |
8316 | PyObject * obj0 = 0 ; | |
994141e6 | 8317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8318 | char *kwnames[] = { |
8319 | (char *) "self",(char *) "lineNo", NULL | |
8320 | }; | |
8321 | ||
994141e6 | 8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8325 | arg2 = (long) SWIG_AsLong(obj1); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8327 | { |
8328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8329 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8330 | ||
8331 | wxPyEndAllowThreads(__tstate); | |
8332 | if (PyErr_Occurred()) SWIG_fail; | |
8333 | } | |
8334 | { | |
8335 | #if wxUSE_UNICODE | |
8336 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8337 | #else | |
8338 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8339 | #endif | |
8340 | } | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject *resultobj; | |
8349 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8350 | int result; | |
8351 | PyObject * obj0 = 0 ; | |
8352 | char *kwnames[] = { | |
8353 | (char *) "self", NULL | |
8354 | }; | |
8355 | ||
8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8359 | { |
8360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8361 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8362 | ||
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
15afbcd0 | 8366 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8367 | return resultobj; |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
8373 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8374 | PyObject *resultobj; | |
8375 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8376 | bool result; | |
8377 | PyObject * obj0 = 0 ; | |
8378 | char *kwnames[] = { | |
8379 | (char *) "self", NULL | |
8380 | }; | |
8381 | ||
8382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8385 | { |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
4f89f6a3 RD |
8392 | { |
8393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8394 | } | |
d14a1e28 RD |
8395 | return resultobj; |
8396 | fail: | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
8401 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8402 | PyObject *resultobj; | |
8403 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8404 | bool result; | |
8405 | PyObject * obj0 = 0 ; | |
8406 | char *kwnames[] = { | |
8407 | (char *) "self", NULL | |
8408 | }; | |
8409 | ||
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8413 | { |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8416 | ||
8417 | wxPyEndAllowThreads(__tstate); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | } | |
4f89f6a3 RD |
8420 | { |
8421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8422 | } | |
d14a1e28 RD |
8423 | return resultobj; |
8424 | fail: | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8432 | bool result; | |
8433 | PyObject * obj0 = 0 ; | |
8434 | char *kwnames[] = { | |
8435 | (char *) "self", NULL | |
8436 | }; | |
8437 | ||
8438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8441 | { |
8442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8443 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8444 | ||
8445 | wxPyEndAllowThreads(__tstate); | |
8446 | if (PyErr_Occurred()) SWIG_fail; | |
8447 | } | |
4f89f6a3 RD |
8448 | { |
8449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8450 | } | |
d14a1e28 RD |
8451 | return resultobj; |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8458 | PyObject *resultobj; | |
8459 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8460 | bool result; | |
8461 | PyObject * obj0 = 0 ; | |
8462 | char *kwnames[] = { | |
8463 | (char *) "self", NULL | |
8464 | }; | |
8465 | ||
8466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8469 | { |
8470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8471 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8472 | ||
8473 | wxPyEndAllowThreads(__tstate); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
4f89f6a3 RD |
8476 | { |
8477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8478 | } | |
d14a1e28 RD |
8479 | return resultobj; |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8488 | long *arg2 = (long *) 0 ; | |
8489 | long *arg3 = (long *) 0 ; | |
8490 | long temp2 ; | |
8491 | long temp3 ; | |
8492 | PyObject * obj0 = 0 ; | |
8493 | char *kwnames[] = { | |
8494 | (char *) "self", NULL | |
8495 | }; | |
8496 | ||
8497 | arg2 = &temp2; | |
8498 | arg3 = &temp3; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8502 | { |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | Py_INCREF(Py_None); resultobj = Py_None; | |
8510 | { | |
8511 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8512 | resultobj = t_output_helper(resultobj,o); | |
8513 | } | |
8514 | { | |
8515 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8516 | resultobj = t_output_helper(resultobj,o); | |
8517 | } | |
8518 | return resultobj; | |
8519 | fail: | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
8524 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject *resultobj; | |
8526 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8527 | wxString result; | |
8528 | PyObject * obj0 = 0 ; | |
8529 | char *kwnames[] = { | |
8530 | (char *) "self", NULL | |
8531 | }; | |
8532 | ||
8533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8536 | { |
8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8538 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8539 | ||
8540 | wxPyEndAllowThreads(__tstate); | |
8541 | if (PyErr_Occurred()) SWIG_fail; | |
8542 | } | |
8543 | { | |
8544 | #if wxUSE_UNICODE | |
8545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8546 | #else | |
8547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8548 | #endif | |
8549 | } | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | return NULL; | |
8553 | } | |
8554 | ||
8555 | ||
8556 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8557 | PyObject *resultobj; | |
8558 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8559 | PyObject * obj0 = 0 ; | |
8560 | char *kwnames[] = { | |
8561 | (char *) "self", NULL | |
8562 | }; | |
8563 | ||
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8567 | { |
8568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8569 | (arg1)->Clear(); | |
8570 | ||
8571 | wxPyEndAllowThreads(__tstate); | |
8572 | if (PyErr_Occurred()) SWIG_fail; | |
8573 | } | |
8574 | Py_INCREF(Py_None); resultobj = Py_None; | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | return NULL; | |
8578 | } | |
8579 | ||
8580 | ||
8581 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject *resultobj; | |
8583 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8584 | long arg2 ; | |
8585 | long arg3 ; | |
8586 | wxString *arg4 = 0 ; | |
e811c8ce | 8587 | bool temp4 = False ; |
d14a1e28 | 8588 | PyObject * obj0 = 0 ; |
994141e6 RD |
8589 | PyObject * obj1 = 0 ; |
8590 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8591 | PyObject * obj3 = 0 ; |
8592 | char *kwnames[] = { | |
8593 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8594 | }; | |
8595 | ||
994141e6 | 8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8599 | arg2 = (long) SWIG_AsLong(obj1); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | arg3 = (long) SWIG_AsLong(obj2); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8603 | { |
8604 | arg4 = wxString_in_helper(obj3); | |
8605 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8606 | temp4 = True; |
d14a1e28 RD |
8607 | } |
8608 | { | |
8609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8610 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8611 | ||
8612 | wxPyEndAllowThreads(__tstate); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | } | |
8615 | Py_INCREF(Py_None); resultobj = Py_None; | |
8616 | { | |
8617 | if (temp4) | |
8618 | delete arg4; | |
8619 | } | |
8620 | return resultobj; | |
8621 | fail: | |
8622 | { | |
8623 | if (temp4) | |
8624 | delete arg4; | |
8625 | } | |
8626 | return NULL; | |
8627 | } | |
8628 | ||
8629 | ||
8630 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8631 | PyObject *resultobj; | |
8632 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8633 | long arg2 ; | |
8634 | long arg3 ; | |
8635 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8636 | PyObject * obj1 = 0 ; |
8637 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8638 | char *kwnames[] = { |
8639 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8640 | }; | |
8641 | ||
994141e6 | 8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8645 | arg2 = (long) SWIG_AsLong(obj1); | |
8646 | if (PyErr_Occurred()) SWIG_fail; | |
8647 | arg3 = (long) SWIG_AsLong(obj2); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8649 | { |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | (arg1)->Remove(arg2,arg3); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | Py_INCREF(Py_None); resultobj = Py_None; | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8664 | PyObject *resultobj; | |
8665 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8666 | wxString *arg2 = 0 ; | |
8667 | bool result; | |
e811c8ce | 8668 | bool temp2 = False ; |
d14a1e28 RD |
8669 | PyObject * obj0 = 0 ; |
8670 | PyObject * obj1 = 0 ; | |
8671 | char *kwnames[] = { | |
8672 | (char *) "self",(char *) "file", NULL | |
8673 | }; | |
8674 | ||
8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8678 | { |
8679 | arg2 = wxString_in_helper(obj1); | |
8680 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8681 | temp2 = True; |
d14a1e28 RD |
8682 | } |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
4f89f6a3 RD |
8690 | { |
8691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8692 | } | |
d14a1e28 RD |
8693 | { |
8694 | if (temp2) | |
8695 | delete arg2; | |
8696 | } | |
8697 | return resultobj; | |
8698 | fail: | |
8699 | { | |
8700 | if (temp2) | |
8701 | delete arg2; | |
8702 | } | |
8703 | return NULL; | |
8704 | } | |
8705 | ||
8706 | ||
8707 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8708 | PyObject *resultobj; | |
8709 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8710 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8711 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8712 | bool result; | |
e811c8ce | 8713 | bool temp2 = False ; |
d14a1e28 RD |
8714 | PyObject * obj0 = 0 ; |
8715 | PyObject * obj1 = 0 ; | |
8716 | char *kwnames[] = { | |
8717 | (char *) "self",(char *) "file", NULL | |
8718 | }; | |
8719 | ||
8720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8723 | if (obj1) { |
8724 | { | |
8725 | arg2 = wxString_in_helper(obj1); | |
8726 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8727 | temp2 = True; |
d14a1e28 RD |
8728 | } |
8729 | } | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
4f89f6a3 RD |
8737 | { |
8738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8739 | } | |
d14a1e28 RD |
8740 | { |
8741 | if (temp2) | |
8742 | delete arg2; | |
8743 | } | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | { | |
8747 | if (temp2) | |
8748 | delete arg2; | |
8749 | } | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj; | |
8756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8757 | PyObject * obj0 = 0 ; | |
8758 | char *kwnames[] = { | |
8759 | (char *) "self", NULL | |
8760 | }; | |
8761 | ||
8762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8765 | { |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | (arg1)->MarkDirty(); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
8772 | Py_INCREF(Py_None); resultobj = Py_None; | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj; | |
8781 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8790 | { |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | (arg1)->DiscardEdits(); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | Py_INCREF(Py_None); resultobj = Py_None; | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj; | |
8806 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8807 | unsigned long arg2 ; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | PyObject * obj1 = 0 ; | |
8810 | char *kwnames[] = { | |
8811 | (char *) "self",(char *) "len", NULL | |
8812 | }; | |
8813 | ||
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8817 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8819 | { |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | (arg1)->SetMaxLength(arg2); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | Py_INCREF(Py_None); resultobj = Py_None; | |
8827 | return resultobj; | |
8828 | fail: | |
8829 | return NULL; | |
8830 | } | |
8831 | ||
8832 | ||
8833 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8834 | PyObject *resultobj; | |
8835 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8836 | wxString *arg2 = 0 ; | |
e811c8ce | 8837 | bool temp2 = False ; |
d14a1e28 RD |
8838 | PyObject * obj0 = 0 ; |
8839 | PyObject * obj1 = 0 ; | |
8840 | char *kwnames[] = { | |
8841 | (char *) "self",(char *) "text", NULL | |
8842 | }; | |
8843 | ||
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8847 | { |
8848 | arg2 = wxString_in_helper(obj1); | |
8849 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8850 | temp2 = True; |
d14a1e28 RD |
8851 | } |
8852 | { | |
8853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8854 | (arg1)->WriteText((wxString const &)*arg2); | |
8855 | ||
8856 | wxPyEndAllowThreads(__tstate); | |
8857 | if (PyErr_Occurred()) SWIG_fail; | |
8858 | } | |
8859 | Py_INCREF(Py_None); resultobj = Py_None; | |
8860 | { | |
8861 | if (temp2) | |
8862 | delete arg2; | |
8863 | } | |
8864 | return resultobj; | |
8865 | fail: | |
8866 | { | |
8867 | if (temp2) | |
8868 | delete arg2; | |
8869 | } | |
8870 | return NULL; | |
8871 | } | |
8872 | ||
8873 | ||
8874 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8875 | PyObject *resultobj; | |
8876 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8877 | wxString *arg2 = 0 ; | |
e811c8ce | 8878 | bool temp2 = False ; |
d14a1e28 RD |
8879 | PyObject * obj0 = 0 ; |
8880 | PyObject * obj1 = 0 ; | |
8881 | char *kwnames[] = { | |
8882 | (char *) "self",(char *) "text", NULL | |
8883 | }; | |
8884 | ||
8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8888 | { |
8889 | arg2 = wxString_in_helper(obj1); | |
8890 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8891 | temp2 = True; |
d14a1e28 RD |
8892 | } |
8893 | { | |
8894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8895 | (arg1)->AppendText((wxString const &)*arg2); | |
8896 | ||
8897 | wxPyEndAllowThreads(__tstate); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | } | |
8900 | Py_INCREF(Py_None); resultobj = Py_None; | |
8901 | { | |
8902 | if (temp2) | |
8903 | delete arg2; | |
8904 | } | |
8905 | return resultobj; | |
8906 | fail: | |
8907 | { | |
8908 | if (temp2) | |
8909 | delete arg2; | |
8910 | } | |
8911 | return NULL; | |
8912 | } | |
8913 | ||
8914 | ||
8915 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8916 | PyObject *resultobj; | |
8917 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8918 | wxKeyEvent *arg2 = 0 ; | |
8919 | bool result; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | PyObject * obj1 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "self",(char *) "event", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8931 | SWIG_fail; | |
d14a1e28 | 8932 | if (arg2 == NULL) { |
15afbcd0 RD |
8933 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8934 | SWIG_fail; | |
d14a1e28 RD |
8935 | } |
8936 | { | |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
4f89f6a3 RD |
8943 | { |
8944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8945 | } | |
d14a1e28 RD |
8946 | return resultobj; |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
8952 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8953 | PyObject *resultobj; | |
8954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8955 | long arg2 ; | |
8956 | long arg3 ; | |
8957 | wxTextAttr *arg4 = 0 ; | |
8958 | bool result; | |
8959 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8960 | PyObject * obj1 = 0 ; |
8961 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8962 | PyObject * obj3 = 0 ; |
8963 | char *kwnames[] = { | |
8964 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8965 | }; | |
8966 | ||
994141e6 | 8967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8970 | arg2 = (long) SWIG_AsLong(obj1); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | arg3 = (long) SWIG_AsLong(obj2); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8975 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8976 | SWIG_fail; | |
d14a1e28 | 8977 | if (arg4 == NULL) { |
15afbcd0 RD |
8978 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8979 | SWIG_fail; | |
d14a1e28 RD |
8980 | } |
8981 | { | |
8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8983 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8984 | ||
8985 | wxPyEndAllowThreads(__tstate); | |
8986 | if (PyErr_Occurred()) SWIG_fail; | |
8987 | } | |
4f89f6a3 RD |
8988 | { |
8989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8990 | } | |
d14a1e28 RD |
8991 | return resultobj; |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8998 | PyObject *resultobj; | |
8999 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9000 | long arg2 ; | |
9001 | wxTextAttr *arg3 = 0 ; | |
9002 | bool result; | |
9003 | PyObject * obj0 = 0 ; | |
994141e6 | 9004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9005 | PyObject * obj2 = 0 ; |
9006 | char *kwnames[] = { | |
9007 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9008 | }; | |
9009 | ||
994141e6 | 9010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9013 | arg2 = (long) SWIG_AsLong(obj1); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9017 | SWIG_fail; | |
d14a1e28 | 9018 | if (arg3 == NULL) { |
15afbcd0 RD |
9019 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9020 | SWIG_fail; | |
d14a1e28 RD |
9021 | } |
9022 | { | |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
4f89f6a3 RD |
9029 | { |
9030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9031 | } | |
d14a1e28 RD |
9032 | return resultobj; |
9033 | fail: | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
9038 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9039 | PyObject *resultobj; | |
9040 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9041 | wxTextAttr *arg2 = 0 ; | |
9042 | bool result; | |
9043 | PyObject * obj0 = 0 ; | |
9044 | PyObject * obj1 = 0 ; | |
9045 | char *kwnames[] = { | |
9046 | (char *) "self",(char *) "style", NULL | |
9047 | }; | |
9048 | ||
9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9053 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9054 | SWIG_fail; | |
d14a1e28 | 9055 | if (arg2 == NULL) { |
15afbcd0 RD |
9056 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9057 | SWIG_fail; | |
d14a1e28 RD |
9058 | } |
9059 | { | |
9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9061 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9062 | ||
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
4f89f6a3 RD |
9066 | { |
9067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9068 | } | |
d14a1e28 RD |
9069 | return resultobj; |
9070 | fail: | |
9071 | return NULL; | |
9072 | } | |
9073 | ||
9074 | ||
9075 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject *resultobj; | |
9077 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9078 | wxTextAttr *result; | |
9079 | PyObject * obj0 = 0 ; | |
9080 | char *kwnames[] = { | |
9081 | (char *) "self", NULL | |
9082 | }; | |
9083 | ||
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9087 | { |
9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9089 | { | |
9090 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9091 | result = (wxTextAttr *) &_result_ref; | |
9092 | } | |
9093 | ||
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
15afbcd0 | 9097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9098 | return resultobj; |
9099 | fail: | |
9100 | return NULL; | |
9101 | } | |
9102 | ||
9103 | ||
9104 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9105 | PyObject *resultobj; | |
9106 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9107 | long arg2 ; | |
9108 | long arg3 ; | |
9109 | long result; | |
9110 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9111 | PyObject * obj1 = 0 ; |
9112 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9113 | char *kwnames[] = { |
9114 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9115 | }; | |
9116 | ||
994141e6 | 9117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9120 | arg2 = (long) SWIG_AsLong(obj1); | |
9121 | if (PyErr_Occurred()) SWIG_fail; | |
9122 | arg3 = (long) SWIG_AsLong(obj2); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9124 | { |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
15afbcd0 | 9131 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9132 | return resultobj; |
9133 | fail: | |
9134 | return NULL; | |
9135 | } | |
9136 | ||
9137 | ||
9138 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9139 | PyObject *resultobj; | |
9140 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9141 | long arg2 ; | |
9142 | long *arg3 = (long *) 0 ; | |
9143 | long *arg4 = (long *) 0 ; | |
9144 | long temp3 ; | |
9145 | long temp4 ; | |
9146 | PyObject * obj0 = 0 ; | |
994141e6 | 9147 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9148 | char *kwnames[] = { |
9149 | (char *) "self",(char *) "pos", NULL | |
9150 | }; | |
9151 | ||
9152 | arg3 = &temp3; | |
9153 | arg4 = &temp4; | |
994141e6 | 9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | arg2 = (long) SWIG_AsLong(obj1); | |
9158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9159 | { |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | Py_INCREF(Py_None); resultobj = Py_None; | |
9167 | { | |
9168 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9169 | resultobj = t_output_helper(resultobj,o); | |
9170 | } | |
9171 | { | |
9172 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9173 | resultobj = t_output_helper(resultobj,o); | |
9174 | } | |
9175 | return resultobj; | |
9176 | fail: | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
9181 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9182 | PyObject *resultobj; | |
9183 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9184 | long arg2 ; | |
9185 | PyObject * obj0 = 0 ; | |
994141e6 | 9186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9187 | char *kwnames[] = { |
9188 | (char *) "self",(char *) "pos", NULL | |
9189 | }; | |
9190 | ||
994141e6 | 9191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9194 | arg2 = (long) SWIG_AsLong(obj1); | |
9195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9196 | { |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | (arg1)->ShowPosition(arg2); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
9203 | Py_INCREF(Py_None); resultobj = Py_None; | |
9204 | return resultobj; | |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
4d5c3d91 RD |
9210 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
9211 | PyObject *resultobj; | |
9212 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9213 | wxPoint *arg2 = 0 ; | |
9214 | long *arg3 = (long *) 0 ; | |
9215 | long *arg4 = (long *) 0 ; | |
9216 | int result; | |
9217 | wxPoint temp2 ; | |
9218 | long temp3 ; | |
9219 | long temp4 ; | |
9220 | PyObject * obj0 = 0 ; | |
9221 | PyObject * obj1 = 0 ; | |
9222 | char *kwnames[] = { | |
9223 | (char *) "self",(char *) "pt", NULL | |
9224 | }; | |
9225 | ||
9226 | arg3 = &temp3; | |
9227 | arg4 = &temp4; | |
9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9231 | { |
9232 | arg2 = &temp2; | |
9233 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9234 | } | |
9235 | { | |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
15afbcd0 | 9242 | resultobj = SWIG_FromInt((int)result); |
4d5c3d91 RD |
9243 | { |
9244 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9245 | resultobj = t_output_helper(resultobj,o); | |
9246 | } | |
9247 | { | |
9248 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9249 | resultobj = t_output_helper(resultobj,o); | |
9250 | } | |
9251 | return resultobj; | |
9252 | fail: | |
9253 | return NULL; | |
9254 | } | |
9255 | ||
9256 | ||
d14a1e28 RD |
9257 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
9258 | PyObject *resultobj; | |
9259 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9260 | PyObject * obj0 = 0 ; | |
9261 | char *kwnames[] = { | |
9262 | (char *) "self", NULL | |
9263 | }; | |
9264 | ||
9265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9268 | { |
9269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9270 | (arg1)->Copy(); | |
9271 | ||
9272 | wxPyEndAllowThreads(__tstate); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
9274 | } | |
9275 | Py_INCREF(Py_None); resultobj = Py_None; | |
9276 | return resultobj; | |
9277 | fail: | |
9278 | return NULL; | |
9279 | } | |
9280 | ||
9281 | ||
9282 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9283 | PyObject *resultobj; | |
9284 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9285 | PyObject * obj0 = 0 ; | |
9286 | char *kwnames[] = { | |
9287 | (char *) "self", NULL | |
9288 | }; | |
9289 | ||
9290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9293 | { |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | (arg1)->Cut(); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | Py_INCREF(Py_None); resultobj = Py_None; | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9310 | PyObject * obj0 = 0 ; | |
9311 | char *kwnames[] = { | |
9312 | (char *) "self", NULL | |
9313 | }; | |
9314 | ||
9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9318 | { |
9319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9320 | (arg1)->Paste(); | |
9321 | ||
9322 | wxPyEndAllowThreads(__tstate); | |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | Py_INCREF(Py_None); resultobj = Py_None; | |
9326 | return resultobj; | |
9327 | fail: | |
9328 | return NULL; | |
9329 | } | |
9330 | ||
9331 | ||
9332 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9333 | PyObject *resultobj; | |
9334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9335 | bool result; | |
9336 | PyObject * obj0 = 0 ; | |
9337 | char *kwnames[] = { | |
9338 | (char *) "self", NULL | |
9339 | }; | |
9340 | ||
9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",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 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9347 | ||
9348 | wxPyEndAllowThreads(__tstate); | |
9349 | if (PyErr_Occurred()) SWIG_fail; | |
9350 | } | |
4f89f6a3 RD |
9351 | { |
9352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9353 | } | |
d14a1e28 RD |
9354 | return resultobj; |
9355 | fail: | |
9356 | return NULL; | |
9357 | } | |
9358 | ||
9359 | ||
9360 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject *resultobj; | |
9362 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9363 | bool result; | |
9364 | PyObject * obj0 = 0 ; | |
9365 | char *kwnames[] = { | |
9366 | (char *) "self", NULL | |
9367 | }; | |
9368 | ||
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9372 | { |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9375 | ||
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
4f89f6a3 RD |
9379 | { |
9380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9381 | } | |
d14a1e28 RD |
9382 | return resultobj; |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9391 | bool result; | |
9392 | PyObject * obj0 = 0 ; | |
9393 | char *kwnames[] = { | |
9394 | (char *) "self", NULL | |
9395 | }; | |
9396 | ||
9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9400 | { |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9402 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9403 | ||
9404 | wxPyEndAllowThreads(__tstate); | |
9405 | if (PyErr_Occurred()) SWIG_fail; | |
9406 | } | |
4f89f6a3 RD |
9407 | { |
9408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9409 | } | |
d14a1e28 RD |
9410 | return resultobj; |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj; | |
9418 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9419 | PyObject * obj0 = 0 ; | |
9420 | char *kwnames[] = { | |
9421 | (char *) "self", NULL | |
9422 | }; | |
9423 | ||
9424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9427 | { |
9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9429 | (arg1)->Undo(); | |
9430 | ||
9431 | wxPyEndAllowThreads(__tstate); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
9434 | Py_INCREF(Py_None); resultobj = Py_None; | |
9435 | return resultobj; | |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
9441 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9442 | PyObject *resultobj; | |
9443 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9444 | PyObject * obj0 = 0 ; | |
9445 | char *kwnames[] = { | |
9446 | (char *) "self", NULL | |
9447 | }; | |
9448 | ||
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9452 | { |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | (arg1)->Redo(); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | Py_INCREF(Py_None); resultobj = Py_None; | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj; | |
9468 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9469 | bool result; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",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 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
4f89f6a3 RD |
9485 | { |
9486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9487 | } | |
d14a1e28 RD |
9488 | return resultobj; |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9497 | bool result; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9506 | { |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
4f89f6a3 RD |
9513 | { |
9514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9515 | } | |
d14a1e28 RD |
9516 | return resultobj; |
9517 | fail: | |
9518 | return NULL; | |
9519 | } | |
9520 | ||
9521 | ||
9522 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9523 | PyObject *resultobj; | |
9524 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9525 | long arg2 ; | |
9526 | PyObject * obj0 = 0 ; | |
994141e6 | 9527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9528 | char *kwnames[] = { |
9529 | (char *) "self",(char *) "pos", NULL | |
9530 | }; | |
9531 | ||
994141e6 | 9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9535 | arg2 = (long) SWIG_AsLong(obj1); | |
9536 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9537 | { |
9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9539 | (arg1)->SetInsertionPoint(arg2); | |
9540 | ||
9541 | wxPyEndAllowThreads(__tstate); | |
9542 | if (PyErr_Occurred()) SWIG_fail; | |
9543 | } | |
9544 | Py_INCREF(Py_None); resultobj = Py_None; | |
9545 | return resultobj; | |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
9551 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9552 | PyObject *resultobj; | |
9553 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9554 | PyObject * obj0 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9562 | { |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | (arg1)->SetInsertionPointEnd(); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | Py_INCREF(Py_None); resultobj = Py_None; | |
9570 | return resultobj; | |
9571 | fail: | |
9572 | return NULL; | |
9573 | } | |
9574 | ||
9575 | ||
9576 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject *resultobj; | |
9578 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9579 | long result; | |
9580 | PyObject * obj0 = 0 ; | |
9581 | char *kwnames[] = { | |
9582 | (char *) "self", NULL | |
9583 | }; | |
9584 | ||
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9588 | { |
9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9590 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9591 | ||
9592 | wxPyEndAllowThreads(__tstate); | |
9593 | if (PyErr_Occurred()) SWIG_fail; | |
9594 | } | |
15afbcd0 | 9595 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9596 | return resultobj; |
9597 | fail: | |
9598 | return NULL; | |
9599 | } | |
9600 | ||
9601 | ||
9602 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9603 | PyObject *resultobj; | |
9604 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9605 | long result; | |
9606 | PyObject * obj0 = 0 ; | |
9607 | char *kwnames[] = { | |
9608 | (char *) "self", NULL | |
9609 | }; | |
9610 | ||
9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9614 | { |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
15afbcd0 | 9621 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9622 | return resultobj; |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9631 | long arg2 ; | |
9632 | long arg3 ; | |
9633 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9634 | PyObject * obj1 = 0 ; |
9635 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9636 | char *kwnames[] = { |
9637 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9638 | }; | |
9639 | ||
994141e6 | 9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9643 | arg2 = (long) SWIG_AsLong(obj1); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | arg3 = (long) SWIG_AsLong(obj2); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9647 | { |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | (arg1)->SetSelection(arg2,arg3); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | Py_INCREF(Py_None); resultobj = Py_None; | |
9655 | return resultobj; | |
9656 | fail: | |
9657 | return NULL; | |
9658 | } | |
9659 | ||
9660 | ||
9661 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject *resultobj; | |
9663 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | char *kwnames[] = { | |
9666 | (char *) "self", NULL | |
9667 | }; | |
9668 | ||
9669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9672 | { |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | (arg1)->SelectAll(); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | Py_INCREF(Py_None); resultobj = Py_None; | |
9680 | return resultobj; | |
9681 | fail: | |
9682 | return NULL; | |
9683 | } | |
9684 | ||
9685 | ||
9686 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject *resultobj; | |
9688 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9689 | bool arg2 ; | |
9690 | PyObject * obj0 = 0 ; | |
9691 | PyObject * obj1 = 0 ; | |
9692 | char *kwnames[] = { | |
9693 | (char *) "self",(char *) "editable", NULL | |
9694 | }; | |
9695 | ||
9696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9699 | arg2 = (bool) SWIG_AsBool(obj1); | |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9701 | { |
9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9703 | (arg1)->SetEditable(arg2); | |
9704 | ||
9705 | wxPyEndAllowThreads(__tstate); | |
9706 | if (PyErr_Occurred()) SWIG_fail; | |
9707 | } | |
9708 | Py_INCREF(Py_None); resultobj = Py_None; | |
9709 | return resultobj; | |
9710 | fail: | |
9711 | return NULL; | |
9712 | } | |
9713 | ||
9714 | ||
9715 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9716 | PyObject *resultobj; | |
9717 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9718 | wxString *arg2 = 0 ; | |
e811c8ce | 9719 | bool temp2 = False ; |
d14a1e28 RD |
9720 | PyObject * obj0 = 0 ; |
9721 | PyObject * obj1 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self",(char *) "text", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9729 | { |
9730 | arg2 = wxString_in_helper(obj1); | |
9731 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9732 | temp2 = True; |
d14a1e28 RD |
9733 | } |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
9741 | Py_INCREF(Py_None); resultobj = Py_None; | |
9742 | { | |
9743 | if (temp2) | |
9744 | delete arg2; | |
9745 | } | |
9746 | return resultobj; | |
9747 | fail: | |
9748 | { | |
9749 | if (temp2) | |
9750 | delete arg2; | |
9751 | } | |
9752 | return NULL; | |
9753 | } | |
9754 | ||
9755 | ||
9756 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9757 | PyObject *resultobj; | |
9758 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9759 | long arg2 ; | |
9760 | long arg3 ; | |
9761 | wxString result; | |
9762 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9763 | PyObject * obj1 = 0 ; |
9764 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9765 | char *kwnames[] = { |
9766 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9767 | }; | |
9768 | ||
994141e6 | 9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9772 | arg2 = (long) SWIG_AsLong(obj1); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | arg3 = (long) SWIG_AsLong(obj2); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9776 | { |
9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9778 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9779 | ||
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | { | |
9784 | #if wxUSE_UNICODE | |
9785 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9786 | #else | |
9787 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9788 | #endif | |
9789 | } | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
22bfe96c RD |
9796 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9797 | PyObject *resultobj; | |
9798 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9799 | wxVisualAttributes result; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "variant", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9806 | if (obj0) { | |
9807 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9808 | if (PyErr_Occurred()) SWIG_fail; | |
9809 | } | |
9810 | { | |
9811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9812 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9813 | ||
9814 | wxPyEndAllowThreads(__tstate); | |
9815 | if (PyErr_Occurred()) SWIG_fail; | |
9816 | } | |
9817 | { | |
9818 | wxVisualAttributes * resultptr; | |
9819 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9821 | } | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
d14a1e28 RD |
9828 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9829 | PyObject *obj; | |
9830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9831 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9832 | Py_INCREF(obj); | |
9833 | return Py_BuildValue((char *)""); | |
9834 | } | |
9835 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9836 | PyObject *resultobj; | |
9837 | int arg1 ; | |
9838 | wxMouseEvent *arg2 = 0 ; | |
9839 | long arg3 ; | |
9840 | long arg4 ; | |
9841 | wxTextUrlEvent *result; | |
994141e6 | 9842 | PyObject * obj0 = 0 ; |
d14a1e28 | 9843 | PyObject * obj1 = 0 ; |
994141e6 RD |
9844 | PyObject * obj2 = 0 ; |
9845 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9846 | char *kwnames[] = { |
9847 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9848 | }; | |
9849 | ||
994141e6 | 9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9851 | arg1 = (int) SWIG_AsInt(obj0); |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9854 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9855 | SWIG_fail; | |
d14a1e28 | 9856 | if (arg2 == NULL) { |
15afbcd0 RD |
9857 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9858 | SWIG_fail; | |
994141e6 | 9859 | } |
15afbcd0 RD |
9860 | arg3 = (long) SWIG_AsLong(obj2); |
9861 | if (PyErr_Occurred()) SWIG_fail; | |
9862 | arg4 = (long) SWIG_AsLong(obj3); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9864 | { |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9867 | ||
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
15afbcd0 | 9871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9872 | return resultobj; |
9873 | fail: | |
9874 | return NULL; | |
9875 | } | |
9876 | ||
9877 | ||
9878 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject *resultobj; | |
9880 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9881 | wxMouseEvent *result; | |
9882 | PyObject * obj0 = 0 ; | |
9883 | char *kwnames[] = { | |
9884 | (char *) "self", NULL | |
9885 | }; | |
9886 | ||
9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9890 | { |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | { | |
9893 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9894 | result = (wxMouseEvent *) &_result_ref; | |
9895 | } | |
9896 | ||
9897 | wxPyEndAllowThreads(__tstate); | |
9898 | if (PyErr_Occurred()) SWIG_fail; | |
9899 | } | |
15afbcd0 | 9900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9901 | return resultobj; |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
9907 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9908 | PyObject *resultobj; | |
9909 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9910 | long result; | |
9911 | PyObject * obj0 = 0 ; | |
9912 | char *kwnames[] = { | |
9913 | (char *) "self", NULL | |
9914 | }; | |
9915 | ||
9916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9919 | { |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
15afbcd0 | 9926 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9927 | return resultobj; |
9928 | fail: | |
9929 | return NULL; | |
9930 | } | |
9931 | ||
9932 | ||
9933 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9934 | PyObject *resultobj; | |
9935 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9936 | long result; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self", NULL | |
9940 | }; | |
9941 | ||
9942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9945 | { |
9946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9947 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
15afbcd0 | 9952 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9953 | return resultobj; |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9960 | PyObject *obj; | |
9961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9962 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9963 | Py_INCREF(obj); | |
9964 | return Py_BuildValue((char *)""); | |
9965 | } | |
b2dc1044 RD |
9966 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
9967 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9968 | return 1; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9973 | PyObject *pyobj; | |
9974 | ||
9975 | { | |
9976 | #if wxUSE_UNICODE | |
9977 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9978 | #else | |
9979 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9980 | #endif | |
9981 | } | |
9982 | return pyobj; | |
9983 | } | |
9984 | ||
9985 | ||
d14a1e28 RD |
9986 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9987 | PyObject *resultobj; | |
9988 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9989 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9990 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9991 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9992 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9993 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9994 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9995 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9996 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9997 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9998 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9999 | wxScrollBar *result; | |
10000 | wxPoint temp3 ; | |
10001 | wxSize temp4 ; | |
e811c8ce | 10002 | bool temp7 = False ; |
d14a1e28 | 10003 | PyObject * obj0 = 0 ; |
994141e6 | 10004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10005 | PyObject * obj2 = 0 ; |
10006 | PyObject * obj3 = 0 ; | |
994141e6 | 10007 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10008 | PyObject * obj5 = 0 ; |
10009 | PyObject * obj6 = 0 ; | |
10010 | char *kwnames[] = { | |
10011 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10012 | }; | |
10013 | ||
994141e6 | 10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10017 | if (obj1) { |
15afbcd0 RD |
10018 | arg2 = (int) SWIG_AsInt(obj1); |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10020 | } |
d14a1e28 RD |
10021 | if (obj2) { |
10022 | { | |
10023 | arg3 = &temp3; | |
10024 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10025 | } | |
10026 | } | |
10027 | if (obj3) { | |
10028 | { | |
10029 | arg4 = &temp4; | |
10030 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10031 | } | |
10032 | } | |
994141e6 | 10033 | if (obj4) { |
15afbcd0 RD |
10034 | arg5 = (long) SWIG_AsLong(obj4); |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10036 | } |
d14a1e28 | 10037 | if (obj5) { |
15afbcd0 RD |
10038 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10040 | SWIG_fail; | |
d14a1e28 | 10041 | if (arg6 == NULL) { |
15afbcd0 RD |
10042 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10043 | SWIG_fail; | |
d14a1e28 RD |
10044 | } |
10045 | } | |
10046 | if (obj6) { | |
10047 | { | |
10048 | arg7 = wxString_in_helper(obj6); | |
10049 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10050 | temp7 = True; |
d14a1e28 RD |
10051 | } |
10052 | } | |
10053 | { | |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
15afbcd0 | 10060 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10061 | { |
10062 | if (temp7) | |
10063 | delete arg7; | |
10064 | } | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | { | |
10068 | if (temp7) | |
10069 | delete arg7; | |
10070 | } | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10076 | PyObject *resultobj; | |
10077 | wxScrollBar *result; | |
10078 | char *kwnames[] = { | |
10079 | NULL | |
10080 | }; | |
10081 | ||
10082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10083 | { | |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (wxScrollBar *)new wxScrollBar(); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
15afbcd0 | 10090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10091 | return resultobj; |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10101 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10102 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10103 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10104 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10105 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10106 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10107 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10108 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10109 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10110 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10111 | bool result; | |
10112 | wxPoint temp4 ; | |
10113 | wxSize temp5 ; | |
e811c8ce | 10114 | bool temp8 = False ; |
d14a1e28 RD |
10115 | PyObject * obj0 = 0 ; |
10116 | PyObject * obj1 = 0 ; | |
994141e6 | 10117 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10118 | PyObject * obj3 = 0 ; |
10119 | PyObject * obj4 = 0 ; | |
994141e6 | 10120 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10121 | PyObject * obj6 = 0 ; |
10122 | PyObject * obj7 = 0 ; | |
10123 | char *kwnames[] = { | |
10124 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10125 | }; | |
10126 | ||
994141e6 | 10127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10132 | if (obj2) { |
15afbcd0 RD |
10133 | arg3 = (int) SWIG_AsInt(obj2); |
10134 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10135 | } |
d14a1e28 RD |
10136 | if (obj3) { |
10137 | { | |
10138 | arg4 = &temp4; | |
10139 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10140 | } | |
10141 | } | |
10142 | if (obj4) { | |
10143 | { | |
10144 | arg5 = &temp5; | |
10145 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10146 | } | |
10147 | } | |
994141e6 | 10148 | if (obj5) { |
15afbcd0 RD |
10149 | arg6 = (long) SWIG_AsLong(obj5); |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10151 | } |
d14a1e28 | 10152 | if (obj6) { |
15afbcd0 RD |
10153 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10154 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10155 | SWIG_fail; | |
d14a1e28 | 10156 | if (arg7 == NULL) { |
15afbcd0 RD |
10157 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10158 | SWIG_fail; | |
d14a1e28 RD |
10159 | } |
10160 | } | |
10161 | if (obj7) { | |
10162 | { | |
10163 | arg8 = wxString_in_helper(obj7); | |
10164 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10165 | temp8 = True; |
d14a1e28 RD |
10166 | } |
10167 | } | |
10168 | { | |
10169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10170 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10171 | ||
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
4f89f6a3 RD |
10175 | { |
10176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10177 | } | |
d14a1e28 RD |
10178 | { |
10179 | if (temp8) | |
10180 | delete arg8; | |
10181 | } | |
10182 | return resultobj; | |
10183 | fail: | |
10184 | { | |
10185 | if (temp8) | |
10186 | delete arg8; | |
10187 | } | |
10188 | return NULL; | |
10189 | } | |
10190 | ||
10191 | ||
10192 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10193 | PyObject *resultobj; | |
10194 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10195 | int result; | |
10196 | PyObject * obj0 = 0 ; | |
10197 | char *kwnames[] = { | |
10198 | (char *) "self", NULL | |
10199 | }; | |
10200 | ||
10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10204 | { |
10205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10206 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10207 | ||
10208 | wxPyEndAllowThreads(__tstate); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
15afbcd0 | 10211 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10212 | return resultobj; |
10213 | fail: | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
10218 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10219 | PyObject *resultobj; | |
10220 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10221 | int result; | |
10222 | PyObject * obj0 = 0 ; | |
10223 | char *kwnames[] = { | |
10224 | (char *) "self", NULL | |
10225 | }; | |
10226 | ||
10227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10230 | { |
10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10232 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10233 | ||
10234 | wxPyEndAllowThreads(__tstate); | |
10235 | if (PyErr_Occurred()) SWIG_fail; | |
10236 | } | |
15afbcd0 | 10237 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10238 | return resultobj; |
10239 | fail: | |
10240 | return NULL; | |
10241 | } | |
10242 | ||
10243 | ||
10244 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10245 | PyObject *resultobj; | |
10246 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10247 | int result; | |
10248 | PyObject * obj0 = 0 ; | |
10249 | char *kwnames[] = { | |
10250 | (char *) "self", NULL | |
10251 | }; | |
10252 | ||
10253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10256 | { |
10257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10258 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10259 | ||
10260 | wxPyEndAllowThreads(__tstate); | |
10261 | if (PyErr_Occurred()) SWIG_fail; | |
10262 | } | |
15afbcd0 | 10263 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10264 | return resultobj; |
10265 | fail: | |
10266 | return NULL; | |
10267 | } | |
10268 | ||
10269 | ||
10270 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10271 | PyObject *resultobj; | |
10272 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10273 | int result; | |
10274 | PyObject * obj0 = 0 ; | |
10275 | char *kwnames[] = { | |
10276 | (char *) "self", NULL | |
10277 | }; | |
10278 | ||
10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
15afbcd0 | 10289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10290 | return resultobj; |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
10296 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10297 | PyObject *resultobj; | |
10298 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10299 | bool result; | |
10300 | PyObject * obj0 = 0 ; | |
10301 | char *kwnames[] = { | |
10302 | (char *) "self", NULL | |
10303 | }; | |
10304 | ||
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10308 | { |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
4f89f6a3 RD |
10315 | { |
10316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10317 | } | |
d14a1e28 RD |
10318 | return resultobj; |
10319 | fail: | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
10324 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10325 | PyObject *resultobj; | |
10326 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10327 | int arg2 ; | |
10328 | PyObject * obj0 = 0 ; | |
994141e6 | 10329 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10330 | char *kwnames[] = { |
10331 | (char *) "self",(char *) "viewStart", NULL | |
10332 | }; | |
10333 | ||
994141e6 | 10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10337 | arg2 = (int) SWIG_AsInt(obj1); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10339 | { |
10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10341 | (arg1)->SetThumbPosition(arg2); | |
10342 | ||
10343 | wxPyEndAllowThreads(__tstate); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
10345 | } | |
10346 | Py_INCREF(Py_None); resultobj = Py_None; | |
10347 | return resultobj; | |
10348 | fail: | |
10349 | return NULL; | |
10350 | } | |
10351 | ||
10352 | ||
10353 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10354 | PyObject *resultobj; | |
10355 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10356 | int arg2 ; | |
10357 | int arg3 ; | |
10358 | int arg4 ; | |
10359 | int arg5 ; | |
e811c8ce | 10360 | bool arg6 = (bool) True ; |
d14a1e28 | 10361 | PyObject * obj0 = 0 ; |
994141e6 RD |
10362 | PyObject * obj1 = 0 ; |
10363 | PyObject * obj2 = 0 ; | |
10364 | PyObject * obj3 = 0 ; | |
10365 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10366 | PyObject * obj5 = 0 ; |
10367 | char *kwnames[] = { | |
10368 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10369 | }; | |
10370 | ||
994141e6 | 10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10374 | arg2 = (int) SWIG_AsInt(obj1); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | arg3 = (int) SWIG_AsInt(obj2); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | arg4 = (int) SWIG_AsInt(obj3); | |
10379 | if (PyErr_Occurred()) SWIG_fail; | |
10380 | arg5 = (int) SWIG_AsInt(obj4); | |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 10382 | if (obj5) { |
15afbcd0 RD |
10383 | arg6 = (bool) SWIG_AsBool(obj5); |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10385 | } |
10386 | { | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | Py_INCREF(Py_None); resultobj = Py_None; | |
10394 | return resultobj; | |
10395 | fail: | |
10396 | return NULL; | |
10397 | } | |
10398 | ||
10399 | ||
22bfe96c RD |
10400 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10401 | PyObject *resultobj; | |
10402 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10403 | wxVisualAttributes result; | |
10404 | PyObject * obj0 = 0 ; | |
10405 | char *kwnames[] = { | |
10406 | (char *) "variant", NULL | |
10407 | }; | |
10408 | ||
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10410 | if (obj0) { | |
10411 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
10414 | { | |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | { | |
10422 | wxVisualAttributes * resultptr; | |
10423 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10424 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10425 | } | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
d14a1e28 RD |
10432 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10433 | PyObject *obj; | |
10434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10435 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10436 | Py_INCREF(obj); | |
10437 | return Py_BuildValue((char *)""); | |
10438 | } | |
b2dc1044 RD |
10439 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
10440 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10441 | return 1; | |
10442 | } | |
10443 | ||
10444 | ||
10445 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10446 | PyObject *pyobj; | |
10447 | ||
10448 | { | |
10449 | #if wxUSE_UNICODE | |
10450 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10451 | #else | |
10452 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10453 | #endif | |
10454 | } | |
10455 | return pyobj; | |
10456 | } | |
10457 | ||
10458 | ||
10459 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10460 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10461 | return 1; | |
10462 | } | |
10463 | ||
10464 | ||
10465 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10466 | PyObject *pyobj; | |
10467 | ||
10468 | { | |
10469 | #if wxUSE_UNICODE | |
10470 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10471 | #else | |
10472 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10473 | #endif | |
10474 | } | |
10475 | return pyobj; | |
10476 | } | |
10477 | ||
10478 | ||
d14a1e28 RD |
10479 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10480 | PyObject *resultobj; | |
10481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10482 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10483 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10484 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10485 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10486 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10487 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10488 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10489 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10490 | wxSpinButton *result; | |
10491 | wxPoint temp3 ; | |
10492 | wxSize temp4 ; | |
e811c8ce | 10493 | bool temp6 = False ; |
d14a1e28 | 10494 | PyObject * obj0 = 0 ; |
994141e6 | 10495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10496 | PyObject * obj2 = 0 ; |
10497 | PyObject * obj3 = 0 ; | |
994141e6 | 10498 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10499 | PyObject * obj5 = 0 ; |
10500 | char *kwnames[] = { | |
10501 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10502 | }; | |
10503 | ||
994141e6 | 10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10507 | if (obj1) { |
15afbcd0 RD |
10508 | arg2 = (int) SWIG_AsInt(obj1); |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10510 | } |
d14a1e28 RD |
10511 | if (obj2) { |
10512 | { | |
10513 | arg3 = &temp3; | |
10514 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10515 | } | |
10516 | } | |
10517 | if (obj3) { | |
10518 | { | |
10519 | arg4 = &temp4; | |
10520 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10521 | } | |
10522 | } | |
994141e6 | 10523 | if (obj4) { |
15afbcd0 RD |
10524 | arg5 = (long) SWIG_AsLong(obj4); |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10526 | } |
d14a1e28 RD |
10527 | if (obj5) { |
10528 | { | |
10529 | arg6 = wxString_in_helper(obj5); | |
10530 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10531 | temp6 = True; |
d14a1e28 RD |
10532 | } |
10533 | } | |
10534 | { | |
10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10536 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10537 | ||
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
15afbcd0 | 10541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10542 | { |
10543 | if (temp6) | |
10544 | delete arg6; | |
10545 | } | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | { | |
10549 | if (temp6) | |
10550 | delete arg6; | |
10551 | } | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
10556 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject *resultobj; | |
10558 | wxSpinButton *result; | |
10559 | char *kwnames[] = { | |
10560 | NULL | |
10561 | }; | |
10562 | ||
10563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10564 | { | |
10565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10566 | result = (wxSpinButton *)new wxSpinButton(); | |
10567 | ||
10568 | wxPyEndAllowThreads(__tstate); | |
10569 | if (PyErr_Occurred()) SWIG_fail; | |
10570 | } | |
15afbcd0 | 10571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10572 | return resultobj; |
10573 | fail: | |
10574 | return NULL; | |
10575 | } | |
10576 | ||
10577 | ||
10578 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10579 | PyObject *resultobj; | |
10580 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10581 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10582 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10583 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10584 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10585 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10586 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10587 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10588 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10589 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10590 | bool result; | |
10591 | wxPoint temp4 ; | |
10592 | wxSize temp5 ; | |
e811c8ce | 10593 | bool temp7 = False ; |
d14a1e28 RD |
10594 | PyObject * obj0 = 0 ; |
10595 | PyObject * obj1 = 0 ; | |
994141e6 | 10596 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10597 | PyObject * obj3 = 0 ; |
10598 | PyObject * obj4 = 0 ; | |
994141e6 | 10599 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10600 | PyObject * obj6 = 0 ; |
10601 | char *kwnames[] = { | |
10602 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10603 | }; | |
10604 | ||
994141e6 | 10605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10608 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10610 | if (obj2) { |
15afbcd0 RD |
10611 | arg3 = (int) SWIG_AsInt(obj2); |
10612 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10613 | } |
d14a1e28 RD |
10614 | if (obj3) { |
10615 | { | |
10616 | arg4 = &temp4; | |
10617 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10618 | } | |
10619 | } | |
10620 | if (obj4) { | |
10621 | { | |
10622 | arg5 = &temp5; | |
10623 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10624 | } | |
10625 | } | |
994141e6 | 10626 | if (obj5) { |
15afbcd0 RD |
10627 | arg6 = (long) SWIG_AsLong(obj5); |
10628 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10629 | } |
d14a1e28 RD |
10630 | if (obj6) { |
10631 | { | |
10632 | arg7 = wxString_in_helper(obj6); | |
10633 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10634 | temp7 = True; |
d14a1e28 RD |
10635 | } |
10636 | } | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
4f89f6a3 RD |
10644 | { |
10645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10646 | } | |
d14a1e28 RD |
10647 | { |
10648 | if (temp7) | |
10649 | delete arg7; | |
10650 | } | |
10651 | return resultobj; | |
10652 | fail: | |
10653 | { | |
10654 | if (temp7) | |
10655 | delete arg7; | |
10656 | } | |
10657 | return NULL; | |
10658 | } | |
10659 | ||
10660 | ||
10661 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject *resultobj; | |
10663 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10664 | int result; | |
10665 | PyObject * obj0 = 0 ; | |
10666 | char *kwnames[] = { | |
10667 | (char *) "self", NULL | |
10668 | }; | |
10669 | ||
10670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10673 | { |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10676 | ||
10677 | wxPyEndAllowThreads(__tstate); | |
10678 | if (PyErr_Occurred()) SWIG_fail; | |
10679 | } | |
15afbcd0 | 10680 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10681 | return resultobj; |
10682 | fail: | |
10683 | return NULL; | |
10684 | } | |
10685 | ||
10686 | ||
10687 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10688 | PyObject *resultobj; | |
10689 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10690 | int result; | |
10691 | PyObject * obj0 = 0 ; | |
10692 | char *kwnames[] = { | |
10693 | (char *) "self", NULL | |
10694 | }; | |
10695 | ||
10696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10699 | { |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
15afbcd0 | 10706 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10707 | return resultobj; |
10708 | fail: | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
10713 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject *resultobj; | |
10715 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10716 | int result; | |
10717 | PyObject * obj0 = 0 ; | |
10718 | char *kwnames[] = { | |
10719 | (char *) "self", NULL | |
10720 | }; | |
10721 | ||
10722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10725 | { |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10728 | ||
10729 | wxPyEndAllowThreads(__tstate); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
15afbcd0 | 10732 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10733 | return resultobj; |
10734 | fail: | |
10735 | return NULL; | |
10736 | } | |
10737 | ||
10738 | ||
10739 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10740 | PyObject *resultobj; | |
10741 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10742 | int arg2 ; | |
10743 | PyObject * obj0 = 0 ; | |
994141e6 | 10744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10745 | char *kwnames[] = { |
10746 | (char *) "self",(char *) "val", NULL | |
10747 | }; | |
10748 | ||
994141e6 | 10749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10752 | arg2 = (int) SWIG_AsInt(obj1); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10754 | { |
10755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10756 | (arg1)->SetValue(arg2); | |
10757 | ||
10758 | wxPyEndAllowThreads(__tstate); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
10761 | Py_INCREF(Py_None); resultobj = Py_None; | |
10762 | return resultobj; | |
10763 | fail: | |
10764 | return NULL; | |
10765 | } | |
10766 | ||
10767 | ||
10768 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10769 | PyObject *resultobj; | |
10770 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10771 | int arg2 ; | |
10772 | PyObject * obj0 = 0 ; | |
994141e6 | 10773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10774 | char *kwnames[] = { |
10775 | (char *) "self",(char *) "minVal", NULL | |
10776 | }; | |
10777 | ||
994141e6 | 10778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10781 | arg2 = (int) SWIG_AsInt(obj1); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10783 | { |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | (arg1)->SetMin(arg2); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | Py_INCREF(Py_None); resultobj = Py_None; | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10798 | PyObject *resultobj; | |
10799 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10800 | int arg2 ; | |
10801 | PyObject * obj0 = 0 ; | |
994141e6 | 10802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10803 | char *kwnames[] = { |
10804 | (char *) "self",(char *) "maxVal", NULL | |
10805 | }; | |
10806 | ||
994141e6 | 10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10810 | arg2 = (int) SWIG_AsInt(obj1); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10812 | { |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | (arg1)->SetMax(arg2); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
10819 | Py_INCREF(Py_None); resultobj = Py_None; | |
10820 | return resultobj; | |
10821 | fail: | |
10822 | return NULL; | |
10823 | } | |
10824 | ||
10825 | ||
10826 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject *resultobj; | |
10828 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10829 | int arg2 ; | |
10830 | int arg3 ; | |
10831 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10832 | PyObject * obj1 = 0 ; |
10833 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10834 | char *kwnames[] = { |
10835 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10836 | }; | |
10837 | ||
994141e6 | 10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10841 | arg2 = (int) SWIG_AsInt(obj1); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | arg3 = (int) SWIG_AsInt(obj2); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10845 | { |
15afbcd0 RD |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10847 | (arg1)->SetRange(arg2,arg3); | |
10848 | ||
10849 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
10850 | if (PyErr_Occurred()) SWIG_fail; |
10851 | } | |
22bfe96c RD |
10852 | Py_INCREF(Py_None); resultobj = Py_None; |
10853 | return resultobj; | |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
10859 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject *resultobj; | |
10861 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10862 | bool result; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | char *kwnames[] = { | |
10865 | (char *) "self", NULL | |
10866 | }; | |
10867 | ||
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | { | |
10879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10880 | } | |
d14a1e28 RD |
10881 | return resultobj; |
10882 | fail: | |
10883 | return NULL; | |
10884 | } | |
10885 | ||
10886 | ||
22bfe96c | 10887 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10888 | PyObject *resultobj; |
22bfe96c RD |
10889 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10890 | wxVisualAttributes result; | |
d14a1e28 RD |
10891 | PyObject * obj0 = 0 ; |
10892 | char *kwnames[] = { | |
22bfe96c | 10893 | (char *) "variant", NULL |
d14a1e28 RD |
10894 | }; |
10895 | ||
22bfe96c RD |
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10897 | if (obj0) { | |
10898 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
d14a1e28 RD |
10901 | { |
10902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22bfe96c | 10903 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
10904 | |
10905 | wxPyEndAllowThreads(__tstate); | |
10906 | if (PyErr_Occurred()) SWIG_fail; | |
10907 | } | |
4f89f6a3 | 10908 | { |
22bfe96c RD |
10909 | wxVisualAttributes * resultptr; |
10910 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 10912 | } |
d14a1e28 RD |
10913 | return resultobj; |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10920 | PyObject *obj; | |
10921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10922 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10923 | Py_INCREF(obj); | |
10924 | return Py_BuildValue((char *)""); | |
10925 | } | |
10926 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10929 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10930 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10931 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10936 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10937 | int arg7 = (int) 0 ; | |
10938 | int arg8 = (int) 100 ; | |
10939 | int arg9 = (int) 0 ; | |
10940 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10941 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10942 | wxSpinCtrl *result; | |
e811c8ce | 10943 | bool temp3 = False ; |
d14a1e28 RD |
10944 | wxPoint temp4 ; |
10945 | wxSize temp5 ; | |
e811c8ce | 10946 | bool temp10 = False ; |
d14a1e28 | 10947 | PyObject * obj0 = 0 ; |
994141e6 | 10948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10949 | PyObject * obj2 = 0 ; |
10950 | PyObject * obj3 = 0 ; | |
10951 | PyObject * obj4 = 0 ; | |
994141e6 RD |
10952 | PyObject * obj5 = 0 ; |
10953 | PyObject * obj6 = 0 ; | |
10954 | PyObject * obj7 = 0 ; | |
10955 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10956 | PyObject * obj9 = 0 ; |
10957 | char *kwnames[] = { | |
10958 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10959 | }; | |
10960 | ||
994141e6 | 10961 | 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 |
10962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10964 | if (obj1) { |
15afbcd0 RD |
10965 | arg2 = (int) SWIG_AsInt(obj1); |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10967 | } |
10968 | if (obj2) { | |
d14a1e28 RD |
10969 | { |
10970 | arg3 = wxString_in_helper(obj2); | |
10971 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10972 | temp3 = True; |
d14a1e28 RD |
10973 | } |
10974 | } | |
10975 | if (obj3) { | |
10976 | { | |
10977 | arg4 = &temp4; | |
10978 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10979 | } | |
10980 | } | |
10981 | if (obj4) { | |
10982 | { | |
10983 | arg5 = &temp5; | |
10984 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10985 | } | |
10986 | } | |
994141e6 | 10987 | if (obj5) { |
15afbcd0 RD |
10988 | arg6 = (long) SWIG_AsLong(obj5); |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10990 | } |
10991 | if (obj6) { | |
15afbcd0 RD |
10992 | arg7 = (int) SWIG_AsInt(obj6); |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10994 | } |
10995 | if (obj7) { | |
15afbcd0 RD |
10996 | arg8 = (int) SWIG_AsInt(obj7); |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10998 | } |
10999 | if (obj8) { | |
15afbcd0 RD |
11000 | arg9 = (int) SWIG_AsInt(obj8); |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11002 | } |
d14a1e28 RD |
11003 | if (obj9) { |
11004 | { | |
11005 | arg10 = wxString_in_helper(obj9); | |
11006 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11007 | temp10 = True; |
d14a1e28 RD |
11008 | } |
11009 | } | |
11010 | { | |
11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11012 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11013 | ||
11014 | wxPyEndAllowThreads(__tstate); | |
11015 | if (PyErr_Occurred()) SWIG_fail; | |
11016 | } | |
15afbcd0 | 11017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11018 | { |
11019 | if (temp3) | |
11020 | delete arg3; | |
11021 | } | |
11022 | { | |
11023 | if (temp10) | |
11024 | delete arg10; | |
11025 | } | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | { | |
11029 | if (temp3) | |
11030 | delete arg3; | |
11031 | } | |
11032 | { | |
11033 | if (temp10) | |
11034 | delete arg10; | |
11035 | } | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxSpinCtrl *result; | |
11043 | char *kwnames[] = { | |
11044 | NULL | |
11045 | }; | |
11046 | ||
11047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11048 | { | |
11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11050 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11051 | ||
11052 | wxPyEndAllowThreads(__tstate); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
15afbcd0 | 11055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11056 | return resultobj; |
11057 | fail: | |
11058 | return NULL; | |
11059 | } | |
11060 | ||
11061 | ||
11062 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11063 | PyObject *resultobj; | |
11064 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11065 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11066 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11067 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11068 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11069 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11070 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11071 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11072 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11073 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11074 | int arg8 = (int) 0 ; | |
11075 | int arg9 = (int) 100 ; | |
11076 | int arg10 = (int) 0 ; | |
11077 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11078 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11079 | bool result; | |
e811c8ce | 11080 | bool temp4 = False ; |
d14a1e28 RD |
11081 | wxPoint temp5 ; |
11082 | wxSize temp6 ; | |
e811c8ce | 11083 | bool temp11 = False ; |
d14a1e28 RD |
11084 | PyObject * obj0 = 0 ; |
11085 | PyObject * obj1 = 0 ; | |
994141e6 | 11086 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11087 | PyObject * obj3 = 0 ; |
11088 | PyObject * obj4 = 0 ; | |
11089 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11090 | PyObject * obj6 = 0 ; |
11091 | PyObject * obj7 = 0 ; | |
11092 | PyObject * obj8 = 0 ; | |
11093 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11094 | PyObject * obj10 = 0 ; |
11095 | char *kwnames[] = { | |
11096 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11097 | }; | |
11098 | ||
994141e6 | 11099 | 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 |
11100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11104 | if (obj2) { |
15afbcd0 RD |
11105 | arg3 = (int) SWIG_AsInt(obj2); |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11107 | } |
d14a1e28 RD |
11108 | if (obj3) { |
11109 | { | |
11110 | arg4 = wxString_in_helper(obj3); | |
11111 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11112 | temp4 = True; |
d14a1e28 RD |
11113 | } |
11114 | } | |
11115 | if (obj4) { | |
11116 | { | |
11117 | arg5 = &temp5; | |
11118 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11119 | } | |
11120 | } | |
11121 | if (obj5) { | |
11122 | { | |
11123 | arg6 = &temp6; | |
11124 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11125 | } | |
11126 | } | |
994141e6 | 11127 | if (obj6) { |
15afbcd0 RD |
11128 | arg7 = (long) SWIG_AsLong(obj6); |
11129 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11130 | } |
11131 | if (obj7) { | |
15afbcd0 RD |
11132 | arg8 = (int) SWIG_AsInt(obj7); |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11134 | } |
11135 | if (obj8) { | |
15afbcd0 RD |
11136 | arg9 = (int) SWIG_AsInt(obj8); |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11138 | } |
11139 | if (obj9) { | |
15afbcd0 RD |
11140 | arg10 = (int) SWIG_AsInt(obj9); |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11142 | } |
d14a1e28 RD |
11143 | if (obj10) { |
11144 | { | |
11145 | arg11 = wxString_in_helper(obj10); | |
11146 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11147 | temp11 = True; |
d14a1e28 RD |
11148 | } |
11149 | } | |
11150 | { | |
11151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11152 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11153 | ||
11154 | wxPyEndAllowThreads(__tstate); | |
11155 | if (PyErr_Occurred()) SWIG_fail; | |
11156 | } | |
4f89f6a3 RD |
11157 | { |
11158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11159 | } | |
d14a1e28 RD |
11160 | { |
11161 | if (temp4) | |
11162 | delete arg4; | |
11163 | } | |
11164 | { | |
11165 | if (temp11) | |
11166 | delete arg11; | |
11167 | } | |
11168 | return resultobj; | |
11169 | fail: | |
11170 | { | |
11171 | if (temp4) | |
11172 | delete arg4; | |
11173 | } | |
11174 | { | |
11175 | if (temp11) | |
11176 | delete arg11; | |
11177 | } | |
11178 | return NULL; | |
11179 | } | |
11180 | ||
11181 | ||
11182 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11183 | PyObject *resultobj; | |
11184 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11185 | int result; | |
11186 | PyObject * obj0 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "self", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11194 | { |
11195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11196 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11197 | ||
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) SWIG_fail; | |
11200 | } | |
15afbcd0 | 11201 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11202 | return resultobj; |
11203 | fail: | |
11204 | return NULL; | |
11205 | } | |
11206 | ||
11207 | ||
11208 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11209 | PyObject *resultobj; | |
11210 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11211 | int arg2 ; | |
11212 | PyObject * obj0 = 0 ; | |
994141e6 | 11213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11214 | char *kwnames[] = { |
11215 | (char *) "self",(char *) "value", NULL | |
11216 | }; | |
11217 | ||
994141e6 | 11218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11221 | arg2 = (int) SWIG_AsInt(obj1); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11223 | { |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | (arg1)->SetValue(arg2); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | Py_INCREF(Py_None); resultobj = Py_None; | |
11231 | return resultobj; | |
11232 | fail: | |
11233 | return NULL; | |
11234 | } | |
11235 | ||
11236 | ||
11237 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11238 | PyObject *resultobj; | |
11239 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11240 | wxString *arg2 = 0 ; | |
e811c8ce | 11241 | bool temp2 = False ; |
d14a1e28 RD |
11242 | PyObject * obj0 = 0 ; |
11243 | PyObject * obj1 = 0 ; | |
11244 | char *kwnames[] = { | |
11245 | (char *) "self",(char *) "text", NULL | |
11246 | }; | |
11247 | ||
11248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11251 | { |
11252 | arg2 = wxString_in_helper(obj1); | |
11253 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11254 | temp2 = True; |
d14a1e28 RD |
11255 | } |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | (arg1)->SetValue((wxString const &)*arg2); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | Py_INCREF(Py_None); resultobj = Py_None; | |
11264 | { | |
11265 | if (temp2) | |
11266 | delete arg2; | |
11267 | } | |
11268 | return resultobj; | |
11269 | fail: | |
11270 | { | |
11271 | if (temp2) | |
11272 | delete arg2; | |
11273 | } | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj; | |
11280 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11281 | int arg2 ; | |
11282 | int arg3 ; | |
11283 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11284 | PyObject * obj1 = 0 ; |
11285 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11286 | char *kwnames[] = { |
11287 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11288 | }; | |
11289 | ||
994141e6 | 11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11293 | arg2 = (int) SWIG_AsInt(obj1); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | arg3 = (int) SWIG_AsInt(obj2); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11297 | { |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | (arg1)->SetRange(arg2,arg3); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | Py_INCREF(Py_None); resultobj = Py_None; | |
11305 | return resultobj; | |
11306 | fail: | |
11307 | return NULL; | |
11308 | } | |
11309 | ||
11310 | ||
11311 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11312 | PyObject *resultobj; | |
11313 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11314 | int result; | |
11315 | PyObject * obj0 = 0 ; | |
11316 | char *kwnames[] = { | |
11317 | (char *) "self", NULL | |
11318 | }; | |
11319 | ||
11320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11323 | { |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
15afbcd0 | 11330 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11331 | return resultobj; |
11332 | fail: | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
11337 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11338 | PyObject *resultobj; | |
11339 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11340 | int result; | |
11341 | PyObject * obj0 = 0 ; | |
11342 | char *kwnames[] = { | |
11343 | (char *) "self", NULL | |
11344 | }; | |
11345 | ||
11346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11349 | { |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
15afbcd0 | 11356 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11357 | return resultobj; |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
11363 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject *resultobj; | |
11365 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11366 | long arg2 ; | |
11367 | long arg3 ; | |
11368 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11369 | PyObject * obj1 = 0 ; |
11370 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11371 | char *kwnames[] = { |
11372 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11373 | }; | |
11374 | ||
994141e6 | 11375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11378 | arg2 = (long) SWIG_AsLong(obj1); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | arg3 = (long) SWIG_AsLong(obj2); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11382 | { |
11383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11384 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11385 | |
11386 | wxPyEndAllowThreads(__tstate); | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | } | |
11389 | Py_INCREF(Py_None); resultobj = Py_None; | |
11390 | return resultobj; | |
11391 | fail: | |
11392 | return NULL; | |
11393 | } | |
11394 | ||
11395 | ||
22bfe96c RD |
11396 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11397 | PyObject *resultobj; | |
11398 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11399 | wxVisualAttributes result; | |
11400 | PyObject * obj0 = 0 ; | |
11401 | char *kwnames[] = { | |
11402 | (char *) "variant", NULL | |
11403 | }; | |
11404 | ||
11405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11406 | if (obj0) { | |
11407 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | } | |
11410 | { | |
11411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11412 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11413 | ||
11414 | wxPyEndAllowThreads(__tstate); | |
11415 | if (PyErr_Occurred()) SWIG_fail; | |
11416 | } | |
11417 | { | |
11418 | wxVisualAttributes * resultptr; | |
11419 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11421 | } | |
11422 | return resultobj; | |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
d14a1e28 RD |
11428 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11429 | PyObject *obj; | |
11430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11431 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11432 | Py_INCREF(obj); | |
11433 | return Py_BuildValue((char *)""); | |
11434 | } | |
d1e20054 RD |
11435 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
11436 | PyObject *resultobj; | |
11437 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11438 | int arg2 = (int) 0 ; | |
11439 | wxSpinEvent *result; | |
994141e6 RD |
11440 | PyObject * obj0 = 0 ; |
11441 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11442 | char *kwnames[] = { |
11443 | (char *) "commandType",(char *) "winid", NULL | |
11444 | }; | |
11445 | ||
994141e6 RD |
11446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11447 | if (obj0) { | |
15afbcd0 RD |
11448 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11449 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11450 | } |
11451 | if (obj1) { | |
15afbcd0 RD |
11452 | arg2 = (int) SWIG_AsInt(obj1); |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11454 | } |
d1e20054 RD |
11455 | { |
11456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11457 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11458 | ||
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
15afbcd0 | 11462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11463 | return resultobj; |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
11469 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11470 | PyObject *resultobj; | |
11471 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11472 | int result; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | char *kwnames[] = { | |
11475 | (char *) "self", NULL | |
11476 | }; | |
11477 | ||
11478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11481 | { |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11483 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11484 | ||
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
15afbcd0 | 11488 | resultobj = SWIG_FromInt((int)result); |
d1e20054 RD |
11489 | return resultobj; |
11490 | fail: | |
11491 | return NULL; | |
11492 | } | |
11493 | ||
11494 | ||
11495 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11496 | PyObject *resultobj; | |
11497 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11498 | int arg2 ; | |
11499 | PyObject * obj0 = 0 ; | |
994141e6 | 11500 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11501 | char *kwnames[] = { |
11502 | (char *) "self",(char *) "pos", NULL | |
11503 | }; | |
11504 | ||
994141e6 | 11505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11508 | arg2 = (int) SWIG_AsInt(obj1); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
d1e20054 RD |
11510 | { |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11512 | (arg1)->SetPosition(arg2); | |
11513 | ||
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
11517 | Py_INCREF(Py_None); resultobj = Py_None; | |
11518 | return resultobj; | |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
11524 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11525 | PyObject *obj; | |
11526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11527 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11528 | Py_INCREF(obj); | |
11529 | return Py_BuildValue((char *)""); | |
11530 | } | |
b2dc1044 RD |
11531 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
11532 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11533 | return 1; | |
11534 | } | |
11535 | ||
11536 | ||
11537 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11538 | PyObject *pyobj; | |
11539 | ||
11540 | { | |
11541 | #if wxUSE_UNICODE | |
11542 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11543 | #else | |
11544 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11545 | #endif | |
11546 | } | |
11547 | return pyobj; | |
11548 | } | |
11549 | ||
11550 | ||
11551 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11552 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11553 | return 1; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11558 | PyObject *pyobj; | |
11559 | ||
11560 | { | |
11561 | #if wxUSE_UNICODE | |
11562 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11563 | #else | |
11564 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11565 | #endif | |
11566 | } | |
11567 | return pyobj; | |
11568 | } | |
11569 | ||
11570 | ||
d14a1e28 RD |
11571 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11572 | PyObject *resultobj; | |
11573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11574 | int arg2 ; |
d14a1e28 RD |
11575 | wxString *arg3 = 0 ; |
11576 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11577 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11578 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11579 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11580 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11581 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11582 | int arg7 = (int) 0 ; | |
11583 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11584 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11585 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11586 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11587 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11588 | wxRadioBox *result; |
e811c8ce | 11589 | bool temp3 = False ; |
d14a1e28 RD |
11590 | wxPoint temp4 ; |
11591 | wxSize temp5 ; | |
3adfb63b | 11592 | bool temp6 = False ; |
e811c8ce | 11593 | bool temp10 = False ; |
d14a1e28 | 11594 | PyObject * obj0 = 0 ; |
994141e6 | 11595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11596 | PyObject * obj2 = 0 ; |
11597 | PyObject * obj3 = 0 ; | |
11598 | PyObject * obj4 = 0 ; | |
11599 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11600 | PyObject * obj6 = 0 ; |
11601 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11602 | PyObject * obj8 = 0 ; |
11603 | PyObject * obj9 = 0 ; | |
11604 | char *kwnames[] = { | |
994141e6 | 11605 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11606 | }; |
11607 | ||
994141e6 | 11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
11609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11611 | arg2 = (int) SWIG_AsInt(obj1); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11613 | { |
11614 | arg3 = wxString_in_helper(obj2); | |
11615 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11616 | temp3 = True; |
d14a1e28 RD |
11617 | } |
11618 | if (obj3) { | |
11619 | { | |
11620 | arg4 = &temp4; | |
11621 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11622 | } | |
11623 | } | |
11624 | if (obj4) { | |
11625 | { | |
11626 | arg5 = &temp5; | |
11627 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11628 | } | |
11629 | } | |
11630 | if (obj5) { | |
11631 | { | |
4d5c3d91 RD |
11632 | if (! PySequence_Check(obj5)) { |
11633 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11634 | SWIG_fail; | |
11635 | } | |
11636 | arg6 = new wxArrayString; | |
3adfb63b | 11637 | temp6 = True; |
4d5c3d91 RD |
11638 | int i, len=PySequence_Length(obj5); |
11639 | for (i=0; i<len; i++) { | |
11640 | PyObject* item = PySequence_GetItem(obj5, i); | |
11641 | #if wxUSE_UNICODE | |
11642 | PyObject* str = PyObject_Unicode(item); | |
11643 | #else | |
11644 | PyObject* str = PyObject_Str(item); | |
11645 | #endif | |
74a57fcd | 11646 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11647 | arg6->Add(Py2wxString(str)); |
11648 | Py_DECREF(item); | |
11649 | Py_DECREF(str); | |
11650 | } | |
d14a1e28 RD |
11651 | } |
11652 | } | |
994141e6 | 11653 | if (obj6) { |
15afbcd0 RD |
11654 | arg7 = (int) SWIG_AsInt(obj6); |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11656 | } |
11657 | if (obj7) { | |
15afbcd0 RD |
11658 | arg8 = (long) SWIG_AsLong(obj7); |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11660 | } |
d14a1e28 | 11661 | if (obj8) { |
15afbcd0 RD |
11662 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11664 | SWIG_fail; | |
4d5c3d91 | 11665 | if (arg9 == NULL) { |
15afbcd0 RD |
11666 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11667 | SWIG_fail; | |
d14a1e28 RD |
11668 | } |
11669 | } | |
11670 | if (obj9) { | |
11671 | { | |
4d5c3d91 RD |
11672 | arg10 = wxString_in_helper(obj9); |
11673 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11674 | temp10 = True; |
d14a1e28 RD |
11675 | } |
11676 | } | |
11677 | { | |
11678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11679 | 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 |
11680 | |
11681 | wxPyEndAllowThreads(__tstate); | |
11682 | if (PyErr_Occurred()) SWIG_fail; | |
11683 | } | |
15afbcd0 | 11684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11685 | { |
11686 | if (temp3) | |
11687 | delete arg3; | |
11688 | } | |
11689 | { | |
3adfb63b | 11690 | if (temp6) delete arg6; |
d14a1e28 RD |
11691 | } |
11692 | { | |
11693 | if (temp10) | |
4d5c3d91 | 11694 | delete arg10; |
d14a1e28 RD |
11695 | } |
11696 | return resultobj; | |
11697 | fail: | |
11698 | { | |
11699 | if (temp3) | |
11700 | delete arg3; | |
11701 | } | |
11702 | { | |
3adfb63b | 11703 | if (temp6) delete arg6; |
d14a1e28 RD |
11704 | } |
11705 | { | |
11706 | if (temp10) | |
4d5c3d91 | 11707 | delete arg10; |
d14a1e28 RD |
11708 | } |
11709 | return NULL; | |
11710 | } | |
11711 | ||
11712 | ||
11713 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11714 | PyObject *resultobj; | |
11715 | wxRadioBox *result; | |
11716 | char *kwnames[] = { | |
11717 | NULL | |
11718 | }; | |
11719 | ||
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11721 | { | |
11722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11723 | result = (wxRadioBox *)new wxRadioBox(); | |
11724 | ||
11725 | wxPyEndAllowThreads(__tstate); | |
11726 | if (PyErr_Occurred()) SWIG_fail; | |
11727 | } | |
15afbcd0 | 11728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11729 | return resultobj; |
11730 | fail: | |
11731 | return NULL; | |
11732 | } | |
11733 | ||
11734 | ||
11735 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11736 | PyObject *resultobj; | |
11737 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11738 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11739 | int arg3 ; |
d14a1e28 RD |
11740 | wxString *arg4 = 0 ; |
11741 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11742 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11743 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11744 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11745 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11746 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11747 | int arg8 = (int) 0 ; | |
11748 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11749 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11750 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11751 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11752 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11753 | bool result; |
e811c8ce | 11754 | bool temp4 = False ; |
d14a1e28 RD |
11755 | wxPoint temp5 ; |
11756 | wxSize temp6 ; | |
3adfb63b | 11757 | bool temp7 = False ; |
e811c8ce | 11758 | bool temp11 = False ; |
d14a1e28 RD |
11759 | PyObject * obj0 = 0 ; |
11760 | PyObject * obj1 = 0 ; | |
994141e6 | 11761 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11762 | PyObject * obj3 = 0 ; |
11763 | PyObject * obj4 = 0 ; | |
11764 | PyObject * obj5 = 0 ; | |
11765 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11766 | PyObject * obj7 = 0 ; |
11767 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11768 | PyObject * obj9 = 0 ; |
11769 | PyObject * obj10 = 0 ; | |
11770 | char *kwnames[] = { | |
994141e6 | 11771 | (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 |
11772 | }; |
11773 | ||
994141e6 | 11774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
11775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11779 | arg3 = (int) SWIG_AsInt(obj2); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11781 | { |
11782 | arg4 = wxString_in_helper(obj3); | |
11783 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11784 | temp4 = True; |
d14a1e28 RD |
11785 | } |
11786 | if (obj4) { | |
11787 | { | |
11788 | arg5 = &temp5; | |
11789 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11790 | } | |
11791 | } | |
11792 | if (obj5) { | |
11793 | { | |
11794 | arg6 = &temp6; | |
11795 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11796 | } | |
11797 | } | |
11798 | if (obj6) { | |
11799 | { | |
4d5c3d91 RD |
11800 | if (! PySequence_Check(obj6)) { |
11801 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11802 | SWIG_fail; | |
11803 | } | |
11804 | arg7 = new wxArrayString; | |
3adfb63b | 11805 | temp7 = True; |
4d5c3d91 RD |
11806 | int i, len=PySequence_Length(obj6); |
11807 | for (i=0; i<len; i++) { | |
11808 | PyObject* item = PySequence_GetItem(obj6, i); | |
11809 | #if wxUSE_UNICODE | |
11810 | PyObject* str = PyObject_Unicode(item); | |
11811 | #else | |
11812 | PyObject* str = PyObject_Str(item); | |
11813 | #endif | |
74a57fcd | 11814 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11815 | arg7->Add(Py2wxString(str)); |
11816 | Py_DECREF(item); | |
11817 | Py_DECREF(str); | |
11818 | } | |
d14a1e28 RD |
11819 | } |
11820 | } | |
994141e6 | 11821 | if (obj7) { |
15afbcd0 RD |
11822 | arg8 = (int) SWIG_AsInt(obj7); |
11823 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11824 | } |
11825 | if (obj8) { | |
15afbcd0 RD |
11826 | arg9 = (long) SWIG_AsLong(obj8); |
11827 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11828 | } |
d14a1e28 | 11829 | if (obj9) { |
15afbcd0 RD |
11830 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11831 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11832 | SWIG_fail; | |
4d5c3d91 | 11833 | if (arg10 == NULL) { |
15afbcd0 RD |
11834 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11835 | SWIG_fail; | |
d14a1e28 RD |
11836 | } |
11837 | } | |
11838 | if (obj10) { | |
11839 | { | |
4d5c3d91 RD |
11840 | arg11 = wxString_in_helper(obj10); |
11841 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11842 | temp11 = True; |
d14a1e28 RD |
11843 | } |
11844 | } | |
11845 | { | |
11846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11847 | 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 |
11848 | |
11849 | wxPyEndAllowThreads(__tstate); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
4f89f6a3 RD |
11852 | { |
11853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11854 | } | |
d14a1e28 RD |
11855 | { |
11856 | if (temp4) | |
11857 | delete arg4; | |
11858 | } | |
11859 | { | |
3adfb63b | 11860 | if (temp7) delete arg7; |
d14a1e28 RD |
11861 | } |
11862 | { | |
11863 | if (temp11) | |
4d5c3d91 | 11864 | delete arg11; |
d14a1e28 RD |
11865 | } |
11866 | return resultobj; | |
11867 | fail: | |
11868 | { | |
11869 | if (temp4) | |
11870 | delete arg4; | |
11871 | } | |
11872 | { | |
3adfb63b | 11873 | if (temp7) delete arg7; |
d14a1e28 RD |
11874 | } |
11875 | { | |
11876 | if (temp11) | |
4d5c3d91 | 11877 | delete arg11; |
d14a1e28 RD |
11878 | } |
11879 | return NULL; | |
11880 | } | |
11881 | ||
11882 | ||
11883 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11884 | PyObject *resultobj; | |
11885 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11886 | int arg2 ; | |
11887 | PyObject * obj0 = 0 ; | |
994141e6 | 11888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11889 | char *kwnames[] = { |
11890 | (char *) "self",(char *) "n", NULL | |
11891 | }; | |
11892 | ||
994141e6 | 11893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11896 | arg2 = (int) SWIG_AsInt(obj1); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11898 | { |
11899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11900 | (arg1)->SetSelection(arg2); | |
11901 | ||
11902 | wxPyEndAllowThreads(__tstate); | |
11903 | if (PyErr_Occurred()) SWIG_fail; | |
11904 | } | |
11905 | Py_INCREF(Py_None); resultobj = Py_None; | |
11906 | return resultobj; | |
11907 | fail: | |
11908 | return NULL; | |
11909 | } | |
11910 | ||
11911 | ||
11912 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11913 | PyObject *resultobj; | |
11914 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11915 | int result; | |
11916 | PyObject * obj0 = 0 ; | |
11917 | char *kwnames[] = { | |
11918 | (char *) "self", NULL | |
11919 | }; | |
11920 | ||
11921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11924 | { |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
15afbcd0 | 11931 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11932 | return resultobj; |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
11938 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11939 | PyObject *resultobj; | |
11940 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11941 | wxString result; | |
11942 | PyObject * obj0 = 0 ; | |
11943 | char *kwnames[] = { | |
11944 | (char *) "self", NULL | |
11945 | }; | |
11946 | ||
11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11950 | { |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | { | |
11958 | #if wxUSE_UNICODE | |
11959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11960 | #else | |
11961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11962 | #endif | |
11963 | } | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
11970 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11971 | PyObject *resultobj; | |
11972 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11973 | wxString *arg2 = 0 ; | |
11974 | bool result; | |
e811c8ce | 11975 | bool temp2 = False ; |
d14a1e28 RD |
11976 | PyObject * obj0 = 0 ; |
11977 | PyObject * obj1 = 0 ; | |
11978 | char *kwnames[] = { | |
11979 | (char *) "self",(char *) "s", NULL | |
11980 | }; | |
11981 | ||
11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11985 | { |
11986 | arg2 = wxString_in_helper(obj1); | |
11987 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11988 | temp2 = True; |
d14a1e28 RD |
11989 | } |
11990 | { | |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11993 | ||
11994 | wxPyEndAllowThreads(__tstate); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
11996 | } | |
4f89f6a3 RD |
11997 | { |
11998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11999 | } | |
d14a1e28 RD |
12000 | { |
12001 | if (temp2) | |
12002 | delete arg2; | |
12003 | } | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | { | |
12007 | if (temp2) | |
12008 | delete arg2; | |
12009 | } | |
12010 | return NULL; | |
12011 | } | |
12012 | ||
12013 | ||
12014 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12015 | PyObject *resultobj; | |
12016 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12017 | int result; | |
12018 | PyObject * obj0 = 0 ; | |
12019 | char *kwnames[] = { | |
12020 | (char *) "self", NULL | |
12021 | }; | |
12022 | ||
12023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12026 | { |
12027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12028 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12029 | ||
12030 | wxPyEndAllowThreads(__tstate); | |
12031 | if (PyErr_Occurred()) SWIG_fail; | |
12032 | } | |
15afbcd0 | 12033 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12034 | return resultobj; |
12035 | fail: | |
12036 | return NULL; | |
12037 | } | |
12038 | ||
12039 | ||
12040 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12041 | PyObject *resultobj; | |
12042 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12043 | wxString *arg2 = 0 ; | |
12044 | int result; | |
e811c8ce | 12045 | bool temp2 = False ; |
d14a1e28 RD |
12046 | PyObject * obj0 = 0 ; |
12047 | PyObject * obj1 = 0 ; | |
12048 | char *kwnames[] = { | |
12049 | (char *) "self",(char *) "s", NULL | |
12050 | }; | |
12051 | ||
12052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12055 | { |
12056 | arg2 = wxString_in_helper(obj1); | |
12057 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12058 | temp2 = True; |
d14a1e28 RD |
12059 | } |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
15afbcd0 | 12067 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12068 | { |
12069 | if (temp2) | |
12070 | delete arg2; | |
12071 | } | |
12072 | return resultobj; | |
12073 | fail: | |
12074 | { | |
12075 | if (temp2) | |
12076 | delete arg2; | |
12077 | } | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
12082 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12083 | PyObject *resultobj; | |
12084 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12085 | int arg2 ; | |
12086 | wxString result; | |
12087 | PyObject * obj0 = 0 ; | |
994141e6 | 12088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12089 | char *kwnames[] = { |
12090 | (char *) "self",(char *) "n", NULL | |
12091 | }; | |
12092 | ||
994141e6 | 12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12096 | arg2 = (int) SWIG_AsInt(obj1); | |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12098 | { |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12101 | ||
12102 | wxPyEndAllowThreads(__tstate); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
12105 | { | |
12106 | #if wxUSE_UNICODE | |
12107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12108 | #else | |
12109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12110 | #endif | |
12111 | } | |
12112 | return resultobj; | |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
12118 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12119 | PyObject *resultobj; | |
12120 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12121 | int arg2 ; | |
12122 | wxString *arg3 = 0 ; | |
e811c8ce | 12123 | bool temp3 = False ; |
d14a1e28 | 12124 | PyObject * obj0 = 0 ; |
994141e6 | 12125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12126 | PyObject * obj2 = 0 ; |
12127 | char *kwnames[] = { | |
12128 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12129 | }; | |
12130 | ||
994141e6 | 12131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12134 | arg2 = (int) SWIG_AsInt(obj1); | |
12135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12136 | { |
12137 | arg3 = wxString_in_helper(obj2); | |
12138 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12139 | temp3 = True; |
d14a1e28 RD |
12140 | } |
12141 | { | |
12142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12143 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12144 | ||
12145 | wxPyEndAllowThreads(__tstate); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
12148 | Py_INCREF(Py_None); resultobj = Py_None; | |
12149 | { | |
12150 | if (temp3) | |
12151 | delete arg3; | |
12152 | } | |
12153 | return resultobj; | |
12154 | fail: | |
12155 | { | |
12156 | if (temp3) | |
12157 | delete arg3; | |
12158 | } | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
12163 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12164 | PyObject *resultobj; | |
12165 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12166 | int arg2 ; | |
e811c8ce | 12167 | bool arg3 = (bool) True ; |
d14a1e28 | 12168 | PyObject * obj0 = 0 ; |
994141e6 | 12169 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12170 | PyObject * obj2 = 0 ; |
12171 | char *kwnames[] = { | |
12172 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12173 | }; | |
12174 | ||
994141e6 | 12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12178 | arg2 = (int) SWIG_AsInt(obj1); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12180 | if (obj2) { |
15afbcd0 RD |
12181 | arg3 = (bool) SWIG_AsBool(obj2); |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12183 | } |
12184 | { | |
12185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12186 | (arg1)->Enable(arg2,arg3); | |
12187 | ||
12188 | wxPyEndAllowThreads(__tstate); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
12191 | Py_INCREF(Py_None); resultobj = Py_None; | |
12192 | return resultobj; | |
12193 | fail: | |
12194 | return NULL; | |
12195 | } | |
12196 | ||
12197 | ||
12198 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12199 | PyObject *resultobj; | |
12200 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12201 | int arg2 ; | |
e811c8ce | 12202 | bool arg3 = (bool) True ; |
d14a1e28 | 12203 | PyObject * obj0 = 0 ; |
994141e6 | 12204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12205 | PyObject * obj2 = 0 ; |
12206 | char *kwnames[] = { | |
12207 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12208 | }; | |
12209 | ||
994141e6 | 12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12213 | arg2 = (int) SWIG_AsInt(obj1); | |
12214 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12215 | if (obj2) { |
15afbcd0 RD |
12216 | arg3 = (bool) SWIG_AsBool(obj2); |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12218 | } |
12219 | { | |
12220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12221 | (arg1)->Show(arg2,arg3); | |
12222 | ||
12223 | wxPyEndAllowThreads(__tstate); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | Py_INCREF(Py_None); resultobj = Py_None; | |
12227 | return resultobj; | |
12228 | fail: | |
12229 | return NULL; | |
12230 | } | |
12231 | ||
12232 | ||
12233 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12234 | PyObject *resultobj; | |
12235 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12236 | int result; | |
12237 | PyObject * obj0 = 0 ; | |
12238 | char *kwnames[] = { | |
12239 | (char *) "self", NULL | |
12240 | }; | |
12241 | ||
12242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12245 | { |
12246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12247 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12248 | ||
12249 | wxPyEndAllowThreads(__tstate); | |
12250 | if (PyErr_Occurred()) SWIG_fail; | |
12251 | } | |
15afbcd0 | 12252 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12253 | return resultobj; |
12254 | fail: | |
12255 | return NULL; | |
12256 | } | |
12257 | ||
12258 | ||
12259 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12260 | PyObject *resultobj; | |
12261 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12262 | int result; | |
12263 | PyObject * obj0 = 0 ; | |
12264 | char *kwnames[] = { | |
12265 | (char *) "self", NULL | |
12266 | }; | |
12267 | ||
12268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12271 | { |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12274 | ||
12275 | wxPyEndAllowThreads(__tstate); | |
12276 | if (PyErr_Occurred()) SWIG_fail; | |
12277 | } | |
15afbcd0 | 12278 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12279 | return resultobj; |
12280 | fail: | |
12281 | return NULL; | |
12282 | } | |
12283 | ||
12284 | ||
12285 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12286 | PyObject *resultobj; | |
12287 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12288 | int arg2 ; | |
12289 | int arg3 ; | |
12290 | long arg4 ; | |
12291 | int result; | |
12292 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12293 | PyObject * obj1 = 0 ; |
12294 | PyObject * obj2 = 0 ; | |
12295 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12296 | char *kwnames[] = { |
12297 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12298 | }; | |
12299 | ||
994141e6 | 12300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12303 | arg2 = (int) SWIG_AsInt(obj1); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12306 | if (PyErr_Occurred()) SWIG_fail; | |
12307 | arg4 = (long) SWIG_AsLong(obj3); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12309 | { |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12311 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12312 | ||
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
15afbcd0 | 12316 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12317 | return resultobj; |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
22bfe96c RD |
12323 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12324 | PyObject *resultobj; | |
12325 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12326 | wxVisualAttributes result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "variant", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12333 | if (obj0) { | |
12334 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | { | |
12345 | wxVisualAttributes * resultptr; | |
12346 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12347 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12348 | } | |
12349 | return resultobj; | |
12350 | fail: | |
12351 | return NULL; | |
12352 | } | |
12353 | ||
12354 | ||
d14a1e28 RD |
12355 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12356 | PyObject *obj; | |
12357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12358 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12359 | Py_INCREF(obj); | |
12360 | return Py_BuildValue((char *)""); | |
12361 | } | |
12362 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12363 | PyObject *resultobj; | |
12364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12365 | int arg2 ; |
d14a1e28 RD |
12366 | wxString *arg3 = 0 ; |
12367 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12368 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12369 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12370 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12371 | long arg6 = (long) 0 ; | |
12372 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12373 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12374 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12375 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12376 | wxRadioButton *result; | |
e811c8ce | 12377 | bool temp3 = False ; |
d14a1e28 RD |
12378 | wxPoint temp4 ; |
12379 | wxSize temp5 ; | |
e811c8ce | 12380 | bool temp8 = False ; |
d14a1e28 | 12381 | PyObject * obj0 = 0 ; |
994141e6 | 12382 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12383 | PyObject * obj2 = 0 ; |
12384 | PyObject * obj3 = 0 ; | |
12385 | PyObject * obj4 = 0 ; | |
994141e6 | 12386 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12387 | PyObject * obj6 = 0 ; |
12388 | PyObject * obj7 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12391 | }; | |
12392 | ||
994141e6 | 12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12396 | arg2 = (int) SWIG_AsInt(obj1); | |
12397 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12398 | { |
12399 | arg3 = wxString_in_helper(obj2); | |
12400 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12401 | temp3 = True; |
d14a1e28 RD |
12402 | } |
12403 | if (obj3) { | |
12404 | { | |
12405 | arg4 = &temp4; | |
12406 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12407 | } | |
12408 | } | |
12409 | if (obj4) { | |
12410 | { | |
12411 | arg5 = &temp5; | |
12412 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12413 | } | |
12414 | } | |
994141e6 | 12415 | if (obj5) { |
15afbcd0 RD |
12416 | arg6 = (long) SWIG_AsLong(obj5); |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12418 | } |
d14a1e28 | 12419 | if (obj6) { |
15afbcd0 RD |
12420 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12422 | SWIG_fail; | |
d14a1e28 | 12423 | if (arg7 == NULL) { |
15afbcd0 RD |
12424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12425 | SWIG_fail; | |
d14a1e28 RD |
12426 | } |
12427 | } | |
12428 | if (obj7) { | |
12429 | { | |
12430 | arg8 = wxString_in_helper(obj7); | |
12431 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12432 | temp8 = True; |
d14a1e28 RD |
12433 | } |
12434 | } | |
12435 | { | |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12437 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12438 | ||
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
15afbcd0 | 12442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12443 | { |
12444 | if (temp3) | |
12445 | delete arg3; | |
12446 | } | |
12447 | { | |
12448 | if (temp8) | |
12449 | delete arg8; | |
12450 | } | |
12451 | return resultobj; | |
12452 | fail: | |
12453 | { | |
12454 | if (temp3) | |
12455 | delete arg3; | |
12456 | } | |
12457 | { | |
12458 | if (temp8) | |
12459 | delete arg8; | |
12460 | } | |
12461 | return NULL; | |
12462 | } | |
12463 | ||
12464 | ||
12465 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12466 | PyObject *resultobj; | |
12467 | wxRadioButton *result; | |
12468 | char *kwnames[] = { | |
12469 | NULL | |
12470 | }; | |
12471 | ||
12472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12473 | { | |
12474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12475 | result = (wxRadioButton *)new wxRadioButton(); | |
12476 | ||
12477 | wxPyEndAllowThreads(__tstate); | |
12478 | if (PyErr_Occurred()) SWIG_fail; | |
12479 | } | |
15afbcd0 | 12480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12481 | return resultobj; |
12482 | fail: | |
12483 | return NULL; | |
12484 | } | |
12485 | ||
12486 | ||
12487 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12488 | PyObject *resultobj; | |
12489 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12490 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12491 | int arg3 ; |
d14a1e28 RD |
12492 | wxString *arg4 = 0 ; |
12493 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12494 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12495 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12496 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12497 | long arg7 = (long) 0 ; | |
12498 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12499 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12500 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12501 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12502 | bool result; | |
e811c8ce | 12503 | bool temp4 = False ; |
d14a1e28 RD |
12504 | wxPoint temp5 ; |
12505 | wxSize temp6 ; | |
e811c8ce | 12506 | bool temp9 = False ; |
d14a1e28 RD |
12507 | PyObject * obj0 = 0 ; |
12508 | PyObject * obj1 = 0 ; | |
994141e6 | 12509 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12510 | PyObject * obj3 = 0 ; |
12511 | PyObject * obj4 = 0 ; | |
12512 | PyObject * obj5 = 0 ; | |
994141e6 | 12513 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12514 | PyObject * obj7 = 0 ; |
12515 | PyObject * obj8 = 0 ; | |
12516 | char *kwnames[] = { | |
12517 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12518 | }; | |
12519 | ||
994141e6 | 12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12523 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12525 | arg3 = (int) SWIG_AsInt(obj2); | |
12526 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12527 | { |
12528 | arg4 = wxString_in_helper(obj3); | |
12529 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12530 | temp4 = True; |
d14a1e28 RD |
12531 | } |
12532 | if (obj4) { | |
12533 | { | |
12534 | arg5 = &temp5; | |
12535 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12536 | } | |
12537 | } | |
12538 | if (obj5) { | |
12539 | { | |
12540 | arg6 = &temp6; | |
12541 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12542 | } | |
12543 | } | |
994141e6 | 12544 | if (obj6) { |
15afbcd0 RD |
12545 | arg7 = (long) SWIG_AsLong(obj6); |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12547 | } |
d14a1e28 | 12548 | if (obj7) { |
15afbcd0 RD |
12549 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12550 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12551 | SWIG_fail; | |
d14a1e28 | 12552 | if (arg8 == NULL) { |
15afbcd0 RD |
12553 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12554 | SWIG_fail; | |
d14a1e28 RD |
12555 | } |
12556 | } | |
12557 | if (obj8) { | |
12558 | { | |
12559 | arg9 = wxString_in_helper(obj8); | |
12560 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12561 | temp9 = True; |
d14a1e28 RD |
12562 | } |
12563 | } | |
12564 | { | |
12565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12566 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12567 | ||
12568 | wxPyEndAllowThreads(__tstate); | |
12569 | if (PyErr_Occurred()) SWIG_fail; | |
12570 | } | |
4f89f6a3 RD |
12571 | { |
12572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12573 | } | |
d14a1e28 RD |
12574 | { |
12575 | if (temp4) | |
12576 | delete arg4; | |
12577 | } | |
12578 | { | |
12579 | if (temp9) | |
12580 | delete arg9; | |
12581 | } | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | { | |
12585 | if (temp4) | |
12586 | delete arg4; | |
12587 | } | |
12588 | { | |
12589 | if (temp9) | |
12590 | delete arg9; | |
12591 | } | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
12596 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12597 | PyObject *resultobj; | |
12598 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12599 | bool result; | |
12600 | PyObject * obj0 = 0 ; | |
12601 | char *kwnames[] = { | |
12602 | (char *) "self", NULL | |
12603 | }; | |
12604 | ||
12605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12608 | { |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12610 | result = (bool)(arg1)->GetValue(); | |
12611 | ||
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
4f89f6a3 RD |
12615 | { |
12616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12617 | } | |
d14a1e28 RD |
12618 | return resultobj; |
12619 | fail: | |
12620 | return NULL; | |
12621 | } | |
12622 | ||
12623 | ||
12624 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12625 | PyObject *resultobj; | |
12626 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12627 | bool arg2 ; | |
12628 | PyObject * obj0 = 0 ; | |
12629 | PyObject * obj1 = 0 ; | |
12630 | char *kwnames[] = { | |
12631 | (char *) "self",(char *) "value", NULL | |
12632 | }; | |
12633 | ||
12634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12637 | arg2 = (bool) SWIG_AsBool(obj1); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12639 | { |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12641 | (arg1)->SetValue(arg2); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | Py_INCREF(Py_None); resultobj = Py_None; | |
12647 | return resultobj; | |
12648 | fail: | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
22bfe96c RD |
12653 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12654 | PyObject *resultobj; | |
12655 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12656 | wxVisualAttributes result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | char *kwnames[] = { | |
12659 | (char *) "variant", NULL | |
12660 | }; | |
12661 | ||
12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12663 | if (obj0) { | |
12664 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | { | |
12668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12669 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12670 | ||
12671 | wxPyEndAllowThreads(__tstate); | |
12672 | if (PyErr_Occurred()) SWIG_fail; | |
12673 | } | |
12674 | { | |
12675 | wxVisualAttributes * resultptr; | |
12676 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12678 | } | |
12679 | return resultobj; | |
12680 | fail: | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
d14a1e28 RD |
12685 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12686 | PyObject *obj; | |
12687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12688 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12689 | Py_INCREF(obj); | |
12690 | return Py_BuildValue((char *)""); | |
12691 | } | |
b2dc1044 RD |
12692 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
12693 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12694 | return 1; | |
12695 | } | |
12696 | ||
12697 | ||
12698 | static PyObject *_wrap_SliderNameStr_get() { | |
12699 | PyObject *pyobj; | |
12700 | ||
12701 | { | |
12702 | #if wxUSE_UNICODE | |
12703 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12704 | #else | |
12705 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12706 | #endif | |
12707 | } | |
12708 | return pyobj; | |
12709 | } | |
12710 | ||
12711 | ||
d14a1e28 RD |
12712 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12713 | PyObject *resultobj; | |
12714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12715 | int arg2 ; |
d14a1e28 RD |
12716 | int arg3 ; |
12717 | int arg4 ; | |
12718 | int arg5 ; | |
12719 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12720 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12721 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12722 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12723 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12724 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12725 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12726 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12727 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12728 | wxSlider *result; | |
12729 | wxPoint temp6 ; | |
12730 | wxSize temp7 ; | |
e811c8ce | 12731 | bool temp10 = False ; |
d14a1e28 | 12732 | PyObject * obj0 = 0 ; |
994141e6 RD |
12733 | PyObject * obj1 = 0 ; |
12734 | PyObject * obj2 = 0 ; | |
12735 | PyObject * obj3 = 0 ; | |
12736 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12737 | PyObject * obj5 = 0 ; |
12738 | PyObject * obj6 = 0 ; | |
994141e6 | 12739 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12740 | PyObject * obj8 = 0 ; |
12741 | PyObject * obj9 = 0 ; | |
12742 | char *kwnames[] = { | |
994141e6 | 12743 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12744 | }; |
12745 | ||
994141e6 | 12746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
12747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12749 | arg2 = (int) SWIG_AsInt(obj1); | |
12750 | if (PyErr_Occurred()) SWIG_fail; | |
12751 | arg3 = (int) SWIG_AsInt(obj2); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | arg4 = (int) SWIG_AsInt(obj3); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | arg5 = (int) SWIG_AsInt(obj4); | |
12756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12757 | if (obj5) { |
12758 | { | |
12759 | arg6 = &temp6; | |
12760 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12761 | } | |
12762 | } | |
12763 | if (obj6) { | |
12764 | { | |
12765 | arg7 = &temp7; | |
12766 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12767 | } | |
12768 | } | |
994141e6 | 12769 | if (obj7) { |
15afbcd0 RD |
12770 | arg8 = (long) SWIG_AsLong(obj7); |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12772 | } |
d14a1e28 | 12773 | if (obj8) { |
15afbcd0 RD |
12774 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12775 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12776 | SWIG_fail; | |
d14a1e28 | 12777 | if (arg9 == NULL) { |
15afbcd0 RD |
12778 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12779 | SWIG_fail; | |
d14a1e28 RD |
12780 | } |
12781 | } | |
12782 | if (obj9) { | |
12783 | { | |
12784 | arg10 = wxString_in_helper(obj9); | |
12785 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 12786 | temp10 = True; |
d14a1e28 RD |
12787 | } |
12788 | } | |
12789 | { | |
12790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12791 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12792 | ||
12793 | wxPyEndAllowThreads(__tstate); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
15afbcd0 | 12796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12797 | { |
12798 | if (temp10) | |
12799 | delete arg10; | |
12800 | } | |
12801 | return resultobj; | |
12802 | fail: | |
12803 | { | |
12804 | if (temp10) | |
12805 | delete arg10; | |
12806 | } | |
12807 | return NULL; | |
12808 | } | |
12809 | ||
12810 | ||
12811 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12812 | PyObject *resultobj; | |
12813 | wxSlider *result; | |
12814 | char *kwnames[] = { | |
12815 | NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12819 | { | |
12820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12821 | result = (wxSlider *)new wxSlider(); | |
12822 | ||
12823 | wxPyEndAllowThreads(__tstate); | |
12824 | if (PyErr_Occurred()) SWIG_fail; | |
12825 | } | |
15afbcd0 | 12826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12827 | return resultobj; |
12828 | fail: | |
12829 | return NULL; | |
12830 | } | |
12831 | ||
12832 | ||
12833 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12834 | PyObject *resultobj; | |
12835 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12836 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12837 | int arg3 ; |
d14a1e28 RD |
12838 | int arg4 ; |
12839 | int arg5 ; | |
12840 | int arg6 ; | |
12841 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12842 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12843 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12844 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12845 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12846 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12847 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12848 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12849 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12850 | bool result; | |
12851 | wxPoint temp7 ; | |
12852 | wxSize temp8 ; | |
e811c8ce | 12853 | bool temp11 = False ; |
d14a1e28 RD |
12854 | PyObject * obj0 = 0 ; |
12855 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12856 | PyObject * obj2 = 0 ; |
12857 | PyObject * obj3 = 0 ; | |
12858 | PyObject * obj4 = 0 ; | |
12859 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12860 | PyObject * obj6 = 0 ; |
12861 | PyObject * obj7 = 0 ; | |
994141e6 | 12862 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12863 | PyObject * obj9 = 0 ; |
12864 | PyObject * obj10 = 0 ; | |
12865 | char *kwnames[] = { | |
994141e6 | 12866 | (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 |
12867 | }; |
12868 | ||
994141e6 | 12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12874 | arg3 = (int) SWIG_AsInt(obj2); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | arg4 = (int) SWIG_AsInt(obj3); | |
12877 | if (PyErr_Occurred()) SWIG_fail; | |
12878 | arg5 = (int) SWIG_AsInt(obj4); | |
12879 | if (PyErr_Occurred()) SWIG_fail; | |
12880 | arg6 = (int) SWIG_AsInt(obj5); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12882 | if (obj6) { |
12883 | { | |
12884 | arg7 = &temp7; | |
12885 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12886 | } | |
12887 | } | |
12888 | if (obj7) { | |
12889 | { | |
12890 | arg8 = &temp8; | |
12891 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12892 | } | |
12893 | } | |
994141e6 | 12894 | if (obj8) { |
15afbcd0 RD |
12895 | arg9 = (long) SWIG_AsLong(obj8); |
12896 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12897 | } |
d14a1e28 | 12898 | if (obj9) { |
15afbcd0 RD |
12899 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12901 | SWIG_fail; | |
d14a1e28 | 12902 | if (arg10 == NULL) { |
15afbcd0 RD |
12903 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12904 | SWIG_fail; | |
d14a1e28 RD |
12905 | } |
12906 | } | |
12907 | if (obj10) { | |
12908 | { | |
12909 | arg11 = wxString_in_helper(obj10); | |
12910 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 12911 | temp11 = True; |
d14a1e28 RD |
12912 | } |
12913 | } | |
12914 | { | |
12915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12916 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12917 | ||
12918 | wxPyEndAllowThreads(__tstate); | |
12919 | if (PyErr_Occurred()) SWIG_fail; | |
12920 | } | |
4f89f6a3 RD |
12921 | { |
12922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12923 | } | |
d14a1e28 RD |
12924 | { |
12925 | if (temp11) | |
12926 | delete arg11; | |
12927 | } | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | { | |
12931 | if (temp11) | |
12932 | delete arg11; | |
12933 | } | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
12938 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj; | |
12940 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12941 | int result; | |
12942 | PyObject * obj0 = 0 ; | |
12943 | char *kwnames[] = { | |
12944 | (char *) "self", NULL | |
12945 | }; | |
12946 | ||
12947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12950 | { |
12951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12952 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12953 | ||
12954 | wxPyEndAllowThreads(__tstate); | |
12955 | if (PyErr_Occurred()) SWIG_fail; | |
12956 | } | |
15afbcd0 | 12957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12958 | return resultobj; |
12959 | fail: | |
12960 | return NULL; | |
12961 | } | |
12962 | ||
12963 | ||
12964 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12965 | PyObject *resultobj; | |
12966 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12967 | int arg2 ; | |
12968 | PyObject * obj0 = 0 ; | |
994141e6 | 12969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12970 | char *kwnames[] = { |
12971 | (char *) "self",(char *) "value", NULL | |
12972 | }; | |
12973 | ||
994141e6 | 12974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12977 | arg2 = (int) SWIG_AsInt(obj1); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12979 | { |
12980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12981 | (arg1)->SetValue(arg2); | |
12982 | ||
12983 | wxPyEndAllowThreads(__tstate); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
12986 | Py_INCREF(Py_None); resultobj = Py_None; | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
12993 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj; | |
12995 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12996 | int arg2 ; | |
12997 | int arg3 ; | |
12998 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12999 | PyObject * obj1 = 0 ; |
13000 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13001 | char *kwnames[] = { |
13002 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13003 | }; | |
13004 | ||
994141e6 | 13005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13008 | arg2 = (int) SWIG_AsInt(obj1); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | arg3 = (int) SWIG_AsInt(obj2); | |
13011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13012 | { |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | (arg1)->SetRange(arg2,arg3); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | Py_INCREF(Py_None); resultobj = Py_None; | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
13026 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13027 | PyObject *resultobj; | |
13028 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13029 | int result; | |
13030 | PyObject * obj0 = 0 ; | |
13031 | char *kwnames[] = { | |
13032 | (char *) "self", NULL | |
13033 | }; | |
13034 | ||
13035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13038 | { |
13039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13040 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13041 | ||
13042 | wxPyEndAllowThreads(__tstate); | |
13043 | if (PyErr_Occurred()) SWIG_fail; | |
13044 | } | |
15afbcd0 | 13045 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13046 | return resultobj; |
13047 | fail: | |
13048 | return NULL; | |
13049 | } | |
13050 | ||
13051 | ||
13052 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13053 | PyObject *resultobj; | |
13054 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13055 | int result; | |
13056 | PyObject * obj0 = 0 ; | |
13057 | char *kwnames[] = { | |
13058 | (char *) "self", NULL | |
13059 | }; | |
13060 | ||
13061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13064 | { |
13065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13066 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13067 | ||
13068 | wxPyEndAllowThreads(__tstate); | |
13069 | if (PyErr_Occurred()) SWIG_fail; | |
13070 | } | |
15afbcd0 | 13071 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13072 | return resultobj; |
13073 | fail: | |
13074 | return NULL; | |
13075 | } | |
13076 | ||
13077 | ||
13078 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13079 | PyObject *resultobj; | |
13080 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13081 | int arg2 ; | |
13082 | PyObject * obj0 = 0 ; | |
994141e6 | 13083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13084 | char *kwnames[] = { |
13085 | (char *) "self",(char *) "minValue", NULL | |
13086 | }; | |
13087 | ||
994141e6 | 13088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13091 | arg2 = (int) SWIG_AsInt(obj1); | |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13093 | { |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | (arg1)->SetMin(arg2); | |
13096 | ||
13097 | wxPyEndAllowThreads(__tstate); | |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
13099 | } | |
13100 | Py_INCREF(Py_None); resultobj = Py_None; | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | return NULL; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13108 | PyObject *resultobj; | |
13109 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13110 | int arg2 ; | |
13111 | PyObject * obj0 = 0 ; | |
994141e6 | 13112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13113 | char *kwnames[] = { |
13114 | (char *) "self",(char *) "maxValue", NULL | |
13115 | }; | |
13116 | ||
994141e6 | 13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13120 | arg2 = (int) SWIG_AsInt(obj1); | |
13121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13122 | { |
13123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13124 | (arg1)->SetMax(arg2); | |
13125 | ||
13126 | wxPyEndAllowThreads(__tstate); | |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
13128 | } | |
13129 | Py_INCREF(Py_None); resultobj = Py_None; | |
13130 | return resultobj; | |
13131 | fail: | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
13136 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13137 | PyObject *resultobj; | |
13138 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13139 | int arg2 ; | |
13140 | PyObject * obj0 = 0 ; | |
994141e6 | 13141 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13142 | char *kwnames[] = { |
13143 | (char *) "self",(char *) "lineSize", NULL | |
13144 | }; | |
13145 | ||
994141e6 | 13146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13149 | arg2 = (int) SWIG_AsInt(obj1); | |
13150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13151 | { |
13152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13153 | (arg1)->SetLineSize(arg2); | |
13154 | ||
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
13158 | Py_INCREF(Py_None); resultobj = Py_None; | |
13159 | return resultobj; | |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
13165 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13166 | PyObject *resultobj; | |
13167 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13168 | int arg2 ; | |
13169 | PyObject * obj0 = 0 ; | |
994141e6 | 13170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13171 | char *kwnames[] = { |
13172 | (char *) "self",(char *) "pageSize", NULL | |
13173 | }; | |
13174 | ||
994141e6 | 13175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13178 | arg2 = (int) SWIG_AsInt(obj1); | |
13179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13180 | { |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | (arg1)->SetPageSize(arg2); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | Py_INCREF(Py_None); resultobj = Py_None; | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
13194 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13195 | PyObject *resultobj; | |
13196 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13197 | int result; | |
13198 | PyObject * obj0 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self", NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13206 | { |
13207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13208 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13209 | ||
13210 | wxPyEndAllowThreads(__tstate); | |
13211 | if (PyErr_Occurred()) SWIG_fail; | |
13212 | } | |
15afbcd0 | 13213 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13214 | return resultobj; |
13215 | fail: | |
13216 | return NULL; | |
13217 | } | |
13218 | ||
13219 | ||
13220 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13221 | PyObject *resultobj; | |
13222 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13223 | int result; | |
13224 | PyObject * obj0 = 0 ; | |
13225 | char *kwnames[] = { | |
13226 | (char *) "self", NULL | |
13227 | }; | |
13228 | ||
13229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13232 | { |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13235 | ||
13236 | wxPyEndAllowThreads(__tstate); | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
15afbcd0 | 13239 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13240 | return resultobj; |
13241 | fail: | |
13242 | return NULL; | |
13243 | } | |
13244 | ||
13245 | ||
13246 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13247 | PyObject *resultobj; | |
13248 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13249 | int arg2 ; | |
13250 | PyObject * obj0 = 0 ; | |
994141e6 | 13251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13252 | char *kwnames[] = { |
13253 | (char *) "self",(char *) "lenPixels", NULL | |
13254 | }; | |
13255 | ||
994141e6 | 13256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13259 | arg2 = (int) SWIG_AsInt(obj1); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13261 | { |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | (arg1)->SetThumbLength(arg2); | |
13264 | ||
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
13268 | Py_INCREF(Py_None); resultobj = Py_None; | |
13269 | return resultobj; | |
13270 | fail: | |
13271 | return NULL; | |
13272 | } | |
13273 | ||
13274 | ||
13275 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13276 | PyObject *resultobj; | |
13277 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13278 | int result; | |
13279 | PyObject * obj0 = 0 ; | |
13280 | char *kwnames[] = { | |
13281 | (char *) "self", NULL | |
13282 | }; | |
13283 | ||
13284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13287 | { |
13288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13289 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13290 | ||
13291 | wxPyEndAllowThreads(__tstate); | |
13292 | if (PyErr_Occurred()) SWIG_fail; | |
13293 | } | |
15afbcd0 | 13294 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13295 | return resultobj; |
13296 | fail: | |
13297 | return NULL; | |
13298 | } | |
13299 | ||
13300 | ||
13301 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13302 | PyObject *resultobj; | |
13303 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13304 | int arg2 ; | |
994141e6 | 13305 | int arg3 = (int) 1 ; |
d14a1e28 | 13306 | PyObject * obj0 = 0 ; |
994141e6 RD |
13307 | PyObject * obj1 = 0 ; |
13308 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13309 | char *kwnames[] = { |
13310 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13311 | }; | |
13312 | ||
994141e6 | 13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13316 | arg2 = (int) SWIG_AsInt(obj1); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13318 | if (obj2) { |
15afbcd0 RD |
13319 | arg3 = (int) SWIG_AsInt(obj2); |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13321 | } |
d14a1e28 RD |
13322 | { |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | (arg1)->SetTickFreq(arg2,arg3); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
13329 | Py_INCREF(Py_None); resultobj = Py_None; | |
13330 | return resultobj; | |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
13336 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13337 | PyObject *resultobj; | |
13338 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13339 | int result; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | char *kwnames[] = { | |
13342 | (char *) "self", NULL | |
13343 | }; | |
13344 | ||
13345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13348 | { |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13350 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13351 | ||
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
15afbcd0 | 13355 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13356 | return resultobj; |
13357 | fail: | |
13358 | return NULL; | |
13359 | } | |
13360 | ||
13361 | ||
13362 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13363 | PyObject *resultobj; | |
13364 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13365 | PyObject * obj0 = 0 ; | |
13366 | char *kwnames[] = { | |
13367 | (char *) "self", NULL | |
13368 | }; | |
13369 | ||
13370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13373 | { |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13375 | (arg1)->ClearTicks(); | |
13376 | ||
13377 | wxPyEndAllowThreads(__tstate); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | Py_INCREF(Py_None); resultobj = Py_None; | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13388 | PyObject *resultobj; | |
13389 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13390 | int arg2 ; | |
13391 | PyObject * obj0 = 0 ; | |
994141e6 | 13392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13393 | char *kwnames[] = { |
13394 | (char *) "self",(char *) "tickPos", NULL | |
13395 | }; | |
13396 | ||
994141e6 | 13397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13400 | arg2 = (int) SWIG_AsInt(obj1); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13402 | { |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | (arg1)->SetTick(arg2); | |
13405 | ||
13406 | wxPyEndAllowThreads(__tstate); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
13409 | Py_INCREF(Py_None); resultobj = Py_None; | |
13410 | return resultobj; | |
13411 | fail: | |
13412 | return NULL; | |
13413 | } | |
13414 | ||
13415 | ||
13416 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13417 | PyObject *resultobj; | |
13418 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13419 | PyObject * obj0 = 0 ; | |
13420 | char *kwnames[] = { | |
13421 | (char *) "self", NULL | |
13422 | }; | |
13423 | ||
13424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13427 | { |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | (arg1)->ClearSel(); | |
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_GetSelEnd(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_GetSelEnd",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)->GetSelEnd(); | |
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_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13470 | int result; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | char *kwnames[] = { | |
13473 | (char *) "self", NULL | |
13474 | }; | |
13475 | ||
13476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13479 | { |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
15afbcd0 | 13486 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13487 | return resultobj; |
13488 | fail: | |
13489 | return NULL; | |
13490 | } | |
13491 | ||
13492 | ||
13493 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13494 | PyObject *resultobj; | |
13495 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13496 | int arg2 ; | |
13497 | int arg3 ; | |
13498 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13499 | PyObject * obj1 = 0 ; |
13500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13501 | char *kwnames[] = { |
13502 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13503 | }; | |
13504 | ||
994141e6 | 13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13508 | arg2 = (int) SWIG_AsInt(obj1); | |
13509 | if (PyErr_Occurred()) SWIG_fail; | |
13510 | arg3 = (int) SWIG_AsInt(obj2); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13512 | { |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | (arg1)->SetSelection(arg2,arg3); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | Py_INCREF(Py_None); resultobj = Py_None; | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
22bfe96c RD |
13526 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13527 | PyObject *resultobj; | |
13528 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13529 | wxVisualAttributes result; | |
13530 | PyObject * obj0 = 0 ; | |
13531 | char *kwnames[] = { | |
13532 | (char *) "variant", NULL | |
13533 | }; | |
13534 | ||
13535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13536 | if (obj0) { | |
13537 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | } | |
13540 | { | |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
13547 | { | |
13548 | wxVisualAttributes * resultptr; | |
13549 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13550 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13551 | } | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
d14a1e28 RD |
13558 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13559 | PyObject *obj; | |
13560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13561 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13562 | Py_INCREF(obj); | |
13563 | return Py_BuildValue((char *)""); | |
13564 | } | |
b2dc1044 RD |
13565 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
13566 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13567 | return 1; | |
13568 | } | |
13569 | ||
13570 | ||
13571 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13572 | PyObject *pyobj; | |
13573 | ||
13574 | { | |
13575 | #if wxUSE_UNICODE | |
13576 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13577 | #else | |
13578 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13579 | #endif | |
13580 | } | |
13581 | return pyobj; | |
13582 | } | |
13583 | ||
13584 | ||
d14a1e28 RD |
13585 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
13586 | PyObject *resultobj; | |
13587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 13588 | int arg2 ; |
d14a1e28 RD |
13589 | wxString *arg3 = 0 ; |
13590 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13591 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13592 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13593 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13594 | long arg6 = (long) 0 ; | |
13595 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13596 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13597 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13598 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13599 | wxToggleButton *result; | |
e811c8ce | 13600 | bool temp3 = False ; |
d14a1e28 RD |
13601 | wxPoint temp4 ; |
13602 | wxSize temp5 ; | |
e811c8ce | 13603 | bool temp8 = False ; |
d14a1e28 | 13604 | PyObject * obj0 = 0 ; |
994141e6 | 13605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13606 | PyObject * obj2 = 0 ; |
13607 | PyObject * obj3 = 0 ; | |
13608 | PyObject * obj4 = 0 ; | |
994141e6 | 13609 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13610 | PyObject * obj6 = 0 ; |
13611 | PyObject * obj7 = 0 ; | |
13612 | char *kwnames[] = { | |
13613 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13614 | }; | |
13615 | ||
994141e6 | 13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13619 | arg2 = (int) SWIG_AsInt(obj1); | |
13620 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13621 | { |
13622 | arg3 = wxString_in_helper(obj2); | |
13623 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13624 | temp3 = True; |
d14a1e28 RD |
13625 | } |
13626 | if (obj3) { | |
13627 | { | |
13628 | arg4 = &temp4; | |
13629 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13630 | } | |
13631 | } | |
13632 | if (obj4) { | |
13633 | { | |
13634 | arg5 = &temp5; | |
13635 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13636 | } | |
13637 | } | |
994141e6 | 13638 | if (obj5) { |
15afbcd0 RD |
13639 | arg6 = (long) SWIG_AsLong(obj5); |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13641 | } |
d14a1e28 | 13642 | if (obj6) { |
15afbcd0 RD |
13643 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13645 | SWIG_fail; | |
d14a1e28 | 13646 | if (arg7 == NULL) { |
15afbcd0 RD |
13647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13648 | SWIG_fail; | |
d14a1e28 RD |
13649 | } |
13650 | } | |
13651 | if (obj7) { | |
13652 | { | |
13653 | arg8 = wxString_in_helper(obj7); | |
13654 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13655 | temp8 = True; |
d14a1e28 RD |
13656 | } |
13657 | } | |
13658 | { | |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
15afbcd0 | 13665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13666 | { |
13667 | if (temp3) | |
13668 | delete arg3; | |
13669 | } | |
13670 | { | |
13671 | if (temp8) | |
13672 | delete arg8; | |
13673 | } | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | { | |
13677 | if (temp3) | |
13678 | delete arg3; | |
13679 | } | |
13680 | { | |
13681 | if (temp8) | |
13682 | delete arg8; | |
13683 | } | |
13684 | return NULL; | |
13685 | } | |
13686 | ||
13687 | ||
13688 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13689 | PyObject *resultobj; | |
13690 | wxToggleButton *result; | |
13691 | char *kwnames[] = { | |
13692 | NULL | |
13693 | }; | |
13694 | ||
13695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13696 | { | |
13697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13698 | result = (wxToggleButton *)new wxToggleButton(); | |
13699 | ||
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
15afbcd0 | 13703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13704 | return resultobj; |
13705 | fail: | |
13706 | return NULL; | |
13707 | } | |
13708 | ||
13709 | ||
13710 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13711 | PyObject *resultobj; | |
13712 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13714 | int arg3 ; |
d14a1e28 RD |
13715 | wxString *arg4 = 0 ; |
13716 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13717 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13718 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13719 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13720 | long arg7 = (long) 0 ; | |
13721 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13722 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13723 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13724 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13725 | bool result; | |
e811c8ce | 13726 | bool temp4 = False ; |
d14a1e28 RD |
13727 | wxPoint temp5 ; |
13728 | wxSize temp6 ; | |
e811c8ce | 13729 | bool temp9 = False ; |
d14a1e28 RD |
13730 | PyObject * obj0 = 0 ; |
13731 | PyObject * obj1 = 0 ; | |
994141e6 | 13732 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13733 | PyObject * obj3 = 0 ; |
13734 | PyObject * obj4 = 0 ; | |
13735 | PyObject * obj5 = 0 ; | |
994141e6 | 13736 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13737 | PyObject * obj7 = 0 ; |
13738 | PyObject * obj8 = 0 ; | |
13739 | char *kwnames[] = { | |
13740 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13741 | }; | |
13742 | ||
994141e6 | 13743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
13744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13748 | arg3 = (int) SWIG_AsInt(obj2); | |
13749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13750 | { |
13751 | arg4 = wxString_in_helper(obj3); | |
13752 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13753 | temp4 = True; |
d14a1e28 RD |
13754 | } |
13755 | if (obj4) { | |
13756 | { | |
13757 | arg5 = &temp5; | |
13758 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13759 | } | |
13760 | } | |
13761 | if (obj5) { | |
13762 | { | |
13763 | arg6 = &temp6; | |
13764 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13765 | } | |
13766 | } | |
994141e6 | 13767 | if (obj6) { |
15afbcd0 RD |
13768 | arg7 = (long) SWIG_AsLong(obj6); |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13770 | } |
d14a1e28 | 13771 | if (obj7) { |
15afbcd0 RD |
13772 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13774 | SWIG_fail; | |
d14a1e28 | 13775 | if (arg8 == NULL) { |
15afbcd0 RD |
13776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13777 | SWIG_fail; | |
d14a1e28 RD |
13778 | } |
13779 | } | |
13780 | if (obj8) { | |
13781 | { | |
13782 | arg9 = wxString_in_helper(obj8); | |
13783 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13784 | temp9 = True; |
d14a1e28 RD |
13785 | } |
13786 | } | |
13787 | { | |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13789 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13790 | ||
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
4f89f6a3 RD |
13794 | { |
13795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13796 | } | |
d14a1e28 RD |
13797 | { |
13798 | if (temp4) | |
13799 | delete arg4; | |
13800 | } | |
13801 | { | |
13802 | if (temp9) | |
13803 | delete arg9; | |
13804 | } | |
13805 | return resultobj; | |
13806 | fail: | |
13807 | { | |
13808 | if (temp4) | |
13809 | delete arg4; | |
13810 | } | |
13811 | { | |
13812 | if (temp9) | |
13813 | delete arg9; | |
13814 | } | |
13815 | return NULL; | |
13816 | } | |
13817 | ||
13818 | ||
13819 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13820 | PyObject *resultobj; | |
13821 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13822 | bool arg2 ; | |
13823 | PyObject * obj0 = 0 ; | |
13824 | PyObject * obj1 = 0 ; | |
13825 | char *kwnames[] = { | |
13826 | (char *) "self",(char *) "value", NULL | |
13827 | }; | |
13828 | ||
13829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13832 | arg2 = (bool) SWIG_AsBool(obj1); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13834 | { |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | (arg1)->SetValue(arg2); | |
13837 | ||
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
13841 | Py_INCREF(Py_None); resultobj = Py_None; | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
13848 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13849 | PyObject *resultobj; | |
13850 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13851 | bool result; | |
13852 | PyObject * obj0 = 0 ; | |
13853 | char *kwnames[] = { | |
13854 | (char *) "self", NULL | |
13855 | }; | |
13856 | ||
13857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13860 | { |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13862 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13863 | ||
13864 | wxPyEndAllowThreads(__tstate); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | } | |
4f89f6a3 RD |
13867 | { |
13868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13869 | } | |
d14a1e28 RD |
13870 | return resultobj; |
13871 | fail: | |
13872 | return NULL; | |
13873 | } | |
13874 | ||
13875 | ||
13876 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13877 | PyObject *resultobj; | |
13878 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13879 | wxString *arg2 = 0 ; | |
e811c8ce | 13880 | bool temp2 = False ; |
d14a1e28 RD |
13881 | PyObject * obj0 = 0 ; |
13882 | PyObject * obj1 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self",(char *) "label", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13890 | { |
13891 | arg2 = wxString_in_helper(obj1); | |
13892 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13893 | temp2 = True; |
d14a1e28 RD |
13894 | } |
13895 | { | |
13896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13897 | (arg1)->SetLabel((wxString const &)*arg2); | |
13898 | ||
13899 | wxPyEndAllowThreads(__tstate); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | Py_INCREF(Py_None); resultobj = Py_None; | |
13903 | { | |
13904 | if (temp2) | |
13905 | delete arg2; | |
13906 | } | |
13907 | return resultobj; | |
13908 | fail: | |
13909 | { | |
13910 | if (temp2) | |
13911 | delete arg2; | |
13912 | } | |
13913 | return NULL; | |
13914 | } | |
13915 | ||
13916 | ||
22bfe96c RD |
13917 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13918 | PyObject *resultobj; | |
13919 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13920 | wxVisualAttributes result; | |
13921 | PyObject * obj0 = 0 ; | |
13922 | char *kwnames[] = { | |
13923 | (char *) "variant", NULL | |
13924 | }; | |
13925 | ||
13926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13927 | if (obj0) { | |
13928 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | { | |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | { | |
13939 | wxVisualAttributes * resultptr; | |
13940 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13942 | } | |
13943 | return resultobj; | |
13944 | fail: | |
13945 | return NULL; | |
13946 | } | |
13947 | ||
13948 | ||
d14a1e28 RD |
13949 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
13950 | PyObject *obj; | |
13951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13952 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13953 | Py_INCREF(obj); | |
13954 | return Py_BuildValue((char *)""); | |
13955 | } | |
b2dc1044 RD |
13956 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
13957 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
13958 | return 1; | |
13959 | } | |
13960 | ||
13961 | ||
13962 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13963 | PyObject *pyobj; | |
13964 | ||
13965 | { | |
13966 | #if wxUSE_UNICODE | |
13967 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13968 | #else | |
13969 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13970 | #endif | |
13971 | } | |
13972 | return pyobj; | |
13973 | } | |
13974 | ||
13975 | ||
d14a1e28 RD |
13976 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13977 | PyObject *resultobj; | |
13978 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13979 | size_t result; | |
13980 | PyObject * obj0 = 0 ; | |
13981 | char *kwnames[] = { | |
13982 | (char *) "self", NULL | |
13983 | }; | |
13984 | ||
13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13988 | { |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13991 | ||
13992 | wxPyEndAllowThreads(__tstate); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
15afbcd0 | 13995 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13996 | return resultobj; |
13997 | fail: | |
13998 | return NULL; | |
13999 | } | |
14000 | ||
14001 | ||
14002 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14003 | PyObject *resultobj; | |
14004 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14005 | size_t arg2 ; | |
14006 | wxWindow *result; | |
14007 | PyObject * obj0 = 0 ; | |
14008 | PyObject * obj1 = 0 ; | |
14009 | char *kwnames[] = { | |
14010 | (char *) "self",(char *) "n", NULL | |
14011 | }; | |
14012 | ||
14013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14016 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14018 | { |
14019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14020 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14021 | ||
14022 | wxPyEndAllowThreads(__tstate); | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | } | |
14025 | { | |
14026 | resultobj = wxPyMake_wxObject(result); | |
14027 | } | |
14028 | return resultobj; | |
14029 | fail: | |
14030 | return NULL; | |
14031 | } | |
14032 | ||
14033 | ||
14034 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14035 | PyObject *resultobj; | |
14036 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14037 | int result; | |
14038 | PyObject * obj0 = 0 ; | |
14039 | char *kwnames[] = { | |
14040 | (char *) "self", NULL | |
14041 | }; | |
14042 | ||
14043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14046 | { |
14047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14048 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14049 | ||
14050 | wxPyEndAllowThreads(__tstate); | |
14051 | if (PyErr_Occurred()) SWIG_fail; | |
14052 | } | |
15afbcd0 | 14053 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14054 | return resultobj; |
14055 | fail: | |
14056 | return NULL; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14061 | PyObject *resultobj; | |
14062 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14063 | size_t arg2 ; | |
14064 | wxString *arg3 = 0 ; | |
14065 | bool result; | |
e811c8ce | 14066 | bool temp3 = False ; |
d14a1e28 RD |
14067 | PyObject * obj0 = 0 ; |
14068 | PyObject * obj1 = 0 ; | |
14069 | PyObject * obj2 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14072 | }; | |
14073 | ||
14074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14077 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14079 | { |
14080 | arg3 = wxString_in_helper(obj2); | |
14081 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14082 | temp3 = True; |
d14a1e28 RD |
14083 | } |
14084 | { | |
14085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14086 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14087 | ||
14088 | wxPyEndAllowThreads(__tstate); | |
14089 | if (PyErr_Occurred()) SWIG_fail; | |
14090 | } | |
4f89f6a3 RD |
14091 | { |
14092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14093 | } | |
d14a1e28 RD |
14094 | { |
14095 | if (temp3) | |
14096 | delete arg3; | |
14097 | } | |
14098 | return resultobj; | |
14099 | fail: | |
14100 | { | |
14101 | if (temp3) | |
14102 | delete arg3; | |
14103 | } | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
14108 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14109 | PyObject *resultobj; | |
14110 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14111 | size_t arg2 ; | |
14112 | wxString result; | |
14113 | PyObject * obj0 = 0 ; | |
14114 | PyObject * obj1 = 0 ; | |
14115 | char *kwnames[] = { | |
14116 | (char *) "self",(char *) "n", NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14122 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14124 | { |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14127 | ||
14128 | wxPyEndAllowThreads(__tstate); | |
14129 | if (PyErr_Occurred()) SWIG_fail; | |
14130 | } | |
14131 | { | |
14132 | #if wxUSE_UNICODE | |
14133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14134 | #else | |
14135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14136 | #endif | |
14137 | } | |
14138 | return resultobj; | |
14139 | fail: | |
14140 | return NULL; | |
14141 | } | |
14142 | ||
14143 | ||
14144 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14145 | PyObject *resultobj; | |
14146 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14147 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14148 | PyObject * obj0 = 0 ; | |
14149 | PyObject * obj1 = 0 ; | |
14150 | char *kwnames[] = { | |
14151 | (char *) "self",(char *) "imageList", NULL | |
14152 | }; | |
14153 | ||
14154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14159 | { |
14160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14161 | (arg1)->SetImageList(arg2); | |
14162 | ||
14163 | wxPyEndAllowThreads(__tstate); | |
14164 | if (PyErr_Occurred()) SWIG_fail; | |
14165 | } | |
14166 | Py_INCREF(Py_None); resultobj = Py_None; | |
14167 | return resultobj; | |
14168 | fail: | |
14169 | return NULL; | |
14170 | } | |
14171 | ||
14172 | ||
14173 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14174 | PyObject *resultobj; | |
14175 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14176 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14177 | PyObject * obj0 = 0 ; | |
14178 | PyObject * obj1 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self",(char *) "imageList", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14187 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14188 | { |
14189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14190 | (arg1)->AssignImageList(arg2); | |
14191 | ||
14192 | wxPyEndAllowThreads(__tstate); | |
14193 | if (PyErr_Occurred()) SWIG_fail; | |
14194 | } | |
14195 | Py_INCREF(Py_None); resultobj = Py_None; | |
14196 | return resultobj; | |
14197 | fail: | |
14198 | return NULL; | |
14199 | } | |
14200 | ||
14201 | ||
14202 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14203 | PyObject *resultobj; | |
14204 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14205 | wxImageList *result; | |
14206 | PyObject * obj0 = 0 ; | |
14207 | char *kwnames[] = { | |
14208 | (char *) "self", NULL | |
14209 | }; | |
14210 | ||
14211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14214 | { |
14215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14216 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14217 | ||
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
14221 | { | |
14222 | resultobj = wxPyMake_wxObject(result); | |
14223 | } | |
14224 | return resultobj; | |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
14230 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14231 | PyObject *resultobj; | |
14232 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14233 | size_t arg2 ; | |
14234 | int result; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | PyObject * obj1 = 0 ; | |
14237 | char *kwnames[] = { | |
14238 | (char *) "self",(char *) "n", NULL | |
14239 | }; | |
14240 | ||
14241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14244 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14246 | { |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
15afbcd0 | 14253 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14254 | return resultobj; |
14255 | fail: | |
14256 | return NULL; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14261 | PyObject *resultobj; | |
14262 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14263 | size_t arg2 ; | |
14264 | int arg3 ; | |
14265 | bool result; | |
14266 | PyObject * obj0 = 0 ; | |
14267 | PyObject * obj1 = 0 ; | |
994141e6 | 14268 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14269 | char *kwnames[] = { |
14270 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14271 | }; | |
14272 | ||
994141e6 | 14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | arg3 = (int) SWIG_AsInt(obj2); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14280 | { |
14281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14282 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14283 | ||
14284 | wxPyEndAllowThreads(__tstate); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | } | |
4f89f6a3 RD |
14287 | { |
14288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14289 | } | |
d14a1e28 RD |
14290 | return resultobj; |
14291 | fail: | |
14292 | return NULL; | |
14293 | } | |
14294 | ||
14295 | ||
14296 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14297 | PyObject *resultobj; | |
14298 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14299 | wxSize *arg2 = 0 ; | |
14300 | wxSize temp2 ; | |
14301 | PyObject * obj0 = 0 ; | |
14302 | PyObject * obj1 = 0 ; | |
14303 | char *kwnames[] = { | |
14304 | (char *) "self",(char *) "size", NULL | |
14305 | }; | |
14306 | ||
14307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14310 | { |
14311 | arg2 = &temp2; | |
14312 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14313 | } | |
14314 | { | |
14315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14316 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14317 | ||
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | Py_INCREF(Py_None); resultobj = Py_None; | |
14322 | return resultobj; | |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
14328 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14329 | PyObject *resultobj; | |
14330 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14331 | wxSize *arg2 = 0 ; | |
14332 | wxSize result; | |
14333 | wxSize temp2 ; | |
14334 | PyObject * obj0 = 0 ; | |
14335 | PyObject * obj1 = 0 ; | |
14336 | char *kwnames[] = { | |
14337 | (char *) "self",(char *) "sizePage", NULL | |
14338 | }; | |
14339 | ||
14340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14343 | { |
14344 | arg2 = &temp2; | |
14345 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14346 | } | |
14347 | { | |
14348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14349 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14350 | ||
14351 | wxPyEndAllowThreads(__tstate); | |
14352 | if (PyErr_Occurred()) SWIG_fail; | |
14353 | } | |
14354 | { | |
14355 | wxSize * resultptr; | |
14356 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14358 | } |
14359 | return resultobj; | |
14360 | fail: | |
14361 | return NULL; | |
14362 | } | |
14363 | ||
14364 | ||
14365 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14366 | PyObject *resultobj; | |
14367 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14368 | size_t arg2 ; | |
14369 | bool result; | |
14370 | PyObject * obj0 = 0 ; | |
14371 | PyObject * obj1 = 0 ; | |
14372 | char *kwnames[] = { | |
14373 | (char *) "self",(char *) "n", NULL | |
14374 | }; | |
14375 | ||
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14379 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14380 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14381 | { |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = (bool)(arg1)->DeletePage(arg2); | |
14384 | ||
14385 | wxPyEndAllowThreads(__tstate); | |
14386 | if (PyErr_Occurred()) SWIG_fail; | |
14387 | } | |
4f89f6a3 RD |
14388 | { |
14389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14390 | } | |
d14a1e28 RD |
14391 | return resultobj; |
14392 | fail: | |
14393 | return NULL; | |
14394 | } | |
14395 | ||
14396 | ||
14397 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14398 | PyObject *resultobj; | |
14399 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14400 | size_t arg2 ; | |
14401 | bool result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | PyObject * obj1 = 0 ; | |
14404 | char *kwnames[] = { | |
14405 | (char *) "self",(char *) "n", NULL | |
14406 | }; | |
14407 | ||
14408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14411 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14413 | { |
14414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14415 | result = (bool)(arg1)->RemovePage(arg2); | |
14416 | ||
14417 | wxPyEndAllowThreads(__tstate); | |
14418 | if (PyErr_Occurred()) SWIG_fail; | |
14419 | } | |
4f89f6a3 RD |
14420 | { |
14421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14422 | } | |
d14a1e28 RD |
14423 | return resultobj; |
14424 | fail: | |
14425 | return NULL; | |
14426 | } | |
14427 | ||
14428 | ||
14429 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14430 | PyObject *resultobj; | |
14431 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14432 | bool result; | |
14433 | PyObject * obj0 = 0 ; | |
14434 | char *kwnames[] = { | |
14435 | (char *) "self", NULL | |
14436 | }; | |
14437 | ||
14438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14441 | { |
14442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14443 | result = (bool)(arg1)->DeleteAllPages(); | |
14444 | ||
14445 | wxPyEndAllowThreads(__tstate); | |
14446 | if (PyErr_Occurred()) SWIG_fail; | |
14447 | } | |
4f89f6a3 RD |
14448 | { |
14449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14450 | } | |
d14a1e28 RD |
14451 | return resultobj; |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14460 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14461 | wxString *arg3 = 0 ; | |
e811c8ce | 14462 | bool arg4 = (bool) False ; |
d14a1e28 RD |
14463 | int arg5 = (int) -1 ; |
14464 | bool result; | |
e811c8ce | 14465 | bool temp3 = False ; |
d14a1e28 RD |
14466 | PyObject * obj0 = 0 ; |
14467 | PyObject * obj1 = 0 ; | |
14468 | PyObject * obj2 = 0 ; | |
14469 | PyObject * obj3 = 0 ; | |
994141e6 | 14470 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14471 | char *kwnames[] = { |
14472 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14473 | }; | |
14474 | ||
994141e6 | 14475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14480 | { |
14481 | arg3 = wxString_in_helper(obj2); | |
14482 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14483 | temp3 = True; |
d14a1e28 RD |
14484 | } |
14485 | if (obj3) { | |
15afbcd0 RD |
14486 | arg4 = (bool) SWIG_AsBool(obj3); |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14488 | } |
14489 | if (obj4) { | |
15afbcd0 RD |
14490 | arg5 = (int) SWIG_AsInt(obj4); |
14491 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14492 | } |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
4f89f6a3 RD |
14500 | { |
14501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14502 | } | |
d14a1e28 RD |
14503 | { |
14504 | if (temp3) | |
14505 | delete arg3; | |
14506 | } | |
14507 | return resultobj; | |
14508 | fail: | |
14509 | { | |
14510 | if (temp3) | |
14511 | delete arg3; | |
14512 | } | |
14513 | return NULL; | |
14514 | } | |
14515 | ||
14516 | ||
14517 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14518 | PyObject *resultobj; | |
14519 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14520 | size_t arg2 ; | |
14521 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14522 | wxString *arg4 = 0 ; | |
e811c8ce | 14523 | bool arg5 = (bool) False ; |
d14a1e28 RD |
14524 | int arg6 = (int) -1 ; |
14525 | bool result; | |
e811c8ce | 14526 | bool temp4 = False ; |
d14a1e28 RD |
14527 | PyObject * obj0 = 0 ; |
14528 | PyObject * obj1 = 0 ; | |
14529 | PyObject * obj2 = 0 ; | |
14530 | PyObject * obj3 = 0 ; | |
14531 | PyObject * obj4 = 0 ; | |
994141e6 | 14532 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14533 | char *kwnames[] = { |
14534 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14535 | }; | |
14536 | ||
994141e6 | 14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14540 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14544 | { |
14545 | arg4 = wxString_in_helper(obj3); | |
14546 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14547 | temp4 = True; |
d14a1e28 RD |
14548 | } |
14549 | if (obj4) { | |
15afbcd0 RD |
14550 | arg5 = (bool) SWIG_AsBool(obj4); |
14551 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14552 | } |
14553 | if (obj5) { | |
15afbcd0 RD |
14554 | arg6 = (int) SWIG_AsInt(obj5); |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14556 | } |
14557 | { | |
14558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14559 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14560 | ||
14561 | wxPyEndAllowThreads(__tstate); | |
14562 | if (PyErr_Occurred()) SWIG_fail; | |
14563 | } | |
4f89f6a3 RD |
14564 | { |
14565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14566 | } | |
d14a1e28 RD |
14567 | { |
14568 | if (temp4) | |
14569 | delete arg4; | |
14570 | } | |
14571 | return resultobj; | |
14572 | fail: | |
14573 | { | |
14574 | if (temp4) | |
14575 | delete arg4; | |
14576 | } | |
14577 | return NULL; | |
14578 | } | |
14579 | ||
14580 | ||
14581 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14582 | PyObject *resultobj; | |
14583 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14584 | size_t arg2 ; | |
14585 | int result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | PyObject * obj1 = 0 ; | |
14588 | char *kwnames[] = { | |
14589 | (char *) "self",(char *) "n", NULL | |
14590 | }; | |
14591 | ||
14592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14595 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14597 | { |
14598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14599 | result = (int)(arg1)->SetSelection(arg2); | |
14600 | ||
14601 | wxPyEndAllowThreads(__tstate); | |
14602 | if (PyErr_Occurred()) SWIG_fail; | |
14603 | } | |
15afbcd0 | 14604 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14605 | return resultobj; |
14606 | fail: | |
14607 | return NULL; | |
14608 | } | |
14609 | ||
14610 | ||
14611 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14612 | PyObject *resultobj; | |
14613 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 14614 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14615 | PyObject * obj0 = 0 ; |
14616 | PyObject * obj1 = 0 ; | |
14617 | char *kwnames[] = { | |
14618 | (char *) "self",(char *) "forward", NULL | |
14619 | }; | |
14620 | ||
14621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14624 | if (obj1) { |
15afbcd0 RD |
14625 | arg2 = (bool) SWIG_AsBool(obj1); |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14627 | } |
14628 | { | |
14629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14630 | (arg1)->AdvanceSelection(arg2); | |
14631 | ||
14632 | wxPyEndAllowThreads(__tstate); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
14634 | } | |
14635 | Py_INCREF(Py_None); resultobj = Py_None; | |
14636 | return resultobj; | |
14637 | fail: | |
14638 | return NULL; | |
14639 | } | |
14640 | ||
14641 | ||
22bfe96c RD |
14642 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14643 | PyObject *resultobj; | |
14644 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14645 | wxVisualAttributes result; | |
14646 | PyObject * obj0 = 0 ; | |
14647 | char *kwnames[] = { | |
14648 | (char *) "variant", NULL | |
14649 | }; | |
14650 | ||
14651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14652 | if (obj0) { | |
14653 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | { | |
14657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14658 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14659 | ||
14660 | wxPyEndAllowThreads(__tstate); | |
14661 | if (PyErr_Occurred()) SWIG_fail; | |
14662 | } | |
14663 | { | |
14664 | wxVisualAttributes * resultptr; | |
14665 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14667 | } | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | return NULL; | |
14671 | } | |
14672 | ||
14673 | ||
d14a1e28 RD |
14674 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14675 | PyObject *obj; | |
14676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14677 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14678 | Py_INCREF(obj); | |
14679 | return Py_BuildValue((char *)""); | |
14680 | } | |
14681 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14682 | PyObject *resultobj; | |
14683 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14684 | int arg2 = (int) 0 ; | |
14685 | int arg3 = (int) -1 ; | |
14686 | int arg4 = (int) -1 ; | |
14687 | wxBookCtrlEvent *result; | |
994141e6 RD |
14688 | PyObject * obj0 = 0 ; |
14689 | PyObject * obj1 = 0 ; | |
14690 | PyObject * obj2 = 0 ; | |
14691 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14692 | char *kwnames[] = { |
14693 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14694 | }; | |
14695 | ||
994141e6 RD |
14696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14697 | if (obj0) { | |
15afbcd0 RD |
14698 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14700 | } |
14701 | if (obj1) { | |
15afbcd0 RD |
14702 | arg2 = (int) SWIG_AsInt(obj1); |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14704 | } |
14705 | if (obj2) { | |
15afbcd0 RD |
14706 | arg3 = (int) SWIG_AsInt(obj2); |
14707 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14708 | } |
14709 | if (obj3) { | |
15afbcd0 RD |
14710 | arg4 = (int) SWIG_AsInt(obj3); |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14712 | } |
d14a1e28 RD |
14713 | { |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14716 | ||
14717 | wxPyEndAllowThreads(__tstate); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
15afbcd0 | 14720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14721 | return resultobj; |
14722 | fail: | |
14723 | return NULL; | |
14724 | } | |
14725 | ||
14726 | ||
14727 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14728 | PyObject *resultobj; | |
14729 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14730 | int result; | |
14731 | PyObject * obj0 = 0 ; | |
14732 | char *kwnames[] = { | |
14733 | (char *) "self", NULL | |
14734 | }; | |
14735 | ||
14736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14739 | { |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
15afbcd0 | 14746 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14747 | return resultobj; |
14748 | fail: | |
14749 | return NULL; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14754 | PyObject *resultobj; | |
14755 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14756 | int arg2 ; | |
14757 | PyObject * obj0 = 0 ; | |
994141e6 | 14758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14759 | char *kwnames[] = { |
14760 | (char *) "self",(char *) "nSel", NULL | |
14761 | }; | |
14762 | ||
994141e6 | 14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14766 | arg2 = (int) SWIG_AsInt(obj1); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14768 | { |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | (arg1)->SetSelection(arg2); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
14782 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14783 | PyObject *resultobj; | |
14784 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14785 | int result; | |
14786 | PyObject * obj0 = 0 ; | |
14787 | char *kwnames[] = { | |
14788 | (char *) "self", NULL | |
14789 | }; | |
14790 | ||
14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14794 | { |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14796 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14797 | ||
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
15afbcd0 | 14801 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14802 | return resultobj; |
14803 | fail: | |
14804 | return NULL; | |
14805 | } | |
14806 | ||
14807 | ||
14808 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14809 | PyObject *resultobj; | |
14810 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14811 | int arg2 ; | |
14812 | PyObject * obj0 = 0 ; | |
994141e6 | 14813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14814 | char *kwnames[] = { |
14815 | (char *) "self",(char *) "nOldSel", NULL | |
14816 | }; | |
14817 | ||
994141e6 | 14818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14821 | arg2 = (int) SWIG_AsInt(obj1); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14823 | { |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | (arg1)->SetOldSelection(arg2); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | Py_INCREF(Py_None); resultobj = Py_None; | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14838 | PyObject *obj; | |
14839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14840 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14841 | Py_INCREF(obj); | |
14842 | return Py_BuildValue((char *)""); | |
14843 | } | |
14844 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14845 | PyObject *resultobj; | |
14846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14847 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14848 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14849 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14850 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14851 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14852 | long arg5 = (long) 0 ; | |
14853 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14854 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14855 | wxNotebook *result; | |
14856 | wxPoint temp3 ; | |
14857 | wxSize temp4 ; | |
e811c8ce | 14858 | bool temp6 = False ; |
d14a1e28 | 14859 | PyObject * obj0 = 0 ; |
994141e6 | 14860 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14861 | PyObject * obj2 = 0 ; |
14862 | PyObject * obj3 = 0 ; | |
994141e6 | 14863 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14864 | PyObject * obj5 = 0 ; |
14865 | char *kwnames[] = { | |
14866 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14867 | }; | |
14868 | ||
4f89f6a3 | 14869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14872 | if (obj1) { |
14873 | arg2 = (int) SWIG_AsInt(obj1); | |
14874 | if (PyErr_Occurred()) SWIG_fail; | |
14875 | } | |
d14a1e28 RD |
14876 | if (obj2) { |
14877 | { | |
14878 | arg3 = &temp3; | |
14879 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14880 | } | |
14881 | } | |
14882 | if (obj3) { | |
14883 | { | |
14884 | arg4 = &temp4; | |
14885 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14886 | } | |
14887 | } | |
994141e6 | 14888 | if (obj4) { |
15afbcd0 RD |
14889 | arg5 = (long) SWIG_AsLong(obj4); |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14891 | } |
d14a1e28 RD |
14892 | if (obj5) { |
14893 | { | |
14894 | arg6 = wxString_in_helper(obj5); | |
14895 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14896 | temp6 = True; |
d14a1e28 RD |
14897 | } |
14898 | } | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | { | |
14907 | resultobj = wxPyMake_wxObject(result); | |
14908 | } | |
14909 | { | |
14910 | if (temp6) | |
14911 | delete arg6; | |
14912 | } | |
14913 | return resultobj; | |
14914 | fail: | |
14915 | { | |
14916 | if (temp6) | |
14917 | delete arg6; | |
14918 | } | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14924 | PyObject *resultobj; | |
14925 | wxNotebook *result; | |
14926 | char *kwnames[] = { | |
14927 | NULL | |
14928 | }; | |
14929 | ||
14930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14931 | { | |
14932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14933 | result = (wxNotebook *)new wxNotebook(); | |
14934 | ||
14935 | wxPyEndAllowThreads(__tstate); | |
14936 | if (PyErr_Occurred()) SWIG_fail; | |
14937 | } | |
14938 | { | |
14939 | resultobj = wxPyMake_wxObject(result); | |
14940 | } | |
14941 | return resultobj; | |
14942 | fail: | |
14943 | return NULL; | |
14944 | } | |
14945 | ||
14946 | ||
14947 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14948 | PyObject *resultobj; | |
14949 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14951 | int arg3 ; |
d14a1e28 RD |
14952 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14953 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14954 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14955 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14956 | long arg6 = (long) 0 ; | |
14957 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14958 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14959 | bool result; | |
14960 | wxPoint temp4 ; | |
14961 | wxSize temp5 ; | |
e811c8ce | 14962 | bool temp7 = False ; |
d14a1e28 RD |
14963 | PyObject * obj0 = 0 ; |
14964 | PyObject * obj1 = 0 ; | |
994141e6 | 14965 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14966 | PyObject * obj3 = 0 ; |
14967 | PyObject * obj4 = 0 ; | |
994141e6 | 14968 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14969 | PyObject * obj6 = 0 ; |
14970 | char *kwnames[] = { | |
14971 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14972 | }; | |
14973 | ||
994141e6 | 14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
14975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14979 | arg3 = (int) SWIG_AsInt(obj2); | |
14980 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14981 | if (obj3) { |
14982 | { | |
14983 | arg4 = &temp4; | |
14984 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14985 | } | |
14986 | } | |
14987 | if (obj4) { | |
14988 | { | |
14989 | arg5 = &temp5; | |
14990 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14991 | } | |
14992 | } | |
994141e6 | 14993 | if (obj5) { |
15afbcd0 RD |
14994 | arg6 = (long) SWIG_AsLong(obj5); |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14996 | } |
d14a1e28 RD |
14997 | if (obj6) { |
14998 | { | |
14999 | arg7 = wxString_in_helper(obj6); | |
15000 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15001 | temp7 = True; |
d14a1e28 RD |
15002 | } |
15003 | } | |
15004 | { | |
15005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15006 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15007 | ||
15008 | wxPyEndAllowThreads(__tstate); | |
15009 | if (PyErr_Occurred()) SWIG_fail; | |
15010 | } | |
4f89f6a3 RD |
15011 | { |
15012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15013 | } | |
d14a1e28 RD |
15014 | { |
15015 | if (temp7) | |
15016 | delete arg7; | |
15017 | } | |
15018 | return resultobj; | |
15019 | fail: | |
15020 | { | |
15021 | if (temp7) | |
15022 | delete arg7; | |
15023 | } | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
15028 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj; | |
15030 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15031 | int result; | |
15032 | PyObject * obj0 = 0 ; | |
15033 | char *kwnames[] = { | |
15034 | (char *) "self", NULL | |
15035 | }; | |
15036 | ||
15037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15040 | { |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15043 | ||
15044 | wxPyEndAllowThreads(__tstate); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | } | |
15afbcd0 | 15047 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15048 | return resultobj; |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
15054 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15055 | PyObject *resultobj; | |
15056 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15057 | wxSize *arg2 = 0 ; | |
15058 | wxSize temp2 ; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | PyObject * obj1 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self",(char *) "padding", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15068 | { |
15069 | arg2 = &temp2; | |
15070 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15071 | } | |
15072 | { | |
15073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15074 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15075 | ||
15076 | wxPyEndAllowThreads(__tstate); | |
15077 | if (PyErr_Occurred()) SWIG_fail; | |
15078 | } | |
15079 | Py_INCREF(Py_None); resultobj = Py_None; | |
15080 | return resultobj; | |
15081 | fail: | |
15082 | return NULL; | |
15083 | } | |
15084 | ||
15085 | ||
15086 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15087 | PyObject *resultobj; | |
15088 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15089 | wxSize *arg2 = 0 ; | |
15090 | wxSize temp2 ; | |
15091 | PyObject * obj0 = 0 ; | |
15092 | PyObject * obj1 = 0 ; | |
15093 | char *kwnames[] = { | |
15094 | (char *) "self",(char *) "sz", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15100 | { |
15101 | arg2 = &temp2; | |
15102 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15103 | } | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | Py_INCREF(Py_None); resultobj = Py_None; | |
15112 | return resultobj; | |
15113 | fail: | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
15118 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15119 | PyObject *resultobj; | |
15120 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15121 | wxPoint *arg2 = 0 ; | |
15122 | long *arg3 = (long *) 0 ; | |
15123 | int result; | |
15124 | wxPoint temp2 ; | |
15125 | long temp3 ; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | PyObject * obj1 = 0 ; | |
15128 | char *kwnames[] = { | |
15129 | (char *) "self",(char *) "pt", NULL | |
15130 | }; | |
15131 | ||
15132 | arg3 = &temp3; | |
15133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15136 | { |
15137 | arg2 = &temp2; | |
15138 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15139 | } | |
15140 | { | |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15afbcd0 | 15147 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15148 | { |
15149 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15150 | resultobj = t_output_helper(resultobj,o); | |
15151 | } | |
15152 | return resultobj; | |
15153 | fail: | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15161 | wxSize *arg2 = 0 ; | |
15162 | wxSize result; | |
15163 | wxSize temp2 ; | |
15164 | PyObject * obj0 = 0 ; | |
15165 | PyObject * obj1 = 0 ; | |
15166 | char *kwnames[] = { | |
15167 | (char *) "self",(char *) "sizePage", NULL | |
15168 | }; | |
15169 | ||
15170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15173 | { |
15174 | arg2 = &temp2; | |
15175 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15176 | } | |
15177 | { | |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15184 | { | |
15185 | wxSize * resultptr; | |
15186 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15188 | } |
15189 | return resultobj; | |
15190 | fail: | |
15191 | return NULL; | |
15192 | } | |
15193 | ||
15194 | ||
22bfe96c RD |
15195 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15196 | PyObject *resultobj; | |
15197 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15198 | wxVisualAttributes result; | |
15199 | PyObject * obj0 = 0 ; | |
15200 | char *kwnames[] = { | |
15201 | (char *) "variant", NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15205 | if (obj0) { | |
15206 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15207 | if (PyErr_Occurred()) SWIG_fail; | |
15208 | } | |
15209 | { | |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15212 | ||
15213 | wxPyEndAllowThreads(__tstate); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
15216 | { | |
15217 | wxVisualAttributes * resultptr; | |
15218 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15220 | } | |
15221 | return resultobj; | |
15222 | fail: | |
15223 | return NULL; | |
15224 | } | |
15225 | ||
15226 | ||
d14a1e28 RD |
15227 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15228 | PyObject *obj; | |
15229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15230 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15231 | Py_INCREF(obj); | |
15232 | return Py_BuildValue((char *)""); | |
15233 | } | |
15234 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15235 | PyObject *resultobj; | |
15236 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15237 | int arg2 = (int) 0 ; | |
15238 | int arg3 = (int) -1 ; | |
15239 | int arg4 = (int) -1 ; | |
15240 | wxNotebookEvent *result; | |
994141e6 RD |
15241 | PyObject * obj0 = 0 ; |
15242 | PyObject * obj1 = 0 ; | |
15243 | PyObject * obj2 = 0 ; | |
15244 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15245 | char *kwnames[] = { |
15246 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15247 | }; | |
15248 | ||
994141e6 RD |
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15250 | if (obj0) { | |
15afbcd0 RD |
15251 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15253 | } |
15254 | if (obj1) { | |
15afbcd0 RD |
15255 | arg2 = (int) SWIG_AsInt(obj1); |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15257 | } |
15258 | if (obj2) { | |
15afbcd0 RD |
15259 | arg3 = (int) SWIG_AsInt(obj2); |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15261 | } |
15262 | if (obj3) { | |
15afbcd0 RD |
15263 | arg4 = (int) SWIG_AsInt(obj3); |
15264 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15265 | } |
d14a1e28 RD |
15266 | { |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15afbcd0 | 15273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15274 | return resultobj; |
15275 | fail: | |
15276 | return NULL; | |
15277 | } | |
15278 | ||
15279 | ||
15280 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15281 | PyObject *obj; | |
15282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15283 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15284 | Py_INCREF(obj); | |
15285 | return Py_BuildValue((char *)""); | |
15286 | } | |
15287 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15288 | PyObject *resultobj; | |
15289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15290 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15291 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15292 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15293 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15294 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15295 | long arg5 = (long) 0 ; | |
15296 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15297 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15298 | wxListbook *result; | |
15299 | wxPoint temp3 ; | |
15300 | wxSize temp4 ; | |
e811c8ce | 15301 | bool temp6 = False ; |
d14a1e28 | 15302 | PyObject * obj0 = 0 ; |
994141e6 | 15303 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15304 | PyObject * obj2 = 0 ; |
15305 | PyObject * obj3 = 0 ; | |
994141e6 | 15306 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15307 | PyObject * obj5 = 0 ; |
15308 | char *kwnames[] = { | |
15309 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15310 | }; | |
15311 | ||
4f89f6a3 | 15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
15315 | if (obj1) { |
15316 | arg2 = (int) SWIG_AsInt(obj1); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
d14a1e28 RD |
15319 | if (obj2) { |
15320 | { | |
15321 | arg3 = &temp3; | |
15322 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15323 | } | |
15324 | } | |
15325 | if (obj3) { | |
15326 | { | |
15327 | arg4 = &temp4; | |
15328 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15329 | } | |
15330 | } | |
994141e6 | 15331 | if (obj4) { |
15afbcd0 RD |
15332 | arg5 = (long) SWIG_AsLong(obj4); |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15334 | } |
d14a1e28 RD |
15335 | if (obj5) { |
15336 | { | |
15337 | arg6 = wxString_in_helper(obj5); | |
15338 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15339 | temp6 = True; |
d14a1e28 RD |
15340 | } |
15341 | } | |
15342 | { | |
15343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15344 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15345 | ||
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15afbcd0 | 15349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15350 | { |
15351 | if (temp6) | |
15352 | delete arg6; | |
15353 | } | |
15354 | return resultobj; | |
15355 | fail: | |
15356 | { | |
15357 | if (temp6) | |
15358 | delete arg6; | |
15359 | } | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
15364 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15365 | PyObject *resultobj; | |
15366 | wxListbook *result; | |
15367 | char *kwnames[] = { | |
15368 | NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | result = (wxListbook *)new wxListbook(); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15afbcd0 | 15379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15380 | return resultobj; |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 15390 | int arg3 ; |
d14a1e28 RD |
15391 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15392 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15393 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15394 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15395 | long arg6 = (long) 0 ; | |
15396 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15397 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15398 | bool result; | |
15399 | wxPoint temp4 ; | |
15400 | wxSize temp5 ; | |
e811c8ce | 15401 | bool temp7 = False ; |
d14a1e28 RD |
15402 | PyObject * obj0 = 0 ; |
15403 | PyObject * obj1 = 0 ; | |
994141e6 | 15404 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15405 | PyObject * obj3 = 0 ; |
15406 | PyObject * obj4 = 0 ; | |
994141e6 | 15407 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15408 | PyObject * obj6 = 0 ; |
15409 | char *kwnames[] = { | |
15410 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15411 | }; | |
15412 | ||
994141e6 | 15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15418 | arg3 = (int) SWIG_AsInt(obj2); | |
15419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15420 | if (obj3) { |
15421 | { | |
15422 | arg4 = &temp4; | |
15423 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15424 | } | |
15425 | } | |
15426 | if (obj4) { | |
15427 | { | |
15428 | arg5 = &temp5; | |
15429 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15430 | } | |
15431 | } | |
994141e6 | 15432 | if (obj5) { |
15afbcd0 RD |
15433 | arg6 = (long) SWIG_AsLong(obj5); |
15434 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15435 | } |
d14a1e28 RD |
15436 | if (obj6) { |
15437 | { | |
15438 | arg7 = wxString_in_helper(obj6); | |
15439 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15440 | temp7 = True; |
d14a1e28 RD |
15441 | } |
15442 | } | |
15443 | { | |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
4f89f6a3 RD |
15450 | { |
15451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15452 | } | |
d14a1e28 RD |
15453 | { |
15454 | if (temp7) | |
15455 | delete arg7; | |
15456 | } | |
15457 | return resultobj; | |
15458 | fail: | |
15459 | { | |
15460 | if (temp7) | |
15461 | delete arg7; | |
15462 | } | |
15463 | return NULL; | |
15464 | } | |
15465 | ||
15466 | ||
15467 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15468 | PyObject *resultobj; | |
15469 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15470 | bool result; | |
15471 | PyObject * obj0 = 0 ; | |
15472 | char *kwnames[] = { | |
15473 | (char *) "self", NULL | |
15474 | }; | |
15475 | ||
15476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15479 | { |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
4f89f6a3 RD |
15486 | { |
15487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15488 | } | |
d14a1e28 RD |
15489 | return resultobj; |
15490 | fail: | |
15491 | return NULL; | |
15492 | } | |
15493 | ||
15494 | ||
15495 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15496 | PyObject *obj; | |
15497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15498 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15499 | Py_INCREF(obj); | |
15500 | return Py_BuildValue((char *)""); | |
15501 | } | |
15502 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15503 | PyObject *resultobj; | |
15504 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15505 | int arg2 = (int) 0 ; | |
15506 | int arg3 = (int) -1 ; | |
15507 | int arg4 = (int) -1 ; | |
15508 | wxListbookEvent *result; | |
994141e6 RD |
15509 | PyObject * obj0 = 0 ; |
15510 | PyObject * obj1 = 0 ; | |
15511 | PyObject * obj2 = 0 ; | |
15512 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15513 | char *kwnames[] = { |
15514 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15515 | }; | |
15516 | ||
994141e6 RD |
15517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15518 | if (obj0) { | |
15afbcd0 RD |
15519 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15521 | } |
15522 | if (obj1) { | |
15afbcd0 RD |
15523 | arg2 = (int) SWIG_AsInt(obj1); |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15525 | } |
15526 | if (obj2) { | |
15afbcd0 RD |
15527 | arg3 = (int) SWIG_AsInt(obj2); |
15528 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15529 | } |
15530 | if (obj3) { | |
15afbcd0 RD |
15531 | arg4 = (int) SWIG_AsInt(obj3); |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15533 | } |
d14a1e28 RD |
15534 | { |
15535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15536 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15537 | ||
15538 | wxPyEndAllowThreads(__tstate); | |
15539 | if (PyErr_Occurred()) SWIG_fail; | |
15540 | } | |
15afbcd0 | 15541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15542 | return resultobj; |
15543 | fail: | |
15544 | return NULL; | |
15545 | } | |
15546 | ||
15547 | ||
15548 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15549 | PyObject *obj; | |
15550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15551 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15552 | Py_INCREF(obj); | |
15553 | return Py_BuildValue((char *)""); | |
15554 | } | |
15555 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15556 | PyObject *resultobj; | |
15557 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15558 | wxBookCtrlSizer *result; | |
15559 | PyObject * obj0 = 0 ; | |
15560 | char *kwnames[] = { | |
15561 | (char *) "nb", NULL | |
15562 | }; | |
15563 | ||
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
15566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15567 | { |
15568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15569 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15570 | ||
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
15afbcd0 | 15574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
15575 | return resultobj; |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15582 | PyObject *resultobj; | |
15583 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15584 | PyObject * obj0 = 0 ; | |
15585 | char *kwnames[] = { | |
15586 | (char *) "self", NULL | |
15587 | }; | |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15592 | { |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15594 | (arg1)->RecalcSizes(); | |
15595 | ||
15596 | wxPyEndAllowThreads(__tstate); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
15599 | Py_INCREF(Py_None); resultobj = Py_None; | |
15600 | return resultobj; | |
15601 | fail: | |
15602 | return NULL; | |
15603 | } | |
15604 | ||
15605 | ||
15606 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15607 | PyObject *resultobj; | |
15608 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15609 | wxSize result; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | char *kwnames[] = { | |
15612 | (char *) "self", NULL | |
15613 | }; | |
15614 | ||
15615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15618 | { |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15620 | result = (arg1)->CalcMin(); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
15625 | { | |
15626 | wxSize * resultptr; | |
15627 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15629 | } |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
15636 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj; | |
15638 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15639 | wxBookCtrl *result; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | char *kwnames[] = { | |
15642 | (char *) "self", NULL | |
15643 | }; | |
15644 | ||
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15648 | { |
15649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15650 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15651 | ||
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
15afbcd0 | 15655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15656 | return resultobj; |
15657 | fail: | |
15658 | return NULL; | |
15659 | } | |
15660 | ||
15661 | ||
15662 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15663 | PyObject *obj; | |
15664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15665 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15666 | Py_INCREF(obj); | |
15667 | return Py_BuildValue((char *)""); | |
15668 | } | |
15669 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15670 | PyObject *resultobj; | |
15671 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15672 | wxNotebookSizer *result; | |
15673 | PyObject * obj0 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "nb", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15681 | { |
15682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15683 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15684 | ||
15685 | wxPyEndAllowThreads(__tstate); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | } | |
15afbcd0 | 15688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15689 | return resultobj; |
15690 | fail: | |
15691 | return NULL; | |
15692 | } | |
15693 | ||
15694 | ||
15695 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15696 | PyObject *resultobj; | |
15697 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15698 | PyObject * obj0 = 0 ; | |
15699 | char *kwnames[] = { | |
15700 | (char *) "self", NULL | |
15701 | }; | |
15702 | ||
15703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15706 | { |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | (arg1)->RecalcSizes(); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | Py_INCREF(Py_None); resultobj = Py_None; | |
15714 | return resultobj; | |
15715 | fail: | |
15716 | return NULL; | |
15717 | } | |
15718 | ||
15719 | ||
15720 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15721 | PyObject *resultobj; | |
15722 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15723 | wxSize result; | |
15724 | PyObject * obj0 = 0 ; | |
15725 | char *kwnames[] = { | |
15726 | (char *) "self", NULL | |
15727 | }; | |
15728 | ||
15729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15732 | { |
15733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15734 | result = (arg1)->CalcMin(); | |
15735 | ||
15736 | wxPyEndAllowThreads(__tstate); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | } | |
15739 | { | |
15740 | wxSize * resultptr; | |
15741 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15743 | } |
15744 | return resultobj; | |
15745 | fail: | |
15746 | return NULL; | |
15747 | } | |
15748 | ||
15749 | ||
15750 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15751 | PyObject *resultobj; | |
15752 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15753 | wxNotebook *result; | |
15754 | PyObject * obj0 = 0 ; | |
15755 | char *kwnames[] = { | |
15756 | (char *) "self", NULL | |
15757 | }; | |
15758 | ||
15759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15762 | { |
15763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15764 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15765 | ||
15766 | wxPyEndAllowThreads(__tstate); | |
15767 | if (PyErr_Occurred()) SWIG_fail; | |
15768 | } | |
15769 | { | |
15770 | resultobj = wxPyMake_wxObject(result); | |
15771 | } | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
15778 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15779 | PyObject *obj; | |
15780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15781 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15782 | Py_INCREF(obj); | |
15783 | return Py_BuildValue((char *)""); | |
15784 | } | |
15785 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15786 | PyObject *resultobj; | |
15787 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15788 | int result; | |
15789 | PyObject * obj0 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15797 | { |
15798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15799 | result = (int)(arg1)->GetId(); | |
15800 | ||
15801 | wxPyEndAllowThreads(__tstate); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | } | |
15afbcd0 | 15804 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15805 | return resultobj; |
15806 | fail: | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15812 | PyObject *resultobj; | |
15813 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15814 | wxControl *result; | |
15815 | PyObject * obj0 = 0 ; | |
15816 | char *kwnames[] = { | |
15817 | (char *) "self", NULL | |
15818 | }; | |
15819 | ||
15820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15823 | { |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | result = (wxControl *)(arg1)->GetControl(); | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | { | |
15831 | resultobj = wxPyMake_wxObject(result); | |
15832 | } | |
15833 | return resultobj; | |
15834 | fail: | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
15839 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15840 | PyObject *resultobj; | |
15841 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15842 | wxToolBarBase *result; | |
15843 | PyObject * obj0 = 0 ; | |
15844 | char *kwnames[] = { | |
15845 | (char *) "self", NULL | |
15846 | }; | |
15847 | ||
15848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15851 | { |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15853 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
15858 | { | |
15859 | resultobj = wxPyMake_wxObject(result); | |
15860 | } | |
15861 | return resultobj; | |
15862 | fail: | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
15867 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15868 | PyObject *resultobj; | |
15869 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15870 | int result; | |
15871 | PyObject * obj0 = 0 ; | |
15872 | char *kwnames[] = { | |
15873 | (char *) "self", NULL | |
15874 | }; | |
15875 | ||
15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15879 | { |
15880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15881 | result = (int)(arg1)->IsButton(); | |
15882 | ||
15883 | wxPyEndAllowThreads(__tstate); | |
15884 | if (PyErr_Occurred()) SWIG_fail; | |
15885 | } | |
15afbcd0 | 15886 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15887 | return resultobj; |
15888 | fail: | |
15889 | return NULL; | |
15890 | } | |
15891 | ||
15892 | ||
15893 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15894 | PyObject *resultobj; | |
15895 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15896 | int result; | |
15897 | PyObject * obj0 = 0 ; | |
15898 | char *kwnames[] = { | |
15899 | (char *) "self", NULL | |
15900 | }; | |
15901 | ||
15902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15905 | { |
15906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15907 | result = (int)(arg1)->IsControl(); | |
15908 | ||
15909 | wxPyEndAllowThreads(__tstate); | |
15910 | if (PyErr_Occurred()) SWIG_fail; | |
15911 | } | |
15afbcd0 | 15912 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15913 | return resultobj; |
15914 | fail: | |
15915 | return NULL; | |
15916 | } | |
15917 | ||
15918 | ||
15919 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15920 | PyObject *resultobj; | |
15921 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15922 | int result; | |
15923 | PyObject * obj0 = 0 ; | |
15924 | char *kwnames[] = { | |
15925 | (char *) "self", NULL | |
15926 | }; | |
15927 | ||
15928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15931 | { |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | result = (int)(arg1)->IsSeparator(); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15afbcd0 | 15938 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15939 | return resultobj; |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15948 | int result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15957 | { |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | result = (int)(arg1)->GetStyle(); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
15afbcd0 | 15964 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15965 | return resultobj; |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
15971 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15972 | PyObject *resultobj; | |
15973 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15974 | int result; | |
15975 | PyObject * obj0 = 0 ; | |
15976 | char *kwnames[] = { | |
15977 | (char *) "self", NULL | |
15978 | }; | |
15979 | ||
15980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15983 | { |
15984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15985 | result = (int)(arg1)->GetKind(); | |
15986 | ||
15987 | wxPyEndAllowThreads(__tstate); | |
15988 | if (PyErr_Occurred()) SWIG_fail; | |
15989 | } | |
15afbcd0 | 15990 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15991 | return resultobj; |
15992 | fail: | |
15993 | return NULL; | |
15994 | } | |
15995 | ||
15996 | ||
15997 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15998 | PyObject *resultobj; | |
15999 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16000 | bool result; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | char *kwnames[] = { | |
16003 | (char *) "self", NULL | |
16004 | }; | |
16005 | ||
16006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16009 | { |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | result = (bool)(arg1)->IsEnabled(); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
4f89f6a3 RD |
16016 | { |
16017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16018 | } | |
d14a1e28 RD |
16019 | return resultobj; |
16020 | fail: | |
16021 | return NULL; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16026 | PyObject *resultobj; | |
16027 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16028 | bool result; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | char *kwnames[] = { | |
16031 | (char *) "self", NULL | |
16032 | }; | |
16033 | ||
16034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16037 | { |
16038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16039 | result = (bool)(arg1)->IsToggled(); | |
16040 | ||
16041 | wxPyEndAllowThreads(__tstate); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | } | |
4f89f6a3 RD |
16044 | { |
16045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16046 | } | |
d14a1e28 RD |
16047 | return resultobj; |
16048 | fail: | |
16049 | return NULL; | |
16050 | } | |
16051 | ||
16052 | ||
16053 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16054 | PyObject *resultobj; | |
16055 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16056 | bool result; | |
16057 | PyObject * obj0 = 0 ; | |
16058 | char *kwnames[] = { | |
16059 | (char *) "self", NULL | |
16060 | }; | |
16061 | ||
16062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16065 | { |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = (bool)(arg1)->CanBeToggled(); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
4f89f6a3 RD |
16072 | { |
16073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16074 | } | |
d14a1e28 RD |
16075 | return resultobj; |
16076 | fail: | |
16077 | return NULL; | |
16078 | } | |
16079 | ||
16080 | ||
16081 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16082 | PyObject *resultobj; | |
16083 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16084 | wxBitmap *result; | |
16085 | PyObject * obj0 = 0 ; | |
16086 | char *kwnames[] = { | |
16087 | (char *) "self", NULL | |
16088 | }; | |
16089 | ||
16090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16093 | { |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | { | |
16096 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16097 | result = (wxBitmap *) &_result_ref; | |
16098 | } | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
4276dc52 RD |
16103 | { |
16104 | wxBitmap* resultptr = new wxBitmap(*result); | |
16105 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16106 | } | |
d14a1e28 RD |
16107 | return resultobj; |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16114 | PyObject *resultobj; | |
16115 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16116 | wxBitmap *result; | |
16117 | PyObject * obj0 = 0 ; | |
16118 | char *kwnames[] = { | |
16119 | (char *) "self", NULL | |
16120 | }; | |
16121 | ||
16122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16125 | { |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | { | |
16128 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16129 | result = (wxBitmap *) &_result_ref; | |
16130 | } | |
16131 | ||
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
4276dc52 RD |
16135 | { |
16136 | wxBitmap* resultptr = new wxBitmap(*result); | |
16137 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16138 | } | |
d14a1e28 RD |
16139 | return resultobj; |
16140 | fail: | |
16141 | return NULL; | |
16142 | } | |
16143 | ||
16144 | ||
16145 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16146 | PyObject *resultobj; | |
16147 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16148 | wxBitmap result; | |
16149 | PyObject * obj0 = 0 ; | |
16150 | char *kwnames[] = { | |
16151 | (char *) "self", NULL | |
16152 | }; | |
16153 | ||
16154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16157 | { |
16158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16159 | result = (arg1)->GetBitmap(); | |
16160 | ||
16161 | wxPyEndAllowThreads(__tstate); | |
16162 | if (PyErr_Occurred()) SWIG_fail; | |
16163 | } | |
16164 | { | |
16165 | wxBitmap * resultptr; | |
16166 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16167 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16168 | } |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16176 | PyObject *resultobj; | |
16177 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16178 | wxString result; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | char *kwnames[] = { | |
16181 | (char *) "self", NULL | |
16182 | }; | |
16183 | ||
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16187 | { |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | result = (arg1)->GetLabel(); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | { | |
16195 | #if wxUSE_UNICODE | |
16196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16197 | #else | |
16198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16199 | #endif | |
16200 | } | |
16201 | return resultobj; | |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
16207 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16208 | PyObject *resultobj; | |
16209 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16210 | wxString result; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | char *kwnames[] = { | |
16213 | (char *) "self", NULL | |
16214 | }; | |
16215 | ||
16216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16219 | { |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (arg1)->GetShortHelp(); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | { | |
16227 | #if wxUSE_UNICODE | |
16228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16229 | #else | |
16230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16231 | #endif | |
16232 | } | |
16233 | return resultobj; | |
16234 | fail: | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
16239 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16240 | PyObject *resultobj; | |
16241 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16242 | wxString result; | |
16243 | PyObject * obj0 = 0 ; | |
16244 | char *kwnames[] = { | |
16245 | (char *) "self", NULL | |
16246 | }; | |
16247 | ||
16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = (arg1)->GetLongHelp(); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
16258 | { | |
16259 | #if wxUSE_UNICODE | |
16260 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16261 | #else | |
16262 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16263 | #endif | |
16264 | } | |
16265 | return resultobj; | |
16266 | fail: | |
16267 | return NULL; | |
16268 | } | |
16269 | ||
16270 | ||
16271 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16272 | PyObject *resultobj; | |
16273 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16274 | bool arg2 ; | |
16275 | bool result; | |
16276 | PyObject * obj0 = 0 ; | |
16277 | PyObject * obj1 = 0 ; | |
16278 | char *kwnames[] = { | |
16279 | (char *) "self",(char *) "enable", NULL | |
16280 | }; | |
16281 | ||
16282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16285 | arg2 = (bool) SWIG_AsBool(obj1); | |
16286 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16287 | { |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | result = (bool)(arg1)->Enable(arg2); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
4f89f6a3 RD |
16294 | { |
16295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16296 | } | |
d14a1e28 RD |
16297 | return resultobj; |
16298 | fail: | |
16299 | return NULL; | |
16300 | } | |
16301 | ||
16302 | ||
16303 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16304 | PyObject *resultobj; | |
16305 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16314 | { |
16315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16316 | (arg1)->Toggle(); | |
16317 | ||
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | Py_INCREF(Py_None); resultobj = Py_None; | |
16322 | return resultobj; | |
16323 | fail: | |
16324 | return NULL; | |
16325 | } | |
16326 | ||
16327 | ||
16328 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16329 | PyObject *resultobj; | |
16330 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16331 | bool arg2 ; | |
16332 | bool result; | |
16333 | PyObject * obj0 = 0 ; | |
16334 | PyObject * obj1 = 0 ; | |
16335 | char *kwnames[] = { | |
16336 | (char *) "self",(char *) "toggle", NULL | |
16337 | }; | |
16338 | ||
16339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16342 | arg2 = (bool) SWIG_AsBool(obj1); | |
16343 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16344 | { |
16345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16346 | result = (bool)(arg1)->SetToggle(arg2); | |
16347 | ||
16348 | wxPyEndAllowThreads(__tstate); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
4f89f6a3 RD |
16351 | { |
16352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16353 | } | |
d14a1e28 RD |
16354 | return resultobj; |
16355 | fail: | |
16356 | return NULL; | |
16357 | } | |
16358 | ||
16359 | ||
16360 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16361 | PyObject *resultobj; | |
16362 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16363 | wxString *arg2 = 0 ; | |
16364 | bool result; | |
e811c8ce | 16365 | bool temp2 = False ; |
d14a1e28 RD |
16366 | PyObject * obj0 = 0 ; |
16367 | PyObject * obj1 = 0 ; | |
16368 | char *kwnames[] = { | |
16369 | (char *) "self",(char *) "help", NULL | |
16370 | }; | |
16371 | ||
16372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16375 | { |
16376 | arg2 = wxString_in_helper(obj1); | |
16377 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16378 | temp2 = True; |
d14a1e28 RD |
16379 | } |
16380 | { | |
16381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16382 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16383 | ||
16384 | wxPyEndAllowThreads(__tstate); | |
16385 | if (PyErr_Occurred()) SWIG_fail; | |
16386 | } | |
4f89f6a3 RD |
16387 | { |
16388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16389 | } | |
d14a1e28 RD |
16390 | { |
16391 | if (temp2) | |
16392 | delete arg2; | |
16393 | } | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | { | |
16397 | if (temp2) | |
16398 | delete arg2; | |
16399 | } | |
16400 | return NULL; | |
16401 | } | |
16402 | ||
16403 | ||
16404 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16405 | PyObject *resultobj; | |
16406 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16407 | wxString *arg2 = 0 ; | |
16408 | bool result; | |
e811c8ce | 16409 | bool temp2 = False ; |
d14a1e28 RD |
16410 | PyObject * obj0 = 0 ; |
16411 | PyObject * obj1 = 0 ; | |
16412 | char *kwnames[] = { | |
16413 | (char *) "self",(char *) "help", NULL | |
16414 | }; | |
16415 | ||
16416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16419 | { |
16420 | arg2 = wxString_in_helper(obj1); | |
16421 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16422 | temp2 = True; |
d14a1e28 RD |
16423 | } |
16424 | { | |
16425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16426 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16427 | ||
16428 | wxPyEndAllowThreads(__tstate); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
4f89f6a3 RD |
16431 | { |
16432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16433 | } | |
d14a1e28 RD |
16434 | { |
16435 | if (temp2) | |
16436 | delete arg2; | |
16437 | } | |
16438 | return resultobj; | |
16439 | fail: | |
16440 | { | |
16441 | if (temp2) | |
16442 | delete arg2; | |
16443 | } | |
16444 | return NULL; | |
16445 | } | |
16446 | ||
16447 | ||
16448 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16449 | PyObject *resultobj; | |
16450 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16451 | wxBitmap *arg2 = 0 ; | |
16452 | PyObject * obj0 = 0 ; | |
16453 | PyObject * obj1 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "self",(char *) "bmp", NULL | |
16456 | }; | |
16457 | ||
16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16463 | SWIG_fail; | |
d14a1e28 | 16464 | if (arg2 == NULL) { |
15afbcd0 RD |
16465 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16466 | SWIG_fail; | |
d14a1e28 RD |
16467 | } |
16468 | { | |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16471 | ||
16472 | wxPyEndAllowThreads(__tstate); | |
16473 | if (PyErr_Occurred()) SWIG_fail; | |
16474 | } | |
16475 | Py_INCREF(Py_None); resultobj = Py_None; | |
16476 | return resultobj; | |
16477 | fail: | |
16478 | return NULL; | |
16479 | } | |
16480 | ||
16481 | ||
16482 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16483 | PyObject *resultobj; | |
16484 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16485 | wxBitmap *arg2 = 0 ; | |
16486 | PyObject * obj0 = 0 ; | |
16487 | PyObject * obj1 = 0 ; | |
16488 | char *kwnames[] = { | |
16489 | (char *) "self",(char *) "bmp", NULL | |
16490 | }; | |
16491 | ||
16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16496 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16497 | SWIG_fail; | |
d14a1e28 | 16498 | if (arg2 == NULL) { |
15afbcd0 RD |
16499 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16500 | SWIG_fail; | |
d14a1e28 RD |
16501 | } |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | Py_INCREF(Py_None); resultobj = Py_None; | |
16510 | return resultobj; | |
16511 | fail: | |
16512 | return NULL; | |
16513 | } | |
16514 | ||
16515 | ||
16516 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16517 | PyObject *resultobj; | |
16518 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16519 | wxString *arg2 = 0 ; | |
e811c8ce | 16520 | bool temp2 = False ; |
d14a1e28 RD |
16521 | PyObject * obj0 = 0 ; |
16522 | PyObject * obj1 = 0 ; | |
16523 | char *kwnames[] = { | |
16524 | (char *) "self",(char *) "label", NULL | |
16525 | }; | |
16526 | ||
16527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16530 | { |
16531 | arg2 = wxString_in_helper(obj1); | |
16532 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16533 | temp2 = True; |
d14a1e28 RD |
16534 | } |
16535 | { | |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16537 | (arg1)->SetLabel((wxString const &)*arg2); | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | Py_INCREF(Py_None); resultobj = Py_None; | |
16543 | { | |
16544 | if (temp2) | |
16545 | delete arg2; | |
16546 | } | |
16547 | return resultobj; | |
16548 | fail: | |
16549 | { | |
16550 | if (temp2) | |
16551 | delete arg2; | |
16552 | } | |
16553 | return NULL; | |
16554 | } | |
16555 | ||
16556 | ||
16557 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16558 | PyObject *resultobj; | |
16559 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16560 | PyObject * obj0 = 0 ; | |
16561 | char *kwnames[] = { | |
16562 | (char *) "self", NULL | |
16563 | }; | |
16564 | ||
16565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16568 | { |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | (arg1)->Detach(); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | Py_INCREF(Py_None); resultobj = Py_None; | |
16576 | return resultobj; | |
16577 | fail: | |
16578 | return NULL; | |
16579 | } | |
16580 | ||
16581 | ||
16582 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16583 | PyObject *resultobj; | |
16584 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16585 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16586 | PyObject * obj0 = 0 ; | |
16587 | PyObject * obj1 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "self",(char *) "tbar", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16597 | { |
16598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16599 | (arg1)->Attach(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_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16612 | PyObject *resultobj; | |
16613 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16614 | PyObject *result; | |
16615 | PyObject * obj0 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16623 | { |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16626 | ||
16627 | wxPyEndAllowThreads(__tstate); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
16630 | resultobj = result; | |
16631 | return resultobj; | |
16632 | fail: | |
16633 | return NULL; | |
16634 | } | |
16635 | ||
16636 | ||
16637 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16638 | PyObject *resultobj; | |
16639 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16640 | PyObject *arg2 = (PyObject *) 0 ; | |
16641 | PyObject * obj0 = 0 ; | |
16642 | PyObject * obj1 = 0 ; | |
16643 | char *kwnames[] = { | |
16644 | (char *) "self",(char *) "clientData", NULL | |
16645 | }; | |
16646 | ||
16647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16650 | arg2 = obj1; |
16651 | { | |
16652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16653 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16654 | ||
16655 | wxPyEndAllowThreads(__tstate); | |
16656 | if (PyErr_Occurred()) SWIG_fail; | |
16657 | } | |
16658 | Py_INCREF(Py_None); resultobj = Py_None; | |
16659 | return resultobj; | |
16660 | fail: | |
16661 | return NULL; | |
16662 | } | |
16663 | ||
16664 | ||
16665 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16666 | PyObject *obj; | |
16667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16668 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16669 | Py_INCREF(obj); | |
16670 | return Py_BuildValue((char *)""); | |
16671 | } | |
16672 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16673 | PyObject *resultobj; | |
16674 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16675 | int arg2 ; | |
16676 | wxString *arg3 = 0 ; | |
16677 | wxBitmap *arg4 = 0 ; | |
16678 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16679 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16680 | int arg6 = (int) wxITEM_NORMAL ; | |
16681 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16682 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16683 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16684 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16685 | PyObject *arg9 = (PyObject *) NULL ; | |
16686 | wxToolBarToolBase *result; | |
e811c8ce RD |
16687 | bool temp3 = False ; |
16688 | bool temp7 = False ; | |
16689 | bool temp8 = False ; | |
d14a1e28 | 16690 | PyObject * obj0 = 0 ; |
994141e6 | 16691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16692 | PyObject * obj2 = 0 ; |
16693 | PyObject * obj3 = 0 ; | |
16694 | PyObject * obj4 = 0 ; | |
994141e6 | 16695 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16696 | PyObject * obj6 = 0 ; |
16697 | PyObject * obj7 = 0 ; | |
16698 | PyObject * obj8 = 0 ; | |
16699 | char *kwnames[] = { | |
16700 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16701 | }; | |
16702 | ||
994141e6 | 16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
16704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16706 | arg2 = (int) SWIG_AsInt(obj1); | |
16707 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16708 | { |
16709 | arg3 = wxString_in_helper(obj2); | |
16710 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16711 | temp3 = True; |
d14a1e28 | 16712 | } |
15afbcd0 RD |
16713 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16714 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16715 | SWIG_fail; | |
d14a1e28 | 16716 | if (arg4 == NULL) { |
15afbcd0 RD |
16717 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16718 | SWIG_fail; | |
d14a1e28 RD |
16719 | } |
16720 | if (obj4) { | |
15afbcd0 RD |
16721 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16723 | SWIG_fail; | |
d14a1e28 | 16724 | if (arg5 == NULL) { |
15afbcd0 RD |
16725 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16726 | SWIG_fail; | |
d14a1e28 RD |
16727 | } |
16728 | } | |
994141e6 | 16729 | if (obj5) { |
15afbcd0 RD |
16730 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16732 | } |
d14a1e28 RD |
16733 | if (obj6) { |
16734 | { | |
16735 | arg7 = wxString_in_helper(obj6); | |
16736 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 16737 | temp7 = True; |
d14a1e28 RD |
16738 | } |
16739 | } | |
16740 | if (obj7) { | |
16741 | { | |
16742 | arg8 = wxString_in_helper(obj7); | |
16743 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16744 | temp8 = True; |
d14a1e28 RD |
16745 | } |
16746 | } | |
16747 | if (obj8) { | |
16748 | arg9 = obj8; | |
16749 | } | |
16750 | { | |
16751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16752 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
16757 | { | |
16758 | resultobj = wxPyMake_wxObject(result); | |
16759 | } | |
16760 | { | |
16761 | if (temp3) | |
16762 | delete arg3; | |
16763 | } | |
16764 | { | |
16765 | if (temp7) | |
16766 | delete arg7; | |
16767 | } | |
16768 | { | |
16769 | if (temp8) | |
16770 | delete arg8; | |
16771 | } | |
16772 | return resultobj; | |
16773 | fail: | |
16774 | { | |
16775 | if (temp3) | |
16776 | delete arg3; | |
16777 | } | |
16778 | { | |
16779 | if (temp7) | |
16780 | delete arg7; | |
16781 | } | |
16782 | { | |
16783 | if (temp8) | |
16784 | delete arg8; | |
16785 | } | |
16786 | return NULL; | |
16787 | } | |
16788 | ||
16789 | ||
16790 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16791 | PyObject *resultobj; | |
16792 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16793 | size_t arg2 ; | |
16794 | int arg3 ; | |
16795 | wxString *arg4 = 0 ; | |
16796 | wxBitmap *arg5 = 0 ; | |
16797 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16798 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16799 | int arg7 = (int) wxITEM_NORMAL ; | |
16800 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16801 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16802 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16803 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16804 | PyObject *arg10 = (PyObject *) NULL ; | |
16805 | wxToolBarToolBase *result; | |
e811c8ce RD |
16806 | bool temp4 = False ; |
16807 | bool temp8 = False ; | |
16808 | bool temp9 = False ; | |
d14a1e28 RD |
16809 | PyObject * obj0 = 0 ; |
16810 | PyObject * obj1 = 0 ; | |
994141e6 | 16811 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16812 | PyObject * obj3 = 0 ; |
16813 | PyObject * obj4 = 0 ; | |
16814 | PyObject * obj5 = 0 ; | |
994141e6 | 16815 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16816 | PyObject * obj7 = 0 ; |
16817 | PyObject * obj8 = 0 ; | |
16818 | PyObject * obj9 = 0 ; | |
16819 | char *kwnames[] = { | |
16820 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16821 | }; | |
16822 | ||
994141e6 | 16823 | 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 |
16824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16826 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | arg3 = (int) SWIG_AsInt(obj2); | |
16829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16830 | { |
16831 | arg4 = wxString_in_helper(obj3); | |
16832 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16833 | temp4 = True; |
d14a1e28 | 16834 | } |
15afbcd0 RD |
16835 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16837 | SWIG_fail; | |
d14a1e28 | 16838 | if (arg5 == NULL) { |
15afbcd0 RD |
16839 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16840 | SWIG_fail; | |
d14a1e28 RD |
16841 | } |
16842 | if (obj5) { | |
15afbcd0 RD |
16843 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16845 | SWIG_fail; | |
d14a1e28 | 16846 | if (arg6 == NULL) { |
15afbcd0 RD |
16847 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16848 | SWIG_fail; | |
d14a1e28 RD |
16849 | } |
16850 | } | |
994141e6 | 16851 | if (obj6) { |
15afbcd0 RD |
16852 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16854 | } |
d14a1e28 RD |
16855 | if (obj7) { |
16856 | { | |
16857 | arg8 = wxString_in_helper(obj7); | |
16858 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16859 | temp8 = True; |
d14a1e28 RD |
16860 | } |
16861 | } | |
16862 | if (obj8) { | |
16863 | { | |
16864 | arg9 = wxString_in_helper(obj8); | |
16865 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 16866 | temp9 = True; |
d14a1e28 RD |
16867 | } |
16868 | } | |
16869 | if (obj9) { | |
16870 | arg10 = obj9; | |
16871 | } | |
16872 | { | |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | 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); | |
16875 | ||
16876 | wxPyEndAllowThreads(__tstate); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
16879 | { | |
16880 | resultobj = wxPyMake_wxObject(result); | |
16881 | } | |
16882 | { | |
16883 | if (temp4) | |
16884 | delete arg4; | |
16885 | } | |
16886 | { | |
16887 | if (temp8) | |
16888 | delete arg8; | |
16889 | } | |
16890 | { | |
16891 | if (temp9) | |
16892 | delete arg9; | |
16893 | } | |
16894 | return resultobj; | |
16895 | fail: | |
16896 | { | |
16897 | if (temp4) | |
16898 | delete arg4; | |
16899 | } | |
16900 | { | |
16901 | if (temp8) | |
16902 | delete arg8; | |
16903 | } | |
16904 | { | |
16905 | if (temp9) | |
16906 | delete arg9; | |
16907 | } | |
16908 | return NULL; | |
16909 | } | |
16910 | ||
16911 | ||
3a04f143 RD |
16912 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16913 | PyObject *resultobj; | |
16914 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16915 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16916 | wxToolBarToolBase *result; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | PyObject * obj1 = 0 ; | |
16919 | char *kwnames[] = { | |
16920 | (char *) "self",(char *) "tool", NULL | |
16921 | }; | |
16922 | ||
16923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
16928 | { |
16929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16930 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16931 | ||
16932 | wxPyEndAllowThreads(__tstate); | |
16933 | if (PyErr_Occurred()) SWIG_fail; | |
16934 | } | |
16935 | { | |
16936 | resultobj = wxPyMake_wxObject(result); | |
16937 | } | |
16938 | return resultobj; | |
16939 | fail: | |
16940 | return NULL; | |
16941 | } | |
16942 | ||
16943 | ||
16944 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16945 | PyObject *resultobj; | |
16946 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16947 | size_t arg2 ; | |
16948 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16949 | wxToolBarToolBase *result; | |
16950 | PyObject * obj0 = 0 ; | |
16951 | PyObject * obj1 = 0 ; | |
16952 | PyObject * obj2 = 0 ; | |
16953 | char *kwnames[] = { | |
16954 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16955 | }; | |
16956 | ||
16957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16960 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16961 | if (PyErr_Occurred()) SWIG_fail; | |
16962 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
16964 | { |
16965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16966 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16967 | ||
16968 | wxPyEndAllowThreads(__tstate); | |
16969 | if (PyErr_Occurred()) SWIG_fail; | |
16970 | } | |
16971 | { | |
16972 | resultobj = wxPyMake_wxObject(result); | |
16973 | } | |
16974 | return resultobj; | |
16975 | fail: | |
16976 | return NULL; | |
16977 | } | |
16978 | ||
16979 | ||
d14a1e28 RD |
16980 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16981 | PyObject *resultobj; | |
16982 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16983 | wxControl *arg2 = (wxControl *) 0 ; | |
16984 | wxToolBarToolBase *result; | |
16985 | PyObject * obj0 = 0 ; | |
16986 | PyObject * obj1 = 0 ; | |
16987 | char *kwnames[] = { | |
16988 | (char *) "self",(char *) "control", NULL | |
16989 | }; | |
16990 | ||
16991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16996 | { |
16997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16998 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16999 | ||
17000 | wxPyEndAllowThreads(__tstate); | |
17001 | if (PyErr_Occurred()) SWIG_fail; | |
17002 | } | |
17003 | { | |
17004 | resultobj = wxPyMake_wxObject(result); | |
17005 | } | |
17006 | return resultobj; | |
17007 | fail: | |
17008 | return NULL; | |
17009 | } | |
17010 | ||
17011 | ||
17012 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17013 | PyObject *resultobj; | |
17014 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17015 | size_t arg2 ; | |
17016 | wxControl *arg3 = (wxControl *) 0 ; | |
17017 | wxToolBarToolBase *result; | |
17018 | PyObject * obj0 = 0 ; | |
17019 | PyObject * obj1 = 0 ; | |
17020 | PyObject * obj2 = 0 ; | |
17021 | char *kwnames[] = { | |
17022 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17023 | }; | |
17024 | ||
17025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17028 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17032 | { |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17034 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17035 | ||
17036 | wxPyEndAllowThreads(__tstate); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
17039 | { | |
17040 | resultobj = wxPyMake_wxObject(result); | |
17041 | } | |
17042 | return resultobj; | |
17043 | fail: | |
17044 | return NULL; | |
17045 | } | |
17046 | ||
17047 | ||
17048 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17049 | PyObject *resultobj; | |
17050 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17051 | int arg2 ; | |
17052 | wxControl *result; | |
17053 | PyObject * obj0 = 0 ; | |
994141e6 | 17054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17055 | char *kwnames[] = { |
17056 | (char *) "self",(char *) "id", NULL | |
17057 | }; | |
17058 | ||
994141e6 | 17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17062 | arg2 = (int) SWIG_AsInt(obj1); | |
17063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17064 | { |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17067 | ||
17068 | wxPyEndAllowThreads(__tstate); | |
17069 | if (PyErr_Occurred()) SWIG_fail; | |
17070 | } | |
17071 | { | |
17072 | resultobj = wxPyMake_wxObject(result); | |
17073 | } | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | return NULL; | |
17077 | } | |
17078 | ||
17079 | ||
17080 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17081 | PyObject *resultobj; | |
17082 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17083 | wxToolBarToolBase *result; | |
17084 | PyObject * obj0 = 0 ; | |
17085 | char *kwnames[] = { | |
17086 | (char *) "self", NULL | |
17087 | }; | |
17088 | ||
17089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17092 | { |
17093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17094 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17095 | ||
17096 | wxPyEndAllowThreads(__tstate); | |
17097 | if (PyErr_Occurred()) SWIG_fail; | |
17098 | } | |
17099 | { | |
17100 | resultobj = wxPyMake_wxObject(result); | |
17101 | } | |
17102 | return resultobj; | |
17103 | fail: | |
17104 | return NULL; | |
17105 | } | |
17106 | ||
17107 | ||
17108 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17109 | PyObject *resultobj; | |
17110 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17111 | size_t arg2 ; | |
17112 | wxToolBarToolBase *result; | |
17113 | PyObject * obj0 = 0 ; | |
17114 | PyObject * obj1 = 0 ; | |
17115 | char *kwnames[] = { | |
17116 | (char *) "self",(char *) "pos", NULL | |
17117 | }; | |
17118 | ||
17119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17122 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17124 | { |
17125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17126 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17127 | ||
17128 | wxPyEndAllowThreads(__tstate); | |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
17130 | } | |
17131 | { | |
17132 | resultobj = wxPyMake_wxObject(result); | |
17133 | } | |
17134 | return resultobj; | |
17135 | fail: | |
17136 | return NULL; | |
17137 | } | |
17138 | ||
17139 | ||
17140 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17141 | PyObject *resultobj; | |
17142 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17143 | int arg2 ; | |
17144 | wxToolBarToolBase *result; | |
17145 | PyObject * obj0 = 0 ; | |
994141e6 | 17146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17147 | char *kwnames[] = { |
17148 | (char *) "self",(char *) "id", NULL | |
17149 | }; | |
17150 | ||
994141e6 | 17151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17154 | arg2 = (int) SWIG_AsInt(obj1); | |
17155 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17156 | { |
17157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17158 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17159 | ||
17160 | wxPyEndAllowThreads(__tstate); | |
17161 | if (PyErr_Occurred()) SWIG_fail; | |
17162 | } | |
17163 | { | |
17164 | resultobj = wxPyMake_wxObject(result); | |
17165 | } | |
17166 | return resultobj; | |
17167 | fail: | |
17168 | return NULL; | |
17169 | } | |
17170 | ||
17171 | ||
17172 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17173 | PyObject *resultobj; | |
17174 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17175 | size_t arg2 ; | |
17176 | bool result; | |
17177 | PyObject * obj0 = 0 ; | |
17178 | PyObject * obj1 = 0 ; | |
17179 | char *kwnames[] = { | |
17180 | (char *) "self",(char *) "pos", NULL | |
17181 | }; | |
17182 | ||
17183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17186 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17187 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17188 | { |
17189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17190 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17191 | ||
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
4f89f6a3 RD |
17195 | { |
17196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17197 | } | |
d14a1e28 RD |
17198 | return resultobj; |
17199 | fail: | |
17200 | return NULL; | |
17201 | } | |
17202 | ||
17203 | ||
17204 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17205 | PyObject *resultobj; | |
17206 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17207 | int arg2 ; | |
17208 | bool result; | |
17209 | PyObject * obj0 = 0 ; | |
994141e6 | 17210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17211 | char *kwnames[] = { |
17212 | (char *) "self",(char *) "id", NULL | |
17213 | }; | |
17214 | ||
994141e6 | 17215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17218 | arg2 = (int) SWIG_AsInt(obj1); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17220 | { |
17221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17222 | result = (bool)(arg1)->DeleteTool(arg2); | |
17223 | ||
17224 | wxPyEndAllowThreads(__tstate); | |
17225 | if (PyErr_Occurred()) SWIG_fail; | |
17226 | } | |
4f89f6a3 RD |
17227 | { |
17228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17229 | } | |
d14a1e28 RD |
17230 | return resultobj; |
17231 | fail: | |
17232 | return NULL; | |
17233 | } | |
17234 | ||
17235 | ||
17236 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17237 | PyObject *resultobj; | |
17238 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17239 | PyObject * obj0 = 0 ; | |
17240 | char *kwnames[] = { | |
17241 | (char *) "self", NULL | |
17242 | }; | |
17243 | ||
17244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17247 | { |
17248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17249 | (arg1)->ClearTools(); | |
17250 | ||
17251 | wxPyEndAllowThreads(__tstate); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | } | |
17254 | Py_INCREF(Py_None); resultobj = Py_None; | |
17255 | return resultobj; | |
17256 | fail: | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17262 | PyObject *resultobj; | |
17263 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17264 | bool result; | |
17265 | PyObject * obj0 = 0 ; | |
17266 | char *kwnames[] = { | |
17267 | (char *) "self", NULL | |
17268 | }; | |
17269 | ||
17270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17273 | { |
17274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17275 | result = (bool)(arg1)->Realize(); | |
17276 | ||
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
4f89f6a3 RD |
17280 | { |
17281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17282 | } | |
d14a1e28 RD |
17283 | return resultobj; |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
17289 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj; | |
17291 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17292 | int arg2 ; | |
17293 | bool arg3 ; | |
17294 | PyObject * obj0 = 0 ; | |
994141e6 | 17295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17296 | PyObject * obj2 = 0 ; |
17297 | char *kwnames[] = { | |
17298 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17299 | }; | |
17300 | ||
994141e6 | 17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17304 | arg2 = (int) SWIG_AsInt(obj1); | |
17305 | if (PyErr_Occurred()) SWIG_fail; | |
17306 | arg3 = (bool) SWIG_AsBool(obj2); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17308 | { |
17309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17310 | (arg1)->EnableTool(arg2,arg3); | |
17311 | ||
17312 | wxPyEndAllowThreads(__tstate); | |
17313 | if (PyErr_Occurred()) SWIG_fail; | |
17314 | } | |
17315 | Py_INCREF(Py_None); resultobj = Py_None; | |
17316 | return resultobj; | |
17317 | fail: | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
17322 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17323 | PyObject *resultobj; | |
17324 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17325 | int arg2 ; | |
17326 | bool arg3 ; | |
17327 | PyObject * obj0 = 0 ; | |
994141e6 | 17328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17329 | PyObject * obj2 = 0 ; |
17330 | char *kwnames[] = { | |
17331 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17332 | }; | |
17333 | ||
994141e6 | 17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17337 | arg2 = (int) SWIG_AsInt(obj1); | |
17338 | if (PyErr_Occurred()) SWIG_fail; | |
17339 | arg3 = (bool) SWIG_AsBool(obj2); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17341 | { |
17342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17343 | (arg1)->ToggleTool(arg2,arg3); | |
17344 | ||
17345 | wxPyEndAllowThreads(__tstate); | |
17346 | if (PyErr_Occurred()) SWIG_fail; | |
17347 | } | |
17348 | Py_INCREF(Py_None); resultobj = Py_None; | |
17349 | return resultobj; | |
17350 | fail: | |
17351 | return NULL; | |
17352 | } | |
17353 | ||
17354 | ||
17355 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17356 | PyObject *resultobj; | |
17357 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17358 | int arg2 ; | |
17359 | bool arg3 ; | |
17360 | PyObject * obj0 = 0 ; | |
994141e6 | 17361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17362 | PyObject * obj2 = 0 ; |
17363 | char *kwnames[] = { | |
17364 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17365 | }; | |
17366 | ||
994141e6 | 17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17370 | arg2 = (int) SWIG_AsInt(obj1); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | arg3 = (bool) SWIG_AsBool(obj2); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17374 | { |
17375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17376 | (arg1)->SetToggle(arg2,arg3); | |
17377 | ||
17378 | wxPyEndAllowThreads(__tstate); | |
17379 | if (PyErr_Occurred()) SWIG_fail; | |
17380 | } | |
17381 | Py_INCREF(Py_None); resultobj = Py_None; | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17391 | int arg2 ; | |
17392 | PyObject *result; | |
17393 | PyObject * obj0 = 0 ; | |
994141e6 | 17394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17395 | char *kwnames[] = { |
17396 | (char *) "self",(char *) "id", NULL | |
17397 | }; | |
17398 | ||
994141e6 | 17399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17402 | arg2 = (int) SWIG_AsInt(obj1); | |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17404 | { |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17407 | ||
17408 | wxPyEndAllowThreads(__tstate); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | } | |
17411 | resultobj = result; | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17421 | int arg2 ; | |
17422 | PyObject *arg3 = (PyObject *) 0 ; | |
17423 | PyObject * obj0 = 0 ; | |
994141e6 | 17424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17425 | PyObject * obj2 = 0 ; |
17426 | char *kwnames[] = { | |
17427 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17428 | }; | |
17429 | ||
994141e6 | 17430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",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; | |
d14a1e28 RD |
17435 | arg3 = obj2; |
17436 | { | |
17437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17438 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17439 | ||
17440 | wxPyEndAllowThreads(__tstate); | |
17441 | if (PyErr_Occurred()) SWIG_fail; | |
17442 | } | |
17443 | Py_INCREF(Py_None); resultobj = Py_None; | |
17444 | return resultobj; | |
17445 | fail: | |
17446 | return NULL; | |
17447 | } | |
17448 | ||
17449 | ||
17450 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17451 | PyObject *resultobj; | |
17452 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17453 | int arg2 ; | |
17454 | int result; | |
17455 | PyObject * obj0 = 0 ; | |
994141e6 | 17456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17457 | char *kwnames[] = { |
17458 | (char *) "self",(char *) "id", NULL | |
17459 | }; | |
17460 | ||
994141e6 | 17461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17464 | arg2 = (int) SWIG_AsInt(obj1); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17466 | { |
17467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17468 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17469 | ||
17470 | wxPyEndAllowThreads(__tstate); | |
17471 | if (PyErr_Occurred()) SWIG_fail; | |
17472 | } | |
15afbcd0 | 17473 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17474 | return resultobj; |
17475 | fail: | |
17476 | return NULL; | |
17477 | } | |
17478 | ||
17479 | ||
17480 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17481 | PyObject *resultobj; | |
17482 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17483 | int arg2 ; | |
17484 | bool result; | |
17485 | PyObject * obj0 = 0 ; | |
994141e6 | 17486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17487 | char *kwnames[] = { |
17488 | (char *) "self",(char *) "id", NULL | |
17489 | }; | |
17490 | ||
994141e6 | 17491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17494 | arg2 = (int) SWIG_AsInt(obj1); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17496 | { |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | result = (bool)(arg1)->GetToolState(arg2); | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
4f89f6a3 RD |
17503 | { |
17504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17505 | } | |
d14a1e28 RD |
17506 | return resultobj; |
17507 | fail: | |
17508 | return NULL; | |
17509 | } | |
17510 | ||
17511 | ||
17512 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17513 | PyObject *resultobj; | |
17514 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17515 | int arg2 ; | |
17516 | bool result; | |
17517 | PyObject * obj0 = 0 ; | |
994141e6 | 17518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17519 | char *kwnames[] = { |
17520 | (char *) "self",(char *) "id", NULL | |
17521 | }; | |
17522 | ||
994141e6 | 17523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17526 | arg2 = (int) SWIG_AsInt(obj1); | |
17527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17528 | { |
17529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17530 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17531 | ||
17532 | wxPyEndAllowThreads(__tstate); | |
17533 | if (PyErr_Occurred()) SWIG_fail; | |
17534 | } | |
4f89f6a3 RD |
17535 | { |
17536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17537 | } | |
d14a1e28 RD |
17538 | return resultobj; |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17545 | PyObject *resultobj; | |
17546 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17547 | int arg2 ; | |
17548 | wxString *arg3 = 0 ; | |
e811c8ce | 17549 | bool temp3 = False ; |
d14a1e28 | 17550 | PyObject * obj0 = 0 ; |
994141e6 | 17551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17552 | PyObject * obj2 = 0 ; |
17553 | char *kwnames[] = { | |
17554 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17555 | }; | |
17556 | ||
994141e6 | 17557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17560 | arg2 = (int) SWIG_AsInt(obj1); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17562 | { |
17563 | arg3 = wxString_in_helper(obj2); | |
17564 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17565 | temp3 = True; |
d14a1e28 RD |
17566 | } |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | Py_INCREF(Py_None); resultobj = Py_None; | |
17575 | { | |
17576 | if (temp3) | |
17577 | delete arg3; | |
17578 | } | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | { | |
17582 | if (temp3) | |
17583 | delete arg3; | |
17584 | } | |
17585 | return NULL; | |
17586 | } | |
17587 | ||
17588 | ||
17589 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17590 | PyObject *resultobj; | |
17591 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17592 | int arg2 ; | |
17593 | wxString result; | |
17594 | PyObject * obj0 = 0 ; | |
994141e6 | 17595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17596 | char *kwnames[] = { |
17597 | (char *) "self",(char *) "id", NULL | |
17598 | }; | |
17599 | ||
994141e6 | 17600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17603 | arg2 = (int) SWIG_AsInt(obj1); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17605 | { |
17606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17607 | result = (arg1)->GetToolShortHelp(arg2); | |
17608 | ||
17609 | wxPyEndAllowThreads(__tstate); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | { | |
17613 | #if wxUSE_UNICODE | |
17614 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17615 | #else | |
17616 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17617 | #endif | |
17618 | } | |
17619 | return resultobj; | |
17620 | fail: | |
17621 | return NULL; | |
17622 | } | |
17623 | ||
17624 | ||
17625 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17626 | PyObject *resultobj; | |
17627 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17628 | int arg2 ; | |
17629 | wxString *arg3 = 0 ; | |
e811c8ce | 17630 | bool temp3 = False ; |
d14a1e28 | 17631 | PyObject * obj0 = 0 ; |
994141e6 | 17632 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17633 | PyObject * obj2 = 0 ; |
17634 | char *kwnames[] = { | |
17635 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17636 | }; | |
17637 | ||
994141e6 | 17638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17641 | arg2 = (int) SWIG_AsInt(obj1); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17643 | { |
17644 | arg3 = wxString_in_helper(obj2); | |
17645 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17646 | temp3 = True; |
d14a1e28 RD |
17647 | } |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | Py_INCREF(Py_None); resultobj = Py_None; | |
17656 | { | |
17657 | if (temp3) | |
17658 | delete arg3; | |
17659 | } | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | { | |
17663 | if (temp3) | |
17664 | delete arg3; | |
17665 | } | |
17666 | return NULL; | |
17667 | } | |
17668 | ||
17669 | ||
17670 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17671 | PyObject *resultobj; | |
17672 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17673 | int arg2 ; | |
17674 | wxString result; | |
17675 | PyObject * obj0 = 0 ; | |
994141e6 | 17676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17677 | char *kwnames[] = { |
17678 | (char *) "self",(char *) "id", NULL | |
17679 | }; | |
17680 | ||
994141e6 | 17681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17684 | arg2 = (int) SWIG_AsInt(obj1); | |
17685 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17686 | { |
17687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17688 | result = (arg1)->GetToolLongHelp(arg2); | |
17689 | ||
17690 | wxPyEndAllowThreads(__tstate); | |
17691 | if (PyErr_Occurred()) SWIG_fail; | |
17692 | } | |
17693 | { | |
17694 | #if wxUSE_UNICODE | |
17695 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17696 | #else | |
17697 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17698 | #endif | |
17699 | } | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | return NULL; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17707 | PyObject *resultobj; | |
17708 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17709 | int arg2 ; | |
17710 | int arg3 ; | |
17711 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17712 | PyObject * obj1 = 0 ; |
17713 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17714 | char *kwnames[] = { |
17715 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17716 | }; | |
17717 | ||
994141e6 | 17718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17721 | arg2 = (int) SWIG_AsInt(obj1); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | arg3 = (int) SWIG_AsInt(obj2); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17725 | { |
17726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17727 | (arg1)->SetMargins(arg2,arg3); | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
17732 | Py_INCREF(Py_None); resultobj = Py_None; | |
17733 | return resultobj; | |
17734 | fail: | |
17735 | return NULL; | |
17736 | } | |
17737 | ||
17738 | ||
17739 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj; | |
17741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17742 | wxSize *arg2 = 0 ; | |
17743 | wxSize temp2 ; | |
17744 | PyObject * obj0 = 0 ; | |
17745 | PyObject * obj1 = 0 ; | |
17746 | char *kwnames[] = { | |
17747 | (char *) "self",(char *) "size", NULL | |
17748 | }; | |
17749 | ||
17750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17753 | { |
17754 | arg2 = &temp2; | |
17755 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17756 | } | |
17757 | { | |
17758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17759 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17760 | ||
17761 | wxPyEndAllowThreads(__tstate); | |
17762 | if (PyErr_Occurred()) SWIG_fail; | |
17763 | } | |
17764 | Py_INCREF(Py_None); resultobj = Py_None; | |
17765 | return resultobj; | |
17766 | fail: | |
17767 | return NULL; | |
17768 | } | |
17769 | ||
17770 | ||
17771 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17772 | PyObject *resultobj; | |
17773 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17774 | int arg2 ; | |
17775 | PyObject * obj0 = 0 ; | |
994141e6 | 17776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17777 | char *kwnames[] = { |
17778 | (char *) "self",(char *) "packing", NULL | |
17779 | }; | |
17780 | ||
994141e6 | 17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17784 | arg2 = (int) SWIG_AsInt(obj1); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17786 | { |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | (arg1)->SetToolPacking(arg2); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | Py_INCREF(Py_None); resultobj = Py_None; | |
17794 | return resultobj; | |
17795 | fail: | |
17796 | return NULL; | |
17797 | } | |
17798 | ||
17799 | ||
17800 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17801 | PyObject *resultobj; | |
17802 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17803 | int arg2 ; | |
17804 | PyObject * obj0 = 0 ; | |
994141e6 | 17805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17806 | char *kwnames[] = { |
17807 | (char *) "self",(char *) "separation", NULL | |
17808 | }; | |
17809 | ||
994141e6 | 17810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",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 | (arg1)->SetToolSeparation(arg2); | |
17818 | ||
17819 | wxPyEndAllowThreads(__tstate); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | } | |
17822 | Py_INCREF(Py_None); resultobj = Py_None; | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
17829 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17832 | wxSize result; | |
17833 | PyObject * obj0 = 0 ; | |
17834 | char *kwnames[] = { | |
17835 | (char *) "self", NULL | |
17836 | }; | |
17837 | ||
17838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17841 | { |
17842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17843 | result = (arg1)->GetToolMargins(); | |
17844 | ||
17845 | wxPyEndAllowThreads(__tstate); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | } | |
17848 | { | |
17849 | wxSize * resultptr; | |
17850 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 17851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17852 | } |
17853 | return resultobj; | |
17854 | fail: | |
17855 | return NULL; | |
17856 | } | |
17857 | ||
17858 | ||
17859 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17860 | PyObject *resultobj; | |
17861 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17862 | wxSize result; | |
17863 | PyObject * obj0 = 0 ; | |
17864 | char *kwnames[] = { | |
17865 | (char *) "self", NULL | |
17866 | }; | |
17867 | ||
17868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17871 | { |
17872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17873 | result = (arg1)->GetMargins(); | |
17874 | ||
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | { | |
17879 | wxSize * resultptr; | |
17880 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 17881 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17882 | } |
17883 | return resultobj; | |
17884 | fail: | |
17885 | return NULL; | |
17886 | } | |
17887 | ||
17888 | ||
17889 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17890 | PyObject *resultobj; | |
17891 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17892 | int result; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | char *kwnames[] = { | |
17895 | (char *) "self", NULL | |
17896 | }; | |
17897 | ||
17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17901 | { |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | result = (int)(arg1)->GetToolPacking(); | |
17904 | ||
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
15afbcd0 | 17908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17909 | return resultobj; |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17918 | int result; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17927 | { |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | result = (int)(arg1)->GetToolSeparation(); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
15afbcd0 | 17934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17935 | return resultobj; |
17936 | fail: | |
17937 | return NULL; | |
17938 | } | |
17939 | ||
17940 | ||
17941 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17942 | PyObject *resultobj; | |
17943 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17944 | int arg2 ; | |
17945 | PyObject * obj0 = 0 ; | |
994141e6 | 17946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17947 | char *kwnames[] = { |
17948 | (char *) "self",(char *) "nRows", NULL | |
17949 | }; | |
17950 | ||
994141e6 | 17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17954 | arg2 = (int) SWIG_AsInt(obj1); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17956 | { |
17957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17958 | (arg1)->SetRows(arg2); | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | Py_INCREF(Py_None); resultobj = Py_None; | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17973 | int arg2 ; | |
17974 | int arg3 ; | |
17975 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17976 | PyObject * obj1 = 0 ; |
17977 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17978 | char *kwnames[] = { |
17979 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17980 | }; | |
17981 | ||
994141e6 | 17982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17985 | arg2 = (int) SWIG_AsInt(obj1); | |
17986 | if (PyErr_Occurred()) SWIG_fail; | |
17987 | arg3 = (int) SWIG_AsInt(obj2); | |
17988 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17989 | { |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
17996 | Py_INCREF(Py_None); resultobj = Py_None; | |
17997 | return resultobj; | |
17998 | fail: | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj; | |
18005 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18006 | int result; | |
18007 | PyObject * obj0 = 0 ; | |
18008 | char *kwnames[] = { | |
18009 | (char *) "self", NULL | |
18010 | }; | |
18011 | ||
18012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18015 | { |
18016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18017 | result = (int)(arg1)->GetMaxRows(); | |
18018 | ||
18019 | wxPyEndAllowThreads(__tstate); | |
18020 | if (PyErr_Occurred()) SWIG_fail; | |
18021 | } | |
15afbcd0 | 18022 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18023 | return resultobj; |
18024 | fail: | |
18025 | return NULL; | |
18026 | } | |
18027 | ||
18028 | ||
18029 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18030 | PyObject *resultobj; | |
18031 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18032 | int result; | |
18033 | PyObject * obj0 = 0 ; | |
18034 | char *kwnames[] = { | |
18035 | (char *) "self", NULL | |
18036 | }; | |
18037 | ||
18038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18041 | { |
18042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18043 | result = (int)(arg1)->GetMaxCols(); | |
18044 | ||
18045 | wxPyEndAllowThreads(__tstate); | |
18046 | if (PyErr_Occurred()) SWIG_fail; | |
18047 | } | |
15afbcd0 | 18048 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18049 | return resultobj; |
18050 | fail: | |
18051 | return NULL; | |
18052 | } | |
18053 | ||
18054 | ||
18055 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18056 | PyObject *resultobj; | |
18057 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18058 | wxSize *arg2 = 0 ; | |
18059 | wxSize temp2 ; | |
18060 | PyObject * obj0 = 0 ; | |
18061 | PyObject * obj1 = 0 ; | |
18062 | char *kwnames[] = { | |
18063 | (char *) "self",(char *) "size", NULL | |
18064 | }; | |
18065 | ||
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18069 | { |
18070 | arg2 = &temp2; | |
18071 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18072 | } | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18076 | ||
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
18080 | Py_INCREF(Py_None); resultobj = Py_None; | |
18081 | return resultobj; | |
18082 | fail: | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj; | |
18089 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18090 | wxSize result; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | char *kwnames[] = { | |
18093 | (char *) "self", NULL | |
18094 | }; | |
18095 | ||
18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18099 | { |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | result = (arg1)->GetToolBitmapSize(); | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | { | |
18107 | wxSize * resultptr; | |
18108 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18110 | } |
18111 | return resultobj; | |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
18117 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18118 | PyObject *resultobj; | |
18119 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18120 | wxSize result; | |
18121 | PyObject * obj0 = 0 ; | |
18122 | char *kwnames[] = { | |
18123 | (char *) "self", NULL | |
18124 | }; | |
18125 | ||
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18129 | { |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | result = (arg1)->GetToolSize(); | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | { | |
18137 | wxSize * resultptr; | |
18138 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18140 | } |
18141 | return resultobj; | |
18142 | fail: | |
18143 | return NULL; | |
18144 | } | |
18145 | ||
18146 | ||
18147 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18148 | PyObject *resultobj; | |
18149 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18150 | int arg2 ; |
18151 | int arg3 ; | |
d14a1e28 RD |
18152 | wxToolBarToolBase *result; |
18153 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18154 | PyObject * obj1 = 0 ; |
18155 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18156 | char *kwnames[] = { |
18157 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18158 | }; | |
18159 | ||
994141e6 | 18160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18163 | arg2 = (int) SWIG_AsInt(obj1); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | arg3 = (int) SWIG_AsInt(obj2); | |
18166 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18167 | { |
18168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18169 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18170 | ||
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | { | |
18175 | resultobj = wxPyMake_wxObject(result); | |
18176 | } | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
3a04f143 RD |
18183 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
18184 | PyObject *resultobj; | |
18185 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18186 | int arg2 ; | |
18187 | wxToolBarToolBase *result; | |
18188 | PyObject * obj0 = 0 ; | |
994141e6 | 18189 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18190 | char *kwnames[] = { |
18191 | (char *) "self",(char *) "toolid", NULL | |
18192 | }; | |
18193 | ||
994141e6 | 18194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18197 | arg2 = (int) SWIG_AsInt(obj1); | |
18198 | if (PyErr_Occurred()) SWIG_fail; | |
3a04f143 RD |
18199 | { |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
18206 | { | |
18207 | resultobj = wxPyMake_wxObject(result); | |
18208 | } | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
d14a1e28 RD |
18215 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
18216 | PyObject *resultobj; | |
18217 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18218 | bool result; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | char *kwnames[] = { | |
18221 | (char *) "self", NULL | |
18222 | }; | |
18223 | ||
18224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18227 | { |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | result = (bool)(arg1)->IsVertical(); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
4f89f6a3 RD |
18234 | { |
18235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18236 | } | |
d14a1e28 RD |
18237 | return resultobj; |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18244 | PyObject *obj; | |
18245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18246 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18247 | Py_INCREF(obj); | |
18248 | return Py_BuildValue((char *)""); | |
18249 | } | |
18250 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 18253 | int arg2 ; |
d14a1e28 RD |
18254 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18255 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18256 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18257 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18258 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18259 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18260 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18261 | wxToolBar *result; | |
18262 | wxPoint temp3 ; | |
18263 | wxSize temp4 ; | |
e811c8ce | 18264 | bool temp6 = False ; |
d14a1e28 | 18265 | PyObject * obj0 = 0 ; |
994141e6 | 18266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18267 | PyObject * obj2 = 0 ; |
18268 | PyObject * obj3 = 0 ; | |
994141e6 | 18269 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18270 | PyObject * obj5 = 0 ; |
18271 | char *kwnames[] = { | |
18272 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18273 | }; | |
18274 | ||
994141e6 | 18275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18278 | arg2 = (int) SWIG_AsInt(obj1); | |
18279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18280 | if (obj2) { |
18281 | { | |
18282 | arg3 = &temp3; | |
18283 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18284 | } | |
18285 | } | |
18286 | if (obj3) { | |
18287 | { | |
18288 | arg4 = &temp4; | |
18289 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18290 | } | |
18291 | } | |
994141e6 | 18292 | if (obj4) { |
15afbcd0 RD |
18293 | arg5 = (long) SWIG_AsLong(obj4); |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18295 | } |
d14a1e28 RD |
18296 | if (obj5) { |
18297 | { | |
18298 | arg6 = wxString_in_helper(obj5); | |
18299 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 18300 | temp6 = True; |
d14a1e28 RD |
18301 | } |
18302 | } | |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | { | |
18311 | resultobj = wxPyMake_wxObject(result); | |
18312 | } | |
18313 | { | |
18314 | if (temp6) | |
18315 | delete arg6; | |
18316 | } | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | { | |
18320 | if (temp6) | |
18321 | delete arg6; | |
18322 | } | |
18323 | return NULL; | |
18324 | } | |
18325 | ||
18326 | ||
18327 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18328 | PyObject *resultobj; | |
18329 | wxToolBar *result; | |
18330 | char *kwnames[] = { | |
18331 | NULL | |
18332 | }; | |
18333 | ||
18334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18335 | { | |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | result = (wxToolBar *)new wxToolBar(); | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | { | |
18343 | resultobj = wxPyMake_wxObject(result); | |
18344 | } | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 18355 | int arg3 ; |
d14a1e28 RD |
18356 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18357 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18358 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18359 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18360 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18361 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18362 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18363 | bool result; | |
18364 | wxPoint temp4 ; | |
18365 | wxSize temp5 ; | |
e811c8ce | 18366 | bool temp7 = False ; |
d14a1e28 RD |
18367 | PyObject * obj0 = 0 ; |
18368 | PyObject * obj1 = 0 ; | |
994141e6 | 18369 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18370 | PyObject * obj3 = 0 ; |
18371 | PyObject * obj4 = 0 ; | |
994141e6 | 18372 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18373 | PyObject * obj6 = 0 ; |
18374 | char *kwnames[] = { | |
18375 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18376 | }; | |
18377 | ||
994141e6 | 18378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18381 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18383 | arg3 = (int) SWIG_AsInt(obj2); | |
18384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18385 | if (obj3) { |
18386 | { | |
18387 | arg4 = &temp4; | |
18388 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18389 | } | |
18390 | } | |
18391 | if (obj4) { | |
18392 | { | |
18393 | arg5 = &temp5; | |
18394 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18395 | } | |
18396 | } | |
994141e6 | 18397 | if (obj5) { |
15afbcd0 RD |
18398 | arg6 = (long) SWIG_AsLong(obj5); |
18399 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18400 | } |
d14a1e28 RD |
18401 | if (obj6) { |
18402 | { | |
18403 | arg7 = wxString_in_helper(obj6); | |
18404 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 18405 | temp7 = True; |
d14a1e28 RD |
18406 | } |
18407 | } | |
18408 | { | |
18409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18410 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18411 | ||
18412 | wxPyEndAllowThreads(__tstate); | |
18413 | if (PyErr_Occurred()) SWIG_fail; | |
18414 | } | |
4f89f6a3 RD |
18415 | { |
18416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18417 | } | |
d14a1e28 RD |
18418 | { |
18419 | if (temp7) | |
18420 | delete arg7; | |
18421 | } | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | { | |
18425 | if (temp7) | |
18426 | delete arg7; | |
18427 | } | |
18428 | return NULL; | |
18429 | } | |
18430 | ||
18431 | ||
18432 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18433 | PyObject *resultobj; | |
18434 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
18435 | int arg2 ; |
18436 | int arg3 ; | |
d14a1e28 RD |
18437 | wxToolBarToolBase *result; |
18438 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18439 | PyObject * obj1 = 0 ; |
18440 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18441 | char *kwnames[] = { |
18442 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18443 | }; | |
18444 | ||
994141e6 | 18445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18448 | arg2 = (int) SWIG_AsInt(obj1); | |
18449 | if (PyErr_Occurred()) SWIG_fail; | |
18450 | arg3 = (int) SWIG_AsInt(obj2); | |
18451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18452 | { |
18453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18454 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18455 | ||
18456 | wxPyEndAllowThreads(__tstate); | |
18457 | if (PyErr_Occurred()) SWIG_fail; | |
18458 | } | |
18459 | { | |
18460 | resultobj = wxPyMake_wxObject(result); | |
18461 | } | |
18462 | return resultobj; | |
18463 | fail: | |
18464 | return NULL; | |
18465 | } | |
18466 | ||
18467 | ||
22bfe96c RD |
18468 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18469 | PyObject *resultobj; | |
18470 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18471 | wxVisualAttributes result; | |
18472 | PyObject * obj0 = 0 ; | |
18473 | char *kwnames[] = { | |
18474 | (char *) "variant", NULL | |
18475 | }; | |
18476 | ||
18477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18478 | if (obj0) { | |
18479 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
18482 | { | |
18483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18484 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18485 | ||
18486 | wxPyEndAllowThreads(__tstate); | |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
18488 | } | |
18489 | { | |
18490 | wxVisualAttributes * resultptr; | |
18491 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18493 | } | |
18494 | return resultobj; | |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
d14a1e28 RD |
18500 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18501 | PyObject *obj; | |
18502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18503 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18504 | Py_INCREF(obj); | |
18505 | return Py_BuildValue((char *)""); | |
18506 | } | |
b2dc1044 RD |
18507 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
18508 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18509 | return 1; | |
18510 | } | |
18511 | ||
18512 | ||
18513 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18514 | PyObject *pyobj; | |
18515 | ||
18516 | { | |
18517 | #if wxUSE_UNICODE | |
18518 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18519 | #else | |
18520 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18521 | #endif | |
18522 | } | |
18523 | return pyobj; | |
18524 | } | |
18525 | ||
18526 | ||
d14a1e28 RD |
18527 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
18528 | PyObject *resultobj; | |
18529 | wxColour const &arg1_defvalue = wxNullColour ; | |
18530 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18531 | wxColour const &arg2_defvalue = wxNullColour ; | |
18532 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18533 | wxFont const &arg3_defvalue = wxNullFont ; | |
18534 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18535 | wxListItemAttr *result; | |
18536 | wxColour temp1 ; | |
18537 | wxColour temp2 ; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | PyObject * obj1 = 0 ; | |
18540 | PyObject * obj2 = 0 ; | |
18541 | char *kwnames[] = { | |
18542 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18543 | }; | |
18544 | ||
18545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18546 | if (obj0) { | |
18547 | { | |
18548 | arg1 = &temp1; | |
18549 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18550 | } | |
18551 | } | |
18552 | if (obj1) { | |
18553 | { | |
18554 | arg2 = &temp2; | |
18555 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18556 | } | |
18557 | } | |
18558 | if (obj2) { | |
15afbcd0 RD |
18559 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
18560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18561 | SWIG_fail; | |
d14a1e28 | 18562 | if (arg3 == NULL) { |
15afbcd0 RD |
18563 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18564 | SWIG_fail; | |
d14a1e28 RD |
18565 | } |
18566 | } | |
18567 | { | |
18568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18569 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18570 | ||
18571 | wxPyEndAllowThreads(__tstate); | |
18572 | if (PyErr_Occurred()) SWIG_fail; | |
18573 | } | |
15afbcd0 | 18574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
18575 | return resultobj; |
18576 | fail: | |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
18581 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18582 | PyObject *resultobj; | |
18583 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18584 | wxColour *arg2 = 0 ; | |
18585 | wxColour temp2 ; | |
18586 | PyObject * obj0 = 0 ; | |
18587 | PyObject * obj1 = 0 ; | |
18588 | char *kwnames[] = { | |
18589 | (char *) "self",(char *) "colText", NULL | |
18590 | }; | |
18591 | ||
18592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18595 | { |
18596 | arg2 = &temp2; | |
18597 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18598 | } | |
18599 | { | |
18600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18601 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18602 | ||
18603 | wxPyEndAllowThreads(__tstate); | |
18604 | if (PyErr_Occurred()) SWIG_fail; | |
18605 | } | |
18606 | Py_INCREF(Py_None); resultobj = Py_None; | |
18607 | return resultobj; | |
18608 | fail: | |
18609 | return NULL; | |
18610 | } | |
18611 | ||
18612 | ||
18613 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18614 | PyObject *resultobj; | |
18615 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18616 | wxColour *arg2 = 0 ; | |
18617 | wxColour temp2 ; | |
18618 | PyObject * obj0 = 0 ; | |
18619 | PyObject * obj1 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self",(char *) "colBack", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18627 | { |
18628 | arg2 = &temp2; | |
18629 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18630 | } | |
18631 | { | |
18632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18633 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18634 | ||
18635 | wxPyEndAllowThreads(__tstate); | |
18636 | if (PyErr_Occurred()) SWIG_fail; | |
18637 | } | |
18638 | Py_INCREF(Py_None); resultobj = Py_None; | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
18645 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18646 | PyObject *resultobj; | |
18647 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18648 | wxFont *arg2 = 0 ; | |
18649 | PyObject * obj0 = 0 ; | |
18650 | PyObject * obj1 = 0 ; | |
18651 | char *kwnames[] = { | |
18652 | (char *) "self",(char *) "font", NULL | |
18653 | }; | |
18654 | ||
18655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18660 | SWIG_fail; | |
d14a1e28 | 18661 | if (arg2 == NULL) { |
15afbcd0 RD |
18662 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18663 | SWIG_fail; | |
d14a1e28 RD |
18664 | } |
18665 | { | |
18666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18667 | (arg1)->SetFont((wxFont const &)*arg2); | |
18668 | ||
18669 | wxPyEndAllowThreads(__tstate); | |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
18671 | } | |
18672 | Py_INCREF(Py_None); resultobj = Py_None; | |
18673 | return resultobj; | |
18674 | fail: | |
18675 | return NULL; | |
18676 | } | |
18677 | ||
18678 | ||
18679 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18680 | PyObject *resultobj; | |
18681 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18682 | bool result; | |
18683 | PyObject * obj0 = 0 ; | |
18684 | char *kwnames[] = { | |
18685 | (char *) "self", NULL | |
18686 | }; | |
18687 | ||
18688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18691 | { |
18692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18693 | result = (bool)(arg1)->HasTextColour(); | |
18694 | ||
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
4f89f6a3 RD |
18698 | { |
18699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18700 | } | |
d14a1e28 RD |
18701 | return resultobj; |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18710 | bool result; | |
18711 | PyObject * obj0 = 0 ; | |
18712 | char *kwnames[] = { | |
18713 | (char *) "self", NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18719 | { |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (bool)(arg1)->HasBackgroundColour(); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
4f89f6a3 RD |
18726 | { |
18727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18728 | } | |
d14a1e28 RD |
18729 | return resultobj; |
18730 | fail: | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
18735 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18736 | PyObject *resultobj; | |
18737 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18738 | bool result; | |
18739 | PyObject * obj0 = 0 ; | |
18740 | char *kwnames[] = { | |
18741 | (char *) "self", NULL | |
18742 | }; | |
18743 | ||
18744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18747 | { |
18748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18749 | result = (bool)(arg1)->HasFont(); | |
18750 | ||
18751 | wxPyEndAllowThreads(__tstate); | |
18752 | if (PyErr_Occurred()) SWIG_fail; | |
18753 | } | |
4f89f6a3 RD |
18754 | { |
18755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18756 | } | |
d14a1e28 RD |
18757 | return resultobj; |
18758 | fail: | |
18759 | return NULL; | |
18760 | } | |
18761 | ||
18762 | ||
18763 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18764 | PyObject *resultobj; | |
18765 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18766 | wxColour result; | |
18767 | PyObject * obj0 = 0 ; | |
18768 | char *kwnames[] = { | |
18769 | (char *) "self", NULL | |
18770 | }; | |
18771 | ||
18772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18775 | { |
18776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18777 | result = (arg1)->GetTextColour(); | |
18778 | ||
18779 | wxPyEndAllowThreads(__tstate); | |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
18781 | } | |
18782 | { | |
18783 | wxColour * resultptr; | |
18784 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18786 | } |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
18793 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18794 | PyObject *resultobj; | |
18795 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18796 | wxColour result; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18805 | { |
18806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18807 | result = (arg1)->GetBackgroundColour(); | |
18808 | ||
18809 | wxPyEndAllowThreads(__tstate); | |
18810 | if (PyErr_Occurred()) SWIG_fail; | |
18811 | } | |
18812 | { | |
18813 | wxColour * resultptr; | |
18814 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18815 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18816 | } |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18824 | PyObject *resultobj; | |
18825 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18826 | wxFont result; | |
18827 | PyObject * obj0 = 0 ; | |
18828 | char *kwnames[] = { | |
18829 | (char *) "self", NULL | |
18830 | }; | |
18831 | ||
18832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18835 | { |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | result = (arg1)->GetFont(); | |
18838 | ||
18839 | wxPyEndAllowThreads(__tstate); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | } | |
18842 | { | |
18843 | wxFont * resultptr; | |
18844 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 18845 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18846 | } |
18847 | return resultobj; | |
18848 | fail: | |
18849 | return NULL; | |
18850 | } | |
18851 | ||
18852 | ||
18853 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18854 | PyObject *resultobj; | |
18855 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18856 | PyObject * obj0 = 0 ; | |
18857 | char *kwnames[] = { | |
18858 | (char *) "self", NULL | |
18859 | }; | |
18860 | ||
18861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18864 | { |
18865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18866 | wxListItemAttr_Destroy(arg1); | |
18867 | ||
18868 | wxPyEndAllowThreads(__tstate); | |
18869 | if (PyErr_Occurred()) SWIG_fail; | |
18870 | } | |
18871 | Py_INCREF(Py_None); resultobj = Py_None; | |
18872 | return resultobj; | |
18873 | fail: | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
18878 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18879 | PyObject *obj; | |
18880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18881 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18882 | Py_INCREF(obj); | |
18883 | return Py_BuildValue((char *)""); | |
18884 | } | |
18885 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj; | |
18887 | wxListItem *result; | |
18888 | char *kwnames[] = { | |
18889 | NULL | |
18890 | }; | |
18891 | ||
18892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18893 | { | |
18894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18895 | result = (wxListItem *)new wxListItem(); | |
18896 | ||
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | { | |
18901 | resultobj = wxPyMake_wxObject(result); | |
18902 | } | |
18903 | return resultobj; | |
18904 | fail: | |
18905 | return NULL; | |
18906 | } | |
18907 | ||
18908 | ||
18909 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18910 | PyObject *resultobj; | |
18911 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18912 | PyObject * obj0 = 0 ; | |
18913 | char *kwnames[] = { | |
18914 | (char *) "self", NULL | |
18915 | }; | |
18916 | ||
18917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18920 | { |
18921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18922 | delete arg1; | |
18923 | ||
18924 | wxPyEndAllowThreads(__tstate); | |
18925 | if (PyErr_Occurred()) SWIG_fail; | |
18926 | } | |
18927 | Py_INCREF(Py_None); resultobj = Py_None; | |
18928 | return resultobj; | |
18929 | fail: | |
18930 | return NULL; | |
18931 | } | |
18932 | ||
18933 | ||
18934 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18935 | PyObject *resultobj; | |
18936 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18937 | PyObject * obj0 = 0 ; | |
18938 | char *kwnames[] = { | |
18939 | (char *) "self", NULL | |
18940 | }; | |
18941 | ||
18942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18945 | { |
18946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18947 | (arg1)->Clear(); | |
18948 | ||
18949 | wxPyEndAllowThreads(__tstate); | |
18950 | if (PyErr_Occurred()) SWIG_fail; | |
18951 | } | |
18952 | Py_INCREF(Py_None); resultobj = Py_None; | |
18953 | return resultobj; | |
18954 | fail: | |
18955 | return NULL; | |
18956 | } | |
18957 | ||
18958 | ||
18959 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18960 | PyObject *resultobj; | |
18961 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18970 | { |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | (arg1)->ClearAttributes(); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | Py_INCREF(Py_None); resultobj = Py_None; | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
18984 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18985 | PyObject *resultobj; | |
18986 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18987 | long arg2 ; | |
18988 | PyObject * obj0 = 0 ; | |
994141e6 | 18989 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18990 | char *kwnames[] = { |
18991 | (char *) "self",(char *) "mask", NULL | |
18992 | }; | |
18993 | ||
994141e6 | 18994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18997 | arg2 = (long) SWIG_AsLong(obj1); | |
18998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18999 | { |
19000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19001 | (arg1)->SetMask(arg2); | |
19002 | ||
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | Py_INCREF(Py_None); resultobj = Py_None; | |
19007 | return resultobj; | |
19008 | fail: | |
19009 | return NULL; | |
19010 | } | |
19011 | ||
19012 | ||
19013 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19014 | PyObject *resultobj; | |
19015 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19016 | long arg2 ; | |
19017 | PyObject * obj0 = 0 ; | |
994141e6 | 19018 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19019 | char *kwnames[] = { |
19020 | (char *) "self",(char *) "id", NULL | |
19021 | }; | |
19022 | ||
994141e6 | 19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19026 | arg2 = (long) SWIG_AsLong(obj1); | |
19027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19028 | { |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | (arg1)->SetId(arg2); | |
19031 | ||
19032 | wxPyEndAllowThreads(__tstate); | |
19033 | if (PyErr_Occurred()) SWIG_fail; | |
19034 | } | |
19035 | Py_INCREF(Py_None); resultobj = Py_None; | |
19036 | return resultobj; | |
19037 | fail: | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
19042 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19043 | PyObject *resultobj; | |
19044 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19045 | int arg2 ; | |
19046 | PyObject * obj0 = 0 ; | |
994141e6 | 19047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19048 | char *kwnames[] = { |
19049 | (char *) "self",(char *) "col", NULL | |
19050 | }; | |
19051 | ||
994141e6 | 19052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19055 | arg2 = (int) SWIG_AsInt(obj1); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19057 | { |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | (arg1)->SetColumn(arg2); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
19064 | Py_INCREF(Py_None); resultobj = Py_None; | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
19071 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19072 | PyObject *resultobj; | |
19073 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19074 | long arg2 ; | |
19075 | PyObject * obj0 = 0 ; | |
994141e6 | 19076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19077 | char *kwnames[] = { |
19078 | (char *) "self",(char *) "state", NULL | |
19079 | }; | |
19080 | ||
994141e6 | 19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19084 | arg2 = (long) SWIG_AsLong(obj1); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19086 | { |
19087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19088 | (arg1)->SetState(arg2); | |
19089 | ||
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
19093 | Py_INCREF(Py_None); resultobj = Py_None; | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
19100 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19101 | PyObject *resultobj; | |
19102 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19103 | long arg2 ; | |
19104 | PyObject * obj0 = 0 ; | |
994141e6 | 19105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19106 | char *kwnames[] = { |
19107 | (char *) "self",(char *) "stateMask", NULL | |
19108 | }; | |
19109 | ||
994141e6 | 19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | arg2 = (long) SWIG_AsLong(obj1); | |
19114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19115 | { |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | (arg1)->SetStateMask(arg2); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | Py_INCREF(Py_None); resultobj = Py_None; | |
19123 | return resultobj; | |
19124 | fail: | |
19125 | return NULL; | |
19126 | } | |
19127 | ||
19128 | ||
19129 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19130 | PyObject *resultobj; | |
19131 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19132 | wxString *arg2 = 0 ; | |
e811c8ce | 19133 | bool temp2 = False ; |
d14a1e28 RD |
19134 | PyObject * obj0 = 0 ; |
19135 | PyObject * obj1 = 0 ; | |
19136 | char *kwnames[] = { | |
19137 | (char *) "self",(char *) "text", NULL | |
19138 | }; | |
19139 | ||
19140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19143 | { |
19144 | arg2 = wxString_in_helper(obj1); | |
19145 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19146 | temp2 = True; |
d14a1e28 RD |
19147 | } |
19148 | { | |
19149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19150 | (arg1)->SetText((wxString const &)*arg2); | |
19151 | ||
19152 | wxPyEndAllowThreads(__tstate); | |
19153 | if (PyErr_Occurred()) SWIG_fail; | |
19154 | } | |
19155 | Py_INCREF(Py_None); resultobj = Py_None; | |
19156 | { | |
19157 | if (temp2) | |
19158 | delete arg2; | |
19159 | } | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | { | |
19163 | if (temp2) | |
19164 | delete arg2; | |
19165 | } | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
19170 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19171 | PyObject *resultobj; | |
19172 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19173 | int arg2 ; | |
19174 | PyObject * obj0 = 0 ; | |
994141e6 | 19175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19176 | char *kwnames[] = { |
19177 | (char *) "self",(char *) "image", NULL | |
19178 | }; | |
19179 | ||
994141e6 | 19180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19183 | arg2 = (int) SWIG_AsInt(obj1); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19185 | { |
19186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19187 | (arg1)->SetImage(arg2); | |
19188 | ||
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | Py_INCREF(Py_None); resultobj = Py_None; | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
19199 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19200 | PyObject *resultobj; | |
19201 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19202 | long arg2 ; | |
19203 | PyObject * obj0 = 0 ; | |
994141e6 | 19204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19205 | char *kwnames[] = { |
19206 | (char *) "self",(char *) "data", NULL | |
19207 | }; | |
19208 | ||
994141e6 | 19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19212 | arg2 = (long) SWIG_AsLong(obj1); | |
19213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19214 | { |
19215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19216 | (arg1)->SetData(arg2); | |
19217 | ||
19218 | wxPyEndAllowThreads(__tstate); | |
19219 | if (PyErr_Occurred()) SWIG_fail; | |
19220 | } | |
19221 | Py_INCREF(Py_None); resultobj = Py_None; | |
19222 | return resultobj; | |
19223 | fail: | |
19224 | return NULL; | |
19225 | } | |
19226 | ||
19227 | ||
19228 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19229 | PyObject *resultobj; | |
19230 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19231 | int arg2 ; | |
19232 | PyObject * obj0 = 0 ; | |
994141e6 | 19233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19234 | char *kwnames[] = { |
19235 | (char *) "self",(char *) "width", NULL | |
19236 | }; | |
19237 | ||
994141e6 | 19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19241 | arg2 = (int) SWIG_AsInt(obj1); | |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19243 | { |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | (arg1)->SetWidth(arg2); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | Py_INCREF(Py_None); resultobj = Py_None; | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19260 | int arg2 ; | |
19261 | PyObject * obj0 = 0 ; | |
994141e6 | 19262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19263 | char *kwnames[] = { |
19264 | (char *) "self",(char *) "align", NULL | |
19265 | }; | |
19266 | ||
994141e6 | 19267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19270 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19272 | { |
19273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19274 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19275 | ||
19276 | wxPyEndAllowThreads(__tstate); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
19279 | Py_INCREF(Py_None); resultobj = Py_None; | |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
19286 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19287 | PyObject *resultobj; | |
19288 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19289 | wxColour *arg2 = 0 ; | |
19290 | wxColour temp2 ; | |
19291 | PyObject * obj0 = 0 ; | |
19292 | PyObject * obj1 = 0 ; | |
19293 | char *kwnames[] = { | |
19294 | (char *) "self",(char *) "colText", NULL | |
19295 | }; | |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19300 | { |
19301 | arg2 = &temp2; | |
19302 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19303 | } | |
19304 | { | |
19305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19306 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19307 | ||
19308 | wxPyEndAllowThreads(__tstate); | |
19309 | if (PyErr_Occurred()) SWIG_fail; | |
19310 | } | |
19311 | Py_INCREF(Py_None); resultobj = Py_None; | |
19312 | return resultobj; | |
19313 | fail: | |
19314 | return NULL; | |
19315 | } | |
19316 | ||
19317 | ||
19318 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19319 | PyObject *resultobj; | |
19320 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19321 | wxColour *arg2 = 0 ; | |
19322 | wxColour temp2 ; | |
19323 | PyObject * obj0 = 0 ; | |
19324 | PyObject * obj1 = 0 ; | |
19325 | char *kwnames[] = { | |
19326 | (char *) "self",(char *) "colBack", NULL | |
19327 | }; | |
19328 | ||
19329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19332 | { |
19333 | arg2 = &temp2; | |
19334 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19335 | } | |
19336 | { | |
19337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19338 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19339 | ||
19340 | wxPyEndAllowThreads(__tstate); | |
19341 | if (PyErr_Occurred()) SWIG_fail; | |
19342 | } | |
19343 | Py_INCREF(Py_None); resultobj = Py_None; | |
19344 | return resultobj; | |
19345 | fail: | |
19346 | return NULL; | |
19347 | } | |
19348 | ||
19349 | ||
19350 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19351 | PyObject *resultobj; | |
19352 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19353 | wxFont *arg2 = 0 ; | |
19354 | PyObject * obj0 = 0 ; | |
19355 | PyObject * obj1 = 0 ; | |
19356 | char *kwnames[] = { | |
19357 | (char *) "self",(char *) "font", NULL | |
19358 | }; | |
19359 | ||
19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19363 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19364 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19365 | SWIG_fail; | |
d14a1e28 | 19366 | if (arg2 == NULL) { |
15afbcd0 RD |
19367 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19368 | SWIG_fail; | |
d14a1e28 RD |
19369 | } |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | (arg1)->SetFont((wxFont const &)*arg2); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | Py_INCREF(Py_None); resultobj = Py_None; | |
19378 | return resultobj; | |
19379 | fail: | |
19380 | return NULL; | |
19381 | } | |
19382 | ||
19383 | ||
19384 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19385 | PyObject *resultobj; | |
19386 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19387 | long result; | |
19388 | PyObject * obj0 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19396 | { |
19397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19398 | result = (long)(arg1)->GetMask(); | |
19399 | ||
19400 | wxPyEndAllowThreads(__tstate); | |
19401 | if (PyErr_Occurred()) SWIG_fail; | |
19402 | } | |
15afbcd0 | 19403 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19404 | return resultobj; |
19405 | fail: | |
19406 | return NULL; | |
19407 | } | |
19408 | ||
19409 | ||
19410 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19411 | PyObject *resultobj; | |
19412 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19413 | long result; | |
19414 | PyObject * obj0 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "self", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19422 | { |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | result = (long)(arg1)->GetId(); | |
19425 | ||
19426 | wxPyEndAllowThreads(__tstate); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | } | |
15afbcd0 | 19429 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19430 | return resultobj; |
19431 | fail: | |
19432 | return NULL; | |
19433 | } | |
19434 | ||
19435 | ||
19436 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19437 | PyObject *resultobj; | |
19438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19439 | int result; | |
19440 | PyObject * obj0 = 0 ; | |
19441 | char *kwnames[] = { | |
19442 | (char *) "self", NULL | |
19443 | }; | |
19444 | ||
19445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19448 | { |
19449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19450 | result = (int)(arg1)->GetColumn(); | |
19451 | ||
19452 | wxPyEndAllowThreads(__tstate); | |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
19454 | } | |
15afbcd0 | 19455 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19456 | return resultobj; |
19457 | fail: | |
19458 | return NULL; | |
19459 | } | |
19460 | ||
19461 | ||
19462 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19463 | PyObject *resultobj; | |
19464 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19465 | long result; | |
19466 | PyObject * obj0 = 0 ; | |
19467 | char *kwnames[] = { | |
19468 | (char *) "self", NULL | |
19469 | }; | |
19470 | ||
19471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19474 | { |
19475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19476 | result = (long)(arg1)->GetState(); | |
19477 | ||
19478 | wxPyEndAllowThreads(__tstate); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
15afbcd0 | 19481 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19482 | return resultobj; |
19483 | fail: | |
19484 | return NULL; | |
19485 | } | |
19486 | ||
19487 | ||
19488 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19489 | PyObject *resultobj; | |
19490 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19491 | wxString *result; | |
19492 | PyObject * obj0 = 0 ; | |
19493 | char *kwnames[] = { | |
19494 | (char *) "self", NULL | |
19495 | }; | |
19496 | ||
19497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19500 | { |
19501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19502 | { | |
19503 | wxString const &_result_ref = (arg1)->GetText(); | |
19504 | result = (wxString *) &_result_ref; | |
19505 | } | |
19506 | ||
19507 | wxPyEndAllowThreads(__tstate); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | } | |
cc6dd355 RD |
19510 | { |
19511 | #if wxUSE_UNICODE | |
19512 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19513 | #else | |
19514 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19515 | #endif | |
19516 | } | |
d14a1e28 RD |
19517 | return resultobj; |
19518 | fail: | |
19519 | return NULL; | |
19520 | } | |
19521 | ||
19522 | ||
19523 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19524 | PyObject *resultobj; | |
19525 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19526 | int result; | |
19527 | PyObject * obj0 = 0 ; | |
19528 | char *kwnames[] = { | |
19529 | (char *) "self", NULL | |
19530 | }; | |
19531 | ||
19532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19535 | { |
19536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19537 | result = (int)(arg1)->GetImage(); | |
19538 | ||
19539 | wxPyEndAllowThreads(__tstate); | |
19540 | if (PyErr_Occurred()) SWIG_fail; | |
19541 | } | |
15afbcd0 | 19542 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19543 | return resultobj; |
19544 | fail: | |
19545 | return NULL; | |
19546 | } | |
19547 | ||
19548 | ||
19549 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19550 | PyObject *resultobj; | |
19551 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19552 | long result; | |
19553 | PyObject * obj0 = 0 ; | |
19554 | char *kwnames[] = { | |
19555 | (char *) "self", NULL | |
19556 | }; | |
19557 | ||
19558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19561 | { |
19562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19563 | result = (long)(arg1)->GetData(); | |
19564 | ||
19565 | wxPyEndAllowThreads(__tstate); | |
19566 | if (PyErr_Occurred()) SWIG_fail; | |
19567 | } | |
15afbcd0 | 19568 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19569 | return resultobj; |
19570 | fail: | |
19571 | return NULL; | |
19572 | } | |
19573 | ||
19574 | ||
19575 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19576 | PyObject *resultobj; | |
19577 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19578 | int result; | |
19579 | PyObject * obj0 = 0 ; | |
19580 | char *kwnames[] = { | |
19581 | (char *) "self", NULL | |
19582 | }; | |
19583 | ||
19584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19587 | { |
19588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19589 | result = (int)(arg1)->GetWidth(); | |
19590 | ||
19591 | wxPyEndAllowThreads(__tstate); | |
19592 | if (PyErr_Occurred()) SWIG_fail; | |
19593 | } | |
15afbcd0 | 19594 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19595 | return resultobj; |
19596 | fail: | |
19597 | return NULL; | |
19598 | } | |
19599 | ||
19600 | ||
19601 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19602 | PyObject *resultobj; | |
19603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19604 | int result; | |
19605 | PyObject * obj0 = 0 ; | |
19606 | char *kwnames[] = { | |
19607 | (char *) "self", NULL | |
19608 | }; | |
19609 | ||
19610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19613 | { |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | result = (int)(arg1)->GetAlign(); | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
15afbcd0 | 19620 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19621 | return resultobj; |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19630 | wxListItemAttr *result; | |
19631 | PyObject * obj0 = 0 ; | |
19632 | char *kwnames[] = { | |
19633 | (char *) "self", NULL | |
19634 | }; | |
19635 | ||
19636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19639 | { |
19640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19641 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
15afbcd0 | 19646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
19647 | return resultobj; |
19648 | fail: | |
19649 | return NULL; | |
19650 | } | |
19651 | ||
19652 | ||
19653 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19654 | PyObject *resultobj; | |
19655 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19656 | bool result; | |
19657 | PyObject * obj0 = 0 ; | |
19658 | char *kwnames[] = { | |
19659 | (char *) "self", NULL | |
19660 | }; | |
19661 | ||
19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19665 | { |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (bool)(arg1)->HasAttributes(); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
4f89f6a3 RD |
19672 | { |
19673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19674 | } | |
d14a1e28 RD |
19675 | return resultobj; |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
19681 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19682 | PyObject *resultobj; | |
19683 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19684 | wxColour result; | |
19685 | PyObject * obj0 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "self", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19693 | { |
19694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19695 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19696 | ||
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
19700 | { | |
19701 | wxColour * resultptr; | |
19702 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19703 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19704 | } |
19705 | return resultobj; | |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
19711 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19712 | PyObject *resultobj; | |
19713 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19714 | wxColour result; | |
19715 | PyObject * obj0 = 0 ; | |
19716 | char *kwnames[] = { | |
19717 | (char *) "self", NULL | |
19718 | }; | |
19719 | ||
19720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",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 = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19726 | ||
19727 | wxPyEndAllowThreads(__tstate); | |
19728 | if (PyErr_Occurred()) SWIG_fail; | |
19729 | } | |
19730 | { | |
19731 | wxColour * resultptr; | |
19732 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19733 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19734 | } |
19735 | return resultobj; | |
19736 | fail: | |
19737 | return NULL; | |
19738 | } | |
19739 | ||
19740 | ||
19741 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19742 | PyObject *resultobj; | |
19743 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19744 | wxFont result; | |
19745 | PyObject * obj0 = 0 ; | |
19746 | char *kwnames[] = { | |
19747 | (char *) "self", NULL | |
19748 | }; | |
19749 | ||
19750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19753 | { |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = ((wxListItem const *)arg1)->GetFont(); | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
19760 | { | |
19761 | wxFont * resultptr; | |
19762 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19763 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19764 | } |
19765 | return resultobj; | |
19766 | fail: | |
19767 | return NULL; | |
19768 | } | |
19769 | ||
19770 | ||
19771 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19772 | PyObject *resultobj; | |
19773 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19774 | long arg2 ; | |
19775 | PyObject * obj0 = 0 ; | |
994141e6 | 19776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19777 | char *kwnames[] = { |
19778 | (char *) "self",(char *) "m_mask", NULL | |
19779 | }; | |
19780 | ||
994141e6 | 19781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19784 | arg2 = (long) SWIG_AsLong(obj1); | |
19785 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19786 | if (arg1) (arg1)->m_mask = arg2; |
19787 | ||
19788 | Py_INCREF(Py_None); resultobj = Py_None; | |
19789 | return resultobj; | |
19790 | fail: | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
19795 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19796 | PyObject *resultobj; | |
19797 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19798 | long result; | |
19799 | PyObject * obj0 = 0 ; | |
19800 | char *kwnames[] = { | |
19801 | (char *) "self", NULL | |
19802 | }; | |
19803 | ||
19804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19807 | result = (long) ((arg1)->m_mask); |
19808 | ||
15afbcd0 | 19809 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19810 | return resultobj; |
19811 | fail: | |
19812 | return NULL; | |
19813 | } | |
19814 | ||
19815 | ||
19816 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19817 | PyObject *resultobj; | |
19818 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19819 | long arg2 ; | |
19820 | PyObject * obj0 = 0 ; | |
994141e6 | 19821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19822 | char *kwnames[] = { |
19823 | (char *) "self",(char *) "m_itemId", NULL | |
19824 | }; | |
19825 | ||
994141e6 | 19826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19829 | arg2 = (long) SWIG_AsLong(obj1); | |
19830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19831 | if (arg1) (arg1)->m_itemId = arg2; |
19832 | ||
19833 | Py_INCREF(Py_None); resultobj = Py_None; | |
19834 | return resultobj; | |
19835 | fail: | |
19836 | return NULL; | |
19837 | } | |
19838 | ||
19839 | ||
19840 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19841 | PyObject *resultobj; | |
19842 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19843 | long result; | |
19844 | PyObject * obj0 = 0 ; | |
19845 | char *kwnames[] = { | |
19846 | (char *) "self", NULL | |
19847 | }; | |
19848 | ||
19849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19852 | result = (long) ((arg1)->m_itemId); |
19853 | ||
15afbcd0 | 19854 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19855 | return resultobj; |
19856 | fail: | |
19857 | return NULL; | |
19858 | } | |
19859 | ||
19860 | ||
19861 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19862 | PyObject *resultobj; | |
19863 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19864 | int arg2 ; | |
19865 | PyObject * obj0 = 0 ; | |
994141e6 | 19866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19867 | char *kwnames[] = { |
19868 | (char *) "self",(char *) "m_col", NULL | |
19869 | }; | |
19870 | ||
994141e6 | 19871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19874 | arg2 = (int) SWIG_AsInt(obj1); | |
19875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19876 | if (arg1) (arg1)->m_col = arg2; |
19877 | ||
19878 | Py_INCREF(Py_None); resultobj = Py_None; | |
19879 | return resultobj; | |
19880 | fail: | |
19881 | return NULL; | |
19882 | } | |
19883 | ||
19884 | ||
19885 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19886 | PyObject *resultobj; | |
19887 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19888 | int result; | |
19889 | PyObject * obj0 = 0 ; | |
19890 | char *kwnames[] = { | |
19891 | (char *) "self", NULL | |
19892 | }; | |
19893 | ||
19894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19897 | result = (int) ((arg1)->m_col); |
19898 | ||
15afbcd0 | 19899 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19900 | return resultobj; |
19901 | fail: | |
19902 | return NULL; | |
19903 | } | |
19904 | ||
19905 | ||
19906 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19907 | PyObject *resultobj; | |
19908 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19909 | long arg2 ; | |
19910 | PyObject * obj0 = 0 ; | |
994141e6 | 19911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19912 | char *kwnames[] = { |
19913 | (char *) "self",(char *) "m_state", NULL | |
19914 | }; | |
19915 | ||
994141e6 | 19916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19919 | arg2 = (long) SWIG_AsLong(obj1); | |
19920 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19921 | if (arg1) (arg1)->m_state = arg2; |
19922 | ||
19923 | Py_INCREF(Py_None); resultobj = Py_None; | |
19924 | return resultobj; | |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
19930 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19931 | PyObject *resultobj; | |
19932 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19933 | long result; | |
19934 | PyObject * obj0 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "self", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19942 | result = (long) ((arg1)->m_state); |
19943 | ||
15afbcd0 | 19944 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19945 | return resultobj; |
19946 | fail: | |
19947 | return NULL; | |
19948 | } | |
19949 | ||
19950 | ||
19951 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19952 | PyObject *resultobj; | |
19953 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19954 | long arg2 ; | |
19955 | PyObject * obj0 = 0 ; | |
994141e6 | 19956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19957 | char *kwnames[] = { |
19958 | (char *) "self",(char *) "m_stateMask", NULL | |
19959 | }; | |
19960 | ||
994141e6 | 19961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19964 | arg2 = (long) SWIG_AsLong(obj1); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19966 | if (arg1) (arg1)->m_stateMask = arg2; |
19967 | ||
19968 | Py_INCREF(Py_None); resultobj = Py_None; | |
19969 | return resultobj; | |
19970 | fail: | |
19971 | return NULL; | |
19972 | } | |
19973 | ||
19974 | ||
19975 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19976 | PyObject *resultobj; | |
19977 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19978 | long result; | |
19979 | PyObject * obj0 = 0 ; | |
19980 | char *kwnames[] = { | |
19981 | (char *) "self", NULL | |
19982 | }; | |
19983 | ||
19984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19987 | result = (long) ((arg1)->m_stateMask); |
19988 | ||
15afbcd0 | 19989 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19990 | return resultobj; |
19991 | fail: | |
19992 | return NULL; | |
19993 | } | |
19994 | ||
19995 | ||
19996 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19997 | PyObject *resultobj; | |
19998 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 19999 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 20000 | bool temp2 = False ; |
d14a1e28 RD |
20001 | PyObject * obj0 = 0 ; |
20002 | PyObject * obj1 = 0 ; | |
20003 | char *kwnames[] = { | |
20004 | (char *) "self",(char *) "m_text", NULL | |
20005 | }; | |
20006 | ||
20007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_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; | |
7eae615b RD |
20010 | { |
20011 | arg2 = wxString_in_helper(obj1); | |
20012 | if (arg2 == NULL) SWIG_fail; | |
20013 | temp2 = True; | |
20014 | } | |
196addbf | 20015 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20016 | |
20017 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20018 | { |
20019 | if (temp2) | |
20020 | delete arg2; | |
20021 | } | |
d14a1e28 RD |
20022 | return resultobj; |
20023 | fail: | |
7eae615b RD |
20024 | { |
20025 | if (temp2) | |
20026 | delete arg2; | |
20027 | } | |
d14a1e28 RD |
20028 | return NULL; |
20029 | } | |
20030 | ||
20031 | ||
20032 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20033 | PyObject *resultobj; | |
20034 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20035 | wxString *result; |
d14a1e28 RD |
20036 | PyObject * obj0 = 0 ; |
20037 | char *kwnames[] = { | |
20038 | (char *) "self", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20044 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20045 | |
20046 | { | |
20047 | #if wxUSE_UNICODE | |
196addbf | 20048 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20049 | #else |
196addbf | 20050 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20051 | #endif |
20052 | } | |
20053 | return resultobj; | |
20054 | fail: | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
20059 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20060 | PyObject *resultobj; | |
20061 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20062 | int arg2 ; | |
20063 | PyObject * obj0 = 0 ; | |
994141e6 | 20064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20065 | char *kwnames[] = { |
20066 | (char *) "self",(char *) "m_image", NULL | |
20067 | }; | |
20068 | ||
994141e6 | 20069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20072 | arg2 = (int) SWIG_AsInt(obj1); | |
20073 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20074 | if (arg1) (arg1)->m_image = arg2; |
20075 | ||
20076 | Py_INCREF(Py_None); resultobj = Py_None; | |
20077 | return resultobj; | |
20078 | fail: | |
20079 | return NULL; | |
20080 | } | |
20081 | ||
20082 | ||
20083 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20084 | PyObject *resultobj; | |
20085 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20086 | int result; | |
20087 | PyObject * obj0 = 0 ; | |
20088 | char *kwnames[] = { | |
20089 | (char *) "self", NULL | |
20090 | }; | |
20091 | ||
20092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20095 | result = (int) ((arg1)->m_image); |
20096 | ||
15afbcd0 | 20097 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20098 | return resultobj; |
20099 | fail: | |
20100 | return NULL; | |
20101 | } | |
20102 | ||
20103 | ||
20104 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20105 | PyObject *resultobj; | |
20106 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20107 | long arg2 ; | |
20108 | PyObject * obj0 = 0 ; | |
994141e6 | 20109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20110 | char *kwnames[] = { |
20111 | (char *) "self",(char *) "m_data", NULL | |
20112 | }; | |
20113 | ||
994141e6 | 20114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20117 | arg2 = (long) SWIG_AsLong(obj1); | |
20118 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20119 | if (arg1) (arg1)->m_data = arg2; |
20120 | ||
20121 | Py_INCREF(Py_None); resultobj = Py_None; | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
20128 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20129 | PyObject *resultobj; | |
20130 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20131 | long result; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | char *kwnames[] = { | |
20134 | (char *) "self", NULL | |
20135 | }; | |
20136 | ||
20137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20140 | result = (long) ((arg1)->m_data); |
20141 | ||
15afbcd0 | 20142 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20143 | return resultobj; |
20144 | fail: | |
20145 | return NULL; | |
20146 | } | |
20147 | ||
20148 | ||
20149 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20150 | PyObject *resultobj; | |
20151 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20152 | int arg2 ; | |
20153 | PyObject * obj0 = 0 ; | |
994141e6 | 20154 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20155 | char *kwnames[] = { |
20156 | (char *) "self",(char *) "m_format", NULL | |
20157 | }; | |
20158 | ||
994141e6 | 20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20162 | arg2 = (int) SWIG_AsInt(obj1); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20164 | if (arg1) (arg1)->m_format = arg2; |
20165 | ||
20166 | Py_INCREF(Py_None); resultobj = Py_None; | |
20167 | return resultobj; | |
20168 | fail: | |
20169 | return NULL; | |
20170 | } | |
20171 | ||
20172 | ||
20173 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20174 | PyObject *resultobj; | |
20175 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20176 | int result; | |
20177 | PyObject * obj0 = 0 ; | |
20178 | char *kwnames[] = { | |
20179 | (char *) "self", NULL | |
20180 | }; | |
20181 | ||
20182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20185 | result = (int) ((arg1)->m_format); |
20186 | ||
15afbcd0 | 20187 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20188 | return resultobj; |
20189 | fail: | |
20190 | return NULL; | |
20191 | } | |
20192 | ||
20193 | ||
20194 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20195 | PyObject *resultobj; | |
20196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20197 | int arg2 ; | |
20198 | PyObject * obj0 = 0 ; | |
994141e6 | 20199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20200 | char *kwnames[] = { |
20201 | (char *) "self",(char *) "m_width", NULL | |
20202 | }; | |
20203 | ||
994141e6 | 20204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20207 | arg2 = (int) SWIG_AsInt(obj1); | |
20208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20209 | if (arg1) (arg1)->m_width = arg2; |
20210 | ||
20211 | Py_INCREF(Py_None); resultobj = Py_None; | |
20212 | return resultobj; | |
20213 | fail: | |
20214 | return NULL; | |
20215 | } | |
20216 | ||
20217 | ||
20218 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20219 | PyObject *resultobj; | |
20220 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20221 | int result; | |
20222 | PyObject * obj0 = 0 ; | |
20223 | char *kwnames[] = { | |
20224 | (char *) "self", NULL | |
20225 | }; | |
20226 | ||
20227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20230 | result = (int) ((arg1)->m_width); |
20231 | ||
15afbcd0 | 20232 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20233 | return resultobj; |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
20239 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20240 | PyObject *obj; | |
20241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20242 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20243 | Py_INCREF(obj); | |
20244 | return Py_BuildValue((char *)""); | |
20245 | } | |
20246 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20247 | PyObject *resultobj; | |
20248 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20249 | int arg2 = (int) 0 ; | |
20250 | wxListEvent *result; | |
994141e6 RD |
20251 | PyObject * obj0 = 0 ; |
20252 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20253 | char *kwnames[] = { |
20254 | (char *) "commandType",(char *) "id", NULL | |
20255 | }; | |
20256 | ||
994141e6 RD |
20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20258 | if (obj0) { | |
15afbcd0 RD |
20259 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
20260 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20261 | } |
20262 | if (obj1) { | |
15afbcd0 RD |
20263 | arg2 = (int) SWIG_AsInt(obj1); |
20264 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20265 | } |
d14a1e28 RD |
20266 | { |
20267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20268 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20269 | ||
20270 | wxPyEndAllowThreads(__tstate); | |
20271 | if (PyErr_Occurred()) SWIG_fail; | |
20272 | } | |
15afbcd0 | 20273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20274 | return resultobj; |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20281 | PyObject *resultobj; | |
20282 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20283 | int arg2 ; | |
20284 | PyObject * obj0 = 0 ; | |
994141e6 | 20285 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20286 | char *kwnames[] = { |
20287 | (char *) "self",(char *) "m_code", NULL | |
20288 | }; | |
20289 | ||
994141e6 | 20290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20293 | arg2 = (int) SWIG_AsInt(obj1); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20295 | if (arg1) (arg1)->m_code = arg2; |
20296 | ||
20297 | Py_INCREF(Py_None); resultobj = Py_None; | |
20298 | return resultobj; | |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
20304 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20305 | PyObject *resultobj; | |
20306 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20307 | int result; | |
20308 | PyObject * obj0 = 0 ; | |
20309 | char *kwnames[] = { | |
20310 | (char *) "self", NULL | |
20311 | }; | |
20312 | ||
20313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20316 | result = (int) ((arg1)->m_code); |
20317 | ||
15afbcd0 | 20318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20319 | return resultobj; |
20320 | fail: | |
20321 | return NULL; | |
20322 | } | |
20323 | ||
20324 | ||
20325 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20326 | PyObject *resultobj; | |
20327 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20328 | long arg2 ; | |
20329 | PyObject * obj0 = 0 ; | |
994141e6 | 20330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20331 | char *kwnames[] = { |
20332 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20333 | }; | |
20334 | ||
994141e6 | 20335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20338 | arg2 = (long) SWIG_AsLong(obj1); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20340 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20341 | ||
20342 | Py_INCREF(Py_None); resultobj = Py_None; | |
20343 | return resultobj; | |
20344 | fail: | |
20345 | return NULL; | |
20346 | } | |
20347 | ||
20348 | ||
20349 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20350 | PyObject *resultobj; | |
20351 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20352 | long result; | |
20353 | PyObject * obj0 = 0 ; | |
20354 | char *kwnames[] = { | |
20355 | (char *) "self", NULL | |
20356 | }; | |
20357 | ||
20358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20361 | result = (long) ((arg1)->m_oldItemIndex); |
20362 | ||
15afbcd0 | 20363 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20364 | return resultobj; |
20365 | fail: | |
20366 | return NULL; | |
20367 | } | |
20368 | ||
20369 | ||
20370 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20371 | PyObject *resultobj; | |
20372 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20373 | long arg2 ; | |
20374 | PyObject * obj0 = 0 ; | |
994141e6 | 20375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20376 | char *kwnames[] = { |
20377 | (char *) "self",(char *) "m_itemIndex", NULL | |
20378 | }; | |
20379 | ||
994141e6 | 20380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20383 | arg2 = (long) SWIG_AsLong(obj1); | |
20384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20385 | if (arg1) (arg1)->m_itemIndex = arg2; |
20386 | ||
20387 | Py_INCREF(Py_None); resultobj = Py_None; | |
20388 | return resultobj; | |
20389 | fail: | |
20390 | return NULL; | |
20391 | } | |
20392 | ||
20393 | ||
20394 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20395 | PyObject *resultobj; | |
20396 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20397 | long result; | |
20398 | PyObject * obj0 = 0 ; | |
20399 | char *kwnames[] = { | |
20400 | (char *) "self", NULL | |
20401 | }; | |
20402 | ||
20403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20406 | result = (long) ((arg1)->m_itemIndex); |
20407 | ||
15afbcd0 | 20408 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20409 | return resultobj; |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
20415 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20416 | PyObject *resultobj; | |
20417 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20418 | int arg2 ; | |
20419 | PyObject * obj0 = 0 ; | |
994141e6 | 20420 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20421 | char *kwnames[] = { |
20422 | (char *) "self",(char *) "m_col", NULL | |
20423 | }; | |
20424 | ||
994141e6 | 20425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20428 | arg2 = (int) SWIG_AsInt(obj1); | |
20429 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20430 | if (arg1) (arg1)->m_col = arg2; |
20431 | ||
20432 | Py_INCREF(Py_None); resultobj = Py_None; | |
20433 | return resultobj; | |
20434 | fail: | |
20435 | return NULL; | |
20436 | } | |
20437 | ||
20438 | ||
20439 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20440 | PyObject *resultobj; | |
20441 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20442 | int result; | |
20443 | PyObject * obj0 = 0 ; | |
20444 | char *kwnames[] = { | |
20445 | (char *) "self", NULL | |
20446 | }; | |
20447 | ||
20448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20451 | result = (int) ((arg1)->m_col); |
20452 | ||
15afbcd0 | 20453 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20454 | return resultobj; |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
20460 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20461 | PyObject *resultobj; | |
20462 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20463 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20464 | PyObject * obj0 = 0 ; | |
20465 | PyObject * obj1 = 0 ; | |
20466 | char *kwnames[] = { | |
20467 | (char *) "self",(char *) "m_pointDrag", NULL | |
20468 | }; | |
20469 | ||
20470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20475 | if (arg1) (arg1)->m_pointDrag = *arg2; |
20476 | ||
20477 | Py_INCREF(Py_None); resultobj = Py_None; | |
20478 | return resultobj; | |
20479 | fail: | |
20480 | return NULL; | |
20481 | } | |
20482 | ||
20483 | ||
20484 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20485 | PyObject *resultobj; | |
20486 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20487 | wxPoint *result; | |
20488 | PyObject * obj0 = 0 ; | |
20489 | char *kwnames[] = { | |
20490 | (char *) "self", NULL | |
20491 | }; | |
20492 | ||
20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20496 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
20497 | ||
15afbcd0 | 20498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
20499 | return resultobj; |
20500 | fail: | |
20501 | return NULL; | |
20502 | } | |
20503 | ||
20504 | ||
20505 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20506 | PyObject *resultobj; | |
20507 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20508 | wxListItem *result; | |
20509 | PyObject * obj0 = 0 ; | |
20510 | char *kwnames[] = { | |
20511 | (char *) "self", NULL | |
20512 | }; | |
20513 | ||
20514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20517 | result = (wxListItem *)& ((arg1)->m_item); |
20518 | ||
20519 | { | |
20520 | resultobj = wxPyMake_wxObject(result); | |
20521 | } | |
20522 | return resultobj; | |
20523 | fail: | |
20524 | return NULL; | |
20525 | } | |
20526 | ||
20527 | ||
20528 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20529 | PyObject *resultobj; | |
20530 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20531 | int result; | |
20532 | PyObject * obj0 = 0 ; | |
20533 | char *kwnames[] = { | |
20534 | (char *) "self", NULL | |
20535 | }; | |
20536 | ||
20537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20540 | { |
20541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20542 | result = (int)(arg1)->GetKeyCode(); | |
20543 | ||
20544 | wxPyEndAllowThreads(__tstate); | |
20545 | if (PyErr_Occurred()) SWIG_fail; | |
20546 | } | |
15afbcd0 | 20547 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20548 | return resultobj; |
20549 | fail: | |
20550 | return NULL; | |
20551 | } | |
20552 | ||
20553 | ||
20554 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20555 | PyObject *resultobj; | |
20556 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20557 | long result; | |
20558 | PyObject * obj0 = 0 ; | |
20559 | char *kwnames[] = { | |
20560 | (char *) "self", NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20566 | { |
20567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20568 | result = (long)(arg1)->GetIndex(); | |
20569 | ||
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
15afbcd0 | 20573 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20574 | return resultobj; |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20581 | PyObject *resultobj; | |
20582 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20583 | int result; | |
20584 | PyObject * obj0 = 0 ; | |
20585 | char *kwnames[] = { | |
20586 | (char *) "self", NULL | |
20587 | }; | |
20588 | ||
20589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20592 | { |
20593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20594 | result = (int)(arg1)->GetColumn(); | |
20595 | ||
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
15afbcd0 | 20599 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20600 | return resultobj; |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
20606 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20607 | PyObject *resultobj; | |
20608 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20609 | wxPoint result; | |
20610 | PyObject * obj0 = 0 ; | |
20611 | char *kwnames[] = { | |
20612 | (char *) "self", NULL | |
20613 | }; | |
20614 | ||
20615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20618 | { |
20619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20620 | result = (arg1)->GetPoint(); | |
20621 | ||
20622 | wxPyEndAllowThreads(__tstate); | |
20623 | if (PyErr_Occurred()) SWIG_fail; | |
20624 | } | |
20625 | { | |
20626 | wxPoint * resultptr; | |
20627 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 20628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20629 | } |
20630 | return resultobj; | |
20631 | fail: | |
20632 | return NULL; | |
20633 | } | |
20634 | ||
20635 | ||
20636 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20637 | PyObject *resultobj; | |
20638 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20639 | wxString *result; | |
20640 | PyObject * obj0 = 0 ; | |
20641 | char *kwnames[] = { | |
20642 | (char *) "self", NULL | |
20643 | }; | |
20644 | ||
20645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20648 | { |
20649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20650 | { | |
20651 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20652 | result = (wxString *) &_result_ref; | |
20653 | } | |
20654 | ||
20655 | wxPyEndAllowThreads(__tstate); | |
20656 | if (PyErr_Occurred()) SWIG_fail; | |
20657 | } | |
cc6dd355 RD |
20658 | { |
20659 | #if wxUSE_UNICODE | |
20660 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20661 | #else | |
20662 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20663 | #endif | |
20664 | } | |
d14a1e28 RD |
20665 | return resultobj; |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
20671 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20672 | PyObject *resultobj; | |
20673 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20674 | wxString *result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | char *kwnames[] = { | |
20677 | (char *) "self", NULL | |
20678 | }; | |
20679 | ||
20680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20683 | { |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | { | |
20686 | wxString const &_result_ref = (arg1)->GetText(); | |
20687 | result = (wxString *) &_result_ref; | |
20688 | } | |
20689 | ||
20690 | wxPyEndAllowThreads(__tstate); | |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
20692 | } | |
cc6dd355 RD |
20693 | { |
20694 | #if wxUSE_UNICODE | |
20695 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20696 | #else | |
20697 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20698 | #endif | |
20699 | } | |
d14a1e28 RD |
20700 | return resultobj; |
20701 | fail: | |
20702 | return NULL; | |
20703 | } | |
20704 | ||
20705 | ||
20706 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20707 | PyObject *resultobj; | |
20708 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20709 | int result; | |
20710 | PyObject * obj0 = 0 ; | |
20711 | char *kwnames[] = { | |
20712 | (char *) "self", NULL | |
20713 | }; | |
20714 | ||
20715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20718 | { |
20719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20720 | result = (int)(arg1)->GetImage(); | |
20721 | ||
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
15afbcd0 | 20725 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20726 | return resultobj; |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20735 | long result; | |
20736 | PyObject * obj0 = 0 ; | |
20737 | char *kwnames[] = { | |
20738 | (char *) "self", NULL | |
20739 | }; | |
20740 | ||
20741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20744 | { |
20745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20746 | result = (long)(arg1)->GetData(); | |
20747 | ||
20748 | wxPyEndAllowThreads(__tstate); | |
20749 | if (PyErr_Occurred()) SWIG_fail; | |
20750 | } | |
15afbcd0 | 20751 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20752 | return resultobj; |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20761 | long result; | |
20762 | PyObject * obj0 = 0 ; | |
20763 | char *kwnames[] = { | |
20764 | (char *) "self", NULL | |
20765 | }; | |
20766 | ||
20767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20770 | { |
20771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20772 | result = (long)(arg1)->GetMask(); | |
20773 | ||
20774 | wxPyEndAllowThreads(__tstate); | |
20775 | if (PyErr_Occurred()) SWIG_fail; | |
20776 | } | |
15afbcd0 | 20777 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20778 | return resultobj; |
20779 | fail: | |
20780 | return NULL; | |
20781 | } | |
20782 | ||
20783 | ||
20784 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20785 | PyObject *resultobj; | |
20786 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20787 | wxListItem *result; | |
20788 | PyObject * obj0 = 0 ; | |
20789 | char *kwnames[] = { | |
20790 | (char *) "self", NULL | |
20791 | }; | |
20792 | ||
20793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20796 | { |
20797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20798 | { | |
20799 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20800 | result = (wxListItem *) &_result_ref; | |
20801 | } | |
20802 | ||
20803 | wxPyEndAllowThreads(__tstate); | |
20804 | if (PyErr_Occurred()) SWIG_fail; | |
20805 | } | |
15afbcd0 | 20806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20807 | return resultobj; |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20816 | long result; | |
20817 | PyObject * obj0 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20825 | { |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | result = (long)(arg1)->GetCacheFrom(); | |
20828 | ||
20829 | wxPyEndAllowThreads(__tstate); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
15afbcd0 | 20832 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20833 | return resultobj; |
20834 | fail: | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
20839 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20840 | PyObject *resultobj; | |
20841 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20842 | long result; | |
20843 | PyObject * obj0 = 0 ; | |
20844 | char *kwnames[] = { | |
20845 | (char *) "self", NULL | |
20846 | }; | |
20847 | ||
20848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20851 | { |
20852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20853 | result = (long)(arg1)->GetCacheTo(); | |
20854 | ||
20855 | wxPyEndAllowThreads(__tstate); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
15afbcd0 | 20858 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20859 | return resultobj; |
20860 | fail: | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
20865 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20866 | PyObject *resultobj; | |
20867 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20868 | bool result; | |
20869 | PyObject * obj0 = 0 ; | |
20870 | char *kwnames[] = { | |
20871 | (char *) "self", NULL | |
20872 | }; | |
20873 | ||
20874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20877 | { |
20878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20879 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20880 | ||
20881 | wxPyEndAllowThreads(__tstate); | |
20882 | if (PyErr_Occurred()) SWIG_fail; | |
20883 | } | |
4f89f6a3 RD |
20884 | { |
20885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20886 | } | |
d14a1e28 RD |
20887 | return resultobj; |
20888 | fail: | |
20889 | return NULL; | |
20890 | } | |
20891 | ||
20892 | ||
20893 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20894 | PyObject *resultobj; | |
20895 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20896 | bool arg2 ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | PyObject * obj1 = 0 ; | |
20899 | char *kwnames[] = { | |
20900 | (char *) "self",(char *) "editCancelled", NULL | |
20901 | }; | |
20902 | ||
20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20906 | arg2 = (bool) SWIG_AsBool(obj1); | |
20907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20908 | { |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | (arg1)->SetEditCanceled(arg2); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | Py_INCREF(Py_None); resultobj = Py_None; | |
20916 | return resultobj; | |
20917 | fail: | |
20918 | return NULL; | |
20919 | } | |
20920 | ||
20921 | ||
20922 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20923 | PyObject *obj; | |
20924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20925 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20926 | Py_INCREF(obj); | |
20927 | return Py_BuildValue((char *)""); | |
20928 | } | |
20929 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20930 | PyObject *resultobj; | |
20931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20932 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20933 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20934 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20935 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20936 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20937 | long arg5 = (long) wxLC_ICON ; | |
20938 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20939 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20940 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20941 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20942 | wxPyListCtrl *result; | |
20943 | wxPoint temp3 ; | |
20944 | wxSize temp4 ; | |
e811c8ce | 20945 | bool temp7 = False ; |
d14a1e28 | 20946 | PyObject * obj0 = 0 ; |
994141e6 | 20947 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20948 | PyObject * obj2 = 0 ; |
20949 | PyObject * obj3 = 0 ; | |
994141e6 | 20950 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20951 | PyObject * obj5 = 0 ; |
20952 | PyObject * obj6 = 0 ; | |
20953 | char *kwnames[] = { | |
20954 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20955 | }; | |
20956 | ||
994141e6 | 20957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
20958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 20960 | if (obj1) { |
15afbcd0 RD |
20961 | arg2 = (int) SWIG_AsInt(obj1); |
20962 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20963 | } |
d14a1e28 RD |
20964 | if (obj2) { |
20965 | { | |
20966 | arg3 = &temp3; | |
20967 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20968 | } | |
20969 | } | |
20970 | if (obj3) { | |
20971 | { | |
20972 | arg4 = &temp4; | |
20973 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20974 | } | |
20975 | } | |
994141e6 | 20976 | if (obj4) { |
15afbcd0 RD |
20977 | arg5 = (long) SWIG_AsLong(obj4); |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20979 | } |
d14a1e28 | 20980 | if (obj5) { |
15afbcd0 RD |
20981 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
20982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20983 | SWIG_fail; | |
d14a1e28 | 20984 | if (arg6 == NULL) { |
15afbcd0 RD |
20985 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20986 | SWIG_fail; | |
d14a1e28 RD |
20987 | } |
20988 | } | |
20989 | if (obj6) { | |
20990 | { | |
20991 | arg7 = wxString_in_helper(obj6); | |
20992 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20993 | temp7 = True; |
d14a1e28 RD |
20994 | } |
20995 | } | |
20996 | { | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20999 | ||
21000 | wxPyEndAllowThreads(__tstate); | |
21001 | if (PyErr_Occurred()) SWIG_fail; | |
21002 | } | |
15afbcd0 | 21003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21004 | { |
21005 | if (temp7) | |
21006 | delete arg7; | |
21007 | } | |
21008 | return resultobj; | |
21009 | fail: | |
21010 | { | |
21011 | if (temp7) | |
21012 | delete arg7; | |
21013 | } | |
21014 | return NULL; | |
21015 | } | |
21016 | ||
21017 | ||
21018 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21019 | PyObject *resultobj; | |
21020 | wxPyListCtrl *result; | |
21021 | char *kwnames[] = { | |
21022 | NULL | |
21023 | }; | |
21024 | ||
21025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
15afbcd0 | 21033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21034 | return resultobj; |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj; | |
21042 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21043 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21044 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21045 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21046 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21047 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21048 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21049 | long arg6 = (long) wxLC_ICON ; | |
21050 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21051 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21052 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21053 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21054 | bool result; | |
21055 | wxPoint temp4 ; | |
21056 | wxSize temp5 ; | |
e811c8ce | 21057 | bool temp8 = False ; |
d14a1e28 RD |
21058 | PyObject * obj0 = 0 ; |
21059 | PyObject * obj1 = 0 ; | |
994141e6 | 21060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21061 | PyObject * obj3 = 0 ; |
21062 | PyObject * obj4 = 0 ; | |
994141e6 | 21063 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21064 | PyObject * obj6 = 0 ; |
21065 | PyObject * obj7 = 0 ; | |
21066 | char *kwnames[] = { | |
21067 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21068 | }; | |
21069 | ||
994141e6 | 21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21075 | if (obj2) { |
15afbcd0 RD |
21076 | arg3 = (int) SWIG_AsInt(obj2); |
21077 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21078 | } |
d14a1e28 RD |
21079 | if (obj3) { |
21080 | { | |
21081 | arg4 = &temp4; | |
21082 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21083 | } | |
21084 | } | |
21085 | if (obj4) { | |
21086 | { | |
21087 | arg5 = &temp5; | |
21088 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21089 | } | |
21090 | } | |
994141e6 | 21091 | if (obj5) { |
15afbcd0 RD |
21092 | arg6 = (long) SWIG_AsLong(obj5); |
21093 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21094 | } |
d14a1e28 | 21095 | if (obj6) { |
15afbcd0 RD |
21096 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21098 | SWIG_fail; | |
d14a1e28 | 21099 | if (arg7 == NULL) { |
15afbcd0 RD |
21100 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21101 | SWIG_fail; | |
d14a1e28 RD |
21102 | } |
21103 | } | |
21104 | if (obj7) { | |
21105 | { | |
21106 | arg8 = wxString_in_helper(obj7); | |
21107 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21108 | temp8 = True; |
d14a1e28 RD |
21109 | } |
21110 | } | |
21111 | { | |
21112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21113 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21114 | ||
21115 | wxPyEndAllowThreads(__tstate); | |
21116 | if (PyErr_Occurred()) SWIG_fail; | |
21117 | } | |
4f89f6a3 RD |
21118 | { |
21119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21120 | } | |
d14a1e28 RD |
21121 | { |
21122 | if (temp8) | |
21123 | delete arg8; | |
21124 | } | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | { | |
21128 | if (temp8) | |
21129 | delete arg8; | |
21130 | } | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
21135 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21136 | PyObject *resultobj; | |
21137 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21138 | PyObject *arg2 = (PyObject *) 0 ; | |
21139 | PyObject *arg3 = (PyObject *) 0 ; | |
21140 | PyObject * obj0 = 0 ; | |
21141 | PyObject * obj1 = 0 ; | |
21142 | PyObject * obj2 = 0 ; | |
21143 | char *kwnames[] = { | |
21144 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21145 | }; | |
21146 | ||
21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21150 | arg2 = obj1; |
21151 | arg3 = obj2; | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21154 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21155 | ||
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
21159 | Py_INCREF(Py_None); resultobj = Py_None; | |
21160 | return resultobj; | |
21161 | fail: | |
21162 | return NULL; | |
21163 | } | |
21164 | ||
21165 | ||
21166 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21167 | PyObject *resultobj; | |
21168 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21169 | wxColour *arg2 = 0 ; | |
21170 | bool result; | |
21171 | wxColour temp2 ; | |
21172 | PyObject * obj0 = 0 ; | |
21173 | PyObject * obj1 = 0 ; | |
21174 | char *kwnames[] = { | |
21175 | (char *) "self",(char *) "col", NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21181 | { |
21182 | arg2 = &temp2; | |
21183 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21184 | } | |
21185 | { | |
21186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21187 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
4f89f6a3 RD |
21192 | { |
21193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21194 | } | |
d14a1e28 RD |
21195 | return resultobj; |
21196 | fail: | |
21197 | return NULL; | |
21198 | } | |
21199 | ||
21200 | ||
21201 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21202 | PyObject *resultobj; | |
21203 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21204 | wxColour *arg2 = 0 ; | |
21205 | bool result; | |
21206 | wxColour temp2 ; | |
21207 | PyObject * obj0 = 0 ; | |
21208 | PyObject * obj1 = 0 ; | |
21209 | char *kwnames[] = { | |
21210 | (char *) "self",(char *) "col", NULL | |
21211 | }; | |
21212 | ||
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21216 | { |
21217 | arg2 = &temp2; | |
21218 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21219 | } | |
21220 | { | |
21221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21222 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21223 | ||
21224 | wxPyEndAllowThreads(__tstate); | |
21225 | if (PyErr_Occurred()) SWIG_fail; | |
21226 | } | |
4f89f6a3 RD |
21227 | { |
21228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21229 | } | |
d14a1e28 RD |
21230 | return resultobj; |
21231 | fail: | |
21232 | return NULL; | |
21233 | } | |
21234 | ||
21235 | ||
21236 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21237 | PyObject *resultobj; | |
21238 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21239 | int arg2 ; | |
21240 | wxListItem *result; | |
21241 | PyObject * obj0 = 0 ; | |
994141e6 | 21242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21243 | char *kwnames[] = { |
21244 | (char *) "self",(char *) "col", NULL | |
21245 | }; | |
21246 | ||
994141e6 | 21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21250 | arg2 = (int) SWIG_AsInt(obj1); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21252 | { |
21253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21254 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21255 | ||
21256 | wxPyEndAllowThreads(__tstate); | |
21257 | if (PyErr_Occurred()) SWIG_fail; | |
21258 | } | |
21259 | { | |
21260 | resultobj = wxPyMake_wxObject(result); | |
21261 | } | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21269 | PyObject *resultobj; | |
21270 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21271 | int arg2 ; | |
21272 | wxListItem *arg3 = 0 ; | |
21273 | bool result; | |
21274 | PyObject * obj0 = 0 ; | |
994141e6 | 21275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21276 | PyObject * obj2 = 0 ; |
21277 | char *kwnames[] = { | |
21278 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21279 | }; | |
21280 | ||
994141e6 | 21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21284 | arg2 = (int) SWIG_AsInt(obj1); | |
21285 | if (PyErr_Occurred()) SWIG_fail; | |
21286 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21287 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21288 | SWIG_fail; | |
d14a1e28 | 21289 | if (arg3 == NULL) { |
15afbcd0 RD |
21290 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21291 | SWIG_fail; | |
d14a1e28 RD |
21292 | } |
21293 | { | |
21294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21295 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21296 | ||
21297 | wxPyEndAllowThreads(__tstate); | |
21298 | if (PyErr_Occurred()) SWIG_fail; | |
21299 | } | |
4f89f6a3 RD |
21300 | { |
21301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21302 | } | |
d14a1e28 RD |
21303 | return resultobj; |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21312 | int arg2 ; | |
21313 | int result; | |
21314 | PyObject * obj0 = 0 ; | |
994141e6 | 21315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21316 | char *kwnames[] = { |
21317 | (char *) "self",(char *) "col", NULL | |
21318 | }; | |
21319 | ||
994141e6 | 21320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21323 | arg2 = (int) SWIG_AsInt(obj1); | |
21324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21325 | { |
21326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21327 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21328 | ||
21329 | wxPyEndAllowThreads(__tstate); | |
21330 | if (PyErr_Occurred()) SWIG_fail; | |
21331 | } | |
15afbcd0 | 21332 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21333 | return resultobj; |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
21339 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21340 | PyObject *resultobj; | |
21341 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21342 | int arg2 ; | |
21343 | int arg3 ; | |
21344 | bool result; | |
21345 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21346 | PyObject * obj1 = 0 ; |
21347 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21348 | char *kwnames[] = { |
21349 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21350 | }; | |
21351 | ||
994141e6 | 21352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21355 | arg2 = (int) SWIG_AsInt(obj1); | |
21356 | if (PyErr_Occurred()) SWIG_fail; | |
21357 | arg3 = (int) SWIG_AsInt(obj2); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21359 | { |
21360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21361 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21362 | ||
21363 | wxPyEndAllowThreads(__tstate); | |
21364 | if (PyErr_Occurred()) SWIG_fail; | |
21365 | } | |
4f89f6a3 RD |
21366 | { |
21367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21368 | } | |
d14a1e28 RD |
21369 | return resultobj; |
21370 | fail: | |
21371 | return NULL; | |
21372 | } | |
21373 | ||
21374 | ||
21375 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21376 | PyObject *resultobj; | |
21377 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21378 | int result; | |
21379 | PyObject * obj0 = 0 ; | |
21380 | char *kwnames[] = { | |
21381 | (char *) "self", NULL | |
21382 | }; | |
21383 | ||
21384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21387 | { |
21388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21389 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21390 | ||
21391 | wxPyEndAllowThreads(__tstate); | |
21392 | if (PyErr_Occurred()) SWIG_fail; | |
21393 | } | |
15afbcd0 | 21394 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21395 | return resultobj; |
21396 | fail: | |
21397 | return NULL; | |
21398 | } | |
21399 | ||
21400 | ||
21401 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21402 | PyObject *resultobj; | |
21403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21404 | wxRect result; | |
21405 | PyObject * obj0 = 0 ; | |
21406 | char *kwnames[] = { | |
21407 | (char *) "self", NULL | |
21408 | }; | |
21409 | ||
21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21413 | { |
21414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21415 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21416 | ||
21417 | wxPyEndAllowThreads(__tstate); | |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
21419 | } | |
21420 | { | |
21421 | wxRect * resultptr; | |
21422 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21424 | } |
21425 | return resultobj; | |
21426 | fail: | |
21427 | return NULL; | |
21428 | } | |
21429 | ||
21430 | ||
21431 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21432 | PyObject *resultobj; | |
21433 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21434 | long arg2 ; | |
21435 | int arg3 = (int) 0 ; | |
21436 | wxListItem *result; | |
21437 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21438 | PyObject * obj1 = 0 ; |
21439 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21440 | char *kwnames[] = { |
21441 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21442 | }; | |
21443 | ||
994141e6 | 21444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21447 | arg2 = (long) SWIG_AsLong(obj1); | |
21448 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21449 | if (obj2) { |
15afbcd0 RD |
21450 | arg3 = (int) SWIG_AsInt(obj2); |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21452 | } |
d14a1e28 RD |
21453 | { |
21454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21455 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21456 | ||
21457 | wxPyEndAllowThreads(__tstate); | |
21458 | if (PyErr_Occurred()) SWIG_fail; | |
21459 | } | |
21460 | { | |
21461 | resultobj = wxPyMake_wxObject(result); | |
21462 | } | |
21463 | return resultobj; | |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21470 | PyObject *resultobj; | |
21471 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21472 | wxListItem *arg2 = 0 ; | |
21473 | bool result; | |
21474 | PyObject * obj0 = 0 ; | |
21475 | PyObject * obj1 = 0 ; | |
21476 | char *kwnames[] = { | |
21477 | (char *) "self",(char *) "info", NULL | |
21478 | }; | |
21479 | ||
21480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21483 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21484 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21485 | SWIG_fail; | |
d14a1e28 | 21486 | if (arg2 == NULL) { |
15afbcd0 RD |
21487 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21488 | SWIG_fail; | |
d14a1e28 RD |
21489 | } |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21492 | result = (bool)(arg1)->SetItem(*arg2); | |
21493 | ||
21494 | wxPyEndAllowThreads(__tstate); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
21496 | } | |
4f89f6a3 RD |
21497 | { |
21498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21499 | } | |
d14a1e28 RD |
21500 | return resultobj; |
21501 | fail: | |
21502 | return NULL; | |
21503 | } | |
21504 | ||
21505 | ||
21506 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21507 | PyObject *resultobj; | |
21508 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21509 | long arg2 ; | |
21510 | int arg3 ; | |
21511 | wxString *arg4 = 0 ; | |
21512 | int arg5 = (int) -1 ; | |
21513 | long result; | |
e811c8ce | 21514 | bool temp4 = False ; |
d14a1e28 | 21515 | PyObject * obj0 = 0 ; |
994141e6 RD |
21516 | PyObject * obj1 = 0 ; |
21517 | PyObject * obj2 = 0 ; | |
d14a1e28 | 21518 | PyObject * obj3 = 0 ; |
994141e6 | 21519 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21520 | char *kwnames[] = { |
21521 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21522 | }; | |
21523 | ||
994141e6 | 21524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
21525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21527 | arg2 = (long) SWIG_AsLong(obj1); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
21529 | arg3 = (int) SWIG_AsInt(obj2); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21531 | { |
21532 | arg4 = wxString_in_helper(obj3); | |
21533 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 21534 | temp4 = True; |
d14a1e28 | 21535 | } |
994141e6 | 21536 | if (obj4) { |
15afbcd0 RD |
21537 | arg5 = (int) SWIG_AsInt(obj4); |
21538 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21539 | } |
d14a1e28 RD |
21540 | { |
21541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21542 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21543 | ||
21544 | wxPyEndAllowThreads(__tstate); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
21546 | } | |
15afbcd0 | 21547 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21548 | { |
21549 | if (temp4) | |
21550 | delete arg4; | |
21551 | } | |
21552 | return resultobj; | |
21553 | fail: | |
21554 | { | |
21555 | if (temp4) | |
21556 | delete arg4; | |
21557 | } | |
21558 | return NULL; | |
21559 | } | |
21560 | ||
21561 | ||
21562 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21563 | PyObject *resultobj; | |
21564 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21565 | long arg2 ; | |
21566 | long arg3 ; | |
21567 | int result; | |
21568 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21569 | PyObject * obj1 = 0 ; |
21570 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21571 | char *kwnames[] = { |
21572 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21573 | }; | |
21574 | ||
994141e6 | 21575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21578 | arg2 = (long) SWIG_AsLong(obj1); | |
21579 | if (PyErr_Occurred()) SWIG_fail; | |
21580 | arg3 = (long) SWIG_AsLong(obj2); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21582 | { |
21583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21584 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21585 | ||
21586 | wxPyEndAllowThreads(__tstate); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
15afbcd0 | 21589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21590 | return resultobj; |
21591 | fail: | |
21592 | return NULL; | |
21593 | } | |
21594 | ||
21595 | ||
21596 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21597 | PyObject *resultobj; | |
21598 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21599 | long arg2 ; | |
21600 | long arg3 ; | |
21601 | long arg4 ; | |
21602 | bool result; | |
21603 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21604 | PyObject * obj1 = 0 ; |
21605 | PyObject * obj2 = 0 ; | |
21606 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21607 | char *kwnames[] = { |
21608 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21609 | }; | |
21610 | ||
994141e6 | 21611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21614 | arg2 = (long) SWIG_AsLong(obj1); | |
21615 | if (PyErr_Occurred()) SWIG_fail; | |
21616 | arg3 = (long) SWIG_AsLong(obj2); | |
21617 | if (PyErr_Occurred()) SWIG_fail; | |
21618 | arg4 = (long) SWIG_AsLong(obj3); | |
21619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21620 | { |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21623 | ||
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
4f89f6a3 RD |
21627 | { |
21628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21629 | } | |
d14a1e28 RD |
21630 | return resultobj; |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
21636 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21637 | PyObject *resultobj; | |
21638 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21639 | long arg2 ; | |
21640 | int arg3 ; | |
21641 | int arg4 ; | |
21642 | bool result; | |
21643 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21644 | PyObject * obj1 = 0 ; |
21645 | PyObject * obj2 = 0 ; | |
21646 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21647 | char *kwnames[] = { |
21648 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21649 | }; | |
21650 | ||
994141e6 | 21651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21654 | arg2 = (long) SWIG_AsLong(obj1); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | arg3 = (int) SWIG_AsInt(obj2); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
21658 | arg4 = (int) SWIG_AsInt(obj3); | |
21659 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21660 | { |
21661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21662 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21663 | ||
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
4f89f6a3 RD |
21667 | { |
21668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21669 | } | |
d14a1e28 RD |
21670 | return resultobj; |
21671 | fail: | |
21672 | return NULL; | |
21673 | } | |
21674 | ||
21675 | ||
21676 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21677 | PyObject *resultobj; | |
21678 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21679 | long arg2 ; | |
21680 | wxString result; | |
21681 | PyObject * obj0 = 0 ; | |
994141e6 | 21682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21683 | char *kwnames[] = { |
21684 | (char *) "self",(char *) "item", NULL | |
21685 | }; | |
21686 | ||
994141e6 | 21687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21690 | arg2 = (long) SWIG_AsLong(obj1); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21692 | { |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
21699 | { | |
21700 | #if wxUSE_UNICODE | |
21701 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21702 | #else | |
21703 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21704 | #endif | |
21705 | } | |
21706 | return resultobj; | |
21707 | fail: | |
21708 | return NULL; | |
21709 | } | |
21710 | ||
21711 | ||
21712 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21713 | PyObject *resultobj; | |
21714 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21715 | long arg2 ; | |
21716 | wxString *arg3 = 0 ; | |
e811c8ce | 21717 | bool temp3 = False ; |
d14a1e28 | 21718 | PyObject * obj0 = 0 ; |
994141e6 | 21719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21720 | PyObject * obj2 = 0 ; |
21721 | char *kwnames[] = { | |
21722 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21723 | }; | |
21724 | ||
994141e6 | 21725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21728 | arg2 = (long) SWIG_AsLong(obj1); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21730 | { |
21731 | arg3 = wxString_in_helper(obj2); | |
21732 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21733 | temp3 = True; |
d14a1e28 RD |
21734 | } |
21735 | { | |
21736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21737 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21738 | ||
21739 | wxPyEndAllowThreads(__tstate); | |
21740 | if (PyErr_Occurred()) SWIG_fail; | |
21741 | } | |
21742 | Py_INCREF(Py_None); resultobj = Py_None; | |
21743 | { | |
21744 | if (temp3) | |
21745 | delete arg3; | |
21746 | } | |
21747 | return resultobj; | |
21748 | fail: | |
21749 | { | |
21750 | if (temp3) | |
21751 | delete arg3; | |
21752 | } | |
21753 | return NULL; | |
21754 | } | |
21755 | ||
21756 | ||
21757 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21758 | PyObject *resultobj; | |
21759 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21760 | long arg2 ; | |
21761 | long result; | |
21762 | PyObject * obj0 = 0 ; | |
994141e6 | 21763 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21764 | char *kwnames[] = { |
21765 | (char *) "self",(char *) "item", NULL | |
21766 | }; | |
21767 | ||
994141e6 | 21768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21771 | arg2 = (long) SWIG_AsLong(obj1); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21773 | { |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
15afbcd0 | 21780 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21781 | return resultobj; |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
21787 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21788 | PyObject *resultobj; | |
21789 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21790 | long arg2 ; | |
21791 | long arg3 ; | |
21792 | bool result; | |
21793 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21794 | PyObject * obj1 = 0 ; |
21795 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21796 | char *kwnames[] = { |
21797 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21798 | }; | |
21799 | ||
994141e6 | 21800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21803 | arg2 = (long) SWIG_AsLong(obj1); | |
21804 | if (PyErr_Occurred()) SWIG_fail; | |
21805 | arg3 = (long) SWIG_AsLong(obj2); | |
21806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21807 | { |
21808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21809 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21810 | ||
21811 | wxPyEndAllowThreads(__tstate); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | } | |
4f89f6a3 RD |
21814 | { |
21815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21816 | } | |
d14a1e28 RD |
21817 | return resultobj; |
21818 | fail: | |
21819 | return NULL; | |
21820 | } | |
21821 | ||
21822 | ||
21823 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21824 | PyObject *resultobj; | |
21825 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21826 | long arg2 ; | |
21827 | wxPoint result; | |
21828 | PyObject * obj0 = 0 ; | |
994141e6 | 21829 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21830 | char *kwnames[] = { |
21831 | (char *) "self",(char *) "item", NULL | |
21832 | }; | |
21833 | ||
994141e6 | 21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21837 | arg2 = (long) SWIG_AsLong(obj1); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21839 | { |
21840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21841 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21842 | ||
21843 | wxPyEndAllowThreads(__tstate); | |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
21845 | } | |
21846 | { | |
21847 | wxPoint * resultptr; | |
21848 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 21849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21850 | } |
21851 | return resultobj; | |
21852 | fail: | |
21853 | return NULL; | |
21854 | } | |
21855 | ||
21856 | ||
21857 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21858 | PyObject *resultobj; | |
21859 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21860 | long arg2 ; | |
21861 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21862 | wxRect result; | |
21863 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21864 | PyObject * obj1 = 0 ; |
21865 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21866 | char *kwnames[] = { |
21867 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21868 | }; | |
21869 | ||
994141e6 | 21870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21873 | arg2 = (long) SWIG_AsLong(obj1); | |
21874 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21875 | if (obj2) { |
15afbcd0 RD |
21876 | arg3 = (int) SWIG_AsInt(obj2); |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21878 | } |
d14a1e28 RD |
21879 | { |
21880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21881 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21882 | ||
21883 | wxPyEndAllowThreads(__tstate); | |
21884 | if (PyErr_Occurred()) SWIG_fail; | |
21885 | } | |
21886 | { | |
21887 | wxRect * resultptr; | |
21888 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21890 | } |
21891 | return resultobj; | |
21892 | fail: | |
21893 | return NULL; | |
21894 | } | |
21895 | ||
21896 | ||
21897 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21898 | PyObject *resultobj; | |
21899 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21900 | long arg2 ; | |
21901 | wxPoint *arg3 = 0 ; | |
21902 | bool result; | |
21903 | wxPoint temp3 ; | |
21904 | PyObject * obj0 = 0 ; | |
994141e6 | 21905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21906 | PyObject * obj2 = 0 ; |
21907 | char *kwnames[] = { | |
21908 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21909 | }; | |
21910 | ||
994141e6 | 21911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21914 | arg2 = (long) SWIG_AsLong(obj1); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21916 | { |
21917 | arg3 = &temp3; | |
21918 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21919 | } | |
21920 | { | |
21921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21922 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21923 | ||
21924 | wxPyEndAllowThreads(__tstate); | |
21925 | if (PyErr_Occurred()) SWIG_fail; | |
21926 | } | |
4f89f6a3 RD |
21927 | { |
21928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21929 | } | |
d14a1e28 RD |
21930 | return resultobj; |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21939 | int result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | char *kwnames[] = { | |
21942 | (char *) "self", NULL | |
21943 | }; | |
21944 | ||
21945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21948 | { |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
15afbcd0 | 21955 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21956 | return resultobj; |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
21962 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21963 | PyObject *resultobj; | |
21964 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21965 | int result; | |
21966 | PyObject * obj0 = 0 ; | |
21967 | char *kwnames[] = { | |
21968 | (char *) "self", NULL | |
21969 | }; | |
21970 | ||
21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21974 | { |
21975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21976 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21977 | ||
21978 | wxPyEndAllowThreads(__tstate); | |
21979 | if (PyErr_Occurred()) SWIG_fail; | |
21980 | } | |
15afbcd0 | 21981 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21982 | return resultobj; |
21983 | fail: | |
21984 | return NULL; | |
21985 | } | |
21986 | ||
21987 | ||
21988 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21989 | PyObject *resultobj; | |
21990 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21991 | wxSize result; | |
21992 | PyObject * obj0 = 0 ; | |
21993 | char *kwnames[] = { | |
21994 | (char *) "self", NULL | |
21995 | }; | |
21996 | ||
21997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22000 | { |
22001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22002 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22003 | ||
22004 | wxPyEndAllowThreads(__tstate); | |
22005 | if (PyErr_Occurred()) SWIG_fail; | |
22006 | } | |
22007 | { | |
22008 | wxSize * resultptr; | |
22009 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22011 | } |
22012 | return resultobj; | |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22019 | PyObject *resultobj; | |
22020 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22021 | int arg2 ; | |
e811c8ce | 22022 | bool arg3 = (bool) False ; |
d14a1e28 | 22023 | PyObject * obj0 = 0 ; |
994141e6 | 22024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22025 | PyObject * obj2 = 0 ; |
22026 | char *kwnames[] = { | |
22027 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22028 | }; | |
22029 | ||
994141e6 | 22030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22033 | arg2 = (int) SWIG_AsInt(obj1); | |
22034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22035 | if (obj2) { |
15afbcd0 RD |
22036 | arg3 = (bool) SWIG_AsBool(obj2); |
22037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22038 | } |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | (arg1)->SetItemSpacing(arg2,arg3); | |
22042 | ||
22043 | wxPyEndAllowThreads(__tstate); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | Py_INCREF(Py_None); resultobj = Py_None; | |
22047 | return resultobj; | |
22048 | fail: | |
22049 | return NULL; | |
22050 | } | |
22051 | ||
22052 | ||
22053 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22054 | PyObject *resultobj; | |
22055 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22056 | int result; | |
22057 | PyObject * obj0 = 0 ; | |
22058 | char *kwnames[] = { | |
22059 | (char *) "self", NULL | |
22060 | }; | |
22061 | ||
22062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22065 | { |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
15afbcd0 | 22072 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22073 | return resultobj; |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22082 | wxColour result; | |
22083 | PyObject * obj0 = 0 ; | |
22084 | char *kwnames[] = { | |
22085 | (char *) "self", NULL | |
22086 | }; | |
22087 | ||
22088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22091 | { |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | { | |
22099 | wxColour * resultptr; | |
22100 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22102 | } |
22103 | return resultobj; | |
22104 | fail: | |
22105 | return NULL; | |
22106 | } | |
22107 | ||
22108 | ||
22109 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22110 | PyObject *resultobj; | |
22111 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22112 | wxColour *arg2 = 0 ; | |
22113 | wxColour temp2 ; | |
22114 | PyObject * obj0 = 0 ; | |
22115 | PyObject * obj1 = 0 ; | |
22116 | char *kwnames[] = { | |
22117 | (char *) "self",(char *) "col", NULL | |
22118 | }; | |
22119 | ||
22120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22123 | { |
22124 | arg2 = &temp2; | |
22125 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22126 | } | |
22127 | { | |
22128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22129 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22130 | ||
22131 | wxPyEndAllowThreads(__tstate); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | } | |
22134 | Py_INCREF(Py_None); resultobj = Py_None; | |
22135 | return resultobj; | |
22136 | fail: | |
22137 | return NULL; | |
22138 | } | |
22139 | ||
22140 | ||
22141 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22142 | PyObject *resultobj; | |
22143 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22144 | long result; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | char *kwnames[] = { | |
22147 | (char *) "self", NULL | |
22148 | }; | |
22149 | ||
22150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22153 | { |
22154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22155 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22156 | ||
22157 | wxPyEndAllowThreads(__tstate); | |
22158 | if (PyErr_Occurred()) SWIG_fail; | |
22159 | } | |
15afbcd0 | 22160 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22161 | return resultobj; |
22162 | fail: | |
22163 | return NULL; | |
22164 | } | |
22165 | ||
22166 | ||
22167 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22168 | PyObject *resultobj; | |
22169 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22170 | long arg2 ; | |
e811c8ce | 22171 | bool arg3 = (bool) True ; |
d14a1e28 | 22172 | PyObject * obj0 = 0 ; |
994141e6 | 22173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22174 | PyObject * obj2 = 0 ; |
22175 | char *kwnames[] = { | |
22176 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22177 | }; | |
22178 | ||
994141e6 | 22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22182 | arg2 = (long) SWIG_AsLong(obj1); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22184 | if (obj2) { |
15afbcd0 RD |
22185 | arg3 = (bool) SWIG_AsBool(obj2); |
22186 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22187 | } |
22188 | { | |
22189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22190 | (arg1)->SetSingleStyle(arg2,arg3); | |
22191 | ||
22192 | wxPyEndAllowThreads(__tstate); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | Py_INCREF(Py_None); resultobj = Py_None; | |
22196 | return resultobj; | |
22197 | fail: | |
22198 | return NULL; | |
22199 | } | |
22200 | ||
22201 | ||
22202 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22203 | PyObject *resultobj; | |
22204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22205 | long arg2 ; | |
22206 | PyObject * obj0 = 0 ; | |
994141e6 | 22207 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22208 | char *kwnames[] = { |
22209 | (char *) "self",(char *) "style", NULL | |
22210 | }; | |
22211 | ||
994141e6 | 22212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22215 | arg2 = (long) SWIG_AsLong(obj1); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22217 | { |
22218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22219 | (arg1)->SetWindowStyleFlag(arg2); | |
22220 | ||
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
22224 | Py_INCREF(Py_None); resultobj = Py_None; | |
22225 | return resultobj; | |
22226 | fail: | |
22227 | return NULL; | |
22228 | } | |
22229 | ||
22230 | ||
22231 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22232 | PyObject *resultobj; | |
22233 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22234 | long arg2 ; | |
22235 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22236 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22237 | long result; | |
22238 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22239 | PyObject * obj1 = 0 ; |
22240 | PyObject * obj2 = 0 ; | |
22241 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22242 | char *kwnames[] = { |
22243 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22244 | }; | |
22245 | ||
994141e6 | 22246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22249 | arg2 = (long) SWIG_AsLong(obj1); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22251 | if (obj2) { |
15afbcd0 RD |
22252 | arg3 = (int) SWIG_AsInt(obj2); |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22254 | } |
22255 | if (obj3) { | |
15afbcd0 RD |
22256 | arg4 = (int) SWIG_AsInt(obj3); |
22257 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22258 | } |
d14a1e28 RD |
22259 | { |
22260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22261 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22262 | ||
22263 | wxPyEndAllowThreads(__tstate); | |
22264 | if (PyErr_Occurred()) SWIG_fail; | |
22265 | } | |
15afbcd0 | 22266 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22267 | return resultobj; |
22268 | fail: | |
22269 | return NULL; | |
22270 | } | |
22271 | ||
22272 | ||
22273 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22274 | PyObject *resultobj; | |
22275 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22276 | int arg2 ; | |
22277 | wxImageList *result; | |
22278 | PyObject * obj0 = 0 ; | |
994141e6 | 22279 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22280 | char *kwnames[] = { |
22281 | (char *) "self",(char *) "which", NULL | |
22282 | }; | |
22283 | ||
994141e6 | 22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22287 | arg2 = (int) SWIG_AsInt(obj1); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22289 | { |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | { | |
22297 | resultobj = wxPyMake_wxObject(result); | |
22298 | } | |
22299 | return resultobj; | |
22300 | fail: | |
22301 | return NULL; | |
22302 | } | |
22303 | ||
22304 | ||
22305 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22306 | PyObject *resultobj; | |
22307 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22308 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22309 | int arg3 ; | |
22310 | PyObject * obj0 = 0 ; | |
22311 | PyObject * obj1 = 0 ; | |
994141e6 | 22312 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22313 | char *kwnames[] = { |
22314 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22315 | }; | |
22316 | ||
994141e6 | 22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",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 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22322 | arg3 = (int) SWIG_AsInt(obj2); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22324 | { |
22325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22326 | (arg1)->SetImageList(arg2,arg3); | |
22327 | ||
22328 | wxPyEndAllowThreads(__tstate); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | } | |
22331 | Py_INCREF(Py_None); resultobj = Py_None; | |
22332 | return resultobj; | |
22333 | fail: | |
22334 | return NULL; | |
22335 | } | |
22336 | ||
22337 | ||
22338 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22339 | PyObject *resultobj; | |
22340 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22341 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22342 | int arg3 ; | |
22343 | PyObject * obj0 = 0 ; | |
22344 | PyObject * obj1 = 0 ; | |
994141e6 | 22345 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22346 | char *kwnames[] = { |
22347 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22348 | }; | |
22349 | ||
994141e6 | 22350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22354 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22355 | arg3 = (int) SWIG_AsInt(obj2); | |
22356 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22357 | { |
22358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22359 | (arg1)->AssignImageList(arg2,arg3); | |
22360 | ||
22361 | wxPyEndAllowThreads(__tstate); | |
22362 | if (PyErr_Occurred()) SWIG_fail; | |
22363 | } | |
22364 | Py_INCREF(Py_None); resultobj = Py_None; | |
22365 | return resultobj; | |
22366 | fail: | |
22367 | return NULL; | |
22368 | } | |
22369 | ||
22370 | ||
4276dc52 RD |
22371 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
22372 | PyObject *resultobj; | |
22373 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22374 | bool result; | |
22375 | PyObject * obj0 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self", NULL | |
22378 | }; | |
22379 | ||
22380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22383 | { | |
22384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22385 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
4f89f6a3 RD |
22390 | { |
22391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22392 | } | |
4276dc52 RD |
22393 | return resultobj; |
22394 | fail: | |
22395 | return NULL; | |
22396 | } | |
22397 | ||
22398 | ||
d14a1e28 RD |
22399 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
22400 | PyObject *resultobj; | |
22401 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22402 | bool result; | |
22403 | PyObject * obj0 = 0 ; | |
22404 | char *kwnames[] = { | |
22405 | (char *) "self", NULL | |
22406 | }; | |
22407 | ||
22408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22411 | { |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22414 | ||
22415 | wxPyEndAllowThreads(__tstate); | |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
22417 | } | |
4f89f6a3 RD |
22418 | { |
22419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22420 | } | |
d14a1e28 RD |
22421 | return resultobj; |
22422 | fail: | |
22423 | return NULL; | |
22424 | } | |
22425 | ||
22426 | ||
22427 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22428 | PyObject *resultobj; | |
22429 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22430 | long arg2 ; | |
22431 | PyObject * obj0 = 0 ; | |
994141e6 | 22432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22433 | char *kwnames[] = { |
22434 | (char *) "self",(char *) "item", NULL | |
22435 | }; | |
22436 | ||
994141e6 | 22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22440 | arg2 = (long) SWIG_AsLong(obj1); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22442 | { |
22443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22444 | (arg1)->RefreshItem(arg2); | |
22445 | ||
22446 | wxPyEndAllowThreads(__tstate); | |
22447 | if (PyErr_Occurred()) SWIG_fail; | |
22448 | } | |
22449 | Py_INCREF(Py_None); resultobj = Py_None; | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22459 | long arg2 ; | |
22460 | long arg3 ; | |
22461 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22462 | PyObject * obj1 = 0 ; |
22463 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22464 | char *kwnames[] = { |
22465 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22466 | }; | |
22467 | ||
994141e6 | 22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | arg2 = (long) SWIG_AsLong(obj1); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | arg3 = (long) SWIG_AsLong(obj2); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22475 | { |
22476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22477 | (arg1)->RefreshItems(arg2,arg3); | |
22478 | ||
22479 | wxPyEndAllowThreads(__tstate); | |
22480 | if (PyErr_Occurred()) SWIG_fail; | |
22481 | } | |
22482 | Py_INCREF(Py_None); resultobj = Py_None; | |
22483 | return resultobj; | |
22484 | fail: | |
22485 | return NULL; | |
22486 | } | |
22487 | ||
22488 | ||
22489 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22490 | PyObject *resultobj; | |
22491 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22492 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22493 | bool result; | |
22494 | PyObject * obj0 = 0 ; | |
994141e6 | 22495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22496 | char *kwnames[] = { |
22497 | (char *) "self",(char *) "flag", NULL | |
22498 | }; | |
22499 | ||
994141e6 | 22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22503 | if (obj1) { |
15afbcd0 RD |
22504 | arg2 = (int) SWIG_AsInt(obj1); |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22506 | } |
d14a1e28 RD |
22507 | { |
22508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22509 | result = (bool)(arg1)->Arrange(arg2); | |
22510 | ||
22511 | wxPyEndAllowThreads(__tstate); | |
22512 | if (PyErr_Occurred()) SWIG_fail; | |
22513 | } | |
4f89f6a3 RD |
22514 | { |
22515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22516 | } | |
d14a1e28 RD |
22517 | return resultobj; |
22518 | fail: | |
22519 | return NULL; | |
22520 | } | |
22521 | ||
22522 | ||
22523 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22524 | PyObject *resultobj; | |
22525 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22526 | long arg2 ; | |
22527 | bool result; | |
22528 | PyObject * obj0 = 0 ; | |
994141e6 | 22529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22530 | char *kwnames[] = { |
22531 | (char *) "self",(char *) "item", NULL | |
22532 | }; | |
22533 | ||
994141e6 | 22534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22537 | arg2 = (long) SWIG_AsLong(obj1); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22539 | { |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | result = (bool)(arg1)->DeleteItem(arg2); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
4f89f6a3 RD |
22546 | { |
22547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22548 | } | |
d14a1e28 RD |
22549 | return resultobj; |
22550 | fail: | |
22551 | return NULL; | |
22552 | } | |
22553 | ||
22554 | ||
22555 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22556 | PyObject *resultobj; | |
22557 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22558 | bool result; | |
22559 | PyObject * obj0 = 0 ; | |
22560 | char *kwnames[] = { | |
22561 | (char *) "self", NULL | |
22562 | }; | |
22563 | ||
22564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22567 | { |
22568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22569 | result = (bool)(arg1)->DeleteAllItems(); | |
22570 | ||
22571 | wxPyEndAllowThreads(__tstate); | |
22572 | if (PyErr_Occurred()) SWIG_fail; | |
22573 | } | |
4f89f6a3 RD |
22574 | { |
22575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22576 | } | |
d14a1e28 RD |
22577 | return resultobj; |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22586 | int arg2 ; | |
22587 | bool result; | |
22588 | PyObject * obj0 = 0 ; | |
994141e6 | 22589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22590 | char *kwnames[] = { |
22591 | (char *) "self",(char *) "col", NULL | |
22592 | }; | |
22593 | ||
994141e6 | 22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22597 | arg2 = (int) SWIG_AsInt(obj1); | |
22598 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22599 | { |
22600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22601 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
4f89f6a3 RD |
22606 | { |
22607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22608 | } | |
d14a1e28 RD |
22609 | return resultobj; |
22610 | fail: | |
22611 | return NULL; | |
22612 | } | |
22613 | ||
22614 | ||
22615 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22616 | PyObject *resultobj; | |
22617 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22618 | bool result; | |
22619 | PyObject * obj0 = 0 ; | |
22620 | char *kwnames[] = { | |
22621 | (char *) "self", NULL | |
22622 | }; | |
22623 | ||
22624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22627 | { |
22628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22629 | result = (bool)(arg1)->DeleteAllColumns(); | |
22630 | ||
22631 | wxPyEndAllowThreads(__tstate); | |
22632 | if (PyErr_Occurred()) SWIG_fail; | |
22633 | } | |
4f89f6a3 RD |
22634 | { |
22635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22636 | } | |
d14a1e28 RD |
22637 | return resultobj; |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj; | |
22645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22646 | PyObject * obj0 = 0 ; | |
22647 | char *kwnames[] = { | |
22648 | (char *) "self", NULL | |
22649 | }; | |
22650 | ||
22651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22654 | { |
22655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22656 | (arg1)->ClearAll(); | |
22657 | ||
22658 | wxPyEndAllowThreads(__tstate); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
22661 | Py_INCREF(Py_None); resultobj = Py_None; | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
22665 | } | |
22666 | ||
22667 | ||
22668 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22669 | PyObject *resultobj; | |
22670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22671 | long arg2 ; | |
22672 | PyObject * obj0 = 0 ; | |
994141e6 | 22673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22674 | char *kwnames[] = { |
22675 | (char *) "self",(char *) "item", NULL | |
22676 | }; | |
22677 | ||
994141e6 | 22678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22681 | arg2 = (long) SWIG_AsLong(obj1); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22683 | { |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | (arg1)->EditLabel(arg2); | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | Py_INCREF(Py_None); resultobj = Py_None; | |
22691 | return resultobj; | |
22692 | fail: | |
22693 | return NULL; | |
22694 | } | |
22695 | ||
22696 | ||
22697 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22698 | PyObject *resultobj; | |
22699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22700 | long arg2 ; | |
22701 | bool result; | |
22702 | PyObject * obj0 = 0 ; | |
994141e6 | 22703 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22704 | char *kwnames[] = { |
22705 | (char *) "self",(char *) "item", NULL | |
22706 | }; | |
22707 | ||
994141e6 | 22708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22711 | arg2 = (long) SWIG_AsLong(obj1); | |
22712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22713 | { |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
4f89f6a3 RD |
22720 | { |
22721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22722 | } | |
d14a1e28 RD |
22723 | return resultobj; |
22724 | fail: | |
22725 | return NULL; | |
22726 | } | |
22727 | ||
22728 | ||
22729 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22730 | PyObject *resultobj; | |
22731 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22732 | long arg2 ; | |
22733 | wxString *arg3 = 0 ; | |
e811c8ce | 22734 | bool arg4 = (bool) False ; |
d14a1e28 | 22735 | long result; |
e811c8ce | 22736 | bool temp3 = False ; |
d14a1e28 | 22737 | PyObject * obj0 = 0 ; |
994141e6 | 22738 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22739 | PyObject * obj2 = 0 ; |
22740 | PyObject * obj3 = 0 ; | |
22741 | char *kwnames[] = { | |
22742 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22743 | }; | |
22744 | ||
994141e6 | 22745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22748 | arg2 = (long) SWIG_AsLong(obj1); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22750 | { |
22751 | arg3 = wxString_in_helper(obj2); | |
22752 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22753 | temp3 = True; |
d14a1e28 RD |
22754 | } |
22755 | if (obj3) { | |
15afbcd0 RD |
22756 | arg4 = (bool) SWIG_AsBool(obj3); |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22758 | } |
22759 | { | |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22762 | ||
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
15afbcd0 | 22766 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22767 | { |
22768 | if (temp3) | |
22769 | delete arg3; | |
22770 | } | |
22771 | return resultobj; | |
22772 | fail: | |
22773 | { | |
22774 | if (temp3) | |
22775 | delete arg3; | |
22776 | } | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
22781 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22782 | PyObject *resultobj; | |
22783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22784 | long arg2 ; | |
22785 | long arg3 ; | |
22786 | long result; | |
22787 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22788 | PyObject * obj1 = 0 ; |
22789 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22790 | char *kwnames[] = { |
22791 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22792 | }; | |
22793 | ||
994141e6 | 22794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22797 | arg2 = (long) SWIG_AsLong(obj1); | |
22798 | if (PyErr_Occurred()) SWIG_fail; | |
22799 | arg3 = (long) SWIG_AsLong(obj2); | |
22800 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22801 | { |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22804 | ||
22805 | wxPyEndAllowThreads(__tstate); | |
22806 | if (PyErr_Occurred()) SWIG_fail; | |
22807 | } | |
15afbcd0 | 22808 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22809 | return resultobj; |
22810 | fail: | |
22811 | return NULL; | |
22812 | } | |
22813 | ||
22814 | ||
22815 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22816 | PyObject *resultobj; | |
22817 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22818 | long arg2 ; | |
22819 | wxPoint *arg3 = 0 ; | |
22820 | int arg4 ; | |
22821 | long result; | |
22822 | wxPoint temp3 ; | |
22823 | PyObject * obj0 = 0 ; | |
994141e6 | 22824 | PyObject * obj1 = 0 ; |
d14a1e28 | 22825 | PyObject * obj2 = 0 ; |
994141e6 | 22826 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22827 | char *kwnames[] = { |
22828 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22829 | }; | |
22830 | ||
994141e6 | 22831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22834 | arg2 = (long) SWIG_AsLong(obj1); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22836 | { |
22837 | arg3 = &temp3; | |
22838 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22839 | } | |
15afbcd0 RD |
22840 | arg4 = (int) SWIG_AsInt(obj3); |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22842 | { |
22843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22844 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22845 | ||
22846 | wxPyEndAllowThreads(__tstate); | |
22847 | if (PyErr_Occurred()) SWIG_fail; | |
22848 | } | |
15afbcd0 | 22849 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22850 | return resultobj; |
22851 | fail: | |
22852 | return NULL; | |
22853 | } | |
22854 | ||
22855 | ||
22856 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22857 | PyObject *resultobj; | |
22858 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22859 | wxPoint *arg2 = 0 ; | |
22860 | int *arg3 = 0 ; | |
22861 | long result; | |
22862 | wxPoint temp2 ; | |
22863 | int temp3 ; | |
22864 | PyObject * obj0 = 0 ; | |
22865 | PyObject * obj1 = 0 ; | |
22866 | char *kwnames[] = { | |
22867 | (char *) "self",(char *) "point", NULL | |
22868 | }; | |
22869 | ||
22870 | arg3 = &temp3; | |
22871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22874 | { |
22875 | arg2 = &temp2; | |
22876 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22877 | } | |
22878 | { | |
22879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22880 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22881 | ||
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
15afbcd0 | 22885 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22886 | { |
22887 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22888 | resultobj = t_output_helper(resultobj,o); | |
22889 | } | |
22890 | return resultobj; | |
22891 | fail: | |
22892 | return NULL; | |
22893 | } | |
22894 | ||
22895 | ||
22896 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22897 | PyObject *resultobj; | |
22898 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22899 | wxListItem *arg2 = 0 ; | |
22900 | long result; | |
22901 | PyObject * obj0 = 0 ; | |
22902 | PyObject * obj1 = 0 ; | |
22903 | char *kwnames[] = { | |
22904 | (char *) "self",(char *) "info", NULL | |
22905 | }; | |
22906 | ||
22907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22911 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22912 | SWIG_fail; | |
d14a1e28 | 22913 | if (arg2 == NULL) { |
15afbcd0 RD |
22914 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22915 | SWIG_fail; | |
d14a1e28 RD |
22916 | } |
22917 | { | |
22918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22919 | result = (long)(arg1)->InsertItem(*arg2); | |
22920 | ||
22921 | wxPyEndAllowThreads(__tstate); | |
22922 | if (PyErr_Occurred()) SWIG_fail; | |
22923 | } | |
15afbcd0 | 22924 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22925 | return resultobj; |
22926 | fail: | |
22927 | return NULL; | |
22928 | } | |
22929 | ||
22930 | ||
22931 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22932 | PyObject *resultobj; | |
22933 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22934 | long arg2 ; | |
22935 | wxString *arg3 = 0 ; | |
22936 | long result; | |
e811c8ce | 22937 | bool temp3 = False ; |
d14a1e28 | 22938 | PyObject * obj0 = 0 ; |
994141e6 | 22939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22940 | PyObject * obj2 = 0 ; |
22941 | char *kwnames[] = { | |
22942 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22943 | }; | |
22944 | ||
994141e6 | 22945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22948 | arg2 = (long) SWIG_AsLong(obj1); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22950 | { |
22951 | arg3 = wxString_in_helper(obj2); | |
22952 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22953 | temp3 = True; |
d14a1e28 RD |
22954 | } |
22955 | { | |
22956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22957 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
15afbcd0 | 22962 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22963 | { |
22964 | if (temp3) | |
22965 | delete arg3; | |
22966 | } | |
22967 | return resultobj; | |
22968 | fail: | |
22969 | { | |
22970 | if (temp3) | |
22971 | delete arg3; | |
22972 | } | |
22973 | return NULL; | |
22974 | } | |
22975 | ||
22976 | ||
22977 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22978 | PyObject *resultobj; | |
22979 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22980 | long arg2 ; | |
22981 | int arg3 ; | |
22982 | long result; | |
22983 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22984 | PyObject * obj1 = 0 ; |
22985 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22986 | char *kwnames[] = { |
22987 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22988 | }; | |
22989 | ||
994141e6 | 22990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22993 | arg2 = (long) SWIG_AsLong(obj1); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | arg3 = (int) SWIG_AsInt(obj2); | |
22996 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22997 | { |
22998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22999 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23000 | ||
23001 | wxPyEndAllowThreads(__tstate); | |
23002 | if (PyErr_Occurred()) SWIG_fail; | |
23003 | } | |
15afbcd0 | 23004 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23005 | return resultobj; |
23006 | fail: | |
23007 | return NULL; | |
23008 | } | |
23009 | ||
23010 | ||
23011 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23012 | PyObject *resultobj; | |
23013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23014 | long arg2 ; | |
23015 | wxString *arg3 = 0 ; | |
23016 | int arg4 ; | |
23017 | long result; | |
e811c8ce | 23018 | bool temp3 = False ; |
d14a1e28 | 23019 | PyObject * obj0 = 0 ; |
994141e6 | 23020 | PyObject * obj1 = 0 ; |
d14a1e28 | 23021 | PyObject * obj2 = 0 ; |
994141e6 | 23022 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23023 | char *kwnames[] = { |
23024 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23025 | }; | |
23026 | ||
994141e6 | 23027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23030 | arg2 = (long) SWIG_AsLong(obj1); | |
23031 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23032 | { |
23033 | arg3 = wxString_in_helper(obj2); | |
23034 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23035 | temp3 = True; |
d14a1e28 | 23036 | } |
15afbcd0 RD |
23037 | arg4 = (int) SWIG_AsInt(obj3); |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23039 | { |
23040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23041 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23042 | ||
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
15afbcd0 | 23046 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23047 | { |
23048 | if (temp3) | |
23049 | delete arg3; | |
23050 | } | |
23051 | return resultobj; | |
23052 | fail: | |
23053 | { | |
23054 | if (temp3) | |
23055 | delete arg3; | |
23056 | } | |
23057 | return NULL; | |
23058 | } | |
23059 | ||
23060 | ||
23061 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23062 | PyObject *resultobj; | |
23063 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23064 | long arg2 ; | |
23065 | wxListItem *arg3 = 0 ; | |
23066 | long result; | |
23067 | PyObject * obj0 = 0 ; | |
994141e6 | 23068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23069 | PyObject * obj2 = 0 ; |
23070 | char *kwnames[] = { | |
23071 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23072 | }; | |
23073 | ||
994141e6 | 23074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23077 | arg2 = (long) SWIG_AsLong(obj1); | |
23078 | if (PyErr_Occurred()) SWIG_fail; | |
23079 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23081 | SWIG_fail; | |
d14a1e28 | 23082 | if (arg3 == NULL) { |
15afbcd0 RD |
23083 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23084 | SWIG_fail; | |
d14a1e28 RD |
23085 | } |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
15afbcd0 | 23093 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23094 | return resultobj; |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23101 | PyObject *resultobj; | |
23102 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23103 | long arg2 ; | |
23104 | wxString *arg3 = 0 ; | |
23105 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23106 | int arg5 = (int) -1 ; | |
23107 | long result; | |
e811c8ce | 23108 | bool temp3 = False ; |
d14a1e28 | 23109 | PyObject * obj0 = 0 ; |
994141e6 | 23110 | PyObject * obj1 = 0 ; |
d14a1e28 | 23111 | PyObject * obj2 = 0 ; |
994141e6 RD |
23112 | PyObject * obj3 = 0 ; |
23113 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23114 | char *kwnames[] = { |
23115 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23116 | }; | |
23117 | ||
994141e6 | 23118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23121 | arg2 = (long) SWIG_AsLong(obj1); | |
23122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23123 | { |
23124 | arg3 = wxString_in_helper(obj2); | |
23125 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23126 | temp3 = True; |
d14a1e28 | 23127 | } |
994141e6 | 23128 | if (obj3) { |
15afbcd0 RD |
23129 | arg4 = (int) SWIG_AsInt(obj3); |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23131 | } |
23132 | if (obj4) { | |
15afbcd0 RD |
23133 | arg5 = (int) SWIG_AsInt(obj4); |
23134 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23135 | } |
d14a1e28 RD |
23136 | { |
23137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23138 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23139 | ||
23140 | wxPyEndAllowThreads(__tstate); | |
23141 | if (PyErr_Occurred()) SWIG_fail; | |
23142 | } | |
15afbcd0 | 23143 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23144 | { |
23145 | if (temp3) | |
23146 | delete arg3; | |
23147 | } | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | { | |
23151 | if (temp3) | |
23152 | delete arg3; | |
23153 | } | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
23158 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23159 | PyObject *resultobj; | |
23160 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23161 | long arg2 ; | |
23162 | PyObject * obj0 = 0 ; | |
994141e6 | 23163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23164 | char *kwnames[] = { |
23165 | (char *) "self",(char *) "count", NULL | |
23166 | }; | |
23167 | ||
994141e6 | 23168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23171 | arg2 = (long) SWIG_AsLong(obj1); | |
23172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23173 | { |
23174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23175 | (arg1)->SetItemCount(arg2); | |
23176 | ||
23177 | wxPyEndAllowThreads(__tstate); | |
23178 | if (PyErr_Occurred()) SWIG_fail; | |
23179 | } | |
23180 | Py_INCREF(Py_None); resultobj = Py_None; | |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
23187 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23188 | PyObject *resultobj; | |
23189 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23190 | int arg2 ; | |
23191 | int arg3 ; | |
23192 | bool result; | |
23193 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23194 | PyObject * obj1 = 0 ; |
23195 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23196 | char *kwnames[] = { |
23197 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23198 | }; | |
23199 | ||
994141e6 | 23200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23203 | arg2 = (int) SWIG_AsInt(obj1); | |
23204 | if (PyErr_Occurred()) SWIG_fail; | |
23205 | arg3 = (int) SWIG_AsInt(obj2); | |
23206 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23207 | { |
23208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23209 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23210 | ||
23211 | wxPyEndAllowThreads(__tstate); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | } | |
4f89f6a3 RD |
23214 | { |
23215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23216 | } | |
d14a1e28 RD |
23217 | return resultobj; |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23224 | PyObject *resultobj; | |
23225 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23226 | long arg2 ; | |
23227 | wxColour *arg3 = 0 ; | |
23228 | wxColour temp3 ; | |
23229 | PyObject * obj0 = 0 ; | |
994141e6 | 23230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23231 | PyObject * obj2 = 0 ; |
23232 | char *kwnames[] = { | |
23233 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23234 | }; | |
23235 | ||
994141e6 | 23236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23239 | arg2 = (long) SWIG_AsLong(obj1); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23241 | { |
23242 | arg3 = &temp3; | |
23243 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23244 | } | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | Py_INCREF(Py_None); resultobj = Py_None; | |
23253 | return resultobj; | |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23260 | PyObject *resultobj; | |
23261 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23262 | long arg2 ; | |
23263 | wxColour result; | |
23264 | PyObject * obj0 = 0 ; | |
994141e6 | 23265 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23266 | char *kwnames[] = { |
23267 | (char *) "self",(char *) "item", NULL | |
23268 | }; | |
23269 | ||
994141e6 | 23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23273 | arg2 = (long) SWIG_AsLong(obj1); | |
23274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23275 | { |
23276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23277 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23278 | ||
23279 | wxPyEndAllowThreads(__tstate); | |
23280 | if (PyErr_Occurred()) SWIG_fail; | |
23281 | } | |
23282 | { | |
23283 | wxColour * resultptr; | |
23284 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23285 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23286 | } |
23287 | return resultobj; | |
23288 | fail: | |
23289 | return NULL; | |
23290 | } | |
23291 | ||
23292 | ||
23293 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23294 | PyObject *resultobj; | |
23295 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23296 | long arg2 ; | |
23297 | wxColour *arg3 = 0 ; | |
23298 | wxColour temp3 ; | |
23299 | PyObject * obj0 = 0 ; | |
994141e6 | 23300 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23301 | PyObject * obj2 = 0 ; |
23302 | char *kwnames[] = { | |
23303 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23304 | }; | |
23305 | ||
994141e6 | 23306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) 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 | arg3 = &temp3; | |
23313 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23314 | } | |
23315 | { | |
23316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23317 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23318 | ||
23319 | wxPyEndAllowThreads(__tstate); | |
23320 | if (PyErr_Occurred()) SWIG_fail; | |
23321 | } | |
23322 | Py_INCREF(Py_None); resultobj = Py_None; | |
23323 | return resultobj; | |
23324 | fail: | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
23329 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23330 | PyObject *resultobj; | |
23331 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23332 | long arg2 ; | |
23333 | wxColour result; | |
23334 | PyObject * obj0 = 0 ; | |
994141e6 | 23335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23336 | char *kwnames[] = { |
23337 | (char *) "self",(char *) "item", NULL | |
23338 | }; | |
23339 | ||
994141e6 | 23340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23343 | arg2 = (long) SWIG_AsLong(obj1); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23345 | { |
23346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23347 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23348 | ||
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
23352 | { | |
23353 | wxColour * resultptr; | |
23354 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23355 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23356 | } |
23357 | return resultobj; | |
23358 | fail: | |
23359 | return NULL; | |
23360 | } | |
23361 | ||
23362 | ||
23363 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23364 | PyObject *resultobj; | |
23365 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23366 | PyObject *arg2 = (PyObject *) 0 ; | |
23367 | bool result; | |
23368 | PyObject * obj0 = 0 ; | |
23369 | PyObject * obj1 = 0 ; | |
23370 | char *kwnames[] = { | |
23371 | (char *) "self",(char *) "func", NULL | |
23372 | }; | |
23373 | ||
23374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23377 | arg2 = obj1; |
23378 | { | |
23379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23380 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23381 | ||
23382 | wxPyEndAllowThreads(__tstate); | |
23383 | if (PyErr_Occurred()) SWIG_fail; | |
23384 | } | |
4f89f6a3 RD |
23385 | { |
23386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23387 | } | |
d14a1e28 RD |
23388 | return resultobj; |
23389 | fail: | |
23390 | return NULL; | |
23391 | } | |
23392 | ||
23393 | ||
23394 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23395 | PyObject *resultobj; | |
23396 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23397 | wxWindow *result; | |
23398 | PyObject * obj0 = 0 ; | |
23399 | char *kwnames[] = { | |
23400 | (char *) "self", NULL | |
23401 | }; | |
23402 | ||
23403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23406 | { |
23407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23408 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23409 | ||
23410 | wxPyEndAllowThreads(__tstate); | |
23411 | if (PyErr_Occurred()) SWIG_fail; | |
23412 | } | |
23413 | { | |
23414 | resultobj = wxPyMake_wxObject(result); | |
23415 | } | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
74a57fcd RD |
23422 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
23423 | PyObject *resultobj; | |
23424 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23425 | wxVisualAttributes result; | |
23426 | PyObject * obj0 = 0 ; | |
23427 | char *kwnames[] = { | |
23428 | (char *) "variant", NULL | |
23429 | }; | |
23430 | ||
23431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23432 | if (obj0) { | |
23433 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23434 | if (PyErr_Occurred()) SWIG_fail; | |
23435 | } | |
23436 | { | |
23437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23438 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23439 | ||
23440 | wxPyEndAllowThreads(__tstate); | |
23441 | if (PyErr_Occurred()) SWIG_fail; | |
23442 | } | |
23443 | { | |
23444 | wxVisualAttributes * resultptr; | |
23445 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23447 | } | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
d14a1e28 RD |
23454 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { |
23455 | PyObject *obj; | |
23456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23457 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23458 | Py_INCREF(obj); | |
23459 | return Py_BuildValue((char *)""); | |
23460 | } | |
23461 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23462 | PyObject *resultobj; | |
23463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23464 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23465 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23466 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23467 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23468 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23469 | long arg5 = (long) wxLC_REPORT ; | |
23470 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23471 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23472 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23473 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23474 | wxListView *result; | |
23475 | wxPoint temp3 ; | |
23476 | wxSize temp4 ; | |
e811c8ce | 23477 | bool temp7 = False ; |
d14a1e28 | 23478 | PyObject * obj0 = 0 ; |
994141e6 | 23479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23480 | PyObject * obj2 = 0 ; |
23481 | PyObject * obj3 = 0 ; | |
994141e6 | 23482 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23483 | PyObject * obj5 = 0 ; |
23484 | PyObject * obj6 = 0 ; | |
23485 | char *kwnames[] = { | |
23486 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23487 | }; | |
23488 | ||
994141e6 | 23489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23492 | if (obj1) { |
15afbcd0 RD |
23493 | arg2 = (int) SWIG_AsInt(obj1); |
23494 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23495 | } |
d14a1e28 RD |
23496 | if (obj2) { |
23497 | { | |
23498 | arg3 = &temp3; | |
23499 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23500 | } | |
23501 | } | |
23502 | if (obj3) { | |
23503 | { | |
23504 | arg4 = &temp4; | |
23505 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23506 | } | |
23507 | } | |
994141e6 | 23508 | if (obj4) { |
15afbcd0 RD |
23509 | arg5 = (long) SWIG_AsLong(obj4); |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23511 | } |
d14a1e28 | 23512 | if (obj5) { |
15afbcd0 RD |
23513 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
23514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23515 | SWIG_fail; | |
d14a1e28 | 23516 | if (arg6 == NULL) { |
15afbcd0 RD |
23517 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23518 | SWIG_fail; | |
d14a1e28 RD |
23519 | } |
23520 | } | |
23521 | if (obj6) { | |
23522 | { | |
23523 | arg7 = wxString_in_helper(obj6); | |
23524 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23525 | temp7 = True; |
d14a1e28 RD |
23526 | } |
23527 | } | |
23528 | { | |
23529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23530 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23531 | ||
23532 | wxPyEndAllowThreads(__tstate); | |
23533 | if (PyErr_Occurred()) SWIG_fail; | |
23534 | } | |
15afbcd0 | 23535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23536 | { |
23537 | if (temp7) | |
23538 | delete arg7; | |
23539 | } | |
23540 | return resultobj; | |
23541 | fail: | |
23542 | { | |
23543 | if (temp7) | |
23544 | delete arg7; | |
23545 | } | |
23546 | return NULL; | |
23547 | } | |
23548 | ||
23549 | ||
23550 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23551 | PyObject *resultobj; | |
23552 | wxListView *result; | |
23553 | char *kwnames[] = { | |
23554 | NULL | |
23555 | }; | |
23556 | ||
23557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23558 | { | |
23559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23560 | result = (wxListView *)new wxListView(); | |
23561 | ||
23562 | wxPyEndAllowThreads(__tstate); | |
23563 | if (PyErr_Occurred()) SWIG_fail; | |
23564 | } | |
15afbcd0 | 23565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23566 | return resultobj; |
23567 | fail: | |
23568 | return NULL; | |
23569 | } | |
23570 | ||
23571 | ||
23572 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23573 | PyObject *resultobj; | |
23574 | wxListView *arg1 = (wxListView *) 0 ; | |
23575 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23576 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23577 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23578 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23579 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23580 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23581 | long arg6 = (long) wxLC_REPORT ; | |
23582 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23583 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23584 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23585 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23586 | bool result; | |
23587 | wxPoint temp4 ; | |
23588 | wxSize temp5 ; | |
e811c8ce | 23589 | bool temp8 = False ; |
d14a1e28 RD |
23590 | PyObject * obj0 = 0 ; |
23591 | PyObject * obj1 = 0 ; | |
994141e6 | 23592 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23593 | PyObject * obj3 = 0 ; |
23594 | PyObject * obj4 = 0 ; | |
994141e6 | 23595 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23596 | PyObject * obj6 = 0 ; |
23597 | PyObject * obj7 = 0 ; | |
23598 | char *kwnames[] = { | |
23599 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23600 | }; | |
23601 | ||
994141e6 | 23602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
23603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23607 | if (obj2) { |
15afbcd0 RD |
23608 | arg3 = (int) SWIG_AsInt(obj2); |
23609 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23610 | } |
d14a1e28 RD |
23611 | if (obj3) { |
23612 | { | |
23613 | arg4 = &temp4; | |
23614 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23615 | } | |
23616 | } | |
23617 | if (obj4) { | |
23618 | { | |
23619 | arg5 = &temp5; | |
23620 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23621 | } | |
23622 | } | |
994141e6 | 23623 | if (obj5) { |
15afbcd0 RD |
23624 | arg6 = (long) SWIG_AsLong(obj5); |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23626 | } |
d14a1e28 | 23627 | if (obj6) { |
15afbcd0 RD |
23628 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
23629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23630 | SWIG_fail; | |
d14a1e28 | 23631 | if (arg7 == NULL) { |
15afbcd0 RD |
23632 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23633 | SWIG_fail; | |
d14a1e28 RD |
23634 | } |
23635 | } | |
23636 | if (obj7) { | |
23637 | { | |
23638 | arg8 = wxString_in_helper(obj7); | |
23639 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23640 | temp8 = True; |
d14a1e28 RD |
23641 | } |
23642 | } | |
23643 | { | |
23644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23645 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23646 | ||
23647 | wxPyEndAllowThreads(__tstate); | |
23648 | if (PyErr_Occurred()) SWIG_fail; | |
23649 | } | |
4f89f6a3 RD |
23650 | { |
23651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23652 | } | |
d14a1e28 RD |
23653 | { |
23654 | if (temp8) | |
23655 | delete arg8; | |
23656 | } | |
23657 | return resultobj; | |
23658 | fail: | |
23659 | { | |
23660 | if (temp8) | |
23661 | delete arg8; | |
23662 | } | |
23663 | return NULL; | |
23664 | } | |
23665 | ||
23666 | ||
23667 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23668 | PyObject *resultobj; | |
23669 | wxListView *arg1 = (wxListView *) 0 ; | |
23670 | long arg2 ; | |
e811c8ce | 23671 | bool arg3 = (bool) True ; |
d14a1e28 | 23672 | PyObject * obj0 = 0 ; |
994141e6 | 23673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23674 | PyObject * obj2 = 0 ; |
23675 | char *kwnames[] = { | |
23676 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23677 | }; | |
23678 | ||
15afbcd0 RD |
23679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23682 | arg2 = (long) SWIG_AsLong(obj1); | |
23683 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 23684 | if (obj2) { |
15afbcd0 RD |
23685 | arg3 = (bool) SWIG_AsBool(obj2); |
23686 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23687 | } |
23688 | { | |
23689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23690 | (arg1)->Select(arg2,arg3); | |
23691 | ||
23692 | wxPyEndAllowThreads(__tstate); | |
23693 | if (PyErr_Occurred()) SWIG_fail; | |
23694 | } | |
23695 | Py_INCREF(Py_None); resultobj = Py_None; | |
23696 | return resultobj; | |
23697 | fail: | |
23698 | return NULL; | |
23699 | } | |
23700 | ||
23701 | ||
23702 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23703 | PyObject *resultobj; | |
23704 | wxListView *arg1 = (wxListView *) 0 ; | |
23705 | long arg2 ; | |
23706 | PyObject * obj0 = 0 ; | |
994141e6 | 23707 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23708 | char *kwnames[] = { |
23709 | (char *) "self",(char *) "index", NULL | |
23710 | }; | |
23711 | ||
994141e6 | 23712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23715 | arg2 = (long) SWIG_AsLong(obj1); | |
23716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23717 | { |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23719 | (arg1)->Focus(arg2); | |
23720 | ||
23721 | wxPyEndAllowThreads(__tstate); | |
23722 | if (PyErr_Occurred()) SWIG_fail; | |
23723 | } | |
23724 | Py_INCREF(Py_None); resultobj = Py_None; | |
23725 | return resultobj; | |
23726 | fail: | |
23727 | return NULL; | |
23728 | } | |
23729 | ||
23730 | ||
23731 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23732 | PyObject *resultobj; | |
23733 | wxListView *arg1 = (wxListView *) 0 ; | |
23734 | long result; | |
23735 | PyObject * obj0 = 0 ; | |
23736 | char *kwnames[] = { | |
23737 | (char *) "self", NULL | |
23738 | }; | |
23739 | ||
23740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23743 | { |
23744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23745 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23746 | ||
23747 | wxPyEndAllowThreads(__tstate); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
15afbcd0 | 23750 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23751 | return resultobj; |
23752 | fail: | |
23753 | return NULL; | |
23754 | } | |
23755 | ||
23756 | ||
23757 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23758 | PyObject *resultobj; | |
23759 | wxListView *arg1 = (wxListView *) 0 ; | |
23760 | long arg2 ; | |
23761 | long result; | |
23762 | PyObject * obj0 = 0 ; | |
994141e6 | 23763 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23764 | char *kwnames[] = { |
23765 | (char *) "self",(char *) "item", NULL | |
23766 | }; | |
23767 | ||
994141e6 | 23768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23771 | arg2 = (long) SWIG_AsLong(obj1); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23773 | { |
23774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23775 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23776 | ||
23777 | wxPyEndAllowThreads(__tstate); | |
23778 | if (PyErr_Occurred()) SWIG_fail; | |
23779 | } | |
15afbcd0 | 23780 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23781 | return resultobj; |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23788 | PyObject *resultobj; | |
23789 | wxListView *arg1 = (wxListView *) 0 ; | |
23790 | long result; | |
23791 | PyObject * obj0 = 0 ; | |
23792 | char *kwnames[] = { | |
23793 | (char *) "self", NULL | |
23794 | }; | |
23795 | ||
23796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23799 | { |
23800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23801 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23802 | ||
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
15afbcd0 | 23806 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23807 | return resultobj; |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
23813 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23814 | PyObject *resultobj; | |
23815 | wxListView *arg1 = (wxListView *) 0 ; | |
23816 | long arg2 ; | |
23817 | bool result; | |
23818 | PyObject * obj0 = 0 ; | |
994141e6 | 23819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23820 | char *kwnames[] = { |
23821 | (char *) "self",(char *) "index", NULL | |
23822 | }; | |
23823 | ||
994141e6 | 23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23827 | arg2 = (long) SWIG_AsLong(obj1); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23829 | { |
23830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23831 | result = (bool)(arg1)->IsSelected(arg2); | |
23832 | ||
23833 | wxPyEndAllowThreads(__tstate); | |
23834 | if (PyErr_Occurred()) SWIG_fail; | |
23835 | } | |
4f89f6a3 RD |
23836 | { |
23837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23838 | } | |
d14a1e28 RD |
23839 | return resultobj; |
23840 | fail: | |
23841 | return NULL; | |
23842 | } | |
23843 | ||
23844 | ||
23845 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23846 | PyObject *resultobj; | |
23847 | wxListView *arg1 = (wxListView *) 0 ; | |
23848 | int arg2 ; | |
23849 | int arg3 ; | |
23850 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23851 | PyObject * obj1 = 0 ; |
23852 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23853 | char *kwnames[] = { |
23854 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23855 | }; | |
23856 | ||
994141e6 | 23857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23860 | arg2 = (int) SWIG_AsInt(obj1); | |
23861 | if (PyErr_Occurred()) SWIG_fail; | |
23862 | arg3 = (int) SWIG_AsInt(obj2); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23864 | { |
23865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23866 | (arg1)->SetColumnImage(arg2,arg3); | |
23867 | ||
23868 | wxPyEndAllowThreads(__tstate); | |
23869 | if (PyErr_Occurred()) SWIG_fail; | |
23870 | } | |
23871 | Py_INCREF(Py_None); resultobj = Py_None; | |
23872 | return resultobj; | |
23873 | fail: | |
23874 | return NULL; | |
23875 | } | |
23876 | ||
23877 | ||
23878 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23879 | PyObject *resultobj; | |
23880 | wxListView *arg1 = (wxListView *) 0 ; | |
23881 | int arg2 ; | |
23882 | PyObject * obj0 = 0 ; | |
994141e6 | 23883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23884 | char *kwnames[] = { |
23885 | (char *) "self",(char *) "col", NULL | |
23886 | }; | |
23887 | ||
994141e6 | 23888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23891 | arg2 = (int) SWIG_AsInt(obj1); | |
23892 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23893 | { |
23894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23895 | (arg1)->ClearColumnImage(arg2); | |
23896 | ||
23897 | wxPyEndAllowThreads(__tstate); | |
23898 | if (PyErr_Occurred()) SWIG_fail; | |
23899 | } | |
23900 | Py_INCREF(Py_None); resultobj = Py_None; | |
23901 | return resultobj; | |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23908 | PyObject *obj; | |
23909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23910 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23911 | Py_INCREF(obj); | |
23912 | return Py_BuildValue((char *)""); | |
23913 | } | |
b2dc1044 RD |
23914 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
23915 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
23916 | return 1; | |
23917 | } | |
23918 | ||
23919 | ||
23920 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23921 | PyObject *pyobj; | |
23922 | ||
23923 | { | |
23924 | #if wxUSE_UNICODE | |
23925 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23926 | #else | |
23927 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23928 | #endif | |
23929 | } | |
23930 | return pyobj; | |
23931 | } | |
23932 | ||
23933 | ||
d14a1e28 RD |
23934 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
23935 | PyObject *resultobj; | |
23936 | wxTreeItemId *result; | |
23937 | char *kwnames[] = { | |
23938 | NULL | |
23939 | }; | |
23940 | ||
23941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23942 | { | |
23943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23944 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23945 | ||
23946 | wxPyEndAllowThreads(__tstate); | |
23947 | if (PyErr_Occurred()) SWIG_fail; | |
23948 | } | |
15afbcd0 | 23949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23950 | return resultobj; |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23959 | PyObject * obj0 = 0 ; | |
23960 | char *kwnames[] = { | |
23961 | (char *) "self", NULL | |
23962 | }; | |
23963 | ||
23964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23967 | { |
23968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23969 | delete arg1; | |
23970 | ||
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
23974 | Py_INCREF(Py_None); resultobj = Py_None; | |
23975 | return resultobj; | |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
23981 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23982 | PyObject *resultobj; | |
23983 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23984 | bool result; | |
23985 | PyObject * obj0 = 0 ; | |
23986 | char *kwnames[] = { | |
23987 | (char *) "self", NULL | |
23988 | }; | |
23989 | ||
23990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23993 | { |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
4f89f6a3 RD |
24000 | { |
24001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24002 | } | |
d14a1e28 RD |
24003 | return resultobj; |
24004 | fail: | |
24005 | return NULL; | |
24006 | } | |
24007 | ||
24008 | ||
24009 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24010 | PyObject *resultobj; | |
24011 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24012 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24013 | bool result; | |
24014 | PyObject * obj0 = 0 ; | |
24015 | PyObject * obj1 = 0 ; | |
24016 | char *kwnames[] = { | |
24017 | (char *) "self",(char *) "other", NULL | |
24018 | }; | |
24019 | ||
24020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24025 | { |
24026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24027 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24028 | |
24029 | wxPyEndAllowThreads(__tstate); | |
24030 | if (PyErr_Occurred()) SWIG_fail; | |
24031 | } | |
4f89f6a3 RD |
24032 | { |
24033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24034 | } | |
d14a1e28 RD |
24035 | return resultobj; |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24042 | PyObject *resultobj; | |
24043 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24044 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24045 | bool result; | |
24046 | PyObject * obj0 = 0 ; | |
24047 | PyObject * obj1 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self",(char *) "other", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24057 | { |
24058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24059 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24060 | |
24061 | wxPyEndAllowThreads(__tstate); | |
24062 | if (PyErr_Occurred()) SWIG_fail; | |
24063 | } | |
4f89f6a3 RD |
24064 | { |
24065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24066 | } | |
d14a1e28 RD |
24067 | return resultobj; |
24068 | fail: | |
24069 | return NULL; | |
24070 | } | |
24071 | ||
24072 | ||
24073 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24074 | PyObject *resultobj; | |
24075 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24076 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24077 | PyObject * obj0 = 0 ; |
24078 | PyObject * obj1 = 0 ; | |
24079 | char *kwnames[] = { | |
24080 | (char *) "self",(char *) "m_pItem", NULL | |
24081 | }; | |
24082 | ||
24083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24086 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24087 | if (arg1) (arg1)->m_pItem = arg2; |
24088 | ||
24089 | Py_INCREF(Py_None); resultobj = Py_None; | |
24090 | return resultobj; | |
24091 | fail: | |
24092 | return NULL; | |
24093 | } | |
24094 | ||
24095 | ||
24096 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24097 | PyObject *resultobj; | |
24098 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24099 | void *result; |
d14a1e28 RD |
24100 | PyObject * obj0 = 0 ; |
24101 | char *kwnames[] = { | |
24102 | (char *) "self", NULL | |
24103 | }; | |
24104 | ||
24105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24108 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24109 | |
15afbcd0 | 24110 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24111 | return resultobj; |
24112 | fail: | |
24113 | return NULL; | |
24114 | } | |
24115 | ||
24116 | ||
24117 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24118 | PyObject *obj; | |
24119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24120 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24121 | Py_INCREF(obj); | |
24122 | return Py_BuildValue((char *)""); | |
24123 | } | |
24124 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24125 | PyObject *resultobj; | |
24126 | PyObject *arg1 = (PyObject *) NULL ; | |
24127 | wxPyTreeItemData *result; | |
24128 | PyObject * obj0 = 0 ; | |
24129 | char *kwnames[] = { | |
24130 | (char *) "obj", NULL | |
24131 | }; | |
24132 | ||
24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24134 | if (obj0) { | |
24135 | arg1 = obj0; | |
24136 | } | |
24137 | { | |
24138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24139 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24140 | ||
24141 | wxPyEndAllowThreads(__tstate); | |
24142 | if (PyErr_Occurred()) SWIG_fail; | |
24143 | } | |
15afbcd0 | 24144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24145 | return resultobj; |
24146 | fail: | |
24147 | return NULL; | |
24148 | } | |
24149 | ||
24150 | ||
24151 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24152 | PyObject *resultobj; | |
24153 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24154 | PyObject *result; | |
24155 | PyObject * obj0 = 0 ; | |
24156 | char *kwnames[] = { | |
24157 | (char *) "self", NULL | |
24158 | }; | |
24159 | ||
24160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24163 | { |
24164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24165 | result = (PyObject *)(arg1)->GetData(); | |
24166 | ||
24167 | wxPyEndAllowThreads(__tstate); | |
24168 | if (PyErr_Occurred()) SWIG_fail; | |
24169 | } | |
24170 | resultobj = result; | |
24171 | return resultobj; | |
24172 | fail: | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
24177 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24178 | PyObject *resultobj; | |
24179 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24180 | PyObject *arg2 = (PyObject *) 0 ; | |
24181 | PyObject * obj0 = 0 ; | |
24182 | PyObject * obj1 = 0 ; | |
24183 | char *kwnames[] = { | |
24184 | (char *) "self",(char *) "obj", NULL | |
24185 | }; | |
24186 | ||
24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24190 | arg2 = obj1; |
24191 | { | |
24192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24193 | (arg1)->SetData(arg2); | |
24194 | ||
24195 | wxPyEndAllowThreads(__tstate); | |
24196 | if (PyErr_Occurred()) SWIG_fail; | |
24197 | } | |
24198 | Py_INCREF(Py_None); resultobj = Py_None; | |
24199 | return resultobj; | |
24200 | fail: | |
24201 | return NULL; | |
24202 | } | |
24203 | ||
24204 | ||
24205 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24206 | PyObject *resultobj; | |
24207 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24208 | wxTreeItemId *result; | |
24209 | PyObject * obj0 = 0 ; | |
24210 | char *kwnames[] = { | |
24211 | (char *) "self", NULL | |
24212 | }; | |
24213 | ||
24214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24217 | { |
24218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24219 | { | |
24220 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24221 | result = (wxTreeItemId *) &_result_ref; | |
24222 | } | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
15afbcd0 | 24227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24228 | return resultobj; |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24237 | wxTreeItemId *arg2 = 0 ; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | PyObject * obj1 = 0 ; | |
24240 | char *kwnames[] = { | |
24241 | (char *) "self",(char *) "id", NULL | |
24242 | }; | |
24243 | ||
24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24249 | SWIG_fail; | |
d14a1e28 | 24250 | if (arg2 == NULL) { |
15afbcd0 RD |
24251 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24252 | SWIG_fail; | |
d14a1e28 RD |
24253 | } |
24254 | { | |
24255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24256 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24257 | ||
24258 | wxPyEndAllowThreads(__tstate); | |
24259 | if (PyErr_Occurred()) SWIG_fail; | |
24260 | } | |
24261 | Py_INCREF(Py_None); resultobj = Py_None; | |
24262 | return resultobj; | |
24263 | fail: | |
24264 | return NULL; | |
24265 | } | |
24266 | ||
24267 | ||
24268 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24269 | PyObject *resultobj; | |
24270 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "self", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24279 | { |
24280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24281 | wxPyTreeItemData_Destroy(arg1); | |
24282 | ||
24283 | wxPyEndAllowThreads(__tstate); | |
24284 | if (PyErr_Occurred()) SWIG_fail; | |
24285 | } | |
24286 | Py_INCREF(Py_None); resultobj = Py_None; | |
24287 | return resultobj; | |
24288 | fail: | |
24289 | return NULL; | |
24290 | } | |
24291 | ||
24292 | ||
24293 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24294 | PyObject *obj; | |
24295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24296 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24297 | Py_INCREF(obj); | |
24298 | return Py_BuildValue((char *)""); | |
24299 | } | |
24300 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24301 | PyObject *resultobj; | |
24302 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24303 | int arg2 = (int) 0 ; | |
24304 | wxTreeEvent *result; | |
994141e6 RD |
24305 | PyObject * obj0 = 0 ; |
24306 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24307 | char *kwnames[] = { |
24308 | (char *) "commandType",(char *) "id", NULL | |
24309 | }; | |
24310 | ||
994141e6 RD |
24311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24312 | if (obj0) { | |
15afbcd0 RD |
24313 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
24314 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
24315 | } |
24316 | if (obj1) { | |
15afbcd0 RD |
24317 | arg2 = (int) SWIG_AsInt(obj1); |
24318 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24319 | } |
d14a1e28 RD |
24320 | { |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24323 | ||
24324 | wxPyEndAllowThreads(__tstate); | |
24325 | if (PyErr_Occurred()) SWIG_fail; | |
24326 | } | |
15afbcd0 | 24327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24328 | return resultobj; |
24329 | fail: | |
24330 | return NULL; | |
24331 | } | |
24332 | ||
24333 | ||
24334 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24335 | PyObject *resultobj; | |
24336 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24337 | wxTreeItemId result; | |
24338 | PyObject * obj0 = 0 ; | |
24339 | char *kwnames[] = { | |
24340 | (char *) "self", NULL | |
24341 | }; | |
24342 | ||
24343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24346 | { |
24347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24348 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24349 | ||
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
24353 | { | |
24354 | wxTreeItemId * resultptr; | |
24355 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24357 | } |
24358 | return resultobj; | |
24359 | fail: | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
24364 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24367 | wxTreeItemId *arg2 = 0 ; | |
24368 | PyObject * obj0 = 0 ; | |
24369 | PyObject * obj1 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self",(char *) "item", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24377 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24378 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24379 | SWIG_fail; | |
d14a1e28 | 24380 | if (arg2 == NULL) { |
15afbcd0 RD |
24381 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24382 | SWIG_fail; | |
d14a1e28 RD |
24383 | } |
24384 | { | |
24385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24386 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24387 | ||
24388 | wxPyEndAllowThreads(__tstate); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | Py_INCREF(Py_None); resultobj = Py_None; | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24399 | PyObject *resultobj; | |
24400 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24401 | wxTreeItemId result; | |
24402 | PyObject * obj0 = 0 ; | |
24403 | char *kwnames[] = { | |
24404 | (char *) "self", NULL | |
24405 | }; | |
24406 | ||
24407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24410 | { |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24412 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
24415 | if (PyErr_Occurred()) SWIG_fail; | |
24416 | } | |
24417 | { | |
24418 | wxTreeItemId * resultptr; | |
24419 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24421 | } |
24422 | return resultobj; | |
24423 | fail: | |
24424 | return NULL; | |
24425 | } | |
24426 | ||
24427 | ||
24428 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24429 | PyObject *resultobj; | |
24430 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24431 | wxTreeItemId *arg2 = 0 ; | |
24432 | PyObject * obj0 = 0 ; | |
24433 | PyObject * obj1 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self",(char *) "item", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24443 | SWIG_fail; | |
d14a1e28 | 24444 | if (arg2 == NULL) { |
15afbcd0 RD |
24445 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24446 | SWIG_fail; | |
d14a1e28 RD |
24447 | } |
24448 | { | |
24449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24450 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24451 | ||
24452 | wxPyEndAllowThreads(__tstate); | |
24453 | if (PyErr_Occurred()) SWIG_fail; | |
24454 | } | |
24455 | Py_INCREF(Py_None); resultobj = Py_None; | |
24456 | return resultobj; | |
24457 | fail: | |
24458 | return NULL; | |
24459 | } | |
24460 | ||
24461 | ||
24462 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24463 | PyObject *resultobj; | |
24464 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24465 | wxPoint result; | |
24466 | PyObject * obj0 = 0 ; | |
24467 | char *kwnames[] = { | |
24468 | (char *) "self", NULL | |
24469 | }; | |
24470 | ||
24471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24474 | { |
24475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24476 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24477 | ||
24478 | wxPyEndAllowThreads(__tstate); | |
24479 | if (PyErr_Occurred()) SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | wxPoint * resultptr; | |
24483 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 24484 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24485 | } |
24486 | return resultobj; | |
24487 | fail: | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
24492 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24493 | PyObject *resultobj; | |
24494 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24495 | wxPoint *arg2 = 0 ; | |
24496 | wxPoint temp2 ; | |
24497 | PyObject * obj0 = 0 ; | |
24498 | PyObject * obj1 = 0 ; | |
24499 | char *kwnames[] = { | |
24500 | (char *) "self",(char *) "pt", NULL | |
24501 | }; | |
24502 | ||
24503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24506 | { |
24507 | arg2 = &temp2; | |
24508 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24509 | } | |
24510 | { | |
24511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24512 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24513 | ||
24514 | wxPyEndAllowThreads(__tstate); | |
24515 | if (PyErr_Occurred()) SWIG_fail; | |
24516 | } | |
24517 | Py_INCREF(Py_None); resultobj = Py_None; | |
24518 | return resultobj; | |
24519 | fail: | |
24520 | return NULL; | |
24521 | } | |
24522 | ||
24523 | ||
24524 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24525 | PyObject *resultobj; | |
24526 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24527 | wxKeyEvent *result; | |
24528 | PyObject * obj0 = 0 ; | |
24529 | char *kwnames[] = { | |
24530 | (char *) "self", NULL | |
24531 | }; | |
24532 | ||
24533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24536 | { |
24537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24538 | { | |
24539 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24540 | result = (wxKeyEvent *) &_result_ref; | |
24541 | } | |
24542 | ||
24543 | wxPyEndAllowThreads(__tstate); | |
24544 | if (PyErr_Occurred()) SWIG_fail; | |
24545 | } | |
15afbcd0 | 24546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
24547 | return resultobj; |
24548 | fail: | |
24549 | return NULL; | |
24550 | } | |
24551 | ||
24552 | ||
24553 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24554 | PyObject *resultobj; | |
24555 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24556 | int result; | |
24557 | PyObject * obj0 = 0 ; | |
24558 | char *kwnames[] = { | |
24559 | (char *) "self", NULL | |
24560 | }; | |
24561 | ||
24562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24565 | { |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24568 | ||
24569 | wxPyEndAllowThreads(__tstate); | |
24570 | if (PyErr_Occurred()) SWIG_fail; | |
24571 | } | |
15afbcd0 | 24572 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24573 | return resultobj; |
24574 | fail: | |
24575 | return NULL; | |
24576 | } | |
24577 | ||
24578 | ||
24579 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24580 | PyObject *resultobj; | |
24581 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24582 | wxKeyEvent *arg2 = 0 ; | |
24583 | PyObject * obj0 = 0 ; | |
24584 | PyObject * obj1 = 0 ; | |
24585 | char *kwnames[] = { | |
24586 | (char *) "self",(char *) "evt", NULL | |
24587 | }; | |
24588 | ||
24589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24592 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24594 | SWIG_fail; | |
d14a1e28 | 24595 | if (arg2 == NULL) { |
15afbcd0 RD |
24596 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24597 | SWIG_fail; | |
d14a1e28 RD |
24598 | } |
24599 | { | |
24600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24601 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24602 | ||
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
24606 | Py_INCREF(Py_None); resultobj = Py_None; | |
24607 | return resultobj; | |
24608 | fail: | |
24609 | return NULL; | |
24610 | } | |
24611 | ||
24612 | ||
24613 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24614 | PyObject *resultobj; | |
24615 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24616 | wxString *result; | |
24617 | PyObject * obj0 = 0 ; | |
24618 | char *kwnames[] = { | |
24619 | (char *) "self", NULL | |
24620 | }; | |
24621 | ||
24622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24625 | { |
24626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24627 | { | |
24628 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24629 | result = (wxString *) &_result_ref; | |
24630 | } | |
24631 | ||
24632 | wxPyEndAllowThreads(__tstate); | |
24633 | if (PyErr_Occurred()) SWIG_fail; | |
24634 | } | |
cc6dd355 RD |
24635 | { |
24636 | #if wxUSE_UNICODE | |
24637 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24638 | #else | |
24639 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24640 | #endif | |
24641 | } | |
d14a1e28 RD |
24642 | return resultobj; |
24643 | fail: | |
24644 | return NULL; | |
24645 | } | |
24646 | ||
24647 | ||
24648 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24649 | PyObject *resultobj; | |
24650 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24651 | wxString *arg2 = 0 ; | |
e811c8ce | 24652 | bool temp2 = False ; |
d14a1e28 RD |
24653 | PyObject * obj0 = 0 ; |
24654 | PyObject * obj1 = 0 ; | |
24655 | char *kwnames[] = { | |
24656 | (char *) "self",(char *) "label", NULL | |
24657 | }; | |
24658 | ||
24659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24662 | { |
24663 | arg2 = wxString_in_helper(obj1); | |
24664 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24665 | temp2 = True; |
d14a1e28 RD |
24666 | } |
24667 | { | |
24668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24669 | (arg1)->SetLabel((wxString const &)*arg2); | |
24670 | ||
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
24674 | Py_INCREF(Py_None); resultobj = Py_None; | |
24675 | { | |
24676 | if (temp2) | |
24677 | delete arg2; | |
24678 | } | |
24679 | return resultobj; | |
24680 | fail: | |
24681 | { | |
24682 | if (temp2) | |
24683 | delete arg2; | |
24684 | } | |
24685 | return NULL; | |
24686 | } | |
24687 | ||
24688 | ||
24689 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24690 | PyObject *resultobj; | |
24691 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24692 | bool result; | |
24693 | PyObject * obj0 = 0 ; | |
24694 | char *kwnames[] = { | |
24695 | (char *) "self", NULL | |
24696 | }; | |
24697 | ||
24698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24701 | { |
24702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24703 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24704 | ||
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
4f89f6a3 RD |
24708 | { |
24709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24710 | } | |
d14a1e28 RD |
24711 | return resultobj; |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24718 | PyObject *resultobj; | |
24719 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24720 | bool arg2 ; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | PyObject * obj1 = 0 ; | |
24723 | char *kwnames[] = { | |
24724 | (char *) "self",(char *) "editCancelled", NULL | |
24725 | }; | |
24726 | ||
24727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24730 | arg2 = (bool) SWIG_AsBool(obj1); | |
24731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24732 | { |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | (arg1)->SetEditCanceled(arg2); | |
24735 | ||
24736 | wxPyEndAllowThreads(__tstate); | |
24737 | if (PyErr_Occurred()) SWIG_fail; | |
24738 | } | |
24739 | Py_INCREF(Py_None); resultobj = Py_None; | |
24740 | return resultobj; | |
24741 | fail: | |
24742 | return NULL; | |
24743 | } | |
24744 | ||
24745 | ||
c9c7117a RD |
24746 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24747 | PyObject *resultobj; | |
24748 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24749 | wxString *arg2 = 0 ; | |
24750 | bool temp2 = False ; | |
24751 | PyObject * obj0 = 0 ; | |
24752 | PyObject * obj1 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self",(char *) "toolTip", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
24760 | { |
24761 | arg2 = wxString_in_helper(obj1); | |
24762 | if (arg2 == NULL) SWIG_fail; | |
24763 | temp2 = True; | |
24764 | } | |
24765 | { | |
24766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24767 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24768 | ||
24769 | wxPyEndAllowThreads(__tstate); | |
24770 | if (PyErr_Occurred()) SWIG_fail; | |
24771 | } | |
24772 | Py_INCREF(Py_None); resultobj = Py_None; | |
24773 | { | |
24774 | if (temp2) | |
24775 | delete arg2; | |
24776 | } | |
24777 | return resultobj; | |
24778 | fail: | |
24779 | { | |
24780 | if (temp2) | |
24781 | delete arg2; | |
24782 | } | |
24783 | return NULL; | |
24784 | } | |
24785 | ||
24786 | ||
d14a1e28 RD |
24787 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24788 | PyObject *obj; | |
24789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24790 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24791 | Py_INCREF(obj); | |
24792 | return Py_BuildValue((char *)""); | |
24793 | } | |
24794 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24795 | PyObject *resultobj; | |
24796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24797 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24798 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24799 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24800 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24801 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24802 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24803 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24804 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 24805 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24806 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24807 | wxPyTreeCtrl *result; | |
24808 | wxPoint temp3 ; | |
24809 | wxSize temp4 ; | |
e811c8ce | 24810 | bool temp7 = False ; |
d14a1e28 | 24811 | PyObject * obj0 = 0 ; |
994141e6 | 24812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24813 | PyObject * obj2 = 0 ; |
24814 | PyObject * obj3 = 0 ; | |
994141e6 | 24815 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24816 | PyObject * obj5 = 0 ; |
24817 | PyObject * obj6 = 0 ; | |
24818 | char *kwnames[] = { | |
24819 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24820 | }; | |
24821 | ||
994141e6 | 24822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24825 | if (obj1) { |
15afbcd0 RD |
24826 | arg2 = (int) SWIG_AsInt(obj1); |
24827 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24828 | } |
d14a1e28 RD |
24829 | if (obj2) { |
24830 | { | |
24831 | arg3 = &temp3; | |
24832 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24833 | } | |
24834 | } | |
24835 | if (obj3) { | |
24836 | { | |
994141e6 RD |
24837 | arg4 = &temp4; |
24838 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24839 | } | |
24840 | } | |
24841 | if (obj4) { | |
15afbcd0 RD |
24842 | arg5 = (long) SWIG_AsLong(obj4); |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24844 | } |
24845 | if (obj5) { | |
15afbcd0 RD |
24846 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24848 | SWIG_fail; | |
d14a1e28 | 24849 | if (arg6 == NULL) { |
15afbcd0 RD |
24850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24851 | SWIG_fail; | |
d14a1e28 RD |
24852 | } |
24853 | } | |
24854 | if (obj6) { | |
24855 | { | |
24856 | arg7 = wxString_in_helper(obj6); | |
24857 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 24858 | temp7 = True; |
d14a1e28 RD |
24859 | } |
24860 | } | |
24861 | { | |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24864 | ||
24865 | wxPyEndAllowThreads(__tstate); | |
24866 | if (PyErr_Occurred()) SWIG_fail; | |
24867 | } | |
b2dc1044 RD |
24868 | { |
24869 | resultobj = wxPyMake_wxObject(result); | |
24870 | } | |
d14a1e28 RD |
24871 | { |
24872 | if (temp7) | |
24873 | delete arg7; | |
24874 | } | |
24875 | return resultobj; | |
24876 | fail: | |
24877 | { | |
24878 | if (temp7) | |
24879 | delete arg7; | |
24880 | } | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24886 | PyObject *resultobj; | |
24887 | wxPyTreeCtrl *result; | |
24888 | char *kwnames[] = { | |
24889 | NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24893 | { | |
24894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24895 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24896 | ||
24897 | wxPyEndAllowThreads(__tstate); | |
24898 | if (PyErr_Occurred()) SWIG_fail; | |
24899 | } | |
b2dc1044 RD |
24900 | { |
24901 | resultobj = wxPyMake_wxObject(result); | |
24902 | } | |
d14a1e28 RD |
24903 | return resultobj; |
24904 | fail: | |
24905 | return NULL; | |
24906 | } | |
24907 | ||
24908 | ||
24909 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24910 | PyObject *resultobj; | |
24911 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 24913 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24914 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24915 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24916 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24917 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24918 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24919 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24920 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 24921 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24922 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
24923 | bool result; | |
24924 | wxPoint temp4 ; | |
24925 | wxSize temp5 ; | |
e811c8ce | 24926 | bool temp8 = False ; |
d14a1e28 RD |
24927 | PyObject * obj0 = 0 ; |
24928 | PyObject * obj1 = 0 ; | |
994141e6 | 24929 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24930 | PyObject * obj3 = 0 ; |
24931 | PyObject * obj4 = 0 ; | |
994141e6 | 24932 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24933 | PyObject * obj6 = 0 ; |
24934 | PyObject * obj7 = 0 ; | |
24935 | char *kwnames[] = { | |
24936 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24937 | }; | |
24938 | ||
994141e6 | 24939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
24940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24944 | if (obj2) { |
15afbcd0 RD |
24945 | arg3 = (int) SWIG_AsInt(obj2); |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24947 | } |
d14a1e28 RD |
24948 | if (obj3) { |
24949 | { | |
24950 | arg4 = &temp4; | |
24951 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24952 | } | |
24953 | } | |
24954 | if (obj4) { | |
24955 | { | |
24956 | arg5 = &temp5; | |
24957 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24958 | } | |
24959 | } | |
994141e6 | 24960 | if (obj5) { |
15afbcd0 RD |
24961 | arg6 = (long) SWIG_AsLong(obj5); |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24963 | } |
d14a1e28 | 24964 | if (obj6) { |
15afbcd0 RD |
24965 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24967 | SWIG_fail; | |
d14a1e28 | 24968 | if (arg7 == NULL) { |
15afbcd0 RD |
24969 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24970 | SWIG_fail; | |
d14a1e28 RD |
24971 | } |
24972 | } | |
24973 | if (obj7) { | |
24974 | { | |
24975 | arg8 = wxString_in_helper(obj7); | |
24976 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 24977 | temp8 = True; |
d14a1e28 RD |
24978 | } |
24979 | } | |
24980 | { | |
24981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24982 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24983 | ||
24984 | wxPyEndAllowThreads(__tstate); | |
24985 | if (PyErr_Occurred()) SWIG_fail; | |
24986 | } | |
4f89f6a3 RD |
24987 | { |
24988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24989 | } | |
d14a1e28 RD |
24990 | { |
24991 | if (temp8) | |
24992 | delete arg8; | |
24993 | } | |
24994 | return resultobj; | |
24995 | fail: | |
24996 | { | |
24997 | if (temp8) | |
24998 | delete arg8; | |
24999 | } | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
25004 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25005 | PyObject *resultobj; | |
25006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25007 | PyObject *arg2 = (PyObject *) 0 ; | |
25008 | PyObject *arg3 = (PyObject *) 0 ; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | PyObject * obj1 = 0 ; | |
25011 | PyObject * obj2 = 0 ; | |
25012 | char *kwnames[] = { | |
25013 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25014 | }; | |
25015 | ||
25016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25019 | arg2 = obj1; |
25020 | arg3 = obj2; | |
25021 | { | |
25022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25023 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25024 | ||
25025 | wxPyEndAllowThreads(__tstate); | |
25026 | if (PyErr_Occurred()) SWIG_fail; | |
25027 | } | |
25028 | Py_INCREF(Py_None); resultobj = Py_None; | |
25029 | return resultobj; | |
25030 | fail: | |
25031 | return NULL; | |
25032 | } | |
25033 | ||
25034 | ||
25035 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25036 | PyObject *resultobj; | |
25037 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25038 | size_t result; | |
25039 | PyObject * obj0 = 0 ; | |
25040 | char *kwnames[] = { | |
25041 | (char *) "self", NULL | |
25042 | }; | |
25043 | ||
25044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25047 | { |
25048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25049 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25050 | ||
25051 | wxPyEndAllowThreads(__tstate); | |
25052 | if (PyErr_Occurred()) SWIG_fail; | |
25053 | } | |
15afbcd0 | 25054 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25055 | return resultobj; |
25056 | fail: | |
25057 | return NULL; | |
25058 | } | |
25059 | ||
25060 | ||
25061 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25062 | PyObject *resultobj; | |
25063 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25064 | unsigned int result; | |
25065 | PyObject * obj0 = 0 ; | |
25066 | char *kwnames[] = { | |
25067 | (char *) "self", NULL | |
25068 | }; | |
25069 | ||
25070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25073 | { |
25074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25075 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25076 | ||
25077 | wxPyEndAllowThreads(__tstate); | |
25078 | if (PyErr_Occurred()) SWIG_fail; | |
25079 | } | |
15afbcd0 | 25080 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25081 | return resultobj; |
25082 | fail: | |
25083 | return NULL; | |
25084 | } | |
25085 | ||
25086 | ||
25087 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25088 | PyObject *resultobj; | |
25089 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25090 | unsigned int arg2 ; | |
25091 | PyObject * obj0 = 0 ; | |
25092 | PyObject * obj1 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self",(char *) "indent", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25100 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25102 | { |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25104 | (arg1)->SetIndent(arg2); | |
25105 | ||
25106 | wxPyEndAllowThreads(__tstate); | |
25107 | if (PyErr_Occurred()) SWIG_fail; | |
25108 | } | |
25109 | Py_INCREF(Py_None); resultobj = Py_None; | |
25110 | return resultobj; | |
25111 | fail: | |
25112 | return NULL; | |
25113 | } | |
25114 | ||
25115 | ||
25116 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25117 | PyObject *resultobj; | |
25118 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25119 | unsigned int result; | |
25120 | PyObject * obj0 = 0 ; | |
25121 | char *kwnames[] = { | |
25122 | (char *) "self", NULL | |
25123 | }; | |
25124 | ||
25125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25128 | { |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
15afbcd0 | 25135 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25136 | return resultobj; |
25137 | fail: | |
25138 | return NULL; | |
25139 | } | |
25140 | ||
25141 | ||
25142 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25143 | PyObject *resultobj; | |
25144 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25145 | unsigned int arg2 ; | |
25146 | PyObject * obj0 = 0 ; | |
25147 | PyObject * obj1 = 0 ; | |
25148 | char *kwnames[] = { | |
25149 | (char *) "self",(char *) "spacing", NULL | |
25150 | }; | |
25151 | ||
25152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25155 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25157 | { |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | (arg1)->SetSpacing(arg2); | |
25160 | ||
25161 | wxPyEndAllowThreads(__tstate); | |
25162 | if (PyErr_Occurred()) SWIG_fail; | |
25163 | } | |
25164 | Py_INCREF(Py_None); resultobj = Py_None; | |
25165 | return resultobj; | |
25166 | fail: | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25174 | wxImageList *result; | |
25175 | PyObject * obj0 = 0 ; | |
25176 | char *kwnames[] = { | |
25177 | (char *) "self", NULL | |
25178 | }; | |
25179 | ||
25180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25183 | { |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25186 | ||
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | { | |
25191 | resultobj = wxPyMake_wxObject(result); | |
25192 | } | |
25193 | return resultobj; | |
25194 | fail: | |
25195 | return NULL; | |
25196 | } | |
25197 | ||
25198 | ||
25199 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25200 | PyObject *resultobj; | |
25201 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25202 | wxImageList *result; | |
25203 | PyObject * obj0 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "self", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25211 | { |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25213 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25214 | ||
25215 | wxPyEndAllowThreads(__tstate); | |
25216 | if (PyErr_Occurred()) SWIG_fail; | |
25217 | } | |
25218 | { | |
25219 | resultobj = wxPyMake_wxObject(result); | |
25220 | } | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
25227 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25228 | PyObject *resultobj; | |
25229 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25230 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25231 | PyObject * obj0 = 0 ; | |
25232 | PyObject * obj1 = 0 ; | |
25233 | char *kwnames[] = { | |
25234 | (char *) "self",(char *) "imageList", NULL | |
25235 | }; | |
25236 | ||
25237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25242 | { |
25243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25244 | (arg1)->SetImageList(arg2); | |
25245 | ||
25246 | wxPyEndAllowThreads(__tstate); | |
25247 | if (PyErr_Occurred()) SWIG_fail; | |
25248 | } | |
25249 | Py_INCREF(Py_None); resultobj = Py_None; | |
25250 | return resultobj; | |
25251 | fail: | |
25252 | return NULL; | |
25253 | } | |
25254 | ||
25255 | ||
25256 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25257 | PyObject *resultobj; | |
25258 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25259 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25260 | PyObject * obj0 = 0 ; | |
25261 | PyObject * obj1 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "self",(char *) "imageList", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25271 | { |
25272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25273 | (arg1)->SetStateImageList(arg2); | |
25274 | ||
25275 | wxPyEndAllowThreads(__tstate); | |
25276 | if (PyErr_Occurred()) SWIG_fail; | |
25277 | } | |
25278 | Py_INCREF(Py_None); resultobj = Py_None; | |
25279 | return resultobj; | |
25280 | fail: | |
25281 | return NULL; | |
25282 | } | |
25283 | ||
25284 | ||
25285 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25286 | PyObject *resultobj; | |
25287 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25288 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25289 | PyObject * obj0 = 0 ; | |
25290 | PyObject * obj1 = 0 ; | |
25291 | char *kwnames[] = { | |
25292 | (char *) "self",(char *) "imageList", NULL | |
25293 | }; | |
25294 | ||
25295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",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 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25299 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25300 | { |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | (arg1)->AssignImageList(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_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25315 | PyObject *resultobj; | |
25316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25317 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25318 | PyObject * obj0 = 0 ; | |
25319 | PyObject * obj1 = 0 ; | |
25320 | char *kwnames[] = { | |
25321 | (char *) "self",(char *) "imageList", NULL | |
25322 | }; | |
25323 | ||
25324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25328 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25329 | { |
25330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25331 | (arg1)->AssignStateImageList(arg2); | |
25332 | ||
25333 | wxPyEndAllowThreads(__tstate); | |
25334 | if (PyErr_Occurred()) SWIG_fail; | |
25335 | } | |
25336 | Py_INCREF(Py_None); resultobj = Py_None; | |
25337 | return resultobj; | |
25338 | fail: | |
25339 | return NULL; | |
25340 | } | |
25341 | ||
25342 | ||
25343 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25344 | PyObject *resultobj; | |
25345 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25346 | wxTreeItemId *arg2 = 0 ; | |
25347 | wxString result; | |
25348 | PyObject * obj0 = 0 ; | |
25349 | PyObject * obj1 = 0 ; | |
25350 | char *kwnames[] = { | |
25351 | (char *) "self",(char *) "item", NULL | |
25352 | }; | |
25353 | ||
25354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25359 | SWIG_fail; | |
d14a1e28 | 25360 | if (arg2 == NULL) { |
15afbcd0 RD |
25361 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25362 | SWIG_fail; | |
d14a1e28 RD |
25363 | } |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | { | |
25372 | #if wxUSE_UNICODE | |
25373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25374 | #else | |
25375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25376 | #endif | |
25377 | } | |
25378 | return resultobj; | |
25379 | fail: | |
25380 | return NULL; | |
25381 | } | |
25382 | ||
25383 | ||
25384 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25385 | PyObject *resultobj; | |
25386 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25387 | wxTreeItemId *arg2 = 0 ; | |
25388 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25389 | int result; | |
25390 | PyObject * obj0 = 0 ; | |
25391 | PyObject * obj1 = 0 ; | |
994141e6 | 25392 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25393 | char *kwnames[] = { |
25394 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25395 | }; | |
25396 | ||
994141e6 | 25397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25402 | SWIG_fail; | |
d14a1e28 | 25403 | if (arg2 == NULL) { |
15afbcd0 RD |
25404 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25405 | SWIG_fail; | |
d14a1e28 | 25406 | } |
994141e6 | 25407 | if (obj2) { |
15afbcd0 RD |
25408 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
25409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25410 | } |
d14a1e28 RD |
25411 | { |
25412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25413 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25414 | ||
25415 | wxPyEndAllowThreads(__tstate); | |
25416 | if (PyErr_Occurred()) SWIG_fail; | |
25417 | } | |
15afbcd0 | 25418 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25419 | return resultobj; |
25420 | fail: | |
25421 | return NULL; | |
25422 | } | |
25423 | ||
25424 | ||
25425 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25426 | PyObject *resultobj; | |
25427 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25428 | wxTreeItemId *arg2 = 0 ; | |
25429 | wxPyTreeItemData *result; | |
25430 | PyObject * obj0 = 0 ; | |
25431 | PyObject * obj1 = 0 ; | |
25432 | char *kwnames[] = { | |
25433 | (char *) "self",(char *) "item", NULL | |
25434 | }; | |
25435 | ||
25436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25441 | SWIG_fail; | |
d14a1e28 | 25442 | if (arg2 == NULL) { |
15afbcd0 RD |
25443 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25444 | SWIG_fail; | |
d14a1e28 RD |
25445 | } |
25446 | { | |
25447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25448 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25449 | ||
25450 | wxPyEndAllowThreads(__tstate); | |
25451 | if (PyErr_Occurred()) SWIG_fail; | |
25452 | } | |
15afbcd0 | 25453 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
25454 | return resultobj; |
25455 | fail: | |
25456 | return NULL; | |
25457 | } | |
25458 | ||
25459 | ||
25460 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25461 | PyObject *resultobj; | |
25462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25463 | wxTreeItemId *arg2 = 0 ; | |
25464 | PyObject *result; | |
25465 | PyObject * obj0 = 0 ; | |
25466 | PyObject * obj1 = 0 ; | |
25467 | char *kwnames[] = { | |
25468 | (char *) "self",(char *) "item", NULL | |
25469 | }; | |
25470 | ||
25471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25476 | SWIG_fail; | |
d14a1e28 | 25477 | if (arg2 == NULL) { |
15afbcd0 RD |
25478 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25479 | SWIG_fail; | |
d14a1e28 RD |
25480 | } |
25481 | { | |
25482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25483 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25484 | ||
25485 | wxPyEndAllowThreads(__tstate); | |
25486 | if (PyErr_Occurred()) SWIG_fail; | |
25487 | } | |
25488 | resultobj = result; | |
25489 | return resultobj; | |
25490 | fail: | |
25491 | return NULL; | |
25492 | } | |
25493 | ||
25494 | ||
25495 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25496 | PyObject *resultobj; | |
25497 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25498 | wxTreeItemId *arg2 = 0 ; | |
25499 | wxColour result; | |
25500 | PyObject * obj0 = 0 ; | |
25501 | PyObject * obj1 = 0 ; | |
25502 | char *kwnames[] = { | |
25503 | (char *) "self",(char *) "item", NULL | |
25504 | }; | |
25505 | ||
25506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25511 | SWIG_fail; | |
d14a1e28 | 25512 | if (arg2 == NULL) { |
15afbcd0 RD |
25513 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25514 | SWIG_fail; | |
d14a1e28 RD |
25515 | } |
25516 | { | |
25517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25518 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25519 | ||
25520 | wxPyEndAllowThreads(__tstate); | |
25521 | if (PyErr_Occurred()) SWIG_fail; | |
25522 | } | |
25523 | { | |
25524 | wxColour * resultptr; | |
25525 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25527 | } |
25528 | return resultobj; | |
25529 | fail: | |
25530 | return NULL; | |
25531 | } | |
25532 | ||
25533 | ||
25534 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25535 | PyObject *resultobj; | |
25536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25537 | wxTreeItemId *arg2 = 0 ; | |
25538 | wxColour result; | |
25539 | PyObject * obj0 = 0 ; | |
25540 | PyObject * obj1 = 0 ; | |
25541 | char *kwnames[] = { | |
25542 | (char *) "self",(char *) "item", NULL | |
25543 | }; | |
25544 | ||
25545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25550 | SWIG_fail; | |
d14a1e28 | 25551 | if (arg2 == NULL) { |
15afbcd0 RD |
25552 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25553 | SWIG_fail; | |
d14a1e28 RD |
25554 | } |
25555 | { | |
25556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25557 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25558 | ||
25559 | wxPyEndAllowThreads(__tstate); | |
25560 | if (PyErr_Occurred()) SWIG_fail; | |
25561 | } | |
25562 | { | |
25563 | wxColour * resultptr; | |
25564 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25566 | } |
25567 | return resultobj; | |
25568 | fail: | |
25569 | return NULL; | |
25570 | } | |
25571 | ||
25572 | ||
25573 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25574 | PyObject *resultobj; | |
25575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25576 | wxTreeItemId *arg2 = 0 ; | |
25577 | wxFont result; | |
25578 | PyObject * obj0 = 0 ; | |
25579 | PyObject * obj1 = 0 ; | |
25580 | char *kwnames[] = { | |
25581 | (char *) "self",(char *) "item", NULL | |
25582 | }; | |
25583 | ||
25584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25589 | SWIG_fail; | |
d14a1e28 | 25590 | if (arg2 == NULL) { |
15afbcd0 RD |
25591 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25592 | SWIG_fail; | |
d14a1e28 RD |
25593 | } |
25594 | { | |
25595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25596 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25597 | ||
25598 | wxPyEndAllowThreads(__tstate); | |
25599 | if (PyErr_Occurred()) SWIG_fail; | |
25600 | } | |
25601 | { | |
25602 | wxFont * resultptr; | |
25603 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 25604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
25605 | } |
25606 | return resultobj; | |
25607 | fail: | |
25608 | return NULL; | |
25609 | } | |
25610 | ||
25611 | ||
25612 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25613 | PyObject *resultobj; | |
25614 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25615 | wxTreeItemId *arg2 = 0 ; | |
25616 | wxString *arg3 = 0 ; | |
e811c8ce | 25617 | bool temp3 = False ; |
d14a1e28 RD |
25618 | PyObject * obj0 = 0 ; |
25619 | PyObject * obj1 = 0 ; | |
25620 | PyObject * obj2 = 0 ; | |
25621 | char *kwnames[] = { | |
25622 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25623 | }; | |
25624 | ||
25625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25628 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25630 | SWIG_fail; | |
d14a1e28 | 25631 | if (arg2 == NULL) { |
15afbcd0 RD |
25632 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25633 | SWIG_fail; | |
d14a1e28 RD |
25634 | } |
25635 | { | |
25636 | arg3 = wxString_in_helper(obj2); | |
25637 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25638 | temp3 = True; |
d14a1e28 RD |
25639 | } |
25640 | { | |
25641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25642 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25643 | ||
25644 | wxPyEndAllowThreads(__tstate); | |
25645 | if (PyErr_Occurred()) SWIG_fail; | |
25646 | } | |
25647 | Py_INCREF(Py_None); resultobj = Py_None; | |
25648 | { | |
25649 | if (temp3) | |
25650 | delete arg3; | |
25651 | } | |
25652 | return resultobj; | |
25653 | fail: | |
25654 | { | |
25655 | if (temp3) | |
25656 | delete arg3; | |
25657 | } | |
25658 | return NULL; | |
25659 | } | |
25660 | ||
25661 | ||
25662 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25663 | PyObject *resultobj; | |
25664 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25665 | wxTreeItemId *arg2 = 0 ; | |
25666 | int arg3 ; | |
25667 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25668 | PyObject * obj0 = 0 ; | |
25669 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25670 | PyObject * obj2 = 0 ; |
25671 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25672 | char *kwnames[] = { |
25673 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25674 | }; | |
25675 | ||
994141e6 | 25676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25681 | SWIG_fail; | |
d14a1e28 | 25682 | if (arg2 == NULL) { |
15afbcd0 RD |
25683 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25684 | SWIG_fail; | |
994141e6 | 25685 | } |
15afbcd0 RD |
25686 | arg3 = (int) SWIG_AsInt(obj2); |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25688 | if (obj3) { |
15afbcd0 RD |
25689 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25691 | } |
d14a1e28 RD |
25692 | { |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
25699 | Py_INCREF(Py_None); resultobj = Py_None; | |
25700 | return resultobj; | |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25707 | PyObject *resultobj; | |
25708 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25709 | wxTreeItemId *arg2 = 0 ; | |
25710 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25711 | PyObject * obj0 = 0 ; | |
25712 | PyObject * obj1 = 0 ; | |
25713 | PyObject * obj2 = 0 ; | |
25714 | char *kwnames[] = { | |
25715 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25716 | }; | |
25717 | ||
25718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25723 | SWIG_fail; | |
d14a1e28 | 25724 | if (arg2 == NULL) { |
15afbcd0 RD |
25725 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25726 | SWIG_fail; | |
d14a1e28 | 25727 | } |
15afbcd0 RD |
25728 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
25729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25730 | { |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25732 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25733 | ||
25734 | wxPyEndAllowThreads(__tstate); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
25737 | Py_INCREF(Py_None); resultobj = Py_None; | |
25738 | return resultobj; | |
25739 | fail: | |
25740 | return NULL; | |
25741 | } | |
25742 | ||
25743 | ||
25744 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25745 | PyObject *resultobj; | |
25746 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25747 | wxTreeItemId *arg2 = 0 ; | |
25748 | PyObject *arg3 = (PyObject *) 0 ; | |
25749 | PyObject * obj0 = 0 ; | |
25750 | PyObject * obj1 = 0 ; | |
25751 | PyObject * obj2 = 0 ; | |
25752 | char *kwnames[] = { | |
25753 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25754 | }; | |
25755 | ||
25756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25761 | SWIG_fail; | |
d14a1e28 | 25762 | if (arg2 == NULL) { |
15afbcd0 RD |
25763 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25764 | SWIG_fail; | |
d14a1e28 RD |
25765 | } |
25766 | arg3 = obj2; | |
25767 | { | |
25768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25769 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25770 | ||
25771 | wxPyEndAllowThreads(__tstate); | |
25772 | if (PyErr_Occurred()) SWIG_fail; | |
25773 | } | |
25774 | Py_INCREF(Py_None); resultobj = Py_None; | |
25775 | return resultobj; | |
25776 | fail: | |
25777 | return NULL; | |
25778 | } | |
25779 | ||
25780 | ||
25781 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25782 | PyObject *resultobj; | |
25783 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25784 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25785 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25786 | PyObject * obj0 = 0 ; |
25787 | PyObject * obj1 = 0 ; | |
25788 | PyObject * obj2 = 0 ; | |
25789 | char *kwnames[] = { | |
25790 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25791 | }; | |
25792 | ||
25793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25797 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25798 | SWIG_fail; | |
d14a1e28 | 25799 | if (arg2 == NULL) { |
15afbcd0 RD |
25800 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25801 | SWIG_fail; | |
d14a1e28 RD |
25802 | } |
25803 | if (obj2) { | |
15afbcd0 RD |
25804 | arg3 = (bool) SWIG_AsBool(obj2); |
25805 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25806 | } |
25807 | { | |
25808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25809 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25810 | ||
25811 | wxPyEndAllowThreads(__tstate); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | } | |
25814 | Py_INCREF(Py_None); resultobj = Py_None; | |
25815 | return resultobj; | |
25816 | fail: | |
25817 | return NULL; | |
25818 | } | |
25819 | ||
25820 | ||
25821 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25822 | PyObject *resultobj; | |
25823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25824 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25825 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25826 | PyObject * obj0 = 0 ; |
25827 | PyObject * obj1 = 0 ; | |
25828 | PyObject * obj2 = 0 ; | |
25829 | char *kwnames[] = { | |
25830 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25831 | }; | |
25832 | ||
25833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25838 | SWIG_fail; | |
d14a1e28 | 25839 | if (arg2 == NULL) { |
15afbcd0 RD |
25840 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25841 | SWIG_fail; | |
d14a1e28 RD |
25842 | } |
25843 | if (obj2) { | |
15afbcd0 RD |
25844 | arg3 = (bool) SWIG_AsBool(obj2); |
25845 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25846 | } |
25847 | { | |
25848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25849 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25850 | ||
25851 | wxPyEndAllowThreads(__tstate); | |
25852 | if (PyErr_Occurred()) SWIG_fail; | |
25853 | } | |
25854 | Py_INCREF(Py_None); resultobj = Py_None; | |
25855 | return resultobj; | |
25856 | fail: | |
25857 | return NULL; | |
25858 | } | |
25859 | ||
25860 | ||
25861 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25862 | PyObject *resultobj; | |
25863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25864 | wxTreeItemId *arg2 = 0 ; | |
25865 | wxColour *arg3 = 0 ; | |
25866 | wxColour temp3 ; | |
25867 | PyObject * obj0 = 0 ; | |
25868 | PyObject * obj1 = 0 ; | |
25869 | PyObject * obj2 = 0 ; | |
25870 | char *kwnames[] = { | |
25871 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25872 | }; | |
25873 | ||
25874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25879 | SWIG_fail; | |
d14a1e28 | 25880 | if (arg2 == NULL) { |
15afbcd0 RD |
25881 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25882 | SWIG_fail; | |
d14a1e28 RD |
25883 | } |
25884 | { | |
25885 | arg3 = &temp3; | |
25886 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25887 | } | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | Py_INCREF(Py_None); resultobj = Py_None; | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
25902 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25903 | PyObject *resultobj; | |
25904 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25905 | wxTreeItemId *arg2 = 0 ; | |
25906 | wxColour *arg3 = 0 ; | |
25907 | wxColour temp3 ; | |
25908 | PyObject * obj0 = 0 ; | |
25909 | PyObject * obj1 = 0 ; | |
25910 | PyObject * obj2 = 0 ; | |
25911 | char *kwnames[] = { | |
25912 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25913 | }; | |
25914 | ||
25915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25920 | SWIG_fail; | |
d14a1e28 | 25921 | if (arg2 == NULL) { |
15afbcd0 RD |
25922 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25923 | SWIG_fail; | |
d14a1e28 RD |
25924 | } |
25925 | { | |
25926 | arg3 = &temp3; | |
25927 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25928 | } | |
25929 | { | |
25930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25931 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25932 | ||
25933 | wxPyEndAllowThreads(__tstate); | |
25934 | if (PyErr_Occurred()) SWIG_fail; | |
25935 | } | |
25936 | Py_INCREF(Py_None); resultobj = Py_None; | |
25937 | return resultobj; | |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
25943 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25944 | PyObject *resultobj; | |
25945 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25946 | wxTreeItemId *arg2 = 0 ; | |
25947 | wxFont *arg3 = 0 ; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | PyObject * obj1 = 0 ; | |
25950 | PyObject * obj2 = 0 ; | |
25951 | char *kwnames[] = { | |
25952 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25953 | }; | |
25954 | ||
25955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25960 | SWIG_fail; | |
d14a1e28 | 25961 | if (arg2 == NULL) { |
15afbcd0 RD |
25962 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25963 | SWIG_fail; | |
d14a1e28 | 25964 | } |
15afbcd0 RD |
25965 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
25966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25967 | SWIG_fail; | |
d14a1e28 | 25968 | if (arg3 == NULL) { |
15afbcd0 RD |
25969 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25970 | SWIG_fail; | |
d14a1e28 RD |
25971 | } |
25972 | { | |
25973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25974 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25975 | ||
25976 | wxPyEndAllowThreads(__tstate); | |
25977 | if (PyErr_Occurred()) SWIG_fail; | |
25978 | } | |
25979 | Py_INCREF(Py_None); resultobj = Py_None; | |
25980 | return resultobj; | |
25981 | fail: | |
25982 | return NULL; | |
25983 | } | |
25984 | ||
25985 | ||
25986 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25987 | PyObject *resultobj; | |
25988 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25989 | wxTreeItemId *arg2 = 0 ; | |
25990 | bool result; | |
25991 | PyObject * obj0 = 0 ; | |
25992 | PyObject * obj1 = 0 ; | |
25993 | char *kwnames[] = { | |
25994 | (char *) "self",(char *) "item", NULL | |
25995 | }; | |
25996 | ||
25997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26002 | SWIG_fail; | |
d14a1e28 | 26003 | if (arg2 == NULL) { |
15afbcd0 RD |
26004 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26005 | SWIG_fail; | |
d14a1e28 RD |
26006 | } |
26007 | { | |
26008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26009 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26010 | ||
26011 | wxPyEndAllowThreads(__tstate); | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | } | |
4f89f6a3 RD |
26014 | { |
26015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26016 | } | |
d14a1e28 RD |
26017 | return resultobj; |
26018 | fail: | |
26019 | return NULL; | |
26020 | } | |
26021 | ||
26022 | ||
26023 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26024 | PyObject *resultobj; | |
26025 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26026 | wxTreeItemId *arg2 = 0 ; | |
26027 | bool result; | |
26028 | PyObject * obj0 = 0 ; | |
26029 | PyObject * obj1 = 0 ; | |
26030 | char *kwnames[] = { | |
26031 | (char *) "self",(char *) "item", NULL | |
26032 | }; | |
26033 | ||
26034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26039 | SWIG_fail; | |
d14a1e28 | 26040 | if (arg2 == NULL) { |
15afbcd0 RD |
26041 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26042 | SWIG_fail; | |
d14a1e28 RD |
26043 | } |
26044 | { | |
26045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26046 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26047 | ||
26048 | wxPyEndAllowThreads(__tstate); | |
26049 | if (PyErr_Occurred()) SWIG_fail; | |
26050 | } | |
4f89f6a3 RD |
26051 | { |
26052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26053 | } | |
d14a1e28 RD |
26054 | return resultobj; |
26055 | fail: | |
26056 | return NULL; | |
26057 | } | |
26058 | ||
26059 | ||
26060 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26061 | PyObject *resultobj; | |
26062 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26063 | wxTreeItemId *arg2 = 0 ; | |
26064 | bool result; | |
26065 | PyObject * obj0 = 0 ; | |
26066 | PyObject * obj1 = 0 ; | |
26067 | char *kwnames[] = { | |
26068 | (char *) "self",(char *) "item", NULL | |
26069 | }; | |
26070 | ||
26071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26076 | SWIG_fail; | |
d14a1e28 | 26077 | if (arg2 == NULL) { |
15afbcd0 RD |
26078 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26079 | SWIG_fail; | |
d14a1e28 RD |
26080 | } |
26081 | { | |
26082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26083 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26084 | ||
26085 | wxPyEndAllowThreads(__tstate); | |
26086 | if (PyErr_Occurred()) SWIG_fail; | |
26087 | } | |
4f89f6a3 RD |
26088 | { |
26089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26090 | } | |
d14a1e28 RD |
26091 | return resultobj; |
26092 | fail: | |
26093 | return NULL; | |
26094 | } | |
26095 | ||
26096 | ||
26097 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26098 | PyObject *resultobj; | |
26099 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26100 | wxTreeItemId *arg2 = 0 ; | |
26101 | bool result; | |
26102 | PyObject * obj0 = 0 ; | |
26103 | PyObject * obj1 = 0 ; | |
26104 | char *kwnames[] = { | |
26105 | (char *) "self",(char *) "item", NULL | |
26106 | }; | |
26107 | ||
26108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26113 | SWIG_fail; | |
d14a1e28 | 26114 | if (arg2 == NULL) { |
15afbcd0 RD |
26115 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26116 | SWIG_fail; | |
d14a1e28 RD |
26117 | } |
26118 | { | |
26119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26120 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26121 | ||
26122 | wxPyEndAllowThreads(__tstate); | |
26123 | if (PyErr_Occurred()) SWIG_fail; | |
26124 | } | |
4f89f6a3 RD |
26125 | { |
26126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26127 | } | |
d14a1e28 RD |
26128 | return resultobj; |
26129 | fail: | |
26130 | return NULL; | |
26131 | } | |
26132 | ||
26133 | ||
26134 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26135 | PyObject *resultobj; | |
26136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26137 | wxTreeItemId *arg2 = 0 ; | |
26138 | bool result; | |
26139 | PyObject * obj0 = 0 ; | |
26140 | PyObject * obj1 = 0 ; | |
26141 | char *kwnames[] = { | |
26142 | (char *) "self",(char *) "item", NULL | |
26143 | }; | |
26144 | ||
26145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26150 | SWIG_fail; | |
d14a1e28 | 26151 | if (arg2 == NULL) { |
15afbcd0 RD |
26152 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26153 | SWIG_fail; | |
d14a1e28 RD |
26154 | } |
26155 | { | |
26156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26157 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26158 | ||
26159 | wxPyEndAllowThreads(__tstate); | |
26160 | if (PyErr_Occurred()) SWIG_fail; | |
26161 | } | |
4f89f6a3 RD |
26162 | { |
26163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26164 | } | |
d14a1e28 RD |
26165 | return resultobj; |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
26171 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26172 | PyObject *resultobj; | |
26173 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26174 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26175 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26176 | size_t result; |
26177 | PyObject * obj0 = 0 ; | |
26178 | PyObject * obj1 = 0 ; | |
26179 | PyObject * obj2 = 0 ; | |
26180 | char *kwnames[] = { | |
26181 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26182 | }; | |
26183 | ||
26184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26189 | SWIG_fail; | |
d14a1e28 | 26190 | if (arg2 == NULL) { |
15afbcd0 RD |
26191 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26192 | SWIG_fail; | |
d14a1e28 RD |
26193 | } |
26194 | if (obj2) { | |
15afbcd0 RD |
26195 | arg3 = (bool) SWIG_AsBool(obj2); |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26197 | } |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
15afbcd0 | 26205 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
26206 | return resultobj; |
26207 | fail: | |
26208 | return NULL; | |
26209 | } | |
26210 | ||
26211 | ||
26212 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26213 | PyObject *resultobj; | |
26214 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26215 | wxTreeItemId result; | |
26216 | PyObject * obj0 = 0 ; | |
26217 | char *kwnames[] = { | |
26218 | (char *) "self", NULL | |
26219 | }; | |
26220 | ||
26221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26224 | { |
26225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26226 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26227 | ||
26228 | wxPyEndAllowThreads(__tstate); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | } | |
26231 | { | |
26232 | wxTreeItemId * resultptr; | |
26233 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26235 | } |
26236 | return resultobj; | |
26237 | fail: | |
26238 | return NULL; | |
26239 | } | |
26240 | ||
26241 | ||
26242 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26243 | PyObject *resultobj; | |
26244 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26245 | wxTreeItemId result; | |
26246 | PyObject * obj0 = 0 ; | |
26247 | char *kwnames[] = { | |
26248 | (char *) "self", NULL | |
26249 | }; | |
26250 | ||
26251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26254 | { |
26255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26256 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26257 | ||
26258 | wxPyEndAllowThreads(__tstate); | |
26259 | if (PyErr_Occurred()) SWIG_fail; | |
26260 | } | |
26261 | { | |
26262 | wxTreeItemId * resultptr; | |
26263 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26264 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26265 | } |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
26272 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26273 | PyObject *resultobj; | |
26274 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26275 | PyObject *result; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | char *kwnames[] = { | |
26278 | (char *) "self", NULL | |
26279 | }; | |
26280 | ||
26281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26284 | { |
26285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26286 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26287 | ||
26288 | wxPyEndAllowThreads(__tstate); | |
26289 | if (PyErr_Occurred()) SWIG_fail; | |
26290 | } | |
26291 | resultobj = result; | |
26292 | return resultobj; | |
26293 | fail: | |
26294 | return NULL; | |
26295 | } | |
26296 | ||
26297 | ||
26298 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26299 | PyObject *resultobj; | |
26300 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26301 | wxTreeItemId *arg2 = 0 ; | |
26302 | wxTreeItemId result; | |
26303 | PyObject * obj0 = 0 ; | |
26304 | PyObject * obj1 = 0 ; | |
26305 | char *kwnames[] = { | |
26306 | (char *) "self",(char *) "item", NULL | |
26307 | }; | |
26308 | ||
26309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26314 | SWIG_fail; | |
d14a1e28 | 26315 | if (arg2 == NULL) { |
15afbcd0 RD |
26316 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26317 | SWIG_fail; | |
d14a1e28 RD |
26318 | } |
26319 | { | |
26320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26321 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26322 | ||
26323 | wxPyEndAllowThreads(__tstate); | |
26324 | if (PyErr_Occurred()) SWIG_fail; | |
26325 | } | |
26326 | { | |
26327 | wxTreeItemId * resultptr; | |
26328 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26330 | } |
26331 | return resultobj; | |
26332 | fail: | |
26333 | return NULL; | |
26334 | } | |
26335 | ||
26336 | ||
26337 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26338 | PyObject *resultobj; | |
26339 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26340 | wxTreeItemId *arg2 = 0 ; | |
26341 | PyObject *result; | |
26342 | PyObject * obj0 = 0 ; | |
26343 | PyObject * obj1 = 0 ; | |
26344 | char *kwnames[] = { | |
26345 | (char *) "self",(char *) "item", NULL | |
26346 | }; | |
26347 | ||
26348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26353 | SWIG_fail; | |
d14a1e28 | 26354 | if (arg2 == NULL) { |
15afbcd0 RD |
26355 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26356 | SWIG_fail; | |
d14a1e28 RD |
26357 | } |
26358 | { | |
26359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26360 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26361 | ||
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
26365 | resultobj = result; | |
26366 | return resultobj; | |
26367 | fail: | |
26368 | return NULL; | |
26369 | } | |
26370 | ||
26371 | ||
26372 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26373 | PyObject *resultobj; | |
26374 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26375 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26376 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26377 | PyObject *result; |
26378 | PyObject * obj0 = 0 ; | |
26379 | PyObject * obj1 = 0 ; | |
26380 | PyObject * obj2 = 0 ; | |
26381 | char *kwnames[] = { | |
26382 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26383 | }; | |
26384 | ||
26385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26390 | SWIG_fail; | |
d14a1e28 | 26391 | if (arg2 == NULL) { |
15afbcd0 RD |
26392 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26393 | SWIG_fail; | |
d14a1e28 | 26394 | } |
15afbcd0 | 26395 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
26396 | { |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 26398 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
26399 | |
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | resultobj = result; | |
26404 | return resultobj; | |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
26410 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26411 | PyObject *resultobj; | |
26412 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26413 | wxTreeItemId *arg2 = 0 ; | |
26414 | wxTreeItemId result; | |
26415 | PyObject * obj0 = 0 ; | |
26416 | PyObject * obj1 = 0 ; | |
26417 | char *kwnames[] = { | |
26418 | (char *) "self",(char *) "item", NULL | |
26419 | }; | |
26420 | ||
26421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26426 | SWIG_fail; | |
d14a1e28 | 26427 | if (arg2 == NULL) { |
15afbcd0 RD |
26428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26429 | SWIG_fail; | |
d14a1e28 RD |
26430 | } |
26431 | { | |
26432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26433 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26434 | ||
26435 | wxPyEndAllowThreads(__tstate); | |
26436 | if (PyErr_Occurred()) SWIG_fail; | |
26437 | } | |
26438 | { | |
26439 | wxTreeItemId * resultptr; | |
26440 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26442 | } |
26443 | return resultobj; | |
26444 | fail: | |
26445 | return NULL; | |
26446 | } | |
26447 | ||
26448 | ||
26449 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26450 | PyObject *resultobj; | |
26451 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26452 | wxTreeItemId *arg2 = 0 ; | |
26453 | wxTreeItemId result; | |
26454 | PyObject * obj0 = 0 ; | |
26455 | PyObject * obj1 = 0 ; | |
26456 | char *kwnames[] = { | |
26457 | (char *) "self",(char *) "item", NULL | |
26458 | }; | |
26459 | ||
26460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26465 | SWIG_fail; | |
d14a1e28 | 26466 | if (arg2 == NULL) { |
15afbcd0 RD |
26467 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26468 | SWIG_fail; | |
d14a1e28 RD |
26469 | } |
26470 | { | |
26471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26472 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26473 | ||
26474 | wxPyEndAllowThreads(__tstate); | |
26475 | if (PyErr_Occurred()) SWIG_fail; | |
26476 | } | |
26477 | { | |
26478 | wxTreeItemId * resultptr; | |
26479 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26480 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26481 | } |
26482 | return resultobj; | |
26483 | fail: | |
26484 | return NULL; | |
26485 | } | |
26486 | ||
26487 | ||
26488 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26489 | PyObject *resultobj; | |
26490 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26491 | wxTreeItemId *arg2 = 0 ; | |
26492 | wxTreeItemId result; | |
26493 | PyObject * obj0 = 0 ; | |
26494 | PyObject * obj1 = 0 ; | |
26495 | char *kwnames[] = { | |
26496 | (char *) "self",(char *) "item", NULL | |
26497 | }; | |
26498 | ||
26499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26503 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26504 | SWIG_fail; | |
d14a1e28 | 26505 | if (arg2 == NULL) { |
15afbcd0 RD |
26506 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26507 | SWIG_fail; | |
d14a1e28 RD |
26508 | } |
26509 | { | |
26510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26511 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26512 | ||
26513 | wxPyEndAllowThreads(__tstate); | |
26514 | if (PyErr_Occurred()) SWIG_fail; | |
26515 | } | |
26516 | { | |
26517 | wxTreeItemId * resultptr; | |
26518 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26520 | } |
26521 | return resultobj; | |
26522 | fail: | |
26523 | return NULL; | |
26524 | } | |
26525 | ||
26526 | ||
26527 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26528 | PyObject *resultobj; | |
26529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26530 | wxTreeItemId result; | |
26531 | PyObject * obj0 = 0 ; | |
26532 | char *kwnames[] = { | |
26533 | (char *) "self", NULL | |
26534 | }; | |
26535 | ||
26536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26539 | { |
26540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26541 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26542 | ||
26543 | wxPyEndAllowThreads(__tstate); | |
26544 | if (PyErr_Occurred()) SWIG_fail; | |
26545 | } | |
26546 | { | |
26547 | wxTreeItemId * resultptr; | |
26548 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26550 | } |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
26557 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26558 | PyObject *resultobj; | |
26559 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26560 | wxTreeItemId *arg2 = 0 ; | |
26561 | wxTreeItemId result; | |
26562 | PyObject * obj0 = 0 ; | |
26563 | PyObject * obj1 = 0 ; | |
26564 | char *kwnames[] = { | |
26565 | (char *) "self",(char *) "item", NULL | |
26566 | }; | |
26567 | ||
26568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26573 | SWIG_fail; | |
d14a1e28 | 26574 | if (arg2 == NULL) { |
15afbcd0 RD |
26575 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26576 | SWIG_fail; | |
d14a1e28 RD |
26577 | } |
26578 | { | |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26580 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | } | |
26585 | { | |
26586 | wxTreeItemId * resultptr; | |
26587 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26589 | } |
26590 | return resultobj; | |
26591 | fail: | |
26592 | return NULL; | |
26593 | } | |
26594 | ||
26595 | ||
26596 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26597 | PyObject *resultobj; | |
26598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26599 | wxTreeItemId *arg2 = 0 ; | |
26600 | wxTreeItemId result; | |
26601 | PyObject * obj0 = 0 ; | |
26602 | PyObject * obj1 = 0 ; | |
26603 | char *kwnames[] = { | |
26604 | (char *) "self",(char *) "item", NULL | |
26605 | }; | |
26606 | ||
26607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26612 | SWIG_fail; | |
d14a1e28 | 26613 | if (arg2 == NULL) { |
15afbcd0 RD |
26614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26615 | SWIG_fail; | |
d14a1e28 RD |
26616 | } |
26617 | { | |
26618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26619 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26620 | ||
26621 | wxPyEndAllowThreads(__tstate); | |
26622 | if (PyErr_Occurred()) SWIG_fail; | |
26623 | } | |
26624 | { | |
26625 | wxTreeItemId * resultptr; | |
26626 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26628 | } |
26629 | return resultobj; | |
26630 | fail: | |
26631 | return NULL; | |
26632 | } | |
26633 | ||
26634 | ||
26635 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26636 | PyObject *resultobj; | |
26637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26638 | wxString *arg2 = 0 ; | |
26639 | int arg3 = (int) -1 ; | |
26640 | int arg4 = (int) -1 ; | |
26641 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26642 | wxTreeItemId result; | |
e811c8ce | 26643 | bool temp2 = False ; |
d14a1e28 RD |
26644 | PyObject * obj0 = 0 ; |
26645 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26646 | PyObject * obj2 = 0 ; |
26647 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26648 | PyObject * obj4 = 0 ; |
26649 | char *kwnames[] = { | |
26650 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26651 | }; | |
26652 | ||
994141e6 | 26653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26656 | { |
26657 | arg2 = wxString_in_helper(obj1); | |
26658 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26659 | temp2 = True; |
d14a1e28 | 26660 | } |
994141e6 | 26661 | if (obj2) { |
15afbcd0 RD |
26662 | arg3 = (int) SWIG_AsInt(obj2); |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26664 | } |
26665 | if (obj3) { | |
15afbcd0 RD |
26666 | arg4 = (int) SWIG_AsInt(obj3); |
26667 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26668 | } |
d14a1e28 | 26669 | if (obj4) { |
15afbcd0 RD |
26670 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26672 | } |
26673 | { | |
26674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26675 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26676 | ||
26677 | wxPyEndAllowThreads(__tstate); | |
26678 | if (PyErr_Occurred()) SWIG_fail; | |
26679 | } | |
26680 | { | |
26681 | wxTreeItemId * resultptr; | |
26682 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26683 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26684 | } |
26685 | { | |
26686 | if (temp2) | |
26687 | delete arg2; | |
26688 | } | |
26689 | return resultobj; | |
26690 | fail: | |
26691 | { | |
26692 | if (temp2) | |
26693 | delete arg2; | |
26694 | } | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
26699 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26700 | PyObject *resultobj; | |
26701 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26702 | wxTreeItemId *arg2 = 0 ; | |
26703 | wxString *arg3 = 0 ; | |
26704 | int arg4 = (int) -1 ; | |
26705 | int arg5 = (int) -1 ; | |
26706 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26707 | wxTreeItemId result; | |
e811c8ce | 26708 | bool temp3 = False ; |
d14a1e28 RD |
26709 | PyObject * obj0 = 0 ; |
26710 | PyObject * obj1 = 0 ; | |
26711 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26712 | PyObject * obj3 = 0 ; |
26713 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26714 | PyObject * obj5 = 0 ; |
26715 | char *kwnames[] = { | |
26716 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26717 | }; | |
26718 | ||
994141e6 | 26719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26724 | SWIG_fail; | |
d14a1e28 | 26725 | if (arg2 == NULL) { |
15afbcd0 RD |
26726 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26727 | SWIG_fail; | |
d14a1e28 RD |
26728 | } |
26729 | { | |
26730 | arg3 = wxString_in_helper(obj2); | |
26731 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26732 | temp3 = True; |
d14a1e28 | 26733 | } |
994141e6 | 26734 | if (obj3) { |
15afbcd0 RD |
26735 | arg4 = (int) SWIG_AsInt(obj3); |
26736 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26737 | } |
26738 | if (obj4) { | |
15afbcd0 RD |
26739 | arg5 = (int) SWIG_AsInt(obj4); |
26740 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26741 | } |
d14a1e28 | 26742 | if (obj5) { |
15afbcd0 RD |
26743 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26745 | } |
26746 | { | |
26747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26748 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26749 | ||
26750 | wxPyEndAllowThreads(__tstate); | |
26751 | if (PyErr_Occurred()) SWIG_fail; | |
26752 | } | |
26753 | { | |
26754 | wxTreeItemId * resultptr; | |
26755 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26757 | } |
26758 | { | |
26759 | if (temp3) | |
26760 | delete arg3; | |
26761 | } | |
26762 | return resultobj; | |
26763 | fail: | |
26764 | { | |
26765 | if (temp3) | |
26766 | delete arg3; | |
26767 | } | |
26768 | return NULL; | |
26769 | } | |
26770 | ||
26771 | ||
26772 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26773 | PyObject *resultobj; | |
26774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26775 | wxTreeItemId *arg2 = 0 ; | |
26776 | wxTreeItemId *arg3 = 0 ; | |
26777 | wxString *arg4 = 0 ; | |
26778 | int arg5 = (int) -1 ; | |
26779 | int arg6 = (int) -1 ; | |
26780 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26781 | wxTreeItemId result; | |
e811c8ce | 26782 | bool temp4 = False ; |
d14a1e28 RD |
26783 | PyObject * obj0 = 0 ; |
26784 | PyObject * obj1 = 0 ; | |
26785 | PyObject * obj2 = 0 ; | |
26786 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26787 | PyObject * obj4 = 0 ; |
26788 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26789 | PyObject * obj6 = 0 ; |
26790 | char *kwnames[] = { | |
26791 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26792 | }; | |
26793 | ||
994141e6 | 26794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26798 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26799 | SWIG_fail; | |
d14a1e28 | 26800 | if (arg2 == NULL) { |
15afbcd0 RD |
26801 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26802 | SWIG_fail; | |
d14a1e28 | 26803 | } |
15afbcd0 RD |
26804 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26805 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26806 | SWIG_fail; | |
d14a1e28 | 26807 | if (arg3 == NULL) { |
15afbcd0 RD |
26808 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26809 | SWIG_fail; | |
d14a1e28 RD |
26810 | } |
26811 | { | |
26812 | arg4 = wxString_in_helper(obj3); | |
26813 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26814 | temp4 = True; |
d14a1e28 | 26815 | } |
994141e6 | 26816 | if (obj4) { |
15afbcd0 RD |
26817 | arg5 = (int) SWIG_AsInt(obj4); |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26819 | } |
26820 | if (obj5) { | |
15afbcd0 RD |
26821 | arg6 = (int) SWIG_AsInt(obj5); |
26822 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26823 | } |
d14a1e28 | 26824 | if (obj6) { |
15afbcd0 RD |
26825 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26827 | } |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | { | |
26836 | wxTreeItemId * resultptr; | |
26837 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26839 | } |
26840 | { | |
26841 | if (temp4) | |
26842 | delete arg4; | |
26843 | } | |
26844 | return resultobj; | |
26845 | fail: | |
26846 | { | |
26847 | if (temp4) | |
26848 | delete arg4; | |
26849 | } | |
26850 | return NULL; | |
26851 | } | |
26852 | ||
26853 | ||
26854 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26855 | PyObject *resultobj; | |
26856 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26857 | wxTreeItemId *arg2 = 0 ; | |
26858 | size_t arg3 ; | |
26859 | wxString *arg4 = 0 ; | |
26860 | int arg5 = (int) -1 ; | |
26861 | int arg6 = (int) -1 ; | |
26862 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26863 | wxTreeItemId result; | |
e811c8ce | 26864 | bool temp4 = False ; |
d14a1e28 RD |
26865 | PyObject * obj0 = 0 ; |
26866 | PyObject * obj1 = 0 ; | |
26867 | PyObject * obj2 = 0 ; | |
26868 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26869 | PyObject * obj4 = 0 ; |
26870 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26871 | PyObject * obj6 = 0 ; |
26872 | char *kwnames[] = { | |
26873 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26874 | }; | |
26875 | ||
994141e6 | 26876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26881 | SWIG_fail; | |
d14a1e28 | 26882 | if (arg2 == NULL) { |
15afbcd0 RD |
26883 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26884 | SWIG_fail; | |
a41e16b6 | 26885 | } |
15afbcd0 RD |
26886 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
26887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26888 | { |
26889 | arg4 = wxString_in_helper(obj3); | |
26890 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26891 | temp4 = True; |
d14a1e28 | 26892 | } |
994141e6 | 26893 | if (obj4) { |
15afbcd0 RD |
26894 | arg5 = (int) SWIG_AsInt(obj4); |
26895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26896 | } |
26897 | if (obj5) { | |
15afbcd0 RD |
26898 | arg6 = (int) SWIG_AsInt(obj5); |
26899 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26900 | } |
d14a1e28 | 26901 | if (obj6) { |
15afbcd0 RD |
26902 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26904 | } |
26905 | { | |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | { | |
26913 | wxTreeItemId * resultptr; | |
26914 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26916 | } |
26917 | { | |
26918 | if (temp4) | |
26919 | delete arg4; | |
26920 | } | |
26921 | return resultobj; | |
26922 | fail: | |
26923 | { | |
26924 | if (temp4) | |
26925 | delete arg4; | |
26926 | } | |
26927 | return NULL; | |
26928 | } | |
26929 | ||
26930 | ||
26931 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26932 | PyObject *resultobj; | |
26933 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26934 | wxTreeItemId *arg2 = 0 ; | |
26935 | wxString *arg3 = 0 ; | |
26936 | int arg4 = (int) -1 ; | |
26937 | int arg5 = (int) -1 ; | |
26938 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26939 | wxTreeItemId result; | |
e811c8ce | 26940 | bool temp3 = False ; |
d14a1e28 RD |
26941 | PyObject * obj0 = 0 ; |
26942 | PyObject * obj1 = 0 ; | |
26943 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26944 | PyObject * obj3 = 0 ; |
26945 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26946 | PyObject * obj5 = 0 ; |
26947 | char *kwnames[] = { | |
26948 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26949 | }; | |
26950 | ||
994141e6 | 26951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26955 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26956 | SWIG_fail; | |
d14a1e28 | 26957 | if (arg2 == NULL) { |
15afbcd0 RD |
26958 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26959 | SWIG_fail; | |
d14a1e28 RD |
26960 | } |
26961 | { | |
26962 | arg3 = wxString_in_helper(obj2); | |
26963 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26964 | temp3 = True; |
d14a1e28 | 26965 | } |
994141e6 | 26966 | if (obj3) { |
15afbcd0 RD |
26967 | arg4 = (int) SWIG_AsInt(obj3); |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26969 | } |
26970 | if (obj4) { | |
15afbcd0 RD |
26971 | arg5 = (int) SWIG_AsInt(obj4); |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26973 | } |
d14a1e28 | 26974 | if (obj5) { |
15afbcd0 RD |
26975 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26977 | } |
26978 | { | |
26979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26980 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26981 | ||
26982 | wxPyEndAllowThreads(__tstate); | |
26983 | if (PyErr_Occurred()) SWIG_fail; | |
26984 | } | |
26985 | { | |
26986 | wxTreeItemId * resultptr; | |
26987 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26988 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26989 | } |
26990 | { | |
26991 | if (temp3) | |
26992 | delete arg3; | |
26993 | } | |
26994 | return resultobj; | |
26995 | fail: | |
26996 | { | |
26997 | if (temp3) | |
26998 | delete arg3; | |
26999 | } | |
27000 | return NULL; | |
27001 | } | |
27002 | ||
27003 | ||
27004 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27005 | PyObject *resultobj; | |
27006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27007 | wxTreeItemId *arg2 = 0 ; | |
27008 | PyObject * obj0 = 0 ; | |
27009 | PyObject * obj1 = 0 ; | |
27010 | char *kwnames[] = { | |
27011 | (char *) "self",(char *) "item", NULL | |
27012 | }; | |
27013 | ||
27014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27019 | SWIG_fail; | |
d14a1e28 | 27020 | if (arg2 == NULL) { |
15afbcd0 RD |
27021 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27022 | SWIG_fail; | |
d14a1e28 RD |
27023 | } |
27024 | { | |
27025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27026 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27027 | ||
27028 | wxPyEndAllowThreads(__tstate); | |
27029 | if (PyErr_Occurred()) SWIG_fail; | |
27030 | } | |
27031 | Py_INCREF(Py_None); resultobj = Py_None; | |
27032 | return resultobj; | |
27033 | fail: | |
27034 | return NULL; | |
27035 | } | |
27036 | ||
27037 | ||
27038 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27039 | PyObject *resultobj; | |
27040 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27041 | wxTreeItemId *arg2 = 0 ; | |
27042 | PyObject * obj0 = 0 ; | |
27043 | PyObject * obj1 = 0 ; | |
27044 | char *kwnames[] = { | |
27045 | (char *) "self",(char *) "item", NULL | |
27046 | }; | |
27047 | ||
27048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27053 | SWIG_fail; | |
d14a1e28 | 27054 | if (arg2 == NULL) { |
15afbcd0 RD |
27055 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27056 | SWIG_fail; | |
d14a1e28 RD |
27057 | } |
27058 | { | |
27059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27060 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27061 | ||
27062 | wxPyEndAllowThreads(__tstate); | |
27063 | if (PyErr_Occurred()) SWIG_fail; | |
27064 | } | |
27065 | Py_INCREF(Py_None); resultobj = Py_None; | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
27072 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27073 | PyObject *resultobj; | |
27074 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27075 | PyObject * obj0 = 0 ; | |
27076 | char *kwnames[] = { | |
27077 | (char *) "self", NULL | |
27078 | }; | |
27079 | ||
27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27083 | { |
27084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27085 | (arg1)->DeleteAllItems(); | |
27086 | ||
27087 | wxPyEndAllowThreads(__tstate); | |
27088 | if (PyErr_Occurred()) SWIG_fail; | |
27089 | } | |
27090 | Py_INCREF(Py_None); resultobj = Py_None; | |
27091 | return resultobj; | |
27092 | fail: | |
27093 | return NULL; | |
27094 | } | |
27095 | ||
27096 | ||
27097 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27098 | PyObject *resultobj; | |
27099 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27100 | wxTreeItemId *arg2 = 0 ; | |
27101 | PyObject * obj0 = 0 ; | |
27102 | PyObject * obj1 = 0 ; | |
27103 | char *kwnames[] = { | |
27104 | (char *) "self",(char *) "item", NULL | |
27105 | }; | |
27106 | ||
27107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27110 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27111 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27112 | SWIG_fail; | |
d14a1e28 | 27113 | if (arg2 == NULL) { |
15afbcd0 RD |
27114 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27115 | SWIG_fail; | |
d14a1e28 RD |
27116 | } |
27117 | { | |
27118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27119 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27120 | ||
27121 | wxPyEndAllowThreads(__tstate); | |
27122 | if (PyErr_Occurred()) SWIG_fail; | |
27123 | } | |
27124 | Py_INCREF(Py_None); resultobj = Py_None; | |
27125 | return resultobj; | |
27126 | fail: | |
27127 | return NULL; | |
27128 | } | |
27129 | ||
27130 | ||
27131 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27132 | PyObject *resultobj; | |
27133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27134 | wxTreeItemId *arg2 = 0 ; | |
27135 | PyObject * obj0 = 0 ; | |
27136 | PyObject * obj1 = 0 ; | |
27137 | char *kwnames[] = { | |
27138 | (char *) "self",(char *) "item", NULL | |
27139 | }; | |
27140 | ||
27141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27144 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27145 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27146 | SWIG_fail; | |
d14a1e28 | 27147 | if (arg2 == NULL) { |
15afbcd0 RD |
27148 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27149 | SWIG_fail; | |
d14a1e28 RD |
27150 | } |
27151 | { | |
27152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27153 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27154 | ||
27155 | wxPyEndAllowThreads(__tstate); | |
27156 | if (PyErr_Occurred()) SWIG_fail; | |
27157 | } | |
27158 | Py_INCREF(Py_None); resultobj = Py_None; | |
27159 | return resultobj; | |
27160 | fail: | |
27161 | return NULL; | |
27162 | } | |
27163 | ||
27164 | ||
27165 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27166 | PyObject *resultobj; | |
27167 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27168 | wxTreeItemId *arg2 = 0 ; | |
27169 | PyObject * obj0 = 0 ; | |
27170 | PyObject * obj1 = 0 ; | |
27171 | char *kwnames[] = { | |
27172 | (char *) "self",(char *) "item", NULL | |
27173 | }; | |
27174 | ||
27175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27178 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27180 | SWIG_fail; | |
d14a1e28 | 27181 | if (arg2 == NULL) { |
15afbcd0 RD |
27182 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27183 | SWIG_fail; | |
d14a1e28 RD |
27184 | } |
27185 | { | |
27186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27187 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27188 | ||
27189 | wxPyEndAllowThreads(__tstate); | |
27190 | if (PyErr_Occurred()) SWIG_fail; | |
27191 | } | |
27192 | Py_INCREF(Py_None); resultobj = Py_None; | |
27193 | return resultobj; | |
27194 | fail: | |
27195 | return NULL; | |
27196 | } | |
27197 | ||
27198 | ||
27199 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27200 | PyObject *resultobj; | |
27201 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27202 | wxTreeItemId *arg2 = 0 ; | |
27203 | PyObject * obj0 = 0 ; | |
27204 | PyObject * obj1 = 0 ; | |
27205 | char *kwnames[] = { | |
27206 | (char *) "self",(char *) "item", NULL | |
27207 | }; | |
27208 | ||
27209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27214 | SWIG_fail; | |
d14a1e28 | 27215 | if (arg2 == NULL) { |
15afbcd0 RD |
27216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27217 | SWIG_fail; | |
d14a1e28 RD |
27218 | } |
27219 | { | |
27220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27221 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27222 | ||
27223 | wxPyEndAllowThreads(__tstate); | |
27224 | if (PyErr_Occurred()) SWIG_fail; | |
27225 | } | |
27226 | Py_INCREF(Py_None); resultobj = Py_None; | |
27227 | return resultobj; | |
27228 | fail: | |
27229 | return NULL; | |
27230 | } | |
27231 | ||
27232 | ||
27233 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27234 | PyObject *resultobj; | |
27235 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27236 | PyObject * obj0 = 0 ; | |
27237 | char *kwnames[] = { | |
27238 | (char *) "self", NULL | |
27239 | }; | |
27240 | ||
27241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27244 | { |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | (arg1)->Unselect(); | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
27251 | Py_INCREF(Py_None); resultobj = Py_None; | |
27252 | return resultobj; | |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
3adfb63b RD |
27258 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
27259 | PyObject *resultobj; | |
27260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27261 | wxTreeItemId *arg2 = 0 ; | |
27262 | PyObject * obj0 = 0 ; | |
27263 | PyObject * obj1 = 0 ; | |
27264 | char *kwnames[] = { | |
27265 | (char *) "self",(char *) "item", NULL | |
27266 | }; | |
27267 | ||
27268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27271 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27272 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27273 | SWIG_fail; | |
3adfb63b | 27274 | if (arg2 == NULL) { |
15afbcd0 RD |
27275 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27276 | SWIG_fail; | |
3adfb63b RD |
27277 | } |
27278 | { | |
27279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27280 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27281 | ||
27282 | wxPyEndAllowThreads(__tstate); | |
27283 | if (PyErr_Occurred()) SWIG_fail; | |
27284 | } | |
27285 | Py_INCREF(Py_None); resultobj = Py_None; | |
27286 | return resultobj; | |
27287 | fail: | |
27288 | return NULL; | |
27289 | } | |
27290 | ||
27291 | ||
d14a1e28 RD |
27292 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
27293 | PyObject *resultobj; | |
27294 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27295 | PyObject * obj0 = 0 ; | |
27296 | char *kwnames[] = { | |
27297 | (char *) "self", NULL | |
27298 | }; | |
27299 | ||
27300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27303 | { |
27304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27305 | (arg1)->UnselectAll(); | |
27306 | ||
27307 | wxPyEndAllowThreads(__tstate); | |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | } | |
27310 | Py_INCREF(Py_None); resultobj = Py_None; | |
27311 | return resultobj; | |
27312 | fail: | |
27313 | return NULL; | |
27314 | } | |
27315 | ||
27316 | ||
27317 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
27318 | PyObject *resultobj; |
27319 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27320 | wxTreeItemId *arg2 = 0 ; | |
27321 | bool arg3 = (bool) True ; | |
27322 | PyObject * obj0 = 0 ; | |
27323 | PyObject * obj1 = 0 ; | |
27324 | PyObject * obj2 = 0 ; | |
27325 | char *kwnames[] = { | |
27326 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27333 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27334 | SWIG_fail; | |
3adfb63b | 27335 | if (arg2 == NULL) { |
15afbcd0 RD |
27336 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27337 | SWIG_fail; | |
3adfb63b RD |
27338 | } |
27339 | if (obj2) { | |
15afbcd0 RD |
27340 | arg3 = (bool) SWIG_AsBool(obj2); |
27341 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b RD |
27342 | } |
27343 | { | |
27344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27345 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27346 | ||
27347 | wxPyEndAllowThreads(__tstate); | |
27348 | if (PyErr_Occurred()) SWIG_fail; | |
27349 | } | |
27350 | Py_INCREF(Py_None); resultobj = Py_None; | |
27351 | return resultobj; | |
27352 | fail: | |
27353 | return NULL; | |
27354 | } | |
27355 | ||
27356 | ||
27357 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
27358 | PyObject *resultobj; |
27359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27360 | wxTreeItemId *arg2 = 0 ; | |
27361 | PyObject * obj0 = 0 ; | |
27362 | PyObject * obj1 = 0 ; | |
27363 | char *kwnames[] = { | |
27364 | (char *) "self",(char *) "item", NULL | |
27365 | }; | |
27366 | ||
3adfb63b | 27367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27372 | SWIG_fail; | |
d14a1e28 | 27373 | if (arg2 == NULL) { |
15afbcd0 RD |
27374 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27375 | SWIG_fail; | |
d14a1e28 RD |
27376 | } |
27377 | { | |
27378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27379 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27380 | |
27381 | wxPyEndAllowThreads(__tstate); | |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
27384 | Py_INCREF(Py_None); resultobj = Py_None; | |
27385 | return resultobj; | |
27386 | fail: | |
27387 | return NULL; | |
27388 | } | |
27389 | ||
27390 | ||
27391 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27392 | PyObject *resultobj; | |
27393 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27394 | wxTreeItemId *arg2 = 0 ; | |
27395 | PyObject * obj0 = 0 ; | |
27396 | PyObject * obj1 = 0 ; | |
27397 | char *kwnames[] = { | |
27398 | (char *) "self",(char *) "item", NULL | |
27399 | }; | |
27400 | ||
27401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27406 | SWIG_fail; | |
d14a1e28 | 27407 | if (arg2 == NULL) { |
15afbcd0 RD |
27408 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27409 | SWIG_fail; | |
d14a1e28 RD |
27410 | } |
27411 | { | |
27412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27413 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27414 | ||
27415 | wxPyEndAllowThreads(__tstate); | |
27416 | if (PyErr_Occurred()) SWIG_fail; | |
27417 | } | |
27418 | Py_INCREF(Py_None); resultobj = Py_None; | |
27419 | return resultobj; | |
27420 | fail: | |
27421 | return NULL; | |
27422 | } | |
27423 | ||
27424 | ||
27425 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27426 | PyObject *resultobj; | |
27427 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27428 | wxTreeItemId *arg2 = 0 ; | |
27429 | PyObject * obj0 = 0 ; | |
27430 | PyObject * obj1 = 0 ; | |
27431 | char *kwnames[] = { | |
27432 | (char *) "self",(char *) "item", NULL | |
27433 | }; | |
27434 | ||
27435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27439 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27440 | SWIG_fail; | |
d14a1e28 | 27441 | if (arg2 == NULL) { |
15afbcd0 RD |
27442 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27443 | SWIG_fail; | |
d14a1e28 RD |
27444 | } |
27445 | { | |
27446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27447 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27448 | ||
27449 | wxPyEndAllowThreads(__tstate); | |
27450 | if (PyErr_Occurred()) SWIG_fail; | |
27451 | } | |
27452 | Py_INCREF(Py_None); resultobj = Py_None; | |
27453 | return resultobj; | |
27454 | fail: | |
27455 | return NULL; | |
27456 | } | |
27457 | ||
27458 | ||
27459 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27460 | PyObject *resultobj; | |
27461 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27462 | wxTreeItemId *arg2 = 0 ; | |
27463 | PyObject * obj0 = 0 ; | |
27464 | PyObject * obj1 = 0 ; | |
27465 | char *kwnames[] = { | |
27466 | (char *) "self",(char *) "item", NULL | |
27467 | }; | |
27468 | ||
27469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27474 | SWIG_fail; | |
d14a1e28 | 27475 | if (arg2 == NULL) { |
15afbcd0 RD |
27476 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27477 | SWIG_fail; | |
d14a1e28 RD |
27478 | } |
27479 | { | |
27480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27481 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27482 | ||
27483 | wxPyEndAllowThreads(__tstate); | |
27484 | if (PyErr_Occurred()) SWIG_fail; | |
27485 | } | |
27486 | Py_INCREF(Py_None); resultobj = Py_None; | |
27487 | return resultobj; | |
27488 | fail: | |
27489 | return NULL; | |
27490 | } | |
27491 | ||
27492 | ||
27493 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27494 | PyObject *resultobj; | |
27495 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27496 | wxTextCtrl *result; | |
27497 | PyObject * obj0 = 0 ; | |
27498 | char *kwnames[] = { | |
27499 | (char *) "self", NULL | |
27500 | }; | |
27501 | ||
27502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27505 | { |
27506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27507 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27508 | ||
27509 | wxPyEndAllowThreads(__tstate); | |
27510 | if (PyErr_Occurred()) SWIG_fail; | |
27511 | } | |
27512 | { | |
27513 | resultobj = wxPyMake_wxObject(result); | |
27514 | } | |
27515 | return resultobj; | |
27516 | fail: | |
27517 | return NULL; | |
27518 | } | |
27519 | ||
27520 | ||
27521 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27522 | PyObject *resultobj; | |
27523 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27524 | wxTreeItemId *arg2 = 0 ; | |
27525 | PyObject * obj0 = 0 ; | |
27526 | PyObject * obj1 = 0 ; | |
27527 | char *kwnames[] = { | |
27528 | (char *) "self",(char *) "item", NULL | |
27529 | }; | |
27530 | ||
27531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27534 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27535 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27536 | SWIG_fail; | |
d14a1e28 | 27537 | if (arg2 == NULL) { |
15afbcd0 RD |
27538 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27539 | SWIG_fail; | |
d14a1e28 RD |
27540 | } |
27541 | { | |
27542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27543 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27544 | ||
27545 | wxPyEndAllowThreads(__tstate); | |
27546 | if (PyErr_Occurred()) SWIG_fail; | |
27547 | } | |
27548 | Py_INCREF(Py_None); resultobj = Py_None; | |
27549 | return resultobj; | |
27550 | fail: | |
27551 | return NULL; | |
27552 | } | |
27553 | ||
27554 | ||
27555 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27556 | PyObject *resultobj; | |
27557 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27558 | wxPoint *arg2 = 0 ; | |
27559 | int *arg3 = 0 ; | |
27560 | wxTreeItemId result; | |
27561 | wxPoint temp2 ; | |
27562 | int temp3 ; | |
27563 | PyObject * obj0 = 0 ; | |
27564 | PyObject * obj1 = 0 ; | |
27565 | char *kwnames[] = { | |
27566 | (char *) "self",(char *) "point", NULL | |
27567 | }; | |
27568 | ||
27569 | arg3 = &temp3; | |
27570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27573 | { |
27574 | arg2 = &temp2; | |
27575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27576 | } | |
27577 | { | |
27578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27579 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27580 | ||
27581 | wxPyEndAllowThreads(__tstate); | |
27582 | if (PyErr_Occurred()) SWIG_fail; | |
27583 | } | |
27584 | { | |
27585 | wxTreeItemId * resultptr; | |
27586 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27588 | } |
27589 | { | |
27590 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27591 | resultobj = t_output_helper(resultobj,o); | |
27592 | } | |
27593 | return resultobj; | |
27594 | fail: | |
27595 | return NULL; | |
27596 | } | |
27597 | ||
27598 | ||
27599 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27600 | PyObject *resultobj; | |
27601 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27602 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 27603 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27604 | PyObject *result; |
27605 | PyObject * obj0 = 0 ; | |
27606 | PyObject * obj1 = 0 ; | |
27607 | PyObject * obj2 = 0 ; | |
27608 | char *kwnames[] = { | |
27609 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27610 | }; | |
27611 | ||
27612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) 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 | if (obj2) { | |
15afbcd0 RD |
27623 | arg3 = (bool) SWIG_AsBool(obj2); |
27624 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27625 | } |
27626 | { | |
27627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27628 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27629 | ||
27630 | wxPyEndAllowThreads(__tstate); | |
27631 | if (PyErr_Occurred()) SWIG_fail; | |
27632 | } | |
27633 | resultobj = result; | |
27634 | return resultobj; | |
27635 | fail: | |
27636 | return NULL; | |
27637 | } | |
27638 | ||
27639 | ||
74a57fcd RD |
27640 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27641 | PyObject *resultobj; | |
27642 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27643 | wxVisualAttributes result; | |
27644 | PyObject * obj0 = 0 ; | |
27645 | char *kwnames[] = { | |
27646 | (char *) "variant", NULL | |
27647 | }; | |
27648 | ||
27649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27650 | if (obj0) { | |
27651 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | } | |
27654 | { | |
27655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27656 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27657 | ||
27658 | wxPyEndAllowThreads(__tstate); | |
27659 | if (PyErr_Occurred()) SWIG_fail; | |
27660 | } | |
27661 | { | |
27662 | wxVisualAttributes * resultptr; | |
27663 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27665 | } | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
d14a1e28 RD |
27672 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { |
27673 | PyObject *obj; | |
27674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27675 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27676 | Py_INCREF(obj); | |
27677 | return Py_BuildValue((char *)""); | |
27678 | } | |
b2dc1044 RD |
27679 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
27680 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27681 | return 1; | |
27682 | } | |
27683 | ||
27684 | ||
27685 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27686 | PyObject *pyobj; | |
27687 | ||
27688 | { | |
27689 | #if wxUSE_UNICODE | |
27690 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27691 | #else | |
27692 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27693 | #endif | |
27694 | } | |
27695 | return pyobj; | |
27696 | } | |
27697 | ||
27698 | ||
d14a1e28 RD |
27699 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27700 | PyObject *resultobj; | |
27701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27702 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27703 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27704 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27705 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27706 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27707 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27708 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27709 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27710 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27711 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27712 | int arg8 = (int) 0 ; | |
b2dc1044 | 27713 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27714 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27715 | wxGenericDirCtrl *result; | |
e811c8ce | 27716 | bool temp3 = False ; |
d14a1e28 RD |
27717 | wxPoint temp4 ; |
27718 | wxSize temp5 ; | |
e811c8ce RD |
27719 | bool temp7 = False ; |
27720 | bool temp9 = False ; | |
d14a1e28 | 27721 | PyObject * obj0 = 0 ; |
994141e6 | 27722 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27723 | PyObject * obj2 = 0 ; |
27724 | PyObject * obj3 = 0 ; | |
27725 | PyObject * obj4 = 0 ; | |
994141e6 | 27726 | PyObject * obj5 = 0 ; |
d14a1e28 | 27727 | PyObject * obj6 = 0 ; |
994141e6 | 27728 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27729 | PyObject * obj8 = 0 ; |
27730 | char *kwnames[] = { | |
27731 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27732 | }; | |
27733 | ||
994141e6 | 27734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
27735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27737 | if (obj1) { |
15afbcd0 RD |
27738 | arg2 = (int const) SWIG_AsInt(obj1); |
27739 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27740 | } |
d14a1e28 RD |
27741 | if (obj2) { |
27742 | { | |
27743 | arg3 = wxString_in_helper(obj2); | |
27744 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27745 | temp3 = True; |
d14a1e28 RD |
27746 | } |
27747 | } | |
27748 | if (obj3) { | |
27749 | { | |
27750 | arg4 = &temp4; | |
27751 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27752 | } | |
27753 | } | |
27754 | if (obj4) { | |
27755 | { | |
27756 | arg5 = &temp5; | |
27757 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27758 | } | |
27759 | } | |
994141e6 | 27760 | if (obj5) { |
15afbcd0 RD |
27761 | arg6 = (long) SWIG_AsLong(obj5); |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27763 | } |
d14a1e28 RD |
27764 | if (obj6) { |
27765 | { | |
27766 | arg7 = wxString_in_helper(obj6); | |
27767 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 27768 | temp7 = True; |
d14a1e28 RD |
27769 | } |
27770 | } | |
994141e6 | 27771 | if (obj7) { |
15afbcd0 RD |
27772 | arg8 = (int) SWIG_AsInt(obj7); |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27774 | } |
d14a1e28 RD |
27775 | if (obj8) { |
27776 | { | |
27777 | arg9 = wxString_in_helper(obj8); | |
27778 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 27779 | temp9 = True; |
d14a1e28 RD |
27780 | } |
27781 | } | |
27782 | { | |
27783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27784 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27785 | ||
27786 | wxPyEndAllowThreads(__tstate); | |
27787 | if (PyErr_Occurred()) SWIG_fail; | |
27788 | } | |
15afbcd0 | 27789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27790 | { |
27791 | if (temp3) | |
27792 | delete arg3; | |
27793 | } | |
27794 | { | |
27795 | if (temp7) | |
27796 | delete arg7; | |
27797 | } | |
27798 | { | |
27799 | if (temp9) | |
27800 | delete arg9; | |
27801 | } | |
27802 | return resultobj; | |
27803 | fail: | |
27804 | { | |
27805 | if (temp3) | |
27806 | delete arg3; | |
27807 | } | |
27808 | { | |
27809 | if (temp7) | |
27810 | delete arg7; | |
27811 | } | |
27812 | { | |
27813 | if (temp9) | |
27814 | delete arg9; | |
27815 | } | |
27816 | return NULL; | |
27817 | } | |
27818 | ||
27819 | ||
27820 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27821 | PyObject *resultobj; | |
27822 | wxGenericDirCtrl *result; | |
27823 | char *kwnames[] = { | |
27824 | NULL | |
27825 | }; | |
27826 | ||
27827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27828 | { | |
27829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27830 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27831 | ||
27832 | wxPyEndAllowThreads(__tstate); | |
27833 | if (PyErr_Occurred()) SWIG_fail; | |
27834 | } | |
15afbcd0 | 27835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27836 | return resultobj; |
27837 | fail: | |
27838 | return NULL; | |
27839 | } | |
27840 | ||
27841 | ||
27842 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27843 | PyObject *resultobj; | |
27844 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27845 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 27846 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27847 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27848 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27849 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27850 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27851 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27852 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27853 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27854 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27855 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27856 | int arg9 = (int) 0 ; | |
b2dc1044 | 27857 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27858 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
27859 | bool result; | |
e811c8ce | 27860 | bool temp4 = False ; |
d14a1e28 RD |
27861 | wxPoint temp5 ; |
27862 | wxSize temp6 ; | |
e811c8ce RD |
27863 | bool temp8 = False ; |
27864 | bool temp10 = False ; | |
d14a1e28 RD |
27865 | PyObject * obj0 = 0 ; |
27866 | PyObject * obj1 = 0 ; | |
994141e6 | 27867 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27868 | PyObject * obj3 = 0 ; |
27869 | PyObject * obj4 = 0 ; | |
27870 | PyObject * obj5 = 0 ; | |
994141e6 | 27871 | PyObject * obj6 = 0 ; |
d14a1e28 | 27872 | PyObject * obj7 = 0 ; |
994141e6 | 27873 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
27874 | PyObject * obj9 = 0 ; |
27875 | char *kwnames[] = { | |
27876 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27877 | }; | |
27878 | ||
994141e6 | 27879 | 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 |
27880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27884 | if (obj2) { |
15afbcd0 RD |
27885 | arg3 = (int const) SWIG_AsInt(obj2); |
27886 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27887 | } |
d14a1e28 RD |
27888 | if (obj3) { |
27889 | { | |
27890 | arg4 = wxString_in_helper(obj3); | |
27891 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27892 | temp4 = True; |
d14a1e28 RD |
27893 | } |
27894 | } | |
27895 | if (obj4) { | |
27896 | { | |
27897 | arg5 = &temp5; | |
27898 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27899 | } | |
27900 | } | |
27901 | if (obj5) { | |
27902 | { | |
27903 | arg6 = &temp6; | |
27904 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27905 | } | |
27906 | } | |
994141e6 | 27907 | if (obj6) { |
15afbcd0 RD |
27908 | arg7 = (long) SWIG_AsLong(obj6); |
27909 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27910 | } |
d14a1e28 RD |
27911 | if (obj7) { |
27912 | { | |
27913 | arg8 = wxString_in_helper(obj7); | |
27914 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 27915 | temp8 = True; |
d14a1e28 RD |
27916 | } |
27917 | } | |
994141e6 | 27918 | if (obj8) { |
15afbcd0 RD |
27919 | arg9 = (int) SWIG_AsInt(obj8); |
27920 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27921 | } |
d14a1e28 RD |
27922 | if (obj9) { |
27923 | { | |
27924 | arg10 = wxString_in_helper(obj9); | |
27925 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 27926 | temp10 = True; |
d14a1e28 RD |
27927 | } |
27928 | } | |
27929 | { | |
27930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27931 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27932 | ||
27933 | wxPyEndAllowThreads(__tstate); | |
27934 | if (PyErr_Occurred()) SWIG_fail; | |
27935 | } | |
4f89f6a3 RD |
27936 | { |
27937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27938 | } | |
d14a1e28 RD |
27939 | { |
27940 | if (temp4) | |
27941 | delete arg4; | |
27942 | } | |
27943 | { | |
27944 | if (temp8) | |
27945 | delete arg8; | |
27946 | } | |
27947 | { | |
27948 | if (temp10) | |
27949 | delete arg10; | |
27950 | } | |
27951 | return resultobj; | |
27952 | fail: | |
27953 | { | |
27954 | if (temp4) | |
27955 | delete arg4; | |
27956 | } | |
27957 | { | |
27958 | if (temp8) | |
27959 | delete arg8; | |
27960 | } | |
27961 | { | |
27962 | if (temp10) | |
27963 | delete arg10; | |
27964 | } | |
27965 | return NULL; | |
27966 | } | |
27967 | ||
27968 | ||
27969 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27970 | PyObject *resultobj; | |
27971 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27972 | wxString *arg2 = 0 ; | |
27973 | bool result; | |
e811c8ce | 27974 | bool temp2 = False ; |
d14a1e28 RD |
27975 | PyObject * obj0 = 0 ; |
27976 | PyObject * obj1 = 0 ; | |
27977 | char *kwnames[] = { | |
27978 | (char *) "self",(char *) "path", NULL | |
27979 | }; | |
27980 | ||
27981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27984 | { |
27985 | arg2 = wxString_in_helper(obj1); | |
27986 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27987 | temp2 = True; |
d14a1e28 RD |
27988 | } |
27989 | { | |
27990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27991 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27992 | ||
27993 | wxPyEndAllowThreads(__tstate); | |
27994 | if (PyErr_Occurred()) SWIG_fail; | |
27995 | } | |
4f89f6a3 RD |
27996 | { |
27997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27998 | } | |
d14a1e28 RD |
27999 | { |
28000 | if (temp2) | |
28001 | delete arg2; | |
28002 | } | |
28003 | return resultobj; | |
28004 | fail: | |
28005 | { | |
28006 | if (temp2) | |
28007 | delete arg2; | |
28008 | } | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
28013 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28014 | PyObject *resultobj; | |
28015 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28016 | wxString result; | |
28017 | PyObject * obj0 = 0 ; | |
28018 | char *kwnames[] = { | |
28019 | (char *) "self", NULL | |
28020 | }; | |
28021 | ||
28022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28025 | { |
28026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28027 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28028 | ||
28029 | wxPyEndAllowThreads(__tstate); | |
28030 | if (PyErr_Occurred()) SWIG_fail; | |
28031 | } | |
28032 | { | |
28033 | #if wxUSE_UNICODE | |
28034 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28035 | #else | |
28036 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28037 | #endif | |
28038 | } | |
28039 | return resultobj; | |
28040 | fail: | |
28041 | return NULL; | |
28042 | } | |
28043 | ||
28044 | ||
28045 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28046 | PyObject *resultobj; | |
28047 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28048 | wxString *arg2 = 0 ; | |
e811c8ce | 28049 | bool temp2 = False ; |
d14a1e28 RD |
28050 | PyObject * obj0 = 0 ; |
28051 | PyObject * obj1 = 0 ; | |
28052 | char *kwnames[] = { | |
28053 | (char *) "self",(char *) "path", NULL | |
28054 | }; | |
28055 | ||
28056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28059 | { |
28060 | arg2 = wxString_in_helper(obj1); | |
28061 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28062 | temp2 = True; |
d14a1e28 RD |
28063 | } |
28064 | { | |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28066 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28067 | ||
28068 | wxPyEndAllowThreads(__tstate); | |
28069 | if (PyErr_Occurred()) SWIG_fail; | |
28070 | } | |
28071 | Py_INCREF(Py_None); resultobj = Py_None; | |
28072 | { | |
28073 | if (temp2) | |
28074 | delete arg2; | |
28075 | } | |
28076 | return resultobj; | |
28077 | fail: | |
28078 | { | |
28079 | if (temp2) | |
28080 | delete arg2; | |
28081 | } | |
28082 | return NULL; | |
28083 | } | |
28084 | ||
28085 | ||
28086 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28087 | PyObject *resultobj; | |
28088 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28089 | wxString result; | |
28090 | PyObject * obj0 = 0 ; | |
28091 | char *kwnames[] = { | |
28092 | (char *) "self", NULL | |
28093 | }; | |
28094 | ||
28095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28098 | { |
28099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28100 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28101 | ||
28102 | wxPyEndAllowThreads(__tstate); | |
28103 | if (PyErr_Occurred()) SWIG_fail; | |
28104 | } | |
28105 | { | |
28106 | #if wxUSE_UNICODE | |
28107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28108 | #else | |
28109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28110 | #endif | |
28111 | } | |
28112 | return resultobj; | |
28113 | fail: | |
28114 | return NULL; | |
28115 | } | |
28116 | ||
28117 | ||
28118 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28119 | PyObject *resultobj; | |
28120 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28121 | wxString result; | |
28122 | PyObject * obj0 = 0 ; | |
28123 | char *kwnames[] = { | |
28124 | (char *) "self", NULL | |
28125 | }; | |
28126 | ||
28127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28132 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28133 | ||
28134 | wxPyEndAllowThreads(__tstate); | |
28135 | if (PyErr_Occurred()) SWIG_fail; | |
28136 | } | |
28137 | { | |
28138 | #if wxUSE_UNICODE | |
28139 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28140 | #else | |
28141 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28142 | #endif | |
28143 | } | |
28144 | return resultobj; | |
28145 | fail: | |
28146 | return NULL; | |
28147 | } | |
28148 | ||
28149 | ||
28150 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28151 | PyObject *resultobj; | |
28152 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28153 | wxString *arg2 = 0 ; | |
e811c8ce | 28154 | bool temp2 = False ; |
d14a1e28 RD |
28155 | PyObject * obj0 = 0 ; |
28156 | PyObject * obj1 = 0 ; | |
28157 | char *kwnames[] = { | |
28158 | (char *) "self",(char *) "path", NULL | |
28159 | }; | |
28160 | ||
28161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28164 | { |
28165 | arg2 = wxString_in_helper(obj1); | |
28166 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28167 | temp2 = True; |
d14a1e28 RD |
28168 | } |
28169 | { | |
28170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28171 | (arg1)->SetPath((wxString const &)*arg2); | |
28172 | ||
28173 | wxPyEndAllowThreads(__tstate); | |
28174 | if (PyErr_Occurred()) SWIG_fail; | |
28175 | } | |
28176 | Py_INCREF(Py_None); resultobj = Py_None; | |
28177 | { | |
28178 | if (temp2) | |
28179 | delete arg2; | |
28180 | } | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | { | |
28184 | if (temp2) | |
28185 | delete arg2; | |
28186 | } | |
28187 | return NULL; | |
28188 | } | |
28189 | ||
28190 | ||
28191 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28192 | PyObject *resultobj; | |
28193 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28194 | bool arg2 ; | |
28195 | PyObject * obj0 = 0 ; | |
28196 | PyObject * obj1 = 0 ; | |
28197 | char *kwnames[] = { | |
28198 | (char *) "self",(char *) "show", NULL | |
28199 | }; | |
28200 | ||
28201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28204 | arg2 = (bool) SWIG_AsBool(obj1); | |
28205 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28206 | { |
28207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28208 | (arg1)->ShowHidden(arg2); | |
28209 | ||
28210 | wxPyEndAllowThreads(__tstate); | |
28211 | if (PyErr_Occurred()) SWIG_fail; | |
28212 | } | |
28213 | Py_INCREF(Py_None); resultobj = Py_None; | |
28214 | return resultobj; | |
28215 | fail: | |
28216 | return NULL; | |
28217 | } | |
28218 | ||
28219 | ||
28220 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28221 | PyObject *resultobj; | |
28222 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28223 | bool result; | |
28224 | PyObject * obj0 = 0 ; | |
28225 | char *kwnames[] = { | |
28226 | (char *) "self", NULL | |
28227 | }; | |
28228 | ||
28229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28232 | { |
28233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28234 | result = (bool)(arg1)->GetShowHidden(); | |
28235 | ||
28236 | wxPyEndAllowThreads(__tstate); | |
28237 | if (PyErr_Occurred()) SWIG_fail; | |
28238 | } | |
4f89f6a3 RD |
28239 | { |
28240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28241 | } | |
d14a1e28 RD |
28242 | return resultobj; |
28243 | fail: | |
28244 | return NULL; | |
28245 | } | |
28246 | ||
28247 | ||
28248 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28249 | PyObject *resultobj; | |
28250 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28251 | wxString result; | |
28252 | PyObject * obj0 = 0 ; | |
28253 | char *kwnames[] = { | |
28254 | (char *) "self", NULL | |
28255 | }; | |
28256 | ||
28257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28260 | { |
28261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28262 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28263 | ||
28264 | wxPyEndAllowThreads(__tstate); | |
28265 | if (PyErr_Occurred()) SWIG_fail; | |
28266 | } | |
28267 | { | |
28268 | #if wxUSE_UNICODE | |
28269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28270 | #else | |
28271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28272 | #endif | |
28273 | } | |
28274 | return resultobj; | |
28275 | fail: | |
28276 | return NULL; | |
28277 | } | |
28278 | ||
28279 | ||
28280 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28281 | PyObject *resultobj; | |
28282 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28283 | wxString *arg2 = 0 ; | |
e811c8ce | 28284 | bool temp2 = False ; |
d14a1e28 RD |
28285 | PyObject * obj0 = 0 ; |
28286 | PyObject * obj1 = 0 ; | |
28287 | char *kwnames[] = { | |
28288 | (char *) "self",(char *) "filter", NULL | |
28289 | }; | |
28290 | ||
28291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28294 | { |
28295 | arg2 = wxString_in_helper(obj1); | |
28296 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28297 | temp2 = True; |
d14a1e28 RD |
28298 | } |
28299 | { | |
28300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28301 | (arg1)->SetFilter((wxString const &)*arg2); | |
28302 | ||
28303 | wxPyEndAllowThreads(__tstate); | |
28304 | if (PyErr_Occurred()) SWIG_fail; | |
28305 | } | |
28306 | Py_INCREF(Py_None); resultobj = Py_None; | |
28307 | { | |
28308 | if (temp2) | |
28309 | delete arg2; | |
28310 | } | |
28311 | return resultobj; | |
28312 | fail: | |
28313 | { | |
28314 | if (temp2) | |
28315 | delete arg2; | |
28316 | } | |
28317 | return NULL; | |
28318 | } | |
28319 | ||
28320 | ||
28321 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28322 | PyObject *resultobj; | |
28323 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28324 | int result; | |
28325 | PyObject * obj0 = 0 ; | |
28326 | char *kwnames[] = { | |
28327 | (char *) "self", NULL | |
28328 | }; | |
28329 | ||
28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28333 | { |
28334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28335 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28336 | ||
28337 | wxPyEndAllowThreads(__tstate); | |
28338 | if (PyErr_Occurred()) SWIG_fail; | |
28339 | } | |
15afbcd0 | 28340 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28341 | return resultobj; |
28342 | fail: | |
28343 | return NULL; | |
28344 | } | |
28345 | ||
28346 | ||
28347 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28348 | PyObject *resultobj; | |
28349 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28350 | int arg2 ; | |
28351 | PyObject * obj0 = 0 ; | |
994141e6 | 28352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28353 | char *kwnames[] = { |
28354 | (char *) "self",(char *) "n", NULL | |
28355 | }; | |
28356 | ||
994141e6 | 28357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28360 | arg2 = (int) SWIG_AsInt(obj1); | |
28361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28362 | { |
28363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28364 | (arg1)->SetFilterIndex(arg2); | |
28365 | ||
28366 | wxPyEndAllowThreads(__tstate); | |
28367 | if (PyErr_Occurred()) SWIG_fail; | |
28368 | } | |
28369 | Py_INCREF(Py_None); resultobj = Py_None; | |
28370 | return resultobj; | |
28371 | fail: | |
28372 | return NULL; | |
28373 | } | |
28374 | ||
28375 | ||
28376 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28377 | PyObject *resultobj; | |
28378 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28379 | wxTreeItemId result; | |
28380 | PyObject * obj0 = 0 ; | |
28381 | char *kwnames[] = { | |
28382 | (char *) "self", NULL | |
28383 | }; | |
28384 | ||
28385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28388 | { |
28389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28390 | result = (arg1)->GetRootId(); | |
28391 | ||
28392 | wxPyEndAllowThreads(__tstate); | |
28393 | if (PyErr_Occurred()) SWIG_fail; | |
28394 | } | |
28395 | { | |
28396 | wxTreeItemId * resultptr; | |
28397 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28398 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28399 | } |
28400 | return resultobj; | |
28401 | fail: | |
28402 | return NULL; | |
28403 | } | |
28404 | ||
28405 | ||
28406 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28407 | PyObject *resultobj; | |
28408 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 28409 | wxPyTreeCtrl *result; |
d14a1e28 RD |
28410 | PyObject * obj0 = 0 ; |
28411 | char *kwnames[] = { | |
28412 | (char *) "self", NULL | |
28413 | }; | |
28414 | ||
28415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28418 | { |
28419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 28420 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
28421 | |
28422 | wxPyEndAllowThreads(__tstate); | |
28423 | if (PyErr_Occurred()) SWIG_fail; | |
28424 | } | |
28425 | { | |
28426 | resultobj = wxPyMake_wxObject(result); | |
28427 | } | |
28428 | return resultobj; | |
28429 | fail: | |
28430 | return NULL; | |
28431 | } | |
28432 | ||
28433 | ||
28434 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28435 | PyObject *resultobj; | |
28436 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28437 | wxDirFilterListCtrl *result; | |
28438 | PyObject * obj0 = 0 ; | |
28439 | char *kwnames[] = { | |
28440 | (char *) "self", NULL | |
28441 | }; | |
28442 | ||
28443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28446 | { |
28447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28448 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28449 | ||
28450 | wxPyEndAllowThreads(__tstate); | |
28451 | if (PyErr_Occurred()) SWIG_fail; | |
28452 | } | |
15afbcd0 | 28453 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
28454 | return resultobj; |
28455 | fail: | |
28456 | return NULL; | |
28457 | } | |
28458 | ||
28459 | ||
28460 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28461 | PyObject *resultobj; | |
28462 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28463 | wxTreeItemId arg2 ; | |
28464 | wxString *arg3 = 0 ; | |
28465 | bool *arg4 = 0 ; | |
28466 | wxTreeItemId result; | |
28467 | wxTreeItemId *argp2 ; | |
e811c8ce | 28468 | bool temp3 = False ; |
d14a1e28 RD |
28469 | bool temp4 ; |
28470 | PyObject * obj0 = 0 ; | |
28471 | PyObject * obj1 = 0 ; | |
28472 | PyObject * obj2 = 0 ; | |
28473 | char *kwnames[] = { | |
28474 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28475 | }; | |
28476 | ||
28477 | arg4 = &temp4; | |
28478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28481 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28482 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28483 | arg2 = *argp2; | |
d14a1e28 RD |
28484 | { |
28485 | arg3 = wxString_in_helper(obj2); | |
28486 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28487 | temp3 = True; |
d14a1e28 RD |
28488 | } |
28489 | { | |
28490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28491 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28492 | ||
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
28496 | { | |
28497 | wxTreeItemId * resultptr; | |
28498 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28500 | } |
28501 | { | |
28502 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28503 | resultobj = t_output_helper(resultobj,o); | |
28504 | } | |
28505 | { | |
28506 | if (temp3) | |
28507 | delete arg3; | |
28508 | } | |
28509 | return resultobj; | |
28510 | fail: | |
28511 | { | |
28512 | if (temp3) | |
28513 | delete arg3; | |
28514 | } | |
28515 | return NULL; | |
28516 | } | |
28517 | ||
28518 | ||
28519 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28520 | PyObject *resultobj; | |
28521 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28522 | PyObject * obj0 = 0 ; | |
28523 | char *kwnames[] = { | |
28524 | (char *) "self", NULL | |
28525 | }; | |
28526 | ||
28527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28530 | { |
28531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28532 | (arg1)->DoResize(); | |
28533 | ||
28534 | wxPyEndAllowThreads(__tstate); | |
28535 | if (PyErr_Occurred()) SWIG_fail; | |
28536 | } | |
28537 | Py_INCREF(Py_None); resultobj = Py_None; | |
28538 | return resultobj; | |
28539 | fail: | |
28540 | return NULL; | |
28541 | } | |
28542 | ||
28543 | ||
28544 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28545 | PyObject *resultobj; | |
28546 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28547 | PyObject * obj0 = 0 ; | |
28548 | char *kwnames[] = { | |
28549 | (char *) "self", NULL | |
28550 | }; | |
28551 | ||
28552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28555 | { |
28556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28557 | (arg1)->ReCreateTree(); | |
28558 | ||
28559 | wxPyEndAllowThreads(__tstate); | |
28560 | if (PyErr_Occurred()) SWIG_fail; | |
28561 | } | |
28562 | Py_INCREF(Py_None); resultobj = Py_None; | |
28563 | return resultobj; | |
28564 | fail: | |
28565 | return NULL; | |
28566 | } | |
28567 | ||
28568 | ||
28569 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28570 | PyObject *obj; | |
28571 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28572 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28573 | Py_INCREF(obj); | |
28574 | return Py_BuildValue((char *)""); | |
28575 | } | |
28576 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28577 | PyObject *resultobj; | |
28578 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28579 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28580 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28581 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28582 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28583 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28584 | long arg5 = (long) 0 ; | |
28585 | wxDirFilterListCtrl *result; | |
28586 | wxPoint temp3 ; | |
28587 | wxSize temp4 ; | |
28588 | PyObject * obj0 = 0 ; | |
994141e6 | 28589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28590 | PyObject * obj2 = 0 ; |
28591 | PyObject * obj3 = 0 ; | |
994141e6 | 28592 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28593 | char *kwnames[] = { |
28594 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28595 | }; | |
28596 | ||
994141e6 | 28597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28600 | if (obj1) { |
15afbcd0 RD |
28601 | arg2 = (int const) SWIG_AsInt(obj1); |
28602 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28603 | } |
d14a1e28 RD |
28604 | if (obj2) { |
28605 | { | |
28606 | arg3 = &temp3; | |
28607 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28608 | } | |
28609 | } | |
28610 | if (obj3) { | |
28611 | { | |
28612 | arg4 = &temp4; | |
28613 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28614 | } | |
28615 | } | |
994141e6 | 28616 | if (obj4) { |
15afbcd0 RD |
28617 | arg5 = (long) SWIG_AsLong(obj4); |
28618 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28619 | } |
d14a1e28 RD |
28620 | { |
28621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28622 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28623 | ||
28624 | wxPyEndAllowThreads(__tstate); | |
28625 | if (PyErr_Occurred()) SWIG_fail; | |
28626 | } | |
15afbcd0 | 28627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28628 | return resultobj; |
28629 | fail: | |
28630 | return NULL; | |
28631 | } | |
28632 | ||
28633 | ||
28634 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28635 | PyObject *resultobj; | |
28636 | wxDirFilterListCtrl *result; | |
28637 | char *kwnames[] = { | |
28638 | NULL | |
28639 | }; | |
28640 | ||
28641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28642 | { | |
28643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28644 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28645 | ||
28646 | wxPyEndAllowThreads(__tstate); | |
28647 | if (PyErr_Occurred()) SWIG_fail; | |
28648 | } | |
15afbcd0 | 28649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28650 | return resultobj; |
28651 | fail: | |
28652 | return NULL; | |
28653 | } | |
28654 | ||
28655 | ||
28656 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28657 | PyObject *resultobj; | |
28658 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28659 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28660 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28661 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28662 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28663 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28664 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28665 | long arg6 = (long) 0 ; | |
28666 | bool result; | |
28667 | wxPoint temp4 ; | |
28668 | wxSize temp5 ; | |
28669 | PyObject * obj0 = 0 ; | |
28670 | PyObject * obj1 = 0 ; | |
994141e6 | 28671 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28672 | PyObject * obj3 = 0 ; |
28673 | PyObject * obj4 = 0 ; | |
994141e6 | 28674 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28675 | char *kwnames[] = { |
28676 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28677 | }; | |
28678 | ||
994141e6 | 28679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28684 | if (obj2) { |
15afbcd0 RD |
28685 | arg3 = (int const) SWIG_AsInt(obj2); |
28686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28687 | } |
d14a1e28 RD |
28688 | if (obj3) { |
28689 | { | |
28690 | arg4 = &temp4; | |
28691 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28692 | } | |
28693 | } | |
28694 | if (obj4) { | |
28695 | { | |
28696 | arg5 = &temp5; | |
28697 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28698 | } | |
28699 | } | |
994141e6 | 28700 | if (obj5) { |
15afbcd0 RD |
28701 | arg6 = (long) SWIG_AsLong(obj5); |
28702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28703 | } |
d14a1e28 RD |
28704 | { |
28705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28706 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28707 | ||
28708 | wxPyEndAllowThreads(__tstate); | |
28709 | if (PyErr_Occurred()) SWIG_fail; | |
28710 | } | |
4f89f6a3 RD |
28711 | { |
28712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28713 | } | |
d14a1e28 RD |
28714 | return resultobj; |
28715 | fail: | |
28716 | return NULL; | |
28717 | } | |
28718 | ||
28719 | ||
28720 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28721 | PyObject *resultobj; | |
28722 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28723 | wxString *arg2 = 0 ; | |
28724 | int arg3 ; | |
e811c8ce | 28725 | bool temp2 = False ; |
d14a1e28 RD |
28726 | PyObject * obj0 = 0 ; |
28727 | PyObject * obj1 = 0 ; | |
994141e6 | 28728 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28729 | char *kwnames[] = { |
28730 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28731 | }; | |
28732 | ||
994141e6 | 28733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
28734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28736 | { |
28737 | arg2 = wxString_in_helper(obj1); | |
28738 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28739 | temp2 = True; |
d14a1e28 | 28740 | } |
15afbcd0 RD |
28741 | arg3 = (int) SWIG_AsInt(obj2); |
28742 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28743 | { |
28744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28745 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28746 | ||
28747 | wxPyEndAllowThreads(__tstate); | |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
28749 | } | |
28750 | Py_INCREF(Py_None); resultobj = Py_None; | |
28751 | { | |
28752 | if (temp2) | |
28753 | delete arg2; | |
28754 | } | |
28755 | return resultobj; | |
28756 | fail: | |
28757 | { | |
28758 | if (temp2) | |
28759 | delete arg2; | |
28760 | } | |
28761 | return NULL; | |
28762 | } | |
28763 | ||
28764 | ||
28765 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28766 | PyObject *obj; | |
28767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28768 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28769 | Py_INCREF(obj); | |
28770 | return Py_BuildValue((char *)""); | |
28771 | } | |
28772 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28773 | PyObject *resultobj; | |
28774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 28775 | int arg2 ; |
d14a1e28 RD |
28776 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28777 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28778 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28779 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28780 | long arg5 = (long) 0 ; | |
28781 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28782 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28783 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28784 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28785 | wxPyControl *result; | |
28786 | wxPoint temp3 ; | |
28787 | wxSize temp4 ; | |
e811c8ce | 28788 | bool temp7 = False ; |
d14a1e28 | 28789 | PyObject * obj0 = 0 ; |
994141e6 | 28790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28791 | PyObject * obj2 = 0 ; |
28792 | PyObject * obj3 = 0 ; | |
994141e6 | 28793 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28794 | PyObject * obj5 = 0 ; |
28795 | PyObject * obj6 = 0 ; | |
28796 | char *kwnames[] = { | |
28797 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28798 | }; | |
28799 | ||
994141e6 | 28800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
28801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28803 | arg2 = (int const) SWIG_AsInt(obj1); | |
28804 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28805 | if (obj2) { |
28806 | { | |
28807 | arg3 = &temp3; | |
28808 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28809 | } | |
28810 | } | |
28811 | if (obj3) { | |
28812 | { | |
28813 | arg4 = &temp4; | |
28814 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28815 | } | |
28816 | } | |
994141e6 | 28817 | if (obj4) { |
15afbcd0 RD |
28818 | arg5 = (long) SWIG_AsLong(obj4); |
28819 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28820 | } |
d14a1e28 | 28821 | if (obj5) { |
15afbcd0 RD |
28822 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28823 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28824 | SWIG_fail; | |
d14a1e28 | 28825 | if (arg6 == NULL) { |
15afbcd0 RD |
28826 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28827 | SWIG_fail; | |
d14a1e28 RD |
28828 | } |
28829 | } | |
28830 | if (obj6) { | |
28831 | { | |
28832 | arg7 = wxString_in_helper(obj6); | |
28833 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 28834 | temp7 = True; |
d14a1e28 RD |
28835 | } |
28836 | } | |
28837 | { | |
28838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28839 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28840 | ||
28841 | wxPyEndAllowThreads(__tstate); | |
28842 | if (PyErr_Occurred()) SWIG_fail; | |
28843 | } | |
15afbcd0 | 28844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28845 | { |
28846 | if (temp7) | |
28847 | delete arg7; | |
28848 | } | |
28849 | return resultobj; | |
28850 | fail: | |
28851 | { | |
28852 | if (temp7) | |
28853 | delete arg7; | |
28854 | } | |
28855 | return NULL; | |
28856 | } | |
28857 | ||
28858 | ||
1cb4a8aa RD |
28859 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
28860 | PyObject *resultobj; | |
28861 | wxPyControl *result; | |
28862 | char *kwnames[] = { | |
28863 | NULL | |
28864 | }; | |
28865 | ||
28866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28867 | { | |
28868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28869 | result = (wxPyControl *)new wxPyControl(); | |
28870 | ||
28871 | wxPyEndAllowThreads(__tstate); | |
28872 | if (PyErr_Occurred()) SWIG_fail; | |
28873 | } | |
28874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28875 | return resultobj; | |
28876 | fail: | |
28877 | return NULL; | |
28878 | } | |
28879 | ||
28880 | ||
d14a1e28 RD |
28881 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
28882 | PyObject *resultobj; | |
28883 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28884 | PyObject *arg2 = (PyObject *) 0 ; | |
28885 | PyObject *arg3 = (PyObject *) 0 ; | |
28886 | PyObject * obj0 = 0 ; | |
28887 | PyObject * obj1 = 0 ; | |
28888 | PyObject * obj2 = 0 ; | |
28889 | char *kwnames[] = { | |
28890 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28891 | }; | |
28892 | ||
28893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28896 | arg2 = obj1; |
28897 | arg3 = obj2; | |
28898 | { | |
28899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28900 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28901 | ||
28902 | wxPyEndAllowThreads(__tstate); | |
28903 | if (PyErr_Occurred()) SWIG_fail; | |
28904 | } | |
28905 | Py_INCREF(Py_None); resultobj = Py_None; | |
28906 | return resultobj; | |
28907 | fail: | |
28908 | return NULL; | |
28909 | } | |
28910 | ||
28911 | ||
db3e571a RD |
28912 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
28913 | PyObject *resultobj; | |
28914 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28915 | wxSize *arg2 = 0 ; | |
28916 | wxSize temp2 ; | |
28917 | PyObject * obj0 = 0 ; | |
28918 | PyObject * obj1 = 0 ; | |
28919 | char *kwnames[] = { | |
28920 | (char *) "self",(char *) "size", NULL | |
28921 | }; | |
28922 | ||
28923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
28924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28926 | { | |
28927 | arg2 = &temp2; | |
28928 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28929 | } | |
28930 | { | |
28931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28932 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
28933 | ||
28934 | wxPyEndAllowThreads(__tstate); | |
28935 | if (PyErr_Occurred()) SWIG_fail; | |
28936 | } | |
28937 | Py_INCREF(Py_None); resultobj = Py_None; | |
28938 | return resultobj; | |
28939 | fail: | |
28940 | return NULL; | |
28941 | } | |
28942 | ||
28943 | ||
d14a1e28 RD |
28944 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
28945 | PyObject *resultobj; | |
28946 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28947 | int arg2 ; | |
28948 | int arg3 ; | |
28949 | int arg4 ; | |
28950 | int arg5 ; | |
28951 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28952 | PyObject * obj1 = 0 ; |
28953 | PyObject * obj2 = 0 ; | |
28954 | PyObject * obj3 = 0 ; | |
28955 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28956 | char *kwnames[] = { |
28957 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28958 | }; | |
28959 | ||
994141e6 | 28960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28963 | arg2 = (int) SWIG_AsInt(obj1); | |
28964 | if (PyErr_Occurred()) SWIG_fail; | |
28965 | arg3 = (int) SWIG_AsInt(obj2); | |
28966 | if (PyErr_Occurred()) SWIG_fail; | |
28967 | arg4 = (int) SWIG_AsInt(obj3); | |
28968 | if (PyErr_Occurred()) SWIG_fail; | |
28969 | arg5 = (int) SWIG_AsInt(obj4); | |
28970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28971 | { |
28972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28973 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28974 | ||
28975 | wxPyEndAllowThreads(__tstate); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | } | |
28978 | Py_INCREF(Py_None); resultobj = Py_None; | |
28979 | return resultobj; | |
28980 | fail: | |
28981 | return NULL; | |
28982 | } | |
28983 | ||
28984 | ||
28985 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28986 | PyObject *resultobj; | |
28987 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28988 | int arg2 ; | |
28989 | int arg3 ; | |
28990 | int arg4 ; | |
28991 | int arg5 ; | |
28992 | int arg6 = (int) wxSIZE_AUTO ; | |
28993 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28994 | PyObject * obj1 = 0 ; |
28995 | PyObject * obj2 = 0 ; | |
28996 | PyObject * obj3 = 0 ; | |
28997 | PyObject * obj4 = 0 ; | |
28998 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
28999 | char *kwnames[] = { |
29000 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29001 | }; | |
29002 | ||
994141e6 | 29003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29006 | arg2 = (int) SWIG_AsInt(obj1); | |
29007 | if (PyErr_Occurred()) SWIG_fail; | |
29008 | arg3 = (int) SWIG_AsInt(obj2); | |
29009 | if (PyErr_Occurred()) SWIG_fail; | |
29010 | arg4 = (int) SWIG_AsInt(obj3); | |
29011 | if (PyErr_Occurred()) SWIG_fail; | |
29012 | arg5 = (int) SWIG_AsInt(obj4); | |
29013 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29014 | if (obj5) { |
15afbcd0 RD |
29015 | arg6 = (int) SWIG_AsInt(obj5); |
29016 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29017 | } |
d14a1e28 RD |
29018 | { |
29019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29020 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29021 | ||
29022 | wxPyEndAllowThreads(__tstate); | |
29023 | if (PyErr_Occurred()) SWIG_fail; | |
29024 | } | |
29025 | Py_INCREF(Py_None); resultobj = Py_None; | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29035 | int arg2 ; | |
29036 | int arg3 ; | |
29037 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29038 | PyObject * obj1 = 0 ; |
29039 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29040 | char *kwnames[] = { |
29041 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29042 | }; | |
29043 | ||
994141e6 | 29044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29047 | arg2 = (int) SWIG_AsInt(obj1); | |
29048 | if (PyErr_Occurred()) SWIG_fail; | |
29049 | arg3 = (int) SWIG_AsInt(obj2); | |
29050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29051 | { |
29052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29053 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29054 | ||
29055 | wxPyEndAllowThreads(__tstate); | |
29056 | if (PyErr_Occurred()) SWIG_fail; | |
29057 | } | |
29058 | Py_INCREF(Py_None); resultobj = Py_None; | |
29059 | return resultobj; | |
29060 | fail: | |
29061 | return NULL; | |
29062 | } | |
29063 | ||
29064 | ||
29065 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29066 | PyObject *resultobj; | |
29067 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29068 | int arg2 ; | |
29069 | int arg3 ; | |
29070 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29071 | PyObject * obj1 = 0 ; |
29072 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29073 | char *kwnames[] = { |
29074 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29075 | }; | |
29076 | ||
994141e6 | 29077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29080 | arg2 = (int) SWIG_AsInt(obj1); | |
29081 | if (PyErr_Occurred()) SWIG_fail; | |
29082 | arg3 = (int) SWIG_AsInt(obj2); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29084 | { |
29085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29086 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29087 | ||
29088 | wxPyEndAllowThreads(__tstate); | |
29089 | if (PyErr_Occurred()) SWIG_fail; | |
29090 | } | |
29091 | Py_INCREF(Py_None); resultobj = Py_None; | |
29092 | return resultobj; | |
29093 | fail: | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
29098 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29099 | PyObject *resultobj; | |
29100 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29101 | int *arg2 = (int *) 0 ; | |
29102 | int *arg3 = (int *) 0 ; | |
29103 | int temp2 ; | |
29104 | int temp3 ; | |
29105 | PyObject * obj0 = 0 ; | |
29106 | char *kwnames[] = { | |
29107 | (char *) "self", NULL | |
29108 | }; | |
29109 | ||
29110 | arg2 = &temp2; | |
29111 | arg3 = &temp3; | |
29112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29115 | { |
29116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29117 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29118 | ||
29119 | wxPyEndAllowThreads(__tstate); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | } | |
29122 | Py_INCREF(Py_None); resultobj = Py_None; | |
29123 | { | |
29124 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29125 | resultobj = t_output_helper(resultobj,o); | |
29126 | } | |
29127 | { | |
29128 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29129 | resultobj = t_output_helper(resultobj,o); | |
29130 | } | |
29131 | return resultobj; | |
29132 | fail: | |
29133 | return NULL; | |
29134 | } | |
29135 | ||
29136 | ||
29137 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29138 | PyObject *resultobj; | |
29139 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29140 | int *arg2 = (int *) 0 ; | |
29141 | int *arg3 = (int *) 0 ; | |
29142 | int temp2 ; | |
29143 | int temp3 ; | |
29144 | PyObject * obj0 = 0 ; | |
29145 | char *kwnames[] = { | |
29146 | (char *) "self", NULL | |
29147 | }; | |
29148 | ||
29149 | arg2 = &temp2; | |
29150 | arg3 = &temp3; | |
29151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29154 | { |
29155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29156 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29157 | ||
29158 | wxPyEndAllowThreads(__tstate); | |
29159 | if (PyErr_Occurred()) SWIG_fail; | |
29160 | } | |
29161 | Py_INCREF(Py_None); resultobj = Py_None; | |
29162 | { | |
29163 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29164 | resultobj = t_output_helper(resultobj,o); | |
29165 | } | |
29166 | { | |
29167 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29168 | resultobj = t_output_helper(resultobj,o); | |
29169 | } | |
29170 | return resultobj; | |
29171 | fail: | |
29172 | return NULL; | |
29173 | } | |
29174 | ||
29175 | ||
29176 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29177 | PyObject *resultobj; | |
29178 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29179 | int *arg2 = (int *) 0 ; | |
29180 | int *arg3 = (int *) 0 ; | |
29181 | int temp2 ; | |
29182 | int temp3 ; | |
29183 | PyObject * obj0 = 0 ; | |
29184 | char *kwnames[] = { | |
29185 | (char *) "self", NULL | |
29186 | }; | |
29187 | ||
29188 | arg2 = &temp2; | |
29189 | arg3 = &temp3; | |
29190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29193 | { |
29194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29195 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29196 | ||
29197 | wxPyEndAllowThreads(__tstate); | |
29198 | if (PyErr_Occurred()) SWIG_fail; | |
29199 | } | |
29200 | Py_INCREF(Py_None); resultobj = Py_None; | |
29201 | { | |
29202 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29203 | resultobj = t_output_helper(resultobj,o); | |
29204 | } | |
29205 | { | |
29206 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29207 | resultobj = t_output_helper(resultobj,o); | |
29208 | } | |
29209 | return resultobj; | |
29210 | fail: | |
29211 | return NULL; | |
29212 | } | |
29213 | ||
29214 | ||
29215 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29216 | PyObject *resultobj; | |
29217 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29218 | wxSize result; | |
29219 | PyObject * obj0 = 0 ; | |
29220 | char *kwnames[] = { | |
29221 | (char *) "self", NULL | |
29222 | }; | |
29223 | ||
29224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29227 | { |
29228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29229 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29230 | ||
29231 | wxPyEndAllowThreads(__tstate); | |
29232 | if (PyErr_Occurred()) SWIG_fail; | |
29233 | } | |
29234 | { | |
29235 | wxSize * resultptr; | |
29236 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29237 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29238 | } |
29239 | return resultobj; | |
29240 | fail: | |
29241 | return NULL; | |
29242 | } | |
29243 | ||
29244 | ||
29245 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29246 | PyObject *resultobj; | |
29247 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29248 | wxSize result; | |
29249 | PyObject * obj0 = 0 ; | |
29250 | char *kwnames[] = { | |
29251 | (char *) "self", NULL | |
29252 | }; | |
29253 | ||
29254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29257 | { |
29258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29259 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29260 | ||
29261 | wxPyEndAllowThreads(__tstate); | |
29262 | if (PyErr_Occurred()) SWIG_fail; | |
29263 | } | |
29264 | { | |
29265 | wxSize * resultptr; | |
29266 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29267 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29268 | } |
29269 | return resultobj; | |
29270 | fail: | |
29271 | return NULL; | |
29272 | } | |
29273 | ||
29274 | ||
29275 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29276 | PyObject *resultobj; | |
29277 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29278 | PyObject * obj0 = 0 ; | |
29279 | char *kwnames[] = { | |
29280 | (char *) "self", NULL | |
29281 | }; | |
29282 | ||
29283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29286 | { |
29287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29288 | (arg1)->base_InitDialog(); | |
29289 | ||
29290 | wxPyEndAllowThreads(__tstate); | |
29291 | if (PyErr_Occurred()) SWIG_fail; | |
29292 | } | |
29293 | Py_INCREF(Py_None); resultobj = Py_None; | |
29294 | return resultobj; | |
29295 | fail: | |
29296 | return NULL; | |
29297 | } | |
29298 | ||
29299 | ||
29300 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29301 | PyObject *resultobj; | |
29302 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29303 | bool result; | |
29304 | PyObject * obj0 = 0 ; | |
29305 | char *kwnames[] = { | |
29306 | (char *) "self", NULL | |
29307 | }; | |
29308 | ||
29309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29312 | { |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29314 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29315 | ||
29316 | wxPyEndAllowThreads(__tstate); | |
29317 | if (PyErr_Occurred()) SWIG_fail; | |
29318 | } | |
4f89f6a3 RD |
29319 | { |
29320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29321 | } | |
d14a1e28 RD |
29322 | return resultobj; |
29323 | fail: | |
29324 | return NULL; | |
29325 | } | |
29326 | ||
29327 | ||
29328 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29329 | PyObject *resultobj; | |
29330 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29331 | bool result; | |
29332 | PyObject * obj0 = 0 ; | |
29333 | char *kwnames[] = { | |
29334 | (char *) "self", NULL | |
29335 | }; | |
29336 | ||
29337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29340 | { |
29341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29342 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29343 | ||
29344 | wxPyEndAllowThreads(__tstate); | |
29345 | if (PyErr_Occurred()) SWIG_fail; | |
29346 | } | |
4f89f6a3 RD |
29347 | { |
29348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29349 | } | |
d14a1e28 RD |
29350 | return resultobj; |
29351 | fail: | |
29352 | return NULL; | |
29353 | } | |
29354 | ||
29355 | ||
29356 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29357 | PyObject *resultobj; | |
29358 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29359 | bool result; | |
29360 | PyObject * obj0 = 0 ; | |
29361 | char *kwnames[] = { | |
29362 | (char *) "self", NULL | |
29363 | }; | |
29364 | ||
29365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29368 | { |
29369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29370 | result = (bool)(arg1)->base_Validate(); | |
29371 | ||
29372 | wxPyEndAllowThreads(__tstate); | |
29373 | if (PyErr_Occurred()) SWIG_fail; | |
29374 | } | |
4f89f6a3 RD |
29375 | { |
29376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29377 | } | |
d14a1e28 RD |
29378 | return resultobj; |
29379 | fail: | |
29380 | return NULL; | |
29381 | } | |
29382 | ||
29383 | ||
29384 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29385 | PyObject *resultobj; | |
29386 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29387 | bool result; | |
29388 | PyObject * obj0 = 0 ; | |
29389 | char *kwnames[] = { | |
29390 | (char *) "self", NULL | |
29391 | }; | |
29392 | ||
29393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29396 | { |
29397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29398 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29399 | ||
29400 | wxPyEndAllowThreads(__tstate); | |
29401 | if (PyErr_Occurred()) SWIG_fail; | |
29402 | } | |
4f89f6a3 RD |
29403 | { |
29404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29405 | } | |
d14a1e28 RD |
29406 | return resultobj; |
29407 | fail: | |
29408 | return NULL; | |
29409 | } | |
29410 | ||
29411 | ||
29412 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29413 | PyObject *resultobj; | |
29414 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29415 | bool result; | |
29416 | PyObject * obj0 = 0 ; | |
29417 | char *kwnames[] = { | |
29418 | (char *) "self", NULL | |
29419 | }; | |
29420 | ||
29421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29424 | { |
29425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29426 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29427 | ||
29428 | wxPyEndAllowThreads(__tstate); | |
29429 | if (PyErr_Occurred()) SWIG_fail; | |
29430 | } | |
4f89f6a3 RD |
29431 | { |
29432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29433 | } | |
d14a1e28 RD |
29434 | return resultobj; |
29435 | fail: | |
29436 | return NULL; | |
29437 | } | |
29438 | ||
29439 | ||
29440 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29441 | PyObject *resultobj; | |
29442 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29443 | wxSize result; | |
29444 | PyObject * obj0 = 0 ; | |
29445 | char *kwnames[] = { | |
29446 | (char *) "self", NULL | |
29447 | }; | |
29448 | ||
29449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29452 | { |
29453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29454 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29455 | ||
29456 | wxPyEndAllowThreads(__tstate); | |
29457 | if (PyErr_Occurred()) SWIG_fail; | |
29458 | } | |
29459 | { | |
29460 | wxSize * resultptr; | |
29461 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29463 | } |
29464 | return resultobj; | |
29465 | fail: | |
29466 | return NULL; | |
29467 | } | |
29468 | ||
29469 | ||
29470 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29471 | PyObject *resultobj; | |
29472 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29473 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29474 | PyObject * obj0 = 0 ; | |
29475 | PyObject * obj1 = 0 ; | |
29476 | char *kwnames[] = { | |
29477 | (char *) "self",(char *) "child", NULL | |
29478 | }; | |
29479 | ||
29480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29483 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29485 | { |
29486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29487 | (arg1)->base_AddChild(arg2); | |
29488 | ||
29489 | wxPyEndAllowThreads(__tstate); | |
29490 | if (PyErr_Occurred()) SWIG_fail; | |
29491 | } | |
29492 | Py_INCREF(Py_None); resultobj = Py_None; | |
29493 | return resultobj; | |
29494 | fail: | |
29495 | return NULL; | |
29496 | } | |
29497 | ||
29498 | ||
29499 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29500 | PyObject *resultobj; | |
29501 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29502 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29503 | PyObject * obj0 = 0 ; | |
29504 | PyObject * obj1 = 0 ; | |
29505 | char *kwnames[] = { | |
29506 | (char *) "self",(char *) "child", NULL | |
29507 | }; | |
29508 | ||
29509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29514 | { |
29515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29516 | (arg1)->base_RemoveChild(arg2); | |
29517 | ||
29518 | wxPyEndAllowThreads(__tstate); | |
29519 | if (PyErr_Occurred()) SWIG_fail; | |
29520 | } | |
29521 | Py_INCREF(Py_None); resultobj = Py_None; | |
29522 | return resultobj; | |
29523 | fail: | |
29524 | return NULL; | |
29525 | } | |
29526 | ||
29527 | ||
1cb4a8aa RD |
29528 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
29529 | PyObject *resultobj; | |
29530 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29531 | bool result; | |
29532 | PyObject * obj0 = 0 ; | |
29533 | char *kwnames[] = { | |
29534 | (char *) "self", NULL | |
29535 | }; | |
29536 | ||
29537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29540 | { | |
29541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 29542 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
29543 | |
29544 | wxPyEndAllowThreads(__tstate); | |
29545 | if (PyErr_Occurred()) SWIG_fail; | |
29546 | } | |
29547 | { | |
29548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29549 | } | |
29550 | return resultobj; | |
29551 | fail: | |
29552 | return NULL; | |
29553 | } | |
29554 | ||
29555 | ||
29556 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29557 | PyObject *resultobj; | |
29558 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29559 | wxColour *arg2 = 0 ; | |
29560 | wxColour temp2 ; | |
29561 | PyObject * obj0 = 0 ; | |
29562 | PyObject * obj1 = 0 ; | |
29563 | char *kwnames[] = { | |
29564 | (char *) "self",(char *) "c", NULL | |
29565 | }; | |
29566 | ||
29567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29570 | { | |
29571 | arg2 = &temp2; | |
29572 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29573 | } | |
29574 | { | |
29575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29576 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29577 | ||
29578 | wxPyEndAllowThreads(__tstate); | |
29579 | if (PyErr_Occurred()) SWIG_fail; | |
29580 | } | |
29581 | Py_INCREF(Py_None); resultobj = Py_None; | |
29582 | return resultobj; | |
29583 | fail: | |
29584 | return NULL; | |
29585 | } | |
29586 | ||
29587 | ||
db3e571a RD |
29588 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29589 | PyObject *resultobj; | |
29590 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29591 | wxVisualAttributes result; | |
29592 | PyObject * obj0 = 0 ; | |
29593 | char *kwnames[] = { | |
29594 | (char *) "self", NULL | |
29595 | }; | |
29596 | ||
29597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29600 | { | |
29601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29602 | result = (arg1)->base_GetDefaultAttributes(); | |
29603 | ||
29604 | wxPyEndAllowThreads(__tstate); | |
29605 | if (PyErr_Occurred()) SWIG_fail; | |
29606 | } | |
29607 | { | |
29608 | wxVisualAttributes * resultptr; | |
29609 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29611 | } | |
29612 | return resultobj; | |
29613 | fail: | |
29614 | return NULL; | |
29615 | } | |
29616 | ||
29617 | ||
d14a1e28 RD |
29618 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29619 | PyObject *obj; | |
29620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29621 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29622 | Py_INCREF(obj); | |
29623 | return Py_BuildValue((char *)""); | |
29624 | } | |
29625 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29626 | PyObject *resultobj; | |
29627 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 29628 | int arg2 = (int) 0 ; |
d14a1e28 RD |
29629 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29630 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29631 | wxHelpEvent *result; | |
29632 | wxPoint temp3 ; | |
994141e6 RD |
29633 | PyObject * obj0 = 0 ; |
29634 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29635 | PyObject * obj2 = 0 ; |
29636 | char *kwnames[] = { | |
29637 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29638 | }; | |
29639 | ||
994141e6 RD |
29640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29641 | if (obj0) { | |
15afbcd0 RD |
29642 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
29643 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
29644 | } |
29645 | if (obj1) { | |
15afbcd0 RD |
29646 | arg2 = (int) SWIG_AsInt(obj1); |
29647 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29648 | } |
d14a1e28 RD |
29649 | if (obj2) { |
29650 | { | |
29651 | arg3 = &temp3; | |
29652 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29653 | } | |
29654 | } | |
29655 | { | |
29656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29657 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29658 | ||
29659 | wxPyEndAllowThreads(__tstate); | |
29660 | if (PyErr_Occurred()) SWIG_fail; | |
29661 | } | |
15afbcd0 | 29662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29663 | return resultobj; |
29664 | fail: | |
29665 | return NULL; | |
29666 | } | |
29667 | ||
29668 | ||
29669 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29670 | PyObject *resultobj; | |
29671 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 29672 | wxPoint result; |
d14a1e28 RD |
29673 | PyObject * obj0 = 0 ; |
29674 | char *kwnames[] = { | |
29675 | (char *) "self", NULL | |
29676 | }; | |
29677 | ||
29678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29681 | { |
29682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 29683 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29684 | |
29685 | wxPyEndAllowThreads(__tstate); | |
29686 | if (PyErr_Occurred()) SWIG_fail; | |
29687 | } | |
15afbcd0 RD |
29688 | { |
29689 | wxPoint * resultptr; | |
29690 | resultptr = new wxPoint((wxPoint &) result); | |
29691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29692 | } | |
d14a1e28 RD |
29693 | return resultobj; |
29694 | fail: | |
29695 | return NULL; | |
29696 | } | |
29697 | ||
29698 | ||
29699 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29700 | PyObject *resultobj; | |
29701 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29702 | wxPoint *arg2 = 0 ; | |
29703 | wxPoint temp2 ; | |
29704 | PyObject * obj0 = 0 ; | |
29705 | PyObject * obj1 = 0 ; | |
29706 | char *kwnames[] = { | |
29707 | (char *) "self",(char *) "pos", NULL | |
29708 | }; | |
29709 | ||
29710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29713 | { |
29714 | arg2 = &temp2; | |
29715 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29716 | } | |
29717 | { | |
29718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29719 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29720 | ||
29721 | wxPyEndAllowThreads(__tstate); | |
29722 | if (PyErr_Occurred()) SWIG_fail; | |
29723 | } | |
29724 | Py_INCREF(Py_None); resultobj = Py_None; | |
29725 | return resultobj; | |
29726 | fail: | |
29727 | return NULL; | |
29728 | } | |
29729 | ||
29730 | ||
29731 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29732 | PyObject *resultobj; | |
29733 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29734 | wxString *result; | |
29735 | PyObject * obj0 = 0 ; | |
29736 | char *kwnames[] = { | |
29737 | (char *) "self", NULL | |
29738 | }; | |
29739 | ||
29740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29743 | { |
29744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29745 | { | |
29746 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29747 | result = (wxString *) &_result_ref; | |
29748 | } | |
29749 | ||
29750 | wxPyEndAllowThreads(__tstate); | |
29751 | if (PyErr_Occurred()) SWIG_fail; | |
29752 | } | |
cc6dd355 RD |
29753 | { |
29754 | #if wxUSE_UNICODE | |
29755 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29756 | #else | |
29757 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29758 | #endif | |
29759 | } | |
d14a1e28 RD |
29760 | return resultobj; |
29761 | fail: | |
29762 | return NULL; | |
29763 | } | |
29764 | ||
29765 | ||
29766 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29767 | PyObject *resultobj; | |
29768 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29769 | wxString *arg2 = 0 ; | |
e811c8ce | 29770 | bool temp2 = False ; |
d14a1e28 RD |
29771 | PyObject * obj0 = 0 ; |
29772 | PyObject * obj1 = 0 ; | |
29773 | char *kwnames[] = { | |
29774 | (char *) "self",(char *) "link", NULL | |
29775 | }; | |
29776 | ||
29777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29780 | { |
29781 | arg2 = wxString_in_helper(obj1); | |
29782 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29783 | temp2 = True; |
d14a1e28 RD |
29784 | } |
29785 | { | |
29786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29787 | (arg1)->SetLink((wxString const &)*arg2); | |
29788 | ||
29789 | wxPyEndAllowThreads(__tstate); | |
29790 | if (PyErr_Occurred()) SWIG_fail; | |
29791 | } | |
29792 | Py_INCREF(Py_None); resultobj = Py_None; | |
29793 | { | |
29794 | if (temp2) | |
29795 | delete arg2; | |
29796 | } | |
29797 | return resultobj; | |
29798 | fail: | |
29799 | { | |
29800 | if (temp2) | |
29801 | delete arg2; | |
29802 | } | |
29803 | return NULL; | |
29804 | } | |
29805 | ||
29806 | ||
29807 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29808 | PyObject *resultobj; | |
29809 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29810 | wxString *result; | |
29811 | PyObject * obj0 = 0 ; | |
29812 | char *kwnames[] = { | |
29813 | (char *) "self", NULL | |
29814 | }; | |
29815 | ||
29816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29819 | { |
29820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29821 | { | |
29822 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29823 | result = (wxString *) &_result_ref; | |
29824 | } | |
29825 | ||
29826 | wxPyEndAllowThreads(__tstate); | |
29827 | if (PyErr_Occurred()) SWIG_fail; | |
29828 | } | |
cc6dd355 RD |
29829 | { |
29830 | #if wxUSE_UNICODE | |
29831 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29832 | #else | |
29833 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29834 | #endif | |
29835 | } | |
d14a1e28 RD |
29836 | return resultobj; |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
29842 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29843 | PyObject *resultobj; | |
29844 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29845 | wxString *arg2 = 0 ; | |
e811c8ce | 29846 | bool temp2 = False ; |
d14a1e28 RD |
29847 | PyObject * obj0 = 0 ; |
29848 | PyObject * obj1 = 0 ; | |
29849 | char *kwnames[] = { | |
29850 | (char *) "self",(char *) "target", NULL | |
29851 | }; | |
29852 | ||
29853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29856 | { |
29857 | arg2 = wxString_in_helper(obj1); | |
29858 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29859 | temp2 = True; |
d14a1e28 RD |
29860 | } |
29861 | { | |
29862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29863 | (arg1)->SetTarget((wxString const &)*arg2); | |
29864 | ||
29865 | wxPyEndAllowThreads(__tstate); | |
29866 | if (PyErr_Occurred()) SWIG_fail; | |
29867 | } | |
29868 | Py_INCREF(Py_None); resultobj = Py_None; | |
29869 | { | |
29870 | if (temp2) | |
29871 | delete arg2; | |
29872 | } | |
29873 | return resultobj; | |
29874 | fail: | |
29875 | { | |
29876 | if (temp2) | |
29877 | delete arg2; | |
29878 | } | |
29879 | return NULL; | |
29880 | } | |
29881 | ||
29882 | ||
29883 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29884 | PyObject *obj; | |
29885 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29886 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29887 | Py_INCREF(obj); | |
29888 | return Py_BuildValue((char *)""); | |
29889 | } | |
29890 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29891 | PyObject *resultobj; | |
29892 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 29893 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29894 | wxContextHelp *result; |
29895 | PyObject * obj0 = 0 ; | |
29896 | PyObject * obj1 = 0 ; | |
29897 | char *kwnames[] = { | |
29898 | (char *) "window",(char *) "doNow", NULL | |
29899 | }; | |
29900 | ||
29901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29902 | if (obj0) { | |
15afbcd0 RD |
29903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29905 | } |
29906 | if (obj1) { | |
15afbcd0 RD |
29907 | arg2 = (bool) SWIG_AsBool(obj1); |
29908 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29909 | } |
29910 | { | |
29911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29912 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29913 | ||
29914 | wxPyEndAllowThreads(__tstate); | |
29915 | if (PyErr_Occurred()) SWIG_fail; | |
29916 | } | |
15afbcd0 | 29917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
29918 | return resultobj; |
29919 | fail: | |
29920 | return NULL; | |
29921 | } | |
29922 | ||
29923 | ||
29924 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29925 | PyObject *resultobj; | |
29926 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29927 | PyObject * obj0 = 0 ; | |
29928 | char *kwnames[] = { | |
29929 | (char *) "self", NULL | |
29930 | }; | |
29931 | ||
29932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29935 | { |
29936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29937 | delete arg1; | |
29938 | ||
29939 | wxPyEndAllowThreads(__tstate); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | } | |
29942 | Py_INCREF(Py_None); resultobj = Py_None; | |
29943 | return resultobj; | |
29944 | fail: | |
29945 | return NULL; | |
29946 | } | |
29947 | ||
29948 | ||
29949 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29950 | PyObject *resultobj; | |
29951 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29952 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29953 | bool result; | |
29954 | PyObject * obj0 = 0 ; | |
29955 | PyObject * obj1 = 0 ; | |
29956 | char *kwnames[] = { | |
29957 | (char *) "self",(char *) "window", NULL | |
29958 | }; | |
29959 | ||
29960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29963 | if (obj1) { |
15afbcd0 RD |
29964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29966 | } |
29967 | { | |
29968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29969 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29970 | ||
29971 | wxPyEndAllowThreads(__tstate); | |
29972 | if (PyErr_Occurred()) SWIG_fail; | |
29973 | } | |
4f89f6a3 RD |
29974 | { |
29975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29976 | } | |
d14a1e28 RD |
29977 | return resultobj; |
29978 | fail: | |
29979 | return NULL; | |
29980 | } | |
29981 | ||
29982 | ||
29983 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29984 | PyObject *resultobj; | |
29985 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29986 | bool result; | |
29987 | PyObject * obj0 = 0 ; | |
29988 | char *kwnames[] = { | |
29989 | (char *) "self", NULL | |
29990 | }; | |
29991 | ||
29992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29995 | { |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | result = (bool)(arg1)->EndContextHelp(); | |
29998 | ||
29999 | wxPyEndAllowThreads(__tstate); | |
30000 | if (PyErr_Occurred()) SWIG_fail; | |
30001 | } | |
4f89f6a3 RD |
30002 | { |
30003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30004 | } | |
d14a1e28 RD |
30005 | return resultobj; |
30006 | fail: | |
30007 | return NULL; | |
30008 | } | |
30009 | ||
30010 | ||
30011 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30012 | PyObject *obj; | |
30013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30014 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30015 | Py_INCREF(obj); | |
30016 | return Py_BuildValue((char *)""); | |
30017 | } | |
30018 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30019 | PyObject *resultobj; | |
30020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30021 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30022 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30023 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30024 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30025 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30026 | long arg5 = (long) wxBU_AUTODRAW ; | |
30027 | wxContextHelpButton *result; | |
30028 | wxPoint temp3 ; | |
30029 | wxSize temp4 ; | |
30030 | PyObject * obj0 = 0 ; | |
994141e6 | 30031 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30032 | PyObject * obj2 = 0 ; |
30033 | PyObject * obj3 = 0 ; | |
994141e6 | 30034 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30035 | char *kwnames[] = { |
30036 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30037 | }; | |
30038 | ||
994141e6 | 30039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30042 | if (obj1) { |
15afbcd0 RD |
30043 | arg2 = (int) SWIG_AsInt(obj1); |
30044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30045 | } |
d14a1e28 RD |
30046 | if (obj2) { |
30047 | { | |
30048 | arg3 = &temp3; | |
30049 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30050 | } | |
30051 | } | |
30052 | if (obj3) { | |
30053 | { | |
30054 | arg4 = &temp4; | |
30055 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30056 | } | |
30057 | } | |
994141e6 | 30058 | if (obj4) { |
15afbcd0 RD |
30059 | arg5 = (long) SWIG_AsLong(obj4); |
30060 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30061 | } |
d14a1e28 RD |
30062 | { |
30063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30064 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30065 | ||
30066 | wxPyEndAllowThreads(__tstate); | |
30067 | if (PyErr_Occurred()) SWIG_fail; | |
30068 | } | |
15afbcd0 | 30069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30070 | return resultobj; |
30071 | fail: | |
30072 | return NULL; | |
30073 | } | |
30074 | ||
30075 | ||
30076 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30077 | PyObject *obj; | |
30078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30079 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30080 | Py_INCREF(obj); | |
30081 | return Py_BuildValue((char *)""); | |
30082 | } | |
30083 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30084 | PyObject *resultobj; | |
30085 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30086 | wxHelpProvider *result; | |
30087 | PyObject * obj0 = 0 ; | |
30088 | char *kwnames[] = { | |
30089 | (char *) "helpProvider", NULL | |
30090 | }; | |
30091 | ||
30092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30095 | { |
30096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30097 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30098 | ||
30099 | wxPyEndAllowThreads(__tstate); | |
30100 | if (PyErr_Occurred()) SWIG_fail; | |
30101 | } | |
15afbcd0 | 30102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30103 | return resultobj; |
30104 | fail: | |
30105 | return NULL; | |
30106 | } | |
30107 | ||
30108 | ||
30109 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30110 | PyObject *resultobj; | |
30111 | wxHelpProvider *result; | |
30112 | char *kwnames[] = { | |
30113 | NULL | |
30114 | }; | |
30115 | ||
30116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30117 | { | |
30118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30119 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30120 | ||
30121 | wxPyEndAllowThreads(__tstate); | |
30122 | if (PyErr_Occurred()) SWIG_fail; | |
30123 | } | |
15afbcd0 | 30124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30125 | return resultobj; |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30135 | wxString result; | |
30136 | PyObject * obj0 = 0 ; | |
30137 | PyObject * obj1 = 0 ; | |
30138 | char *kwnames[] = { | |
30139 | (char *) "self",(char *) "window", NULL | |
30140 | }; | |
30141 | ||
30142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30147 | { |
30148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30149 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30150 | ||
30151 | wxPyEndAllowThreads(__tstate); | |
30152 | if (PyErr_Occurred()) SWIG_fail; | |
30153 | } | |
30154 | { | |
30155 | #if wxUSE_UNICODE | |
30156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30157 | #else | |
30158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30159 | #endif | |
30160 | } | |
30161 | return resultobj; | |
30162 | fail: | |
30163 | return NULL; | |
30164 | } | |
30165 | ||
30166 | ||
30167 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30168 | PyObject *resultobj; | |
30169 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30171 | bool result; | |
30172 | PyObject * obj0 = 0 ; | |
30173 | PyObject * obj1 = 0 ; | |
30174 | char *kwnames[] = { | |
30175 | (char *) "self",(char *) "window", NULL | |
30176 | }; | |
30177 | ||
30178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30183 | { |
30184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30185 | result = (bool)(arg1)->ShowHelp(arg2); | |
30186 | ||
30187 | wxPyEndAllowThreads(__tstate); | |
30188 | if (PyErr_Occurred()) SWIG_fail; | |
30189 | } | |
4f89f6a3 RD |
30190 | { |
30191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30192 | } | |
d14a1e28 RD |
30193 | return resultobj; |
30194 | fail: | |
30195 | return NULL; | |
30196 | } | |
30197 | ||
30198 | ||
30199 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30200 | PyObject *resultobj; | |
30201 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30202 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30203 | wxString *arg3 = 0 ; | |
e811c8ce | 30204 | bool temp3 = False ; |
d14a1e28 RD |
30205 | PyObject * obj0 = 0 ; |
30206 | PyObject * obj1 = 0 ; | |
30207 | PyObject * obj2 = 0 ; | |
30208 | char *kwnames[] = { | |
30209 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30210 | }; | |
30211 | ||
30212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30217 | { |
30218 | arg3 = wxString_in_helper(obj2); | |
30219 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30220 | temp3 = True; |
d14a1e28 RD |
30221 | } |
30222 | { | |
30223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30224 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30225 | ||
30226 | wxPyEndAllowThreads(__tstate); | |
30227 | if (PyErr_Occurred()) SWIG_fail; | |
30228 | } | |
30229 | Py_INCREF(Py_None); resultobj = Py_None; | |
30230 | { | |
30231 | if (temp3) | |
30232 | delete arg3; | |
30233 | } | |
30234 | return resultobj; | |
30235 | fail: | |
30236 | { | |
30237 | if (temp3) | |
30238 | delete arg3; | |
30239 | } | |
30240 | return NULL; | |
30241 | } | |
30242 | ||
30243 | ||
30244 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30245 | PyObject *resultobj; | |
30246 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30247 | int arg2 ; |
d14a1e28 | 30248 | wxString *arg3 = 0 ; |
e811c8ce | 30249 | bool temp3 = False ; |
d14a1e28 | 30250 | PyObject * obj0 = 0 ; |
994141e6 | 30251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30252 | PyObject * obj2 = 0 ; |
30253 | char *kwnames[] = { | |
30254 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30255 | }; | |
30256 | ||
994141e6 | 30257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30260 | arg2 = (int) SWIG_AsInt(obj1); | |
30261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30262 | { |
30263 | arg3 = wxString_in_helper(obj2); | |
30264 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30265 | temp3 = True; |
d14a1e28 RD |
30266 | } |
30267 | { | |
30268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30269 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30270 | ||
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
30274 | Py_INCREF(Py_None); resultobj = Py_None; | |
30275 | { | |
30276 | if (temp3) | |
30277 | delete arg3; | |
30278 | } | |
30279 | return resultobj; | |
30280 | fail: | |
30281 | { | |
30282 | if (temp3) | |
30283 | delete arg3; | |
30284 | } | |
30285 | return NULL; | |
30286 | } | |
30287 | ||
30288 | ||
15afbcd0 RD |
30289 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
30290 | PyObject *resultobj; | |
30291 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30292 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30293 | PyObject * obj0 = 0 ; | |
30294 | PyObject * obj1 = 0 ; | |
30295 | char *kwnames[] = { | |
30296 | (char *) "self",(char *) "window", NULL | |
30297 | }; | |
30298 | ||
30299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30302 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30304 | { | |
30305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30306 | (arg1)->RemoveHelp(arg2); | |
30307 | ||
30308 | wxPyEndAllowThreads(__tstate); | |
30309 | if (PyErr_Occurred()) SWIG_fail; | |
30310 | } | |
30311 | Py_INCREF(Py_None); resultobj = Py_None; | |
30312 | return resultobj; | |
30313 | fail: | |
30314 | return NULL; | |
30315 | } | |
30316 | ||
30317 | ||
d14a1e28 RD |
30318 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
30319 | PyObject *resultobj; | |
30320 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30321 | PyObject * obj0 = 0 ; | |
30322 | char *kwnames[] = { | |
30323 | (char *) "self", NULL | |
30324 | }; | |
30325 | ||
30326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30329 | { |
30330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30331 | wxHelpProvider_Destroy(arg1); | |
30332 | ||
30333 | wxPyEndAllowThreads(__tstate); | |
30334 | if (PyErr_Occurred()) SWIG_fail; | |
30335 | } | |
30336 | Py_INCREF(Py_None); resultobj = Py_None; | |
30337 | return resultobj; | |
30338 | fail: | |
30339 | return NULL; | |
30340 | } | |
30341 | ||
30342 | ||
30343 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30344 | PyObject *obj; | |
30345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30346 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30347 | Py_INCREF(obj); | |
30348 | return Py_BuildValue((char *)""); | |
30349 | } | |
30350 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30351 | PyObject *resultobj; | |
30352 | wxSimpleHelpProvider *result; | |
30353 | char *kwnames[] = { | |
30354 | NULL | |
30355 | }; | |
30356 | ||
30357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30358 | { | |
30359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30360 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30361 | ||
30362 | wxPyEndAllowThreads(__tstate); | |
30363 | if (PyErr_Occurred()) SWIG_fail; | |
30364 | } | |
15afbcd0 | 30365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30366 | return resultobj; |
30367 | fail: | |
30368 | return NULL; | |
30369 | } | |
30370 | ||
30371 | ||
30372 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30373 | PyObject *obj; | |
30374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30375 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30376 | Py_INCREF(obj); | |
30377 | return Py_BuildValue((char *)""); | |
30378 | } | |
e811c8ce RD |
30379 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
30380 | PyObject *resultobj; | |
30381 | wxBitmap *arg1 = 0 ; | |
30382 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30383 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30384 | wxGenericDragImage *result; | |
30385 | PyObject * obj0 = 0 ; | |
30386 | PyObject * obj1 = 0 ; | |
30387 | char *kwnames[] = { | |
30388 | (char *) "image",(char *) "cursor", NULL | |
30389 | }; | |
30390 | ||
30391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
30393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30394 | SWIG_fail; | |
e811c8ce | 30395 | if (arg1 == NULL) { |
15afbcd0 RD |
30396 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30397 | SWIG_fail; | |
e811c8ce RD |
30398 | } |
30399 | if (obj1) { | |
15afbcd0 RD |
30400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30402 | SWIG_fail; | |
e811c8ce | 30403 | if (arg2 == NULL) { |
15afbcd0 RD |
30404 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30405 | SWIG_fail; | |
e811c8ce RD |
30406 | } |
30407 | } | |
30408 | { | |
30409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30410 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30411 | ||
30412 | wxPyEndAllowThreads(__tstate); | |
30413 | if (PyErr_Occurred()) SWIG_fail; | |
30414 | } | |
15afbcd0 | 30415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30416 | return resultobj; |
30417 | fail: | |
30418 | return NULL; | |
30419 | } | |
30420 | ||
30421 | ||
30422 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30423 | PyObject *resultobj; | |
30424 | wxIcon *arg1 = 0 ; | |
30425 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30426 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30427 | wxGenericDragImage *result; | |
30428 | PyObject * obj0 = 0 ; | |
30429 | PyObject * obj1 = 0 ; | |
30430 | char *kwnames[] = { | |
30431 | (char *) "image",(char *) "cursor", NULL | |
30432 | }; | |
30433 | ||
30434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
30436 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30437 | SWIG_fail; | |
e811c8ce | 30438 | if (arg1 == NULL) { |
15afbcd0 RD |
30439 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30440 | SWIG_fail; | |
e811c8ce RD |
30441 | } |
30442 | if (obj1) { | |
15afbcd0 RD |
30443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30444 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30445 | SWIG_fail; | |
e811c8ce | 30446 | if (arg2 == NULL) { |
15afbcd0 RD |
30447 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30448 | SWIG_fail; | |
e811c8ce RD |
30449 | } |
30450 | } | |
30451 | { | |
30452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30453 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30454 | ||
30455 | wxPyEndAllowThreads(__tstate); | |
30456 | if (PyErr_Occurred()) SWIG_fail; | |
30457 | } | |
15afbcd0 | 30458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30459 | return resultobj; |
30460 | fail: | |
30461 | return NULL; | |
30462 | } | |
30463 | ||
30464 | ||
30465 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30466 | PyObject *resultobj; | |
30467 | wxString *arg1 = 0 ; | |
30468 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30469 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30470 | wxGenericDragImage *result; | |
30471 | bool temp1 = False ; | |
30472 | PyObject * obj0 = 0 ; | |
30473 | PyObject * obj1 = 0 ; | |
30474 | char *kwnames[] = { | |
30475 | (char *) "str",(char *) "cursor", NULL | |
30476 | }; | |
30477 | ||
30478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30479 | { | |
30480 | arg1 = wxString_in_helper(obj0); | |
30481 | if (arg1 == NULL) SWIG_fail; | |
30482 | temp1 = True; | |
30483 | } | |
30484 | if (obj1) { | |
15afbcd0 RD |
30485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30487 | SWIG_fail; | |
e811c8ce | 30488 | if (arg2 == NULL) { |
15afbcd0 RD |
30489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30490 | SWIG_fail; | |
e811c8ce RD |
30491 | } |
30492 | } | |
30493 | { | |
30494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30495 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30496 | ||
30497 | wxPyEndAllowThreads(__tstate); | |
30498 | if (PyErr_Occurred()) SWIG_fail; | |
30499 | } | |
15afbcd0 | 30500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30501 | { |
30502 | if (temp1) | |
30503 | delete arg1; | |
30504 | } | |
30505 | return resultobj; | |
30506 | fail: | |
30507 | { | |
30508 | if (temp1) | |
30509 | delete arg1; | |
30510 | } | |
30511 | return NULL; | |
30512 | } | |
30513 | ||
30514 | ||
30515 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30516 | PyObject *resultobj; | |
30517 | wxPyTreeCtrl *arg1 = 0 ; | |
30518 | wxTreeItemId *arg2 = 0 ; | |
30519 | wxGenericDragImage *result; | |
30520 | PyObject * obj0 = 0 ; | |
30521 | PyObject * obj1 = 0 ; | |
30522 | char *kwnames[] = { | |
30523 | (char *) "treeCtrl",(char *) "id", NULL | |
30524 | }; | |
30525 | ||
30526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
30528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30529 | SWIG_fail; | |
e811c8ce | 30530 | if (arg1 == NULL) { |
15afbcd0 RD |
30531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30532 | SWIG_fail; | |
e811c8ce | 30533 | } |
15afbcd0 RD |
30534 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
30535 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30536 | SWIG_fail; | |
e811c8ce | 30537 | if (arg2 == NULL) { |
15afbcd0 RD |
30538 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30539 | SWIG_fail; | |
e811c8ce RD |
30540 | } |
30541 | { | |
30542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30543 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30544 | ||
30545 | wxPyEndAllowThreads(__tstate); | |
30546 | if (PyErr_Occurred()) SWIG_fail; | |
30547 | } | |
15afbcd0 | 30548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30549 | return resultobj; |
30550 | fail: | |
30551 | return NULL; | |
30552 | } | |
30553 | ||
30554 | ||
30555 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30556 | PyObject *resultobj; | |
30557 | wxPyListCtrl *arg1 = 0 ; | |
30558 | long arg2 ; | |
30559 | wxGenericDragImage *result; | |
30560 | PyObject * obj0 = 0 ; | |
994141e6 | 30561 | PyObject * obj1 = 0 ; |
e811c8ce RD |
30562 | char *kwnames[] = { |
30563 | (char *) "listCtrl",(char *) "id", NULL | |
30564 | }; | |
30565 | ||
994141e6 | 30566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
30568 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30569 | SWIG_fail; | |
e811c8ce | 30570 | if (arg1 == NULL) { |
15afbcd0 RD |
30571 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30572 | SWIG_fail; | |
994141e6 | 30573 | } |
15afbcd0 RD |
30574 | arg2 = (long) SWIG_AsLong(obj1); |
30575 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30576 | { |
30577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30578 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30579 | ||
30580 | wxPyEndAllowThreads(__tstate); | |
30581 | if (PyErr_Occurred()) SWIG_fail; | |
30582 | } | |
15afbcd0 | 30583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30584 | return resultobj; |
30585 | fail: | |
30586 | return NULL; | |
30587 | } | |
30588 | ||
30589 | ||
30590 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30591 | PyObject *resultobj; | |
30592 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30593 | PyObject * obj0 = 0 ; | |
30594 | char *kwnames[] = { | |
30595 | (char *) "self", NULL | |
30596 | }; | |
30597 | ||
30598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30601 | { |
30602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30603 | delete arg1; | |
30604 | ||
30605 | wxPyEndAllowThreads(__tstate); | |
30606 | if (PyErr_Occurred()) SWIG_fail; | |
30607 | } | |
30608 | Py_INCREF(Py_None); resultobj = Py_None; | |
30609 | return resultobj; | |
30610 | fail: | |
30611 | return NULL; | |
30612 | } | |
30613 | ||
30614 | ||
30615 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30616 | PyObject *resultobj; | |
30617 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30618 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30619 | PyObject * obj0 = 0 ; | |
30620 | PyObject * obj1 = 0 ; | |
30621 | char *kwnames[] = { | |
30622 | (char *) "self",(char *) "bitmap", NULL | |
30623 | }; | |
30624 | ||
30625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30628 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30630 | { |
30631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30632 | (arg1)->SetBackingBitmap(arg2); | |
30633 | ||
30634 | wxPyEndAllowThreads(__tstate); | |
30635 | if (PyErr_Occurred()) SWIG_fail; | |
30636 | } | |
30637 | Py_INCREF(Py_None); resultobj = Py_None; | |
30638 | return resultobj; | |
30639 | fail: | |
30640 | return NULL; | |
30641 | } | |
30642 | ||
30643 | ||
30644 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30645 | PyObject *resultobj; | |
30646 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30647 | wxPoint *arg2 = 0 ; | |
30648 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30649 | bool arg4 = (bool) False ; | |
30650 | wxRect *arg5 = (wxRect *) NULL ; | |
30651 | bool result; | |
30652 | wxPoint temp2 ; | |
30653 | PyObject * obj0 = 0 ; | |
30654 | PyObject * obj1 = 0 ; | |
30655 | PyObject * obj2 = 0 ; | |
30656 | PyObject * obj3 = 0 ; | |
30657 | PyObject * obj4 = 0 ; | |
30658 | char *kwnames[] = { | |
30659 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30660 | }; | |
30661 | ||
30662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30665 | { |
30666 | arg2 = &temp2; | |
30667 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30668 | } | |
15afbcd0 RD |
30669 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 30671 | if (obj3) { |
15afbcd0 RD |
30672 | arg4 = (bool) SWIG_AsBool(obj3); |
30673 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30674 | } |
30675 | if (obj4) { | |
15afbcd0 RD |
30676 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30678 | } |
30679 | { | |
30680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30681 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30682 | ||
30683 | wxPyEndAllowThreads(__tstate); | |
30684 | if (PyErr_Occurred()) SWIG_fail; | |
30685 | } | |
4f89f6a3 RD |
30686 | { |
30687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30688 | } | |
e811c8ce RD |
30689 | return resultobj; |
30690 | fail: | |
30691 | return NULL; | |
30692 | } | |
30693 | ||
30694 | ||
30695 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30696 | PyObject *resultobj; | |
30697 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30698 | wxPoint *arg2 = 0 ; | |
30699 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30700 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30701 | bool result; | |
30702 | wxPoint temp2 ; | |
30703 | PyObject * obj0 = 0 ; | |
30704 | PyObject * obj1 = 0 ; | |
30705 | PyObject * obj2 = 0 ; | |
30706 | PyObject * obj3 = 0 ; | |
30707 | char *kwnames[] = { | |
30708 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30709 | }; | |
30710 | ||
30711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30714 | { |
30715 | arg2 = &temp2; | |
30716 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30717 | } | |
15afbcd0 RD |
30718 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30720 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30722 | { |
30723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30724 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30725 | ||
30726 | wxPyEndAllowThreads(__tstate); | |
30727 | if (PyErr_Occurred()) SWIG_fail; | |
30728 | } | |
4f89f6a3 RD |
30729 | { |
30730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30731 | } | |
e811c8ce RD |
30732 | return resultobj; |
30733 | fail: | |
30734 | return NULL; | |
30735 | } | |
30736 | ||
30737 | ||
30738 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30739 | PyObject *resultobj; | |
30740 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30741 | bool result; | |
30742 | PyObject * obj0 = 0 ; | |
30743 | char *kwnames[] = { | |
30744 | (char *) "self", NULL | |
30745 | }; | |
30746 | ||
30747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30750 | { |
30751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30752 | result = (bool)(arg1)->EndDrag(); | |
30753 | ||
30754 | wxPyEndAllowThreads(__tstate); | |
30755 | if (PyErr_Occurred()) SWIG_fail; | |
30756 | } | |
4f89f6a3 RD |
30757 | { |
30758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30759 | } | |
e811c8ce RD |
30760 | return resultobj; |
30761 | fail: | |
30762 | return NULL; | |
30763 | } | |
30764 | ||
30765 | ||
30766 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30767 | PyObject *resultobj; | |
30768 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30769 | wxPoint *arg2 = 0 ; | |
30770 | bool result; | |
30771 | wxPoint temp2 ; | |
30772 | PyObject * obj0 = 0 ; | |
30773 | PyObject * obj1 = 0 ; | |
30774 | char *kwnames[] = { | |
30775 | (char *) "self",(char *) "pt", NULL | |
30776 | }; | |
30777 | ||
30778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30781 | { |
30782 | arg2 = &temp2; | |
30783 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30784 | } | |
30785 | { | |
30786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30787 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30788 | ||
30789 | wxPyEndAllowThreads(__tstate); | |
30790 | if (PyErr_Occurred()) SWIG_fail; | |
30791 | } | |
4f89f6a3 RD |
30792 | { |
30793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30794 | } | |
e811c8ce RD |
30795 | return resultobj; |
30796 | fail: | |
30797 | return NULL; | |
30798 | } | |
30799 | ||
30800 | ||
30801 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30802 | PyObject *resultobj; | |
30803 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30804 | bool result; | |
30805 | PyObject * obj0 = 0 ; | |
30806 | char *kwnames[] = { | |
30807 | (char *) "self", NULL | |
30808 | }; | |
30809 | ||
30810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30813 | { |
30814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30815 | result = (bool)(arg1)->Show(); | |
30816 | ||
30817 | wxPyEndAllowThreads(__tstate); | |
30818 | if (PyErr_Occurred()) SWIG_fail; | |
30819 | } | |
4f89f6a3 RD |
30820 | { |
30821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30822 | } | |
e811c8ce RD |
30823 | return resultobj; |
30824 | fail: | |
30825 | return NULL; | |
30826 | } | |
30827 | ||
30828 | ||
30829 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30830 | PyObject *resultobj; | |
30831 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30832 | bool result; | |
30833 | PyObject * obj0 = 0 ; | |
30834 | char *kwnames[] = { | |
30835 | (char *) "self", NULL | |
30836 | }; | |
30837 | ||
30838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30841 | { |
30842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30843 | result = (bool)(arg1)->Hide(); | |
30844 | ||
30845 | wxPyEndAllowThreads(__tstate); | |
30846 | if (PyErr_Occurred()) SWIG_fail; | |
30847 | } | |
4f89f6a3 RD |
30848 | { |
30849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30850 | } | |
e811c8ce RD |
30851 | return resultobj; |
30852 | fail: | |
30853 | return NULL; | |
30854 | } | |
30855 | ||
30856 | ||
30857 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30858 | PyObject *resultobj; | |
30859 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30860 | wxPoint *arg2 = 0 ; | |
30861 | wxRect result; | |
30862 | wxPoint temp2 ; | |
30863 | PyObject * obj0 = 0 ; | |
30864 | PyObject * obj1 = 0 ; | |
30865 | char *kwnames[] = { | |
30866 | (char *) "self",(char *) "pos", NULL | |
30867 | }; | |
30868 | ||
30869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30872 | { |
30873 | arg2 = &temp2; | |
30874 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30875 | } | |
30876 | { | |
30877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30878 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30879 | ||
30880 | wxPyEndAllowThreads(__tstate); | |
30881 | if (PyErr_Occurred()) SWIG_fail; | |
30882 | } | |
30883 | { | |
30884 | wxRect * resultptr; | |
30885 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 30886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
30887 | } |
30888 | return resultobj; | |
30889 | fail: | |
30890 | return NULL; | |
30891 | } | |
30892 | ||
30893 | ||
30894 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30895 | PyObject *resultobj; | |
30896 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30897 | wxDC *arg2 = 0 ; | |
30898 | wxPoint *arg3 = 0 ; | |
30899 | bool result; | |
30900 | wxPoint temp3 ; | |
30901 | PyObject * obj0 = 0 ; | |
30902 | PyObject * obj1 = 0 ; | |
30903 | PyObject * obj2 = 0 ; | |
30904 | char *kwnames[] = { | |
30905 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30906 | }; | |
30907 | ||
30908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30913 | SWIG_fail; | |
e811c8ce | 30914 | if (arg2 == NULL) { |
15afbcd0 RD |
30915 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30916 | SWIG_fail; | |
e811c8ce RD |
30917 | } |
30918 | { | |
30919 | arg3 = &temp3; | |
30920 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30921 | } | |
30922 | { | |
30923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30924 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30925 | ||
30926 | wxPyEndAllowThreads(__tstate); | |
30927 | if (PyErr_Occurred()) SWIG_fail; | |
30928 | } | |
4f89f6a3 RD |
30929 | { |
30930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30931 | } | |
e811c8ce RD |
30932 | return resultobj; |
30933 | fail: | |
30934 | return NULL; | |
30935 | } | |
30936 | ||
30937 | ||
30938 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30939 | PyObject *resultobj; | |
30940 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30941 | wxDC *arg2 = 0 ; | |
30942 | wxMemoryDC *arg3 = 0 ; | |
30943 | wxRect *arg4 = 0 ; | |
30944 | wxRect *arg5 = 0 ; | |
30945 | bool result; | |
30946 | wxRect temp4 ; | |
30947 | wxRect temp5 ; | |
30948 | PyObject * obj0 = 0 ; | |
30949 | PyObject * obj1 = 0 ; | |
30950 | PyObject * obj2 = 0 ; | |
30951 | PyObject * obj3 = 0 ; | |
30952 | PyObject * obj4 = 0 ; | |
30953 | char *kwnames[] = { | |
30954 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30955 | }; | |
30956 | ||
30957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30962 | SWIG_fail; | |
e811c8ce | 30963 | if (arg2 == NULL) { |
15afbcd0 RD |
30964 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30965 | SWIG_fail; | |
e811c8ce | 30966 | } |
15afbcd0 RD |
30967 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
30968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30969 | SWIG_fail; | |
e811c8ce | 30970 | if (arg3 == NULL) { |
15afbcd0 RD |
30971 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30972 | SWIG_fail; | |
e811c8ce RD |
30973 | } |
30974 | { | |
30975 | arg4 = &temp4; | |
30976 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30977 | } | |
30978 | { | |
30979 | arg5 = &temp5; | |
30980 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30981 | } | |
30982 | { | |
30983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30984 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30985 | ||
30986 | wxPyEndAllowThreads(__tstate); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
4f89f6a3 RD |
30989 | { |
30990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30991 | } | |
e811c8ce RD |
30992 | return resultobj; |
30993 | fail: | |
30994 | return NULL; | |
30995 | } | |
30996 | ||
30997 | ||
30998 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30999 | PyObject *resultobj; | |
31000 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31001 | wxPoint *arg2 = 0 ; | |
31002 | wxPoint *arg3 = 0 ; | |
31003 | bool arg4 ; | |
31004 | bool arg5 ; | |
31005 | bool result; | |
31006 | wxPoint temp2 ; | |
31007 | wxPoint temp3 ; | |
31008 | PyObject * obj0 = 0 ; | |
31009 | PyObject * obj1 = 0 ; | |
31010 | PyObject * obj2 = 0 ; | |
31011 | PyObject * obj3 = 0 ; | |
31012 | PyObject * obj4 = 0 ; | |
31013 | char *kwnames[] = { | |
31014 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31015 | }; | |
31016 | ||
31017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31020 | { |
31021 | arg2 = &temp2; | |
31022 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31023 | } | |
31024 | { | |
31025 | arg3 = &temp3; | |
31026 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31027 | } | |
15afbcd0 RD |
31028 | arg4 = (bool) SWIG_AsBool(obj3); |
31029 | if (PyErr_Occurred()) SWIG_fail; | |
31030 | arg5 = (bool) SWIG_AsBool(obj4); | |
31031 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
31032 | { |
31033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31034 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31035 | ||
31036 | wxPyEndAllowThreads(__tstate); | |
31037 | if (PyErr_Occurred()) SWIG_fail; | |
31038 | } | |
4f89f6a3 RD |
31039 | { |
31040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31041 | } | |
e811c8ce RD |
31042 | return resultobj; |
31043 | fail: | |
31044 | return NULL; | |
31045 | } | |
31046 | ||
31047 | ||
31048 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31049 | PyObject *obj; | |
31050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31051 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31052 | Py_INCREF(obj); | |
31053 | return Py_BuildValue((char *)""); | |
31054 | } | |
31055 | static PyMethodDef SwigMethods[] = { | |
31056 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31057 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31058 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31059 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31060 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31061 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31062 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31063 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31064 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31065 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31066 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31067 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31068 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31069 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31070 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31071 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31072 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31073 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31074 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31075 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31076 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31077 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31078 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31079 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31080 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31081 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31082 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31083 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31084 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31085 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31086 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31087 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31088 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31089 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31090 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31091 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31092 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31093 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
31094 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31095 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31096 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31097 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31098 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31099 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31100 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31101 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31102 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31103 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31104 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31105 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31106 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31107 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31108 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31109 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 31110 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 31111 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
121b9a67 RD |
31112 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31113 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31114 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31115 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31116 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31117 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31118 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31119 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31120 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31121 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31122 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31123 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31124 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31125 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31126 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31127 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31128 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31129 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31130 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31131 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31132 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31133 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31134 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31135 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31136 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31137 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31138 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31139 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31140 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31141 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31142 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31143 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31144 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31145 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31146 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31147 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31148 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31149 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31150 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31151 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31152 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31153 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31154 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31155 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31156 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31157 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31158 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31159 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31160 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31161 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31162 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31163 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31164 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31165 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31166 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31167 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31168 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31169 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31170 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31171 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31172 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31173 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31174 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31175 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
31176 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
31177 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31178 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31179 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31180 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
31181 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31182 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31183 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31184 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31185 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31186 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31187 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31188 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31189 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
31190 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
994141e6 | 31191 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31192 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
31193 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31194 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31195 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31196 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31197 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31198 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31199 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31200 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31201 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31202 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31203 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31204 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31205 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31206 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31207 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31208 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31209 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31210 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31211 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31212 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31213 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31214 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
5e4ca4a8 | 31215 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31216 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31217 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31218 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31219 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31220 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31221 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31222 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31223 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31224 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31226 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31227 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31228 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31241 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31242 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31243 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31244 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31245 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31247 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31248 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31249 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31252 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31253 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 31254 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31255 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
31256 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31257 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31258 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31259 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31260 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31261 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31262 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
31263 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31264 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31265 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31266 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31267 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31268 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31269 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31270 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31271 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31272 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31273 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31274 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31275 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31276 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31277 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31278 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31279 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31280 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31281 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31282 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31283 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31284 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31285 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31286 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31287 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31288 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31289 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31290 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31291 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31292 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31293 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31295 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31296 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31297 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31299 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31302 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31303 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31304 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31305 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31306 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31307 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31308 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31309 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31311 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31312 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31313 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31314 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31315 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31316 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31317 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
d1e20054 RD |
31318 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
31319 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31320 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31321 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31322 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
31323 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31325 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31327 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31328 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31329 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31335 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31336 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31337 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31338 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31339 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31340 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31343 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31344 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31345 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31346 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31347 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31348 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31349 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31350 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31351 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31352 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31353 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31354 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31355 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31356 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31357 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31358 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31359 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31360 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31361 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31362 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31363 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31364 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31365 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31366 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31367 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31368 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31369 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31370 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31371 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31372 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31373 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31374 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31375 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31376 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31377 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31378 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31379 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31380 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31381 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31382 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31383 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31384 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31385 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31386 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31387 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31388 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31389 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31390 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31391 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31392 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31393 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31394 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31395 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31398 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31400 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31401 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31402 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31403 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31404 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31405 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31408 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31410 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31413 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31414 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31415 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31416 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31417 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31418 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31420 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31421 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31422 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31425 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31426 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31427 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31428 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31429 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31432 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31433 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31434 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31435 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31436 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31437 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31438 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31440 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31445 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31446 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31447 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31448 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31450 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31451 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31452 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31453 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31454 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31456 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31457 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31458 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31463 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31464 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31465 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31467 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31468 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
31469 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
31470 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31471 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
31472 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31475 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31476 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31477 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31478 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31482 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31483 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31484 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31488 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31489 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31495 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31496 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31497 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31504 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31505 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 31509 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31510 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
31511 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31512 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31516 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31517 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31518 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31519 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31520 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31529 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31530 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31531 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31538 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31539 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31540 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31543 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31544 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31545 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31551 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31552 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31554 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31555 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31556 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31560 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31561 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31575 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31582 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31588 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31596 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31597 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31599 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31609 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31615 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31616 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31622 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31628 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31641 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31644 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31645 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31646 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31647 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 31648 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31649 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
31650 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31658 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31659 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31678 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31679 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, |
31680 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31681 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31683 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31684 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31687 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31688 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31689 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31690 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31692 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31700 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31702 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31707 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31713 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31714 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 31721 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31722 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
31723 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31741 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31749 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31754 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31755 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31756 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31762 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31781 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31785 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31786 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31787 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31788 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31789 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31790 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31796 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31797 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, |
31798 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31809 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31817 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31820 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31821 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31825 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa | 31826 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31827 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
db3e571a | 31828 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31829 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
31830 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31837 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31838 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31839 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa RD |
31847 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
31848 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
db3e571a | 31849 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31850 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
31851 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31852 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31859 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31864 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31866 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 31872 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31873 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
31874 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31875 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
31877 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
31878 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31879 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31880 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31881 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31882 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31893 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31894 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31895 | { NULL, NULL } |
31896 | }; | |
31897 | ||
31898 | ||
31899 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31900 | ||
31901 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31902 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31903 | } | |
31904 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31905 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31906 | } | |
31907 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31908 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31909 | } | |
31910 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31911 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31912 | } | |
31913 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31914 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31915 | } | |
31916 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31917 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31918 | } | |
31919 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31920 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31921 | } | |
31922 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31923 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31924 | } | |
31925 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31926 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31927 | } | |
31928 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31929 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31930 | } | |
31931 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31932 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31933 | } | |
31934 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31935 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31936 | } | |
31937 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31938 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31939 | } | |
31940 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31941 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31942 | } | |
31943 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31944 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31945 | } | |
31946 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31947 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31948 | } | |
31949 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31950 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31951 | } | |
31952 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31953 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31954 | } | |
31955 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31956 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31957 | } | |
31958 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31959 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31960 | } | |
31961 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31962 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31963 | } | |
31964 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31965 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31966 | } | |
31967 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31968 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31969 | } | |
31970 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31971 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31972 | } | |
31973 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31974 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31975 | } | |
31976 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31977 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31978 | } | |
31979 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31980 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31981 | } | |
31982 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31983 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31984 | } | |
31985 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31986 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31987 | } | |
31988 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31989 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31990 | } | |
31991 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31992 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31993 | } | |
31994 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31995 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31996 | } | |
31997 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31998 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31999 | } | |
32000 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32001 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32002 | } | |
32003 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32004 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32005 | } | |
32006 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32007 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32008 | } | |
32009 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32010 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32011 | } | |
32012 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32013 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32014 | } | |
32015 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32016 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32017 | } | |
32018 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32019 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32020 | } | |
32021 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32022 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32023 | } | |
32024 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32025 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32026 | } | |
32027 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32028 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32029 | } | |
32030 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32031 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32032 | } | |
32033 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32034 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32035 | } | |
32036 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32037 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32038 | } | |
32039 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32040 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32041 | } | |
32042 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32043 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32044 | } | |
32045 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32046 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32047 | } | |
32048 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32049 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32050 | } | |
32051 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32052 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32053 | } | |
32054 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32055 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32056 | } | |
d1e20054 RD |
32057 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32058 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32059 | } | |
d14a1e28 RD |
32060 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32061 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32062 | } | |
32063 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32064 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32065 | } | |
32066 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32067 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32068 | } | |
32069 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32070 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32071 | } | |
32072 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32073 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32074 | } | |
32075 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32076 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32077 | } | |
32078 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32079 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32080 | } | |
32081 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32082 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32083 | } | |
32084 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32085 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32086 | } | |
32087 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32088 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32089 | } | |
32090 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32091 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32092 | } | |
32093 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32094 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32095 | } | |
32096 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32097 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32098 | } | |
32099 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32100 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32101 | } | |
32102 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32103 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32104 | } | |
32105 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32106 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32107 | } | |
32108 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32109 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32110 | } | |
32111 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32112 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32113 | } | |
32114 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32115 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32116 | } | |
32117 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32118 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32119 | } | |
32120 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32121 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32122 | } | |
32123 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32124 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32125 | } | |
32126 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32127 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32128 | } | |
32129 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32130 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32131 | } | |
32132 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32133 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32134 | } | |
32135 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32136 | return (void *)((wxControl *) ((wxButton *) x)); | |
32137 | } | |
32138 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32139 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32140 | } | |
32141 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32142 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32143 | } | |
32144 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32145 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32146 | } | |
32147 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32148 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32149 | } | |
32150 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32151 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32152 | } | |
32153 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32154 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32155 | } | |
32156 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32157 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32158 | } | |
32159 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32160 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32161 | } | |
32162 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32163 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32164 | } | |
32165 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32166 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32167 | } | |
32168 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32169 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32170 | } | |
32171 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32172 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32173 | } | |
32174 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32175 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32176 | } | |
32177 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32178 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32179 | } | |
32180 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32181 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32182 | } | |
32183 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32184 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32185 | } | |
32186 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32187 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32188 | } | |
32189 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32190 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32191 | } | |
32192 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32193 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32194 | } | |
d1e20054 RD |
32195 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32196 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32197 | } | |
d14a1e28 RD |
32198 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32199 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32200 | } | |
32201 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32202 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32203 | } | |
32204 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32205 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32206 | } | |
32207 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32208 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32209 | } | |
32210 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32211 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32212 | } | |
32213 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32214 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32215 | } | |
32216 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32217 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32218 | } | |
32219 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32220 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32221 | } | |
32222 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32223 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32224 | } | |
32225 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32226 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32227 | } | |
32228 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32229 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32230 | } | |
32231 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32232 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32233 | } | |
32234 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32235 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32236 | } | |
32237 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32238 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32239 | } | |
32240 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32241 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32242 | } | |
32243 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32244 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32245 | } | |
32246 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32247 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32248 | } | |
32249 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32250 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32251 | } | |
32252 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32253 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32254 | } | |
32255 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32256 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32257 | } | |
32258 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32259 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32260 | } | |
32261 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32262 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32263 | } | |
32264 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32265 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32266 | } | |
32267 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32268 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32269 | } | |
32270 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32271 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32272 | } | |
32273 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32274 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32275 | } | |
32276 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32277 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32278 | } | |
32279 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32280 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32281 | } | |
32282 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32283 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32284 | } | |
32285 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32286 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32287 | } | |
32288 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32289 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32290 | } | |
32291 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32292 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32293 | } | |
32294 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32295 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32296 | } | |
32297 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32298 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32299 | } | |
32300 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32301 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32302 | } | |
32303 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32304 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32305 | } | |
32306 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32307 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32308 | } | |
32309 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32310 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32311 | } | |
32312 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32313 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32314 | } | |
32315 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32316 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32317 | } | |
32318 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32319 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32320 | } | |
32321 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32322 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32323 | } | |
32324 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32325 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32326 | } | |
32327 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32328 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32329 | } | |
32330 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32331 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32332 | } | |
32333 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32334 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32335 | } | |
32336 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32337 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32338 | } | |
32339 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32340 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32341 | } | |
32342 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32343 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32344 | } | |
32345 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32346 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32347 | } | |
32348 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32349 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32350 | } | |
32351 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32352 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32353 | } | |
32354 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32355 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32356 | } | |
32357 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32358 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32359 | } | |
32360 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32361 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32362 | } | |
32363 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32364 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32365 | } | |
32366 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32367 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32368 | } | |
32369 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32370 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32371 | } | |
32372 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32373 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32374 | } | |
32375 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32376 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32377 | } | |
32378 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32380 | } | |
32381 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32382 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32383 | } | |
32384 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32385 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32386 | } | |
32387 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32388 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32389 | } | |
32390 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32391 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32392 | } | |
32393 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32394 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32395 | } | |
32396 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32397 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32398 | } | |
32399 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32401 | } | |
32402 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32403 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32404 | } | |
32405 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32406 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32407 | } | |
32408 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32409 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32410 | } | |
32411 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32412 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32413 | } | |
32414 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32415 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32416 | } | |
32417 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32418 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32419 | } | |
32420 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32421 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32422 | } | |
32423 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32424 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32425 | } | |
32426 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32427 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32428 | } | |
32429 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32430 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32431 | } | |
32432 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32433 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32434 | } | |
32435 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32437 | } | |
32438 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32439 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32440 | } | |
32441 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32442 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32443 | } | |
32444 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32445 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32446 | } | |
32447 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32448 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32449 | } | |
32450 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32451 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32452 | } | |
32453 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32454 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32455 | } | |
32456 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32457 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32458 | } | |
32459 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32461 | } | |
32462 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32463 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32464 | } | |
32465 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32466 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32467 | } | |
32468 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32469 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32470 | } | |
32471 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32472 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32473 | } | |
32474 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32475 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32476 | } | |
32477 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32478 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32479 | } | |
32480 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32481 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32482 | } | |
32483 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32484 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32485 | } | |
32486 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32487 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32488 | } | |
32489 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32490 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32491 | } | |
32492 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32493 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32494 | } | |
32495 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32496 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32497 | } | |
32498 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32499 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32500 | } | |
32501 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32502 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32503 | } | |
32504 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32505 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32506 | } | |
32507 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32508 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32509 | } | |
32510 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32511 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32512 | } | |
32513 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32514 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32515 | } | |
32516 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32517 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32518 | } | |
32519 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32520 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32521 | } | |
32522 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32523 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32524 | } | |
32525 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32526 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32527 | } | |
32528 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32529 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32530 | } | |
32531 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32532 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32533 | } | |
32534 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32535 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32536 | } | |
32537 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32538 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32539 | } | |
32540 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32541 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32542 | } | |
32543 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32544 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32545 | } | |
32546 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32547 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32548 | } | |
32549 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32550 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32551 | } | |
32552 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32553 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32554 | } | |
32555 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32556 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32557 | } | |
32558 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32559 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32560 | } | |
32561 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32563 | } | |
32564 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32566 | } | |
32567 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32569 | } | |
d14a1e28 RD |
32570 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
32571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32572 | } | |
1e0c8722 RD |
32573 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
32574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32575 | } | |
d14a1e28 RD |
32576 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
32577 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32578 | } | |
32579 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32580 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32581 | } | |
1e0c8722 RD |
32582 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32583 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32584 | } | |
d14a1e28 RD |
32585 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
32586 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32587 | } | |
32588 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32589 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32590 | } | |
32591 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32592 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32593 | } | |
32594 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32595 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32596 | } | |
32597 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32598 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32599 | } | |
32600 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32601 | return (void *)((wxObject *) ((wxImage *) x)); | |
32602 | } | |
32603 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32604 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32605 | } | |
32606 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32607 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32608 | } | |
d1e20054 RD |
32609 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
32610 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32611 | } | |
e811c8ce RD |
32612 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
32613 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32614 | } | |
d14a1e28 RD |
32615 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
32616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32617 | } | |
32618 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32619 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32620 | } | |
32621 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32622 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32623 | } | |
32624 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32625 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32626 | } | |
32627 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32628 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32629 | } | |
32630 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32631 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32632 | } | |
32633 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32634 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32635 | } | |
32636 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32637 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32638 | } | |
32639 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32641 | } | |
32642 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32643 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32644 | } | |
32645 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32646 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32647 | } | |
32648 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32649 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32650 | } | |
32651 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32652 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32653 | } | |
32654 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32655 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32656 | } | |
32657 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32658 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32659 | } | |
32660 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32661 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32662 | } | |
32663 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32664 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32665 | } | |
32666 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32667 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32668 | } | |
32669 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32670 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32671 | } | |
32672 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32674 | } | |
32675 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32676 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32677 | } | |
32678 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32679 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32680 | } | |
32681 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32682 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32683 | } | |
32684 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32685 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32686 | } | |
32687 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32688 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32689 | } | |
32690 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32692 | } | |
32693 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32695 | } | |
32696 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32698 | } | |
32699 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32701 | } | |
32702 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32703 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32704 | } | |
32705 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32706 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32707 | } | |
32708 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32709 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32710 | } | |
32711 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32712 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32713 | } | |
32714 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32715 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32716 | } | |
32717 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32718 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32719 | } | |
32720 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32721 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32722 | } | |
32723 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32724 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32725 | } | |
32726 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32727 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32728 | } | |
32729 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32730 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32731 | } | |
32732 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32733 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
32734 | } | |
32735 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32736 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32737 | } | |
32738 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32739 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32740 | } | |
32741 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32742 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32743 | } | |
32744 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32745 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32746 | } | |
32747 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32748 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32749 | } | |
32750 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32751 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32752 | } | |
32753 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32754 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32755 | } | |
32756 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32757 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32758 | } | |
32759 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32760 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32761 | } | |
32762 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32763 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32764 | } | |
32765 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32766 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32767 | } | |
32768 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32769 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32770 | } | |
32771 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32772 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32773 | } | |
32774 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32775 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32776 | } | |
32777 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32778 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32779 | } | |
32780 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32781 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32782 | } | |
32783 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32784 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32785 | } | |
32786 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32787 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32788 | } | |
32789 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32790 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32791 | } | |
32792 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32793 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32794 | } | |
32795 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32796 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32797 | } | |
32798 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32799 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32800 | } | |
32801 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32802 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32803 | } | |
32804 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32805 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32806 | } | |
32807 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32808 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32809 | } | |
32810 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32811 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32812 | } | |
32813 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32814 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32815 | } | |
32816 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32817 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32818 | } | |
32819 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32820 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32821 | } | |
32822 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32823 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32824 | } | |
32825 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32826 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32827 | } | |
32828 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32829 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32830 | } | |
32831 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32832 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32833 | } | |
32834 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32835 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32836 | } | |
32837 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32838 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32839 | } | |
32840 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32841 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32842 | } | |
d1e20054 RD |
32843 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
32844 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32845 | } | |
d14a1e28 RD |
32846 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
32847 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32848 | } | |
32849 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32850 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32851 | } | |
32852 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32853 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32854 | } | |
32855 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32856 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32857 | } | |
32858 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32859 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32860 | } | |
32861 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32862 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32863 | } | |
32864 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32865 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32866 | } | |
32867 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32868 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32869 | } | |
15afbcd0 RD |
32870 | 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}}; |
32871 | 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}}; | |
32872 | 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}}; | |
32873 | 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}}; | |
32874 | 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}}; | |
32875 | 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}}; | |
32876 | 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}}; | |
32877 | 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}}; | |
32878 | 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}}; | |
32879 | 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 | 32880 | 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 | 32881 | 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 |
32882 | 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}}; |
32883 | 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}}; | |
32884 | 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}}; | |
32885 | 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}}; | |
32886 | 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}}; | |
32887 | 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}}; | |
32888 | 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}}; | |
32889 | 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}}; | |
32890 | 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}}; | |
32891 | 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}}; | |
32892 | 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}}; | |
32893 | 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}}; | |
32894 | 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}}; | |
32895 | 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}}; | |
32896 | 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}}; | |
32897 | 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}}; | |
32898 | 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 | 32899 | 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 |
32900 | 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}}; |
32901 | 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}}; | |
32902 | 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}}; | |
32903 | 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}}; | |
32904 | 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}}; | |
32905 | 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}}; | |
32906 | 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}}; | |
32907 | 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}}; | |
32908 | 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}}; | |
32909 | 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}}; | |
32910 | 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}}; | |
32911 | 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}}; | |
32912 | 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 | 32913 | 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 | 32914 | 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 |
32915 | 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}}; |
32916 | 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}}; | |
32917 | 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}}; | |
32918 | 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}}; | |
32919 | 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}}; | |
32920 | 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}}; | |
32921 | 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}}; | |
32922 | 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}}; | |
32923 | 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}}; | |
32924 | 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}}; | |
32925 | 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}}; | |
32926 | 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}}; | |
32927 | 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}}; | |
32928 | 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}}; | |
32929 | 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}}; | |
32930 | 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}}; | |
32931 | 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}}; | |
32932 | 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}}; | |
32933 | 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}}; | |
32934 | 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}}; | |
32935 | 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}}; | |
32936 | 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}}; | |
32937 | 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}}; | |
32938 | 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}}; | |
32939 | 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}}; | |
32940 | 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}}; | |
32941 | 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}}; | |
32942 | 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}}; | |
32943 | 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}}; | |
32944 | 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}}; | |
32945 | 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}}; | |
32946 | 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}}; | |
32947 | 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}}; | |
32948 | 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}}; | |
32949 | 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}}; | |
32950 | 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}}; | |
32951 | 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}}; | |
32952 | 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}}; | |
32953 | 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}}; | |
32954 | 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 |
32955 | |
32956 | static swig_type_info *swig_types_initial[] = { | |
32957 | _swigt__p_wxTextUrlEvent, | |
32958 | _swigt__p_wxBookCtrlEvent, | |
32959 | _swigt__p_wxSizer, | |
d14a1e28 RD |
32960 | _swigt__p_wxCheckBox, |
32961 | _swigt__p_wxPyTreeCtrl, | |
32962 | _swigt__p_wxEvent, | |
32963 | _swigt__p_wxGenericDirCtrl, | |
32964 | _swigt__p_bool, | |
32965 | _swigt__p_wxPyTreeItemData, | |
32966 | _swigt__p_wxItemContainer, | |
d14a1e28 | 32967 | _swigt__p_wxPyListCtrl, |
74a57fcd | 32968 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
32969 | _swigt__p_wxStaticLine, |
32970 | _swigt__p_wxControl, | |
32971 | _swigt__p_wxPyControl, | |
32972 | _swigt__p_wxGauge, | |
32973 | _swigt__p_wxToolBarBase, | |
32974 | _swigt__p_wxFont, | |
32975 | _swigt__p_wxToggleButton, | |
32976 | _swigt__p_wxRadioButton, | |
32977 | _swigt__p_wxChoice, | |
e811c8ce | 32978 | _swigt__p_wxMemoryDC, |
d14a1e28 | 32979 | _swigt__p_wxListItemAttr, |
58203fa6 | 32980 | _swigt__p_void, |
d14a1e28 RD |
32981 | _swigt__p_int, |
32982 | _swigt__p_wxSize, | |
e811c8ce | 32983 | _swigt__p_wxDC, |
d14a1e28 RD |
32984 | _swigt__p_wxListView, |
32985 | _swigt__p_wxIcon, | |
74a57fcd | 32986 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
32987 | _swigt__p_wxTextCtrl, |
32988 | _swigt__p_wxNotebook, | |
32989 | _swigt__p_wxNotifyEvent, | |
32990 | _swigt__p_wxArrayString, | |
32991 | _swigt__p_wxListbook, | |
32992 | _swigt__p_wxStaticBitmap, | |
32993 | _swigt__p_wxSlider, | |
32994 | _swigt__p_wxStaticBox, | |
32995 | _swigt__p_wxArrayInt, | |
32996 | _swigt__p_wxContextHelp, | |
32997 | _swigt__p_long, | |
32998 | _swigt__p_wxEvtHandler, | |
32999 | _swigt__p_wxListEvent, | |
d14a1e28 | 33000 | _swigt__p_wxCheckListBox, |
74a57fcd | 33001 | _swigt__p_wxListBox, |
d14a1e28 RD |
33002 | _swigt__p_wxBookCtrl, |
33003 | _swigt__p_wxSpinButton, | |
33004 | _swigt__p_wxButton, | |
33005 | _swigt__p_wxBitmapButton, | |
33006 | _swigt__p_wxRect, | |
33007 | _swigt__p_wxContextHelpButton, | |
33008 | _swigt__p_wxRadioBox, | |
33009 | _swigt__p_wxScrollBar, | |
994141e6 | 33010 | _swigt__p_char, |
d14a1e28 RD |
33011 | _swigt__p_wxTreeItemId, |
33012 | _swigt__p_wxComboBox, | |
33013 | _swigt__p_wxHelpEvent, | |
33014 | _swigt__p_wxListItem, | |
33015 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33016 | _swigt__p_wxSpinEvent, |
e811c8ce | 33017 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33018 | _swigt__p_wxSpinCtrl, |
33019 | _swigt__p_wxImageList, | |
33020 | _swigt__p_wxHelpProvider, | |
33021 | _swigt__p_wxTextAttr, | |
33022 | _swigt__p_wxSimpleHelpProvider, | |
33023 | _swigt__p_wxPoint, | |
33024 | _swigt__p_wxListbookEvent, | |
33025 | _swigt__p_wxNotebookEvent, | |
33026 | _swigt__p_wxObject, | |
e811c8ce | 33027 | _swigt__p_wxCursor, |
d14a1e28 RD |
33028 | _swigt__p_wxKeyEvent, |
33029 | _swigt__p_wxWindow, | |
33030 | _swigt__p_wxString, | |
33031 | _swigt__p_wxBitmap, | |
33032 | _swigt__p_wxTreeEvent, | |
33033 | _swigt__p_wxMouseEvent, | |
33034 | _swigt__p_wxCommandEvent, | |
33035 | _swigt__p_wxStaticText, | |
33036 | _swigt__p_wxControlWithItems, | |
33037 | _swigt__p_wxToolBarToolBase, | |
33038 | _swigt__p_wxColour, | |
33039 | _swigt__p_wxToolBar, | |
33040 | _swigt__p_wxBookCtrlSizer, | |
33041 | _swigt__p_wxValidator, | |
33042 | 0 | |
33043 | }; | |
33044 | ||
33045 | ||
33046 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33047 | ||
33048 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
33049 | {0}}; |
33050 | ||
33051 | #ifdef __cplusplus | |
33052 | } | |
33053 | #endif | |
33054 | ||
33055 | #ifdef __cplusplus | |
33056 | extern "C" | |
33057 | #endif | |
33058 | SWIGEXPORT(void) SWIG_init(void) { | |
33059 | static PyObject *SWIG_globals = 0; | |
33060 | static int typeinit = 0; | |
33061 | PyObject *m, *d; | |
33062 | int i; | |
33063 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33064 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33065 | d = PyModule_GetDict(m); | |
33066 | ||
33067 | if (!typeinit) { | |
33068 | for (i = 0; swig_types_initial[i]; i++) { | |
33069 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33070 | } | |
33071 | typeinit = 1; | |
33072 | } | |
33073 | SWIG_InstallConstants(d,swig_const_table); | |
33074 | ||
b2dc1044 RD |
33075 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33076 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
15afbcd0 RD |
33077 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
33078 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33079 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33080 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33081 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33082 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33083 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
15afbcd0 RD |
33084 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
33085 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33086 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33087 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33088 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33089 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33090 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33091 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33092 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
15afbcd0 RD |
33093 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
33094 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33095 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33096 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33097 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33098 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33099 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33100 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33101 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
15afbcd0 RD |
33102 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
33103 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33104 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33105 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33106 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33107 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33108 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33109 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33110 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33111 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33112 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33113 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33114 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33115 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33116 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33117 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33118 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33119 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33120 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33121 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33122 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33123 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33124 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33125 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33126 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33127 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33128 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33129 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33130 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33131 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33132 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33133 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33134 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33135 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33136 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33137 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33138 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33139 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33140 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33141 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33142 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33143 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33144 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33145 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33146 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33147 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33148 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33149 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
15afbcd0 RD |
33150 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
33151 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33152 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33153 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 33154 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33155 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33156 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33157 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33158 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33159 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33160 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
15afbcd0 RD |
33161 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
33162 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33163 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33164 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33165 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33166 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33167 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33168 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33169 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33170 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33171 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33172 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33173 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
33174 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33175 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33176 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33177 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33178 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33179 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33180 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33181 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
33182 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33183 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33184 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33185 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33186 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33187 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33188 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33189 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33190 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33191 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33192 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33193 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33194 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33195 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
15afbcd0 RD |
33196 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
33197 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33198 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33199 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33200 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33201 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33202 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33203 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33204 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33205 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33206 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33207 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33208 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33209 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33210 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33211 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33212 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33213 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33214 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33215 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33216 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33217 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33218 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33219 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33220 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33221 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33222 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33223 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33224 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33225 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33226 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33227 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33228 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33229 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33230 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33231 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33232 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33233 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33234 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33235 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33236 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33237 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33238 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33239 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33240 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33241 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33242 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33243 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33244 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33245 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33246 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33247 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33248 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33249 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33250 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33251 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33252 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33253 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33254 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33255 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33256 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33257 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33258 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33259 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33260 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33261 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33262 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33263 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33264 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33265 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33266 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33267 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33268 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33269 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33270 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33271 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33272 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33273 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33274 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33275 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33276 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33277 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33278 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33279 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33280 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33281 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33282 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33283 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33284 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33285 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33286 | ||
33287 | // Map renamed classes back to their common name for OOR | |
33288 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33289 | ||
b2dc1044 | 33290 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
15afbcd0 RD |
33291 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
33292 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33293 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33294 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33295 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33296 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33297 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33298 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33299 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33300 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33301 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33302 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33303 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33304 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33305 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33306 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33307 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33308 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33309 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33310 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33311 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33312 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33313 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33314 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33315 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33316 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33317 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33318 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33319 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33320 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33321 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33322 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33323 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33324 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33325 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33326 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33327 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33328 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33329 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33330 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33331 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33332 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33333 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33334 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33335 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33336 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33337 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33338 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33339 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33340 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33341 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33342 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33343 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33344 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 33345 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
33346 | |
33347 | // Map renamed classes back to their common name for OOR | |
33348 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33349 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33350 | ||
b2dc1044 | 33351 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
15afbcd0 RD |
33352 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
33353 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33354 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33355 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33356 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33357 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33358 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
33359 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33360 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
33361 | |
33362 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33363 | ||
d14a1e28 RD |
33364 | } |
33365 |