]>
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 | |
c32bde28 | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d14a1e28 RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
49 | #define SWIG_PackData SWIG_Python_PackData |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
d14a1e28 RD |
52 | |
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
cc6dd355 RD |
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
d14a1e28 | 83 | #else |
cc6dd355 RD |
84 | # define SWIGEXPORT(a) a |
85 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
86 | #endif |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 90 | #else |
cc6dd355 | 91 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
92 | #endif |
93 | ||
d14a1e28 RD |
94 | #ifdef __cplusplus |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
cc6dd355 | 102 | const char *name; |
d14a1e28 RD |
103 | swig_converter_func converter; |
104 | const char *str; | |
cc6dd355 | 105 | void *clientdata; |
d14a1e28 RD |
106 | swig_dycast_func dcast; |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c32bde28 | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d14a1e28 RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
122 | |
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d14a1e28 RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d14a1e28 RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | /* Contract support */ | |
200 | ||
9d1d5697 | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d14a1e28 RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
8ac8dba0 RD |
212 | #define SWIGTYPE_p_wxSizer swig_types[1] |
213 | #define SWIGTYPE_p_wxCheckBox swig_types[2] | |
214 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[4] | |
216 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5] | |
217 | #define SWIGTYPE_p_bool swig_types[6] | |
218 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[7] | |
219 | #define SWIGTYPE_p_wxItemContainer swig_types[8] | |
220 | #define SWIGTYPE_p_wxPyListCtrl swig_types[9] | |
221 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
222 | #define SWIGTYPE_p_wxStaticLine swig_types[11] | |
223 | #define SWIGTYPE_p_wxControl swig_types[12] | |
224 | #define SWIGTYPE_p_wxPyControl swig_types[13] | |
225 | #define SWIGTYPE_p_wxGauge swig_types[14] | |
226 | #define SWIGTYPE_p_wxToolBarBase swig_types[15] | |
227 | #define SWIGTYPE_p_wxFont swig_types[16] | |
228 | #define SWIGTYPE_p_wxToggleButton swig_types[17] | |
229 | #define SWIGTYPE_p_wxRadioButton swig_types[18] | |
230 | #define SWIGTYPE_p_wxChoice swig_types[19] | |
231 | #define SWIGTYPE_p_wxMemoryDC swig_types[20] | |
232 | #define SWIGTYPE_p_wxListItemAttr swig_types[21] | |
233 | #define SWIGTYPE_p_void swig_types[22] | |
234 | #define SWIGTYPE_p_int swig_types[23] | |
235 | #define SWIGTYPE_p_wxSize swig_types[24] | |
236 | #define SWIGTYPE_p_wxDC swig_types[25] | |
237 | #define SWIGTYPE_p_wxListView swig_types[26] | |
238 | #define SWIGTYPE_p_wxIcon swig_types[27] | |
239 | #define SWIGTYPE_p_wxVisualAttributes swig_types[28] | |
240 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
241 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
242 | #define SWIGTYPE_p_wxChoicebook swig_types[31] | |
243 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
244 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
245 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
246 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
247 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
248 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
249 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
250 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
251 | #define SWIGTYPE_p_long swig_types[40] | |
252 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[41] | |
2ef75293 RD |
253 | #define SWIGTYPE_p_wxEvtHandler swig_types[42] |
254 | #define SWIGTYPE_p_wxListEvent swig_types[43] | |
255 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
256 | #define SWIGTYPE_p_wxListBox swig_types[45] | |
8ac8dba0 RD |
257 | #define SWIGTYPE_p_wxSpinButton swig_types[46] |
258 | #define SWIGTYPE_p_wxButton swig_types[47] | |
259 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
260 | #define SWIGTYPE_p_wxRect swig_types[49] | |
261 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
262 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
263 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
264 | #define SWIGTYPE_p_char swig_types[53] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
270 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
271 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
272 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
273 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
274 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
275 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
276 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
278 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[67] | |
279 | #define SWIGTYPE_p_wxListbookEvent swig_types[68] | |
280 | #define SWIGTYPE_p_wxNotebookEvent swig_types[69] | |
281 | #define SWIGTYPE_p_wxObject swig_types[70] | |
282 | #define SWIGTYPE_p_wxCursor swig_types[71] | |
283 | #define SWIGTYPE_p_wxKeyEvent swig_types[72] | |
284 | #define SWIGTYPE_p_wxWindow swig_types[73] | |
285 | #define SWIGTYPE_p_wxString swig_types[74] | |
286 | #define SWIGTYPE_p_wxBitmap swig_types[75] | |
287 | #define SWIGTYPE_p_wxTreeEvent swig_types[76] | |
288 | #define SWIGTYPE_p_wxMouseEvent swig_types[77] | |
289 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[78] | |
2ef75293 RD |
290 | #define SWIGTYPE_p_wxCommandEvent swig_types[79] |
291 | #define SWIGTYPE_p_wxStaticText swig_types[80] | |
292 | #define SWIGTYPE_p_wxControlWithItems swig_types[81] | |
293 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[82] | |
294 | #define SWIGTYPE_p_wxColour swig_types[83] | |
295 | #define SWIGTYPE_p_wxToolBar swig_types[84] | |
296 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[85] | |
297 | #define SWIGTYPE_p_wxValidator swig_types[86] | |
298 | static swig_type_info *swig_types[88]; | |
d14a1e28 RD |
299 | |
300 | /* -------- TYPES TABLE (END) -------- */ | |
301 | ||
302 | ||
303 | /*----------------------------------------------- | |
54f9ee45 | 304 | @(target):= _controls_.so |
d14a1e28 | 305 | ------------------------------------------------*/ |
54f9ee45 | 306 | #define SWIG_init init_controls_ |
d14a1e28 | 307 | |
54f9ee45 | 308 | #define SWIG_name "_controls_" |
d14a1e28 | 309 | |
c32bde28 RD |
310 | /* Auxiliar swig macros that appear in the header */ |
311 | ||
312 | #define SWIG_OLDOBJ 1 | |
313 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
314 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 315 | |
994141e6 | 316 | #ifdef __cplusplus |
15afbcd0 | 317 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 318 | #define SWIGSTATIC(a) static a |
c32bde28 RD |
319 | #define swig_new_array(size,Type) (new Type[(size)]) |
320 | #define swig_delete(cptr) delete cptr | |
15afbcd0 | 321 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
322 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
323 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
324 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
325 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
326 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
994141e6 | 327 | |
15afbcd0 RD |
328 | #else /* C case */ |
329 | ||
330 | #define SWIGSTATICINLINE(a) static a | |
331 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
332 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
333 | #define swig_delete(cptr) free((char*)cptr) | |
15afbcd0 | 334 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
335 | #define swig_const_cast(a,Type) (Type)(a) |
336 | #define swig_static_cast(a,Type) (Type)(a) | |
337 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
338 | #define swig_numeric_cast(a,Type) (Type)(a) | |
339 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
15afbcd0 RD |
340 | |
341 | #endif /* __cplusplus */ | |
994141e6 RD |
342 | |
343 | ||
c32bde28 RD |
344 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
345 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
346 | /*@@*/ | |
347 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
348 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
349 | /*@@*/ | |
350 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
351 | #define SWIG_From_short PyInt_FromLong | |
352 | /*@@*/ | |
353 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
354 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
355 | /*@@*/ | |
356 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
357 | #define SWIG_From_int PyInt_FromLong | |
358 | /*@@*/ | |
359 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
360 | #define SWIG_From_long PyInt_FromLong | |
361 | /*@@*/ | |
362 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
363 | #define SWIG_From_float PyFloat_FromDouble | |
364 | /*@@*/ | |
365 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
366 | #define SWIG_From_double PyFloat_FromDouble | |
367 | /*@@*/ | |
994141e6 RD |
368 | |
369 | ||
d14a1e28 RD |
370 | #include "wx/wxPython/wxPython.h" |
371 | #include "wx/wxPython/pyclasses.h" | |
372 | ||
b2dc1044 RD |
373 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
374 | static const wxString wxPyEmptyString(wxEmptyString); | |
375 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4d5c3d91 RD |
376 | |
377 | const wxArrayString wxPyEmptyStringArray; | |
378 | ||
b2dc1044 | 379 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
994141e6 | 380 | |
15afbcd0 RD |
381 | #include <limits.h> |
382 | ||
383 | ||
c32bde28 RD |
384 | SWIGSTATICINLINE(int) |
385 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
386 | const char *errmsg) | |
15afbcd0 | 387 | { |
c32bde28 RD |
388 | if (value < min_value) { |
389 | if (errmsg) { | |
390 | PyErr_Format(PyExc_OverflowError, | |
391 | "value %ld is less than '%s' minimum %ld", | |
392 | value, errmsg, min_value); | |
393 | } | |
394 | return 0; | |
395 | } else if (value > max_value) { | |
396 | if (errmsg) { | |
397 | PyErr_Format(PyExc_OverflowError, | |
398 | "value %ld is greater than '%s' maximum %ld", | |
399 | value, errmsg, max_value); | |
15afbcd0 | 400 | } |
c32bde28 | 401 | return 0; |
15afbcd0 | 402 | } |
c32bde28 | 403 | return 1; |
15afbcd0 RD |
404 | } |
405 | ||
406 | ||
c32bde28 RD |
407 | // See my_fragments.i |
408 | SWIGSTATICINLINE(int) | |
409 | SWIG_AsVal_long(PyObject* obj, long* val) | |
15afbcd0 | 410 | { |
c32bde28 RD |
411 | if (PyNumber_Check(obj)) { |
412 | if (val) *val = PyInt_AsLong(obj); | |
413 | return 1; | |
414 | } | |
69223c70 RD |
415 | else { |
416 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
417 | obj->ob_type->tp_name); | |
418 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
419 | Py_DECREF(errmsg); | |
69223c70 | 420 | } |
c32bde28 | 421 | return 0; |
15afbcd0 RD |
422 | } |
423 | ||
424 | ||
425 | #if INT_MAX != LONG_MAX | |
426 | SWIGSTATICINLINE(int) | |
c32bde28 | 427 | SWIG_AsVal_int(PyObject *obj, int *val) |
994141e6 | 428 | { |
c32bde28 RD |
429 | const char* errmsg = val ? "int" : 0; |
430 | long v; | |
431 | if (SWIG_AsVal_long(obj, &v)) { | |
432 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
433 | if (val) *val = swig_numeric_cast(v, int); | |
434 | return 1; | |
435 | } else { | |
436 | return 0; | |
437 | } | |
438 | } else { | |
439 | PyErr_Clear(); | |
440 | } | |
441 | if (val) { | |
442 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
443 | } | |
444 | return 0; | |
994141e6 | 445 | } |
15afbcd0 | 446 | #else |
c32bde28 RD |
447 | SWIGSTATICINLINE(int) |
448 | SWIG_AsVal_int(PyObject *obj, int *val) | |
449 | { | |
450 | return SWIG_AsVal_long(obj,(long*)val); | |
451 | } | |
15afbcd0 | 452 | #endif |
994141e6 RD |
453 | |
454 | ||
15afbcd0 | 455 | SWIGSTATICINLINE(int) |
c32bde28 | 456 | SWIG_As_int(PyObject* obj) |
994141e6 | 457 | { |
c32bde28 RD |
458 | int v; |
459 | if (!SWIG_AsVal_int(obj, &v)) { | |
460 | /* | |
461 | this is needed to make valgrind/purify happier. the other | |
462 | solution is throw an exception, but since this code should work | |
463 | with plain C .... | |
464 | */ | |
465 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 466 | } |
c32bde28 | 467 | return v; |
15afbcd0 RD |
468 | } |
469 | ||
470 | ||
c32bde28 RD |
471 | SWIGSTATICINLINE(long) |
472 | SWIG_As_long(PyObject* obj) | |
15afbcd0 | 473 | { |
c32bde28 RD |
474 | long v; |
475 | if (!SWIG_AsVal_long(obj, &v)) { | |
476 | /* | |
477 | this is needed to make valgrind/purify happier. the other | |
478 | solution is throw an exception, but since this code should work | |
479 | with plain C .... | |
480 | */ | |
481 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 482 | } |
c32bde28 | 483 | return v; |
994141e6 RD |
484 | } |
485 | ||
c32bde28 RD |
486 | |
487 | SWIGSTATICINLINE(int) | |
488 | SWIG_Check_int(PyObject* obj) | |
489 | { | |
490 | return SWIG_AsVal_int(obj, (int*)0); | |
491 | } | |
994141e6 | 492 | |
c32bde28 RD |
493 | |
494 | SWIGSTATICINLINE(int) | |
495 | SWIG_Check_long(PyObject* obj) | |
994141e6 | 496 | { |
c32bde28 | 497 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
498 | } |
499 | ||
c32bde28 | 500 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 RD |
501 | |
502 | SWIGSTATICINLINE(int) | |
c32bde28 | 503 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 504 | { |
c32bde28 RD |
505 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
506 | if (obj == Py_True) { | |
507 | if (val) *val = true; | |
508 | return 1; | |
509 | } | |
510 | if (obj == Py_False) { | |
511 | if (val) *val = false; | |
15afbcd0 RD |
512 | return 1; |
513 | } | |
c32bde28 RD |
514 | int res = 0; |
515 | if (SWIG_AsVal_int(obj, &res)) { | |
516 | if (val) *val = (bool)res; | |
517 | return 1; | |
518 | } | |
519 | if (val) { | |
520 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
521 | } | |
522 | return 0; | |
523 | } | |
524 | ||
525 | ||
526 | SWIGSTATICINLINE(bool) | |
527 | SWIG_As_bool(PyObject* obj) | |
528 | { | |
529 | bool v; | |
530 | if (!SWIG_AsVal_bool(obj, &v)) { | |
531 | /* | |
532 | this is needed to make valgrind/purify happier. the other | |
533 | solution is throw an exception, but since this code should work | |
534 | with plain C .... | |
535 | */ | |
536 | memset((void*)&v, 0, sizeof(bool)); | |
537 | } | |
538 | return v; | |
539 | } | |
540 | ||
541 | ||
542 | SWIGSTATICINLINE(int) | |
543 | SWIG_Check_bool(PyObject* obj) | |
544 | { | |
545 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
546 | } |
547 | ||
b2dc1044 RD |
548 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
549 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
550 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
551 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
552 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
553 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
554 | |
555 | #include <wx/checklst.h> | |
556 | ||
d14a1e28 | 557 | |
b2dc1044 | 558 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
559 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
560 | if (clientData) { | |
561 | wxPyClientData* data = new wxPyClientData(clientData); | |
562 | self->Insert(item, pos, data); | |
563 | } else | |
564 | self->Insert(item, pos); | |
565 | } | |
566 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
567 | wxArrayInt lst; | |
568 | self->GetSelections(lst); | |
569 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
570 | for(size_t i=0; i<lst.GetCount(); i++) { | |
571 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
572 | } | |
573 | return tup; | |
574 | } | |
c3eb6258 RD |
575 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
576 | #ifdef __WXMSW__ | |
577 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
578 | self->GetItem(item)->SetTextColour(c); | |
579 | #endif | |
580 | } | |
581 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
582 | #ifdef __WXMSW__ | |
583 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
584 | self->GetItem(item)->SetBackgroundColour(c); | |
585 | #endif | |
586 | } | |
587 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
588 | #ifdef __WXMSW__ | |
589 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
590 | self->GetItem(item)->SetFont(f); | |
591 | #endif | |
592 | } | |
b2dc1044 | 593 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 594 | |
c32bde28 | 595 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
596 | PyObject* o2; |
597 | PyObject* o3; | |
c32bde28 | 598 | |
d14a1e28 RD |
599 | if (!target) { |
600 | target = o; | |
601 | } else if (target == Py_None) { | |
602 | Py_DECREF(Py_None); | |
603 | target = o; | |
7e63a440 RD |
604 | } else { |
605 | if (!PyTuple_Check(target)) { | |
606 | o2 = target; | |
607 | target = PyTuple_New(1); | |
608 | PyTuple_SetItem(target, 0, o2); | |
609 | } | |
d14a1e28 RD |
610 | o3 = PyTuple_New(1); |
611 | PyTuple_SetItem(o3, 0, o); | |
612 | ||
613 | o2 = target; | |
614 | target = PySequence_Concat(o2, o3); | |
615 | Py_DECREF(o2); | |
616 | Py_DECREF(o3); | |
617 | } | |
618 | return target; | |
7e63a440 | 619 | } |
d14a1e28 | 620 | |
15afbcd0 | 621 | |
c32bde28 RD |
622 | |
623 | // See my_fragments.i | |
624 | SWIGSTATICINLINE(int) | |
625 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
15afbcd0 | 626 | { |
c32bde28 RD |
627 | long v = 0; |
628 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
629 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
630 | return 0; | |
15afbcd0 | 631 | } |
c32bde28 RD |
632 | else if (val) |
633 | *val = (unsigned long)v; | |
634 | return 1; | |
15afbcd0 RD |
635 | } |
636 | ||
637 | ||
c32bde28 RD |
638 | SWIGSTATICINLINE(unsigned long) |
639 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
15afbcd0 | 640 | { |
c32bde28 RD |
641 | unsigned long v; |
642 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
643 | /* | |
644 | this is needed to make valgrind/purify happier. the other | |
645 | solution is throw an exception, but since this code should work | |
646 | with plain C .... | |
647 | */ | |
648 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 649 | } |
c32bde28 RD |
650 | return v; |
651 | } | |
652 | ||
653 | ||
654 | SWIGSTATICINLINE(int) | |
655 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
656 | { | |
657 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
658 | } |
659 | ||
d14a1e28 RD |
660 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
661 | self->AppendText(text); | |
662 | } | |
663 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
664 | return self->GetValue().Mid(from, to - from); | |
665 | } | |
b2dc1044 RD |
666 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
667 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 668 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
669 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
670 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
671 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
672 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
673 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
674 | ||
675 | #include <wx/slider.h> | |
676 | ||
d14a1e28 | 677 | |
b2dc1044 | 678 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 679 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 680 | |
15afbcd0 RD |
681 | #if !wxUSE_TOGGLEBTN |
682 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
683 | |
684 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
685 | ||
686 | class wxToggleButton : public wxControl | |
687 | { | |
688 | public: | |
689 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
690 | const wxPoint&, const wxSize&, long, | |
691 | const wxValidator&, const wxString&) | |
39f61e25 | 692 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
693 | |
694 | wxToggleButton() | |
39f61e25 | 695 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
696 | }; |
697 | #endif | |
698 | ||
b2dc1044 | 699 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
994141e6 | 700 | |
15afbcd0 | 701 | SWIGSTATICINLINE(PyObject* ) |
c32bde28 | 702 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 703 | { |
15afbcd0 RD |
704 | return (value > LONG_MAX) ? |
705 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 706 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
994141e6 RD |
707 | } |
708 | ||
b2dc1044 | 709 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
710 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
711 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
712 | if (udata) { | |
713 | Py_INCREF(udata->m_obj); | |
714 | return udata->m_obj; | |
715 | } else { | |
716 | Py_INCREF(Py_None); | |
717 | return Py_None; | |
718 | } | |
719 | } | |
720 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
721 | self->SetClientData(new wxPyUserData(clientData)); | |
722 | } | |
723 | 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){ | |
724 | wxPyUserData* udata = NULL; | |
725 | if (clientData && clientData != Py_None) | |
726 | udata = new wxPyUserData(clientData); | |
727 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
728 | shortHelp, longHelp, udata); | |
729 | } | |
730 | 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){ | |
731 | wxPyUserData* udata = NULL; | |
732 | if (clientData && clientData != Py_None) | |
733 | udata = new wxPyUserData(clientData); | |
734 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
735 | shortHelp, longHelp, udata); | |
736 | } | |
737 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
738 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
739 | if (udata) { | |
740 | Py_INCREF(udata->m_obj); | |
741 | return udata->m_obj; | |
742 | } else { | |
743 | Py_INCREF(Py_None); | |
744 | return Py_None; | |
745 | } | |
746 | } | |
747 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
748 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
749 | } | |
750 | ||
751 | #include <wx/listctrl.h> | |
752 | ||
33b885b9 | 753 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
754 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
755 | // Python aware sorting function for wxPyListCtrl | |
756 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
757 | int retval = 0; | |
758 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 759 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
760 | |
761 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
762 | PyObject* result = PyEval_CallObject(func, args); | |
763 | Py_DECREF(args); | |
764 | if (result) { | |
765 | retval = PyInt_AsLong(result); | |
766 | Py_DECREF(result); | |
767 | } | |
768 | ||
4f89f6a3 | 769 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
770 | return retval; |
771 | } | |
772 | ||
773 | // C++ Version of a Python aware class | |
774 | class wxPyListCtrl : public wxListCtrl { | |
775 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
776 | public: | |
777 | wxPyListCtrl() : wxListCtrl() {} | |
778 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
779 | const wxPoint& pos, | |
780 | const wxSize& size, | |
781 | long style, | |
782 | const wxValidator& validator, | |
783 | const wxString& name) : | |
784 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
785 | ||
786 | bool Create(wxWindow* parent, wxWindowID id, | |
787 | const wxPoint& pos, | |
788 | const wxSize& size, | |
789 | long style, | |
790 | const wxValidator& validator, | |
791 | const wxString& name) { | |
792 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
793 | } | |
794 | ||
795 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
796 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
797 | ||
84f85550 RD |
798 | // use the virtual version to avoid a confusing assert in the base class |
799 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
800 | ||
d14a1e28 RD |
801 | PYPRIVATE; |
802 | }; | |
803 | ||
804 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
805 | ||
806 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 807 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
808 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
809 | ||
d14a1e28 RD |
810 | |
811 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
812 | wxListItem item; | |
813 | item.SetMask( wxLIST_MASK_STATE | | |
814 | wxLIST_MASK_TEXT | | |
815 | wxLIST_MASK_IMAGE | | |
816 | wxLIST_MASK_DATA | | |
817 | wxLIST_SET_ITEM | | |
818 | wxLIST_MASK_WIDTH | | |
819 | wxLIST_MASK_FORMAT | |
820 | ); | |
821 | if (self->GetColumn(col, item)) | |
822 | return new wxListItem(item); | |
823 | else | |
824 | return NULL; | |
825 | } | |
826 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
827 | wxListItem* info = new wxListItem; | |
828 | info->m_itemId = itemId; | |
829 | info->m_col = col; | |
830 | info->m_mask = 0xFFFF; | |
831 | self->GetItem(*info); | |
832 | return info; | |
833 | } | |
834 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
835 | wxPoint pos; | |
836 | self->GetItemPosition(item, pos); | |
837 | return pos; | |
838 | } | |
839 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
840 | wxRect rect; | |
841 | self->GetItemRect(item, rect, code); | |
842 | return rect; | |
843 | } | |
c32bde28 | 844 | |
d14a1e28 RD |
845 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
846 | if (!PyCallable_Check(func)) | |
ae8162c8 | 847 | return false; |
d14a1e28 RD |
848 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
849 | } | |
850 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
851 | ||
852 | ||
853 | ||
854 | return (wxWindow*)self->m_mainWin; | |
855 | ||
856 | } | |
857 | ||
858 | #include <wx/treectrl.h> | |
859 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 860 | |
33b885b9 | 861 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
ae8162c8 RD |
862 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
863 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 RD |
864 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
865 | // C++ version of Python aware wxTreeCtrl | |
866 | class wxPyTreeCtrl : public wxTreeCtrl { | |
867 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
868 | public: | |
869 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
870 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
871 | const wxPoint& pos, | |
872 | const wxSize& size, | |
873 | long style, | |
874 | const wxValidator& validator, | |
875 | const wxString& name) : | |
876 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
877 | ||
878 | bool Create(wxWindow *parent, wxWindowID id, | |
879 | const wxPoint& pos, | |
880 | const wxSize& size, | |
881 | long style, | |
882 | const wxValidator& validator, | |
883 | const wxString& name) { | |
884 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
885 | } | |
886 | ||
887 | ||
888 | int OnCompareItems(const wxTreeItemId& item1, | |
889 | const wxTreeItemId& item2) { | |
890 | int rval = 0; | |
891 | bool found; | |
4f89f6a3 | 892 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 893 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
894 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
895 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
896 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
897 | Py_DECREF(o1); | |
898 | Py_DECREF(o2); | |
899 | } | |
4f89f6a3 | 900 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
901 | if (! found) |
902 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
903 | return rval; | |
904 | } | |
905 | PYPRIVATE; | |
906 | }; | |
907 | ||
908 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
909 | ||
910 | ||
994141e6 | 911 | |
15afbcd0 | 912 | #if UINT_MAX < LONG_MAX |
c32bde28 RD |
913 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
914 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
915 | /*@@*/ | |
15afbcd0 | 916 | #else |
c32bde28 RD |
917 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
918 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
919 | /*@@*/ | |
15afbcd0 RD |
920 | #endif |
921 | ||
922 | ||
c32bde28 RD |
923 | SWIGSTATICINLINE(int) |
924 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
925 | unsigned long max_value, | |
926 | const char *errmsg) | |
15afbcd0 | 927 | { |
c32bde28 RD |
928 | if (value > max_value) { |
929 | if (errmsg) { | |
930 | PyErr_Format(PyExc_OverflowError, | |
931 | "value %ld is greater than '%s' minimum %ld", | |
932 | value, errmsg, max_value); | |
15afbcd0 | 933 | } |
c32bde28 | 934 | return 0; |
15afbcd0 | 935 | } |
c32bde28 RD |
936 | return 1; |
937 | } | |
994141e6 RD |
938 | |
939 | ||
15afbcd0 | 940 | #if UINT_MAX != ULONG_MAX |
c32bde28 RD |
941 | SWIGSTATICINLINE(int) |
942 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
994141e6 | 943 | { |
c32bde28 RD |
944 | const char* errmsg = val ? "unsigned int" : 0; |
945 | unsigned long v; | |
946 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
947 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
948 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
949 | return 1; | |
950 | } | |
951 | } else { | |
952 | PyErr_Clear(); | |
953 | } | |
954 | if (val) { | |
955 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
956 | } | |
957 | return 0; | |
15afbcd0 RD |
958 | } |
959 | #else | |
c32bde28 RD |
960 | SWIGSTATICINLINE(unsigned int) |
961 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
962 | { | |
963 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
964 | } | |
15afbcd0 RD |
965 | #endif |
966 | ||
967 | ||
c32bde28 RD |
968 | SWIGSTATICINLINE(unsigned int) |
969 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
15afbcd0 | 970 | { |
c32bde28 RD |
971 | unsigned int v; |
972 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
973 | /* | |
974 | this is needed to make valgrind/purify happier. the other | |
975 | solution is throw an exception, but since this code should work | |
976 | with plain C .... | |
977 | */ | |
978 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 979 | } |
c32bde28 RD |
980 | return v; |
981 | } | |
982 | ||
983 | ||
984 | SWIGSTATICINLINE(int) | |
985 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
986 | { | |
987 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
988 | } |
989 | ||
d14a1e28 RD |
990 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
991 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
992 | if (data == NULL) { | |
993 | data = new wxPyTreeItemData(); | |
994 | data->SetId(item); // set the id | |
995 | self->SetItemData(item, data); | |
996 | } | |
997 | return data; | |
998 | } | |
999 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
1000 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1001 | if (data == NULL) { | |
1002 | data = new wxPyTreeItemData(); | |
1003 | data->SetId(item); // set the id | |
1004 | self->SetItemData(item, data); | |
1005 | } | |
1006 | return data->GetData(); | |
1007 | } | |
1008 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
1009 | data->SetId(item); // set the id | |
1010 | self->SetItemData(item, data); | |
1011 | } | |
1012 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
1013 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1014 | if (data == NULL) { | |
1015 | data = new wxPyTreeItemData(obj); | |
1016 | data->SetId(item); // set the id | |
1017 | self->SetItemData(item, data); | |
1018 | } else | |
1019 | data->SetData(obj); | |
1020 | } | |
1021 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 1022 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1023 | PyObject* rval = PyList_New(0); |
1024 | wxArrayTreeItemIds array; | |
1025 | size_t num, x; | |
1026 | num = self->GetSelections(array); | |
1027 | for (x=0; x < num; x++) { | |
1028 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 1029 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 1030 | PyList_Append(rval, item); |
1a10c483 | 1031 | Py_DECREF(item); |
d14a1e28 | 1032 | } |
4f89f6a3 | 1033 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1034 | return rval; |
1035 | } | |
1036 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
1037 | void* cookie = 0; |
1038 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 1039 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1040 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 1041 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 1042 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 1043 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1044 | return tup; |
1045 | } | |
58203fa6 RD |
1046 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
1047 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 1048 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1049 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 1050 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 1051 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 1052 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1053 | return tup; |
1054 | } | |
1055 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
1056 | wxRect rect; | |
1057 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 1058 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1059 | wxRect* r = new wxRect(rect); |
ae8162c8 | 1060 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 1061 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1062 | return val; |
1063 | } | |
1064 | else | |
1065 | RETURN_NONE(); | |
1066 | } | |
b2dc1044 | 1067 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 RD |
1068 | |
1069 | SWIGSTATICINLINE(PyObject*) | |
1070 | SWIG_From_bool(bool value) | |
1071 | { | |
1072 | PyObject *obj = value ? Py_True : Py_False; | |
1073 | Py_INCREF(obj); | |
1074 | return obj; | |
1075 | } | |
1076 | ||
1077 | ||
d14a1e28 RD |
1078 | // C++ version of Python aware wxControl |
1079 | class wxPyControl : public wxControl | |
1080 | { | |
1081 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
1082 | public: | |
1083 | wxPyControl() : wxControl() {} | |
1084 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
1085 | const wxPoint& pos = wxDefaultPosition, | |
1086 | const wxSize& size = wxDefaultSize, | |
1087 | long style = 0, | |
1088 | const wxValidator& validator=wxDefaultValidator, | |
1089 | const wxString& name = wxPyControlNameStr) | |
1090 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
1091 | ||
db3e571a | 1092 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
1093 | |
1094 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1095 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1096 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1097 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1098 | ||
1099 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1100 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1101 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1102 | ||
1103 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1104 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1105 | ||
1106 | DEC_PYCALLBACK__(InitDialog); | |
1107 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1108 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1109 | DEC_PYCALLBACK_BOOL_(Validate); | |
1110 | ||
1111 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1112 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1113 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1114 | ||
1115 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1116 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1117 | ||
db3e571a | 1118 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 1119 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 1120 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 1121 | |
d14a1e28 RD |
1122 | PYPRIVATE; |
1123 | }; | |
1124 | ||
1125 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
1126 | ||
1127 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
1128 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
1129 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
1130 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
1131 | ||
1132 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
1133 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
1134 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
1135 | ||
1136 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
1137 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
1138 | ||
1139 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1140 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1141 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1142 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1143 | ||
1144 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1145 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1146 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1147 | ||
1148 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1149 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1150 | ||
db3e571a | 1151 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1152 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1153 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1154 | |
1155 | ||
1156 | ||
1157 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1158 | |
1159 | #include <wx/generic/dragimgg.h> | |
1160 | ||
d14a1e28 RD |
1161 | #ifdef __cplusplus |
1162 | extern "C" { | |
1163 | #endif | |
c32bde28 | 1164 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
1165 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1166 | return 1; | |
1167 | } | |
1168 | ||
1169 | ||
1170 | static PyObject *_wrap_ButtonNameStr_get() { | |
1171 | PyObject *pyobj; | |
1172 | ||
1173 | { | |
1174 | #if wxUSE_UNICODE | |
1175 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1176 | #else | |
1177 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1178 | #endif | |
1179 | } | |
1180 | return pyobj; | |
1181 | } | |
1182 | ||
1183 | ||
c32bde28 | 1184 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1185 | PyObject *resultobj; |
1186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1187 | int arg2 = (int) -1 ; |
1188 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1189 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1190 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1191 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1192 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1193 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1194 | long arg6 = (long) 0 ; | |
1195 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1196 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1197 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1198 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1199 | wxButton *result; | |
ae8162c8 | 1200 | bool temp3 = false ; |
d14a1e28 RD |
1201 | wxPoint temp4 ; |
1202 | wxSize temp5 ; | |
ae8162c8 | 1203 | bool temp8 = false ; |
d14a1e28 | 1204 | PyObject * obj0 = 0 ; |
994141e6 | 1205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1206 | PyObject * obj2 = 0 ; |
1207 | PyObject * obj3 = 0 ; | |
1208 | PyObject * obj4 = 0 ; | |
994141e6 | 1209 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1210 | PyObject * obj6 = 0 ; |
1211 | PyObject * obj7 = 0 ; | |
1212 | char *kwnames[] = { | |
1213 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1214 | }; | |
1215 | ||
248ed943 | 1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1219 | if (obj1) { |
c32bde28 | 1220 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1221 | if (PyErr_Occurred()) SWIG_fail; |
1222 | } | |
1223 | if (obj2) { | |
1224 | { | |
1225 | arg3 = wxString_in_helper(obj2); | |
1226 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1227 | temp3 = true; |
248ed943 | 1228 | } |
d14a1e28 RD |
1229 | } |
1230 | if (obj3) { | |
1231 | { | |
1232 | arg4 = &temp4; | |
1233 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1234 | } | |
1235 | } | |
1236 | if (obj4) { | |
1237 | { | |
1238 | arg5 = &temp5; | |
1239 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1240 | } | |
1241 | } | |
994141e6 | 1242 | if (obj5) { |
c32bde28 | 1243 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1244 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1245 | } |
d14a1e28 | 1246 | if (obj6) { |
15afbcd0 RD |
1247 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1249 | SWIG_fail; | |
d14a1e28 | 1250 | if (arg7 == NULL) { |
15afbcd0 RD |
1251 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1252 | SWIG_fail; | |
d14a1e28 RD |
1253 | } |
1254 | } | |
1255 | if (obj7) { | |
1256 | { | |
1257 | arg8 = wxString_in_helper(obj7); | |
1258 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1259 | temp8 = true; |
d14a1e28 RD |
1260 | } |
1261 | } | |
1262 | { | |
e3b71cb8 | 1263 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1265 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1266 | ||
1267 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1268 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1269 | } |
b0f7404b | 1270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1271 | { |
1272 | if (temp3) | |
1273 | delete arg3; | |
1274 | } | |
1275 | { | |
1276 | if (temp8) | |
1277 | delete arg8; | |
1278 | } | |
1279 | return resultobj; | |
1280 | fail: | |
1281 | { | |
1282 | if (temp3) | |
1283 | delete arg3; | |
1284 | } | |
1285 | { | |
1286 | if (temp8) | |
1287 | delete arg8; | |
1288 | } | |
1289 | return NULL; | |
1290 | } | |
1291 | ||
1292 | ||
c32bde28 | 1293 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1294 | PyObject *resultobj; |
1295 | wxButton *result; | |
1296 | char *kwnames[] = { | |
1297 | NULL | |
1298 | }; | |
1299 | ||
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1301 | { | |
e3b71cb8 | 1302 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1304 | result = (wxButton *)new wxButton(); | |
1305 | ||
1306 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1307 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1308 | } |
b0f7404b | 1309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1310 | return resultobj; |
1311 | fail: | |
1312 | return NULL; | |
1313 | } | |
1314 | ||
1315 | ||
c32bde28 | 1316 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1317 | PyObject *resultobj; |
1318 | wxButton *arg1 = (wxButton *) 0 ; | |
1319 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1320 | int arg3 = (int) -1 ; |
1321 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1322 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
1323 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1324 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1325 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1326 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1327 | long arg7 = (long) 0 ; | |
1328 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1329 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1330 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1331 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1332 | bool result; | |
ae8162c8 | 1333 | bool temp4 = false ; |
d14a1e28 RD |
1334 | wxPoint temp5 ; |
1335 | wxSize temp6 ; | |
ae8162c8 | 1336 | bool temp9 = false ; |
d14a1e28 RD |
1337 | PyObject * obj0 = 0 ; |
1338 | PyObject * obj1 = 0 ; | |
994141e6 | 1339 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1340 | PyObject * obj3 = 0 ; |
1341 | PyObject * obj4 = 0 ; | |
1342 | PyObject * obj5 = 0 ; | |
994141e6 | 1343 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1344 | PyObject * obj7 = 0 ; |
1345 | PyObject * obj8 = 0 ; | |
1346 | char *kwnames[] = { | |
1347 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1348 | }; | |
1349 | ||
248ed943 | 1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1355 | if (obj2) { |
c32bde28 | 1356 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1357 | if (PyErr_Occurred()) SWIG_fail; |
1358 | } | |
1359 | if (obj3) { | |
1360 | { | |
1361 | arg4 = wxString_in_helper(obj3); | |
1362 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1363 | temp4 = true; |
248ed943 | 1364 | } |
d14a1e28 RD |
1365 | } |
1366 | if (obj4) { | |
1367 | { | |
1368 | arg5 = &temp5; | |
1369 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1370 | } | |
1371 | } | |
1372 | if (obj5) { | |
1373 | { | |
1374 | arg6 = &temp6; | |
1375 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1376 | } | |
1377 | } | |
994141e6 | 1378 | if (obj6) { |
c32bde28 | 1379 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1380 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1381 | } |
d14a1e28 | 1382 | if (obj7) { |
15afbcd0 RD |
1383 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1384 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1385 | SWIG_fail; | |
d14a1e28 | 1386 | if (arg8 == NULL) { |
15afbcd0 RD |
1387 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1388 | SWIG_fail; | |
d14a1e28 RD |
1389 | } |
1390 | } | |
1391 | if (obj8) { | |
1392 | { | |
1393 | arg9 = wxString_in_helper(obj8); | |
1394 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1395 | temp9 = true; |
d14a1e28 RD |
1396 | } |
1397 | } | |
1398 | { | |
1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1400 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1401 | ||
1402 | wxPyEndAllowThreads(__tstate); | |
1403 | if (PyErr_Occurred()) SWIG_fail; | |
1404 | } | |
4f89f6a3 RD |
1405 | { |
1406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1407 | } | |
d14a1e28 RD |
1408 | { |
1409 | if (temp4) | |
1410 | delete arg4; | |
1411 | } | |
1412 | { | |
1413 | if (temp9) | |
1414 | delete arg9; | |
1415 | } | |
1416 | return resultobj; | |
1417 | fail: | |
1418 | { | |
1419 | if (temp4) | |
1420 | delete arg4; | |
1421 | } | |
1422 | { | |
1423 | if (temp9) | |
1424 | delete arg9; | |
1425 | } | |
1426 | return NULL; | |
1427 | } | |
1428 | ||
1429 | ||
c32bde28 | 1430 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1431 | PyObject *resultobj; |
1432 | wxButton *arg1 = (wxButton *) 0 ; | |
1433 | PyObject * obj0 = 0 ; | |
1434 | char *kwnames[] = { | |
1435 | (char *) "self", NULL | |
1436 | }; | |
1437 | ||
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1441 | { |
1442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1443 | (arg1)->SetDefault(); | |
1444 | ||
1445 | wxPyEndAllowThreads(__tstate); | |
1446 | if (PyErr_Occurred()) SWIG_fail; | |
1447 | } | |
1448 | Py_INCREF(Py_None); resultobj = Py_None; | |
1449 | return resultobj; | |
1450 | fail: | |
1451 | return NULL; | |
1452 | } | |
1453 | ||
1454 | ||
c32bde28 | 1455 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1456 | PyObject *resultobj; |
1457 | wxSize result; | |
1458 | char *kwnames[] = { | |
1459 | NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1463 | { | |
1464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1465 | result = wxButton::GetDefaultSize(); | |
1466 | ||
1467 | wxPyEndAllowThreads(__tstate); | |
1468 | if (PyErr_Occurred()) SWIG_fail; | |
1469 | } | |
1470 | { | |
1471 | wxSize * resultptr; | |
1472 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1474 | } |
1475 | return resultobj; | |
1476 | fail: | |
1477 | return NULL; | |
1478 | } | |
1479 | ||
1480 | ||
c32bde28 | 1481 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
1482 | PyObject *resultobj; |
1483 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1484 | wxVisualAttributes result; | |
1485 | PyObject * obj0 = 0 ; | |
1486 | char *kwnames[] = { | |
1487 | (char *) "variant", NULL | |
1488 | }; | |
1489 | ||
1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1491 | if (obj0) { | |
c32bde28 | 1492 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
1493 | if (PyErr_Occurred()) SWIG_fail; |
1494 | } | |
1495 | { | |
110da5b0 | 1496 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1498 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1499 | ||
1500 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 1501 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
1502 | } |
1503 | { | |
1504 | wxVisualAttributes * resultptr; | |
1505 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1507 | } | |
1508 | return resultobj; | |
1509 | fail: | |
1510 | return NULL; | |
1511 | } | |
1512 | ||
1513 | ||
c32bde28 | 1514 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1515 | PyObject *obj; |
1516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1517 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1518 | Py_INCREF(obj); | |
1519 | return Py_BuildValue((char *)""); | |
1520 | } | |
c32bde28 | 1521 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1522 | PyObject *resultobj; |
1523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1524 | int arg2 = (int) -1 ; |
1525 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1526 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
1527 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1528 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1529 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1530 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1531 | long arg6 = (long) wxBU_AUTODRAW ; | |
1532 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1533 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1534 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1535 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1536 | wxBitmapButton *result; | |
1537 | wxPoint temp4 ; | |
1538 | wxSize temp5 ; | |
ae8162c8 | 1539 | bool temp8 = false ; |
d14a1e28 | 1540 | PyObject * obj0 = 0 ; |
994141e6 | 1541 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1542 | PyObject * obj2 = 0 ; |
1543 | PyObject * obj3 = 0 ; | |
1544 | PyObject * obj4 = 0 ; | |
994141e6 | 1545 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1546 | PyObject * obj6 = 0 ; |
1547 | PyObject * obj7 = 0 ; | |
1548 | char *kwnames[] = { | |
1549 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1550 | }; | |
1551 | ||
248ed943 | 1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1555 | if (obj1) { |
c32bde28 | 1556 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1557 | if (PyErr_Occurred()) SWIG_fail; |
1558 | } | |
1559 | if (obj2) { | |
1560 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1561 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1562 | SWIG_fail; |
248ed943 RD |
1563 | if (arg3 == NULL) { |
1564 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1565 | SWIG_fail; | |
1566 | } | |
d14a1e28 RD |
1567 | } |
1568 | if (obj3) { | |
1569 | { | |
1570 | arg4 = &temp4; | |
1571 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1572 | } | |
1573 | } | |
1574 | if (obj4) { | |
1575 | { | |
1576 | arg5 = &temp5; | |
1577 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1578 | } | |
1579 | } | |
994141e6 | 1580 | if (obj5) { |
c32bde28 | 1581 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1582 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1583 | } |
d14a1e28 | 1584 | if (obj6) { |
15afbcd0 RD |
1585 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1587 | SWIG_fail; | |
d14a1e28 | 1588 | if (arg7 == NULL) { |
15afbcd0 RD |
1589 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1590 | SWIG_fail; | |
d14a1e28 RD |
1591 | } |
1592 | } | |
1593 | if (obj7) { | |
1594 | { | |
1595 | arg8 = wxString_in_helper(obj7); | |
1596 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1597 | temp8 = true; |
d14a1e28 RD |
1598 | } |
1599 | } | |
1600 | { | |
e3b71cb8 | 1601 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1603 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1604 | ||
1605 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1606 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1607 | } |
b0f7404b | 1608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1609 | { |
1610 | if (temp8) | |
1611 | delete arg8; | |
1612 | } | |
1613 | return resultobj; | |
1614 | fail: | |
1615 | { | |
1616 | if (temp8) | |
1617 | delete arg8; | |
1618 | } | |
1619 | return NULL; | |
1620 | } | |
1621 | ||
1622 | ||
c32bde28 | 1623 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1624 | PyObject *resultobj; |
1625 | wxBitmapButton *result; | |
1626 | char *kwnames[] = { | |
1627 | NULL | |
1628 | }; | |
1629 | ||
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1631 | { | |
e3b71cb8 | 1632 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1634 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1635 | ||
1636 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1637 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1638 | } |
b0f7404b | 1639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1640 | return resultobj; |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
c32bde28 | 1646 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1647 | PyObject *resultobj; |
1648 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1650 | int arg3 = (int) -1 ; |
1651 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1652 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
1653 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1654 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1655 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1656 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1657 | long arg7 = (long) wxBU_AUTODRAW ; | |
1658 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1659 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1660 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1661 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1662 | bool result; | |
1663 | wxPoint temp5 ; | |
1664 | wxSize temp6 ; | |
ae8162c8 | 1665 | bool temp9 = false ; |
d14a1e28 RD |
1666 | PyObject * obj0 = 0 ; |
1667 | PyObject * obj1 = 0 ; | |
994141e6 | 1668 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1669 | PyObject * obj3 = 0 ; |
1670 | PyObject * obj4 = 0 ; | |
1671 | PyObject * obj5 = 0 ; | |
994141e6 | 1672 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1673 | PyObject * obj7 = 0 ; |
1674 | PyObject * obj8 = 0 ; | |
1675 | char *kwnames[] = { | |
1676 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1677 | }; | |
1678 | ||
248ed943 | 1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1684 | if (obj2) { |
c32bde28 | 1685 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1686 | if (PyErr_Occurred()) SWIG_fail; |
1687 | } | |
1688 | if (obj3) { | |
1689 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1691 | SWIG_fail; |
248ed943 RD |
1692 | if (arg4 == NULL) { |
1693 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1694 | SWIG_fail; | |
1695 | } | |
d14a1e28 RD |
1696 | } |
1697 | if (obj4) { | |
1698 | { | |
1699 | arg5 = &temp5; | |
1700 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1701 | } | |
1702 | } | |
1703 | if (obj5) { | |
1704 | { | |
1705 | arg6 = &temp6; | |
1706 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1707 | } | |
1708 | } | |
994141e6 | 1709 | if (obj6) { |
c32bde28 | 1710 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1711 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1712 | } |
d14a1e28 | 1713 | if (obj7) { |
15afbcd0 RD |
1714 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1716 | SWIG_fail; | |
d14a1e28 | 1717 | if (arg8 == NULL) { |
15afbcd0 RD |
1718 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1719 | SWIG_fail; | |
d14a1e28 RD |
1720 | } |
1721 | } | |
1722 | if (obj8) { | |
1723 | { | |
1724 | arg9 = wxString_in_helper(obj8); | |
1725 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1726 | temp9 = true; |
d14a1e28 RD |
1727 | } |
1728 | } | |
1729 | { | |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1731 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
4f89f6a3 RD |
1736 | { |
1737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1738 | } | |
d14a1e28 RD |
1739 | { |
1740 | if (temp9) | |
1741 | delete arg9; | |
1742 | } | |
1743 | return resultobj; | |
1744 | fail: | |
1745 | { | |
1746 | if (temp9) | |
1747 | delete arg9; | |
1748 | } | |
1749 | return NULL; | |
1750 | } | |
1751 | ||
1752 | ||
c32bde28 | 1753 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1754 | PyObject *resultobj; |
1755 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1756 | wxBitmap result; | |
1757 | PyObject * obj0 = 0 ; | |
1758 | char *kwnames[] = { | |
1759 | (char *) "self", NULL | |
1760 | }; | |
1761 | ||
1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1765 | { |
1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1767 | result = (arg1)->GetBitmapLabel(); | |
1768 | ||
1769 | wxPyEndAllowThreads(__tstate); | |
1770 | if (PyErr_Occurred()) SWIG_fail; | |
1771 | } | |
1772 | { | |
1773 | wxBitmap * resultptr; | |
1774 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1776 | } |
1777 | return resultobj; | |
1778 | fail: | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
c32bde28 | 1783 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1784 | PyObject *resultobj; |
1785 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1786 | wxBitmap result; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | char *kwnames[] = { | |
1789 | (char *) "self", NULL | |
1790 | }; | |
1791 | ||
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1795 | { |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | result = (arg1)->GetBitmapDisabled(); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | { | |
1803 | wxBitmap * resultptr; | |
1804 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1806 | } |
1807 | return resultobj; | |
1808 | fail: | |
1809 | return NULL; | |
1810 | } | |
1811 | ||
1812 | ||
c32bde28 | 1813 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1814 | PyObject *resultobj; |
1815 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1816 | wxBitmap result; | |
1817 | PyObject * obj0 = 0 ; | |
1818 | char *kwnames[] = { | |
1819 | (char *) "self", NULL | |
1820 | }; | |
1821 | ||
1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1825 | { |
1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1827 | result = (arg1)->GetBitmapFocus(); | |
1828 | ||
1829 | wxPyEndAllowThreads(__tstate); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
1831 | } | |
1832 | { | |
1833 | wxBitmap * resultptr; | |
1834 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1836 | } |
1837 | return resultobj; | |
1838 | fail: | |
1839 | return NULL; | |
1840 | } | |
1841 | ||
1842 | ||
c32bde28 | 1843 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1844 | PyObject *resultobj; |
1845 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1846 | wxBitmap result; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "self", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1855 | { |
1856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1857 | result = (arg1)->GetBitmapSelected(); | |
1858 | ||
1859 | wxPyEndAllowThreads(__tstate); | |
1860 | if (PyErr_Occurred()) SWIG_fail; | |
1861 | } | |
1862 | { | |
1863 | wxBitmap * resultptr; | |
1864 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1866 | } |
1867 | return resultobj; | |
1868 | fail: | |
1869 | return NULL; | |
1870 | } | |
1871 | ||
1872 | ||
c32bde28 | 1873 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1874 | PyObject *resultobj; |
1875 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1876 | wxBitmap *arg2 = 0 ; | |
1877 | PyObject * obj0 = 0 ; | |
1878 | PyObject * obj1 = 0 ; | |
1879 | char *kwnames[] = { | |
1880 | (char *) "self",(char *) "bitmap", NULL | |
1881 | }; | |
1882 | ||
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1888 | SWIG_fail; | |
d14a1e28 | 1889 | if (arg2 == NULL) { |
15afbcd0 RD |
1890 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1891 | SWIG_fail; | |
d14a1e28 RD |
1892 | } |
1893 | { | |
1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1895 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1896 | ||
1897 | wxPyEndAllowThreads(__tstate); | |
1898 | if (PyErr_Occurred()) SWIG_fail; | |
1899 | } | |
1900 | Py_INCREF(Py_None); resultobj = Py_None; | |
1901 | return resultobj; | |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
c32bde28 | 1907 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1908 | PyObject *resultobj; |
1909 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1910 | wxBitmap *arg2 = 0 ; | |
1911 | PyObject * obj0 = 0 ; | |
1912 | PyObject * obj1 = 0 ; | |
1913 | char *kwnames[] = { | |
1914 | (char *) "self",(char *) "bitmap", NULL | |
1915 | }; | |
1916 | ||
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1920 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1921 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1922 | SWIG_fail; | |
d14a1e28 | 1923 | if (arg2 == NULL) { |
15afbcd0 RD |
1924 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1925 | SWIG_fail; | |
d14a1e28 RD |
1926 | } |
1927 | { | |
1928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1929 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1930 | ||
1931 | wxPyEndAllowThreads(__tstate); | |
1932 | if (PyErr_Occurred()) SWIG_fail; | |
1933 | } | |
1934 | Py_INCREF(Py_None); resultobj = Py_None; | |
1935 | return resultobj; | |
1936 | fail: | |
1937 | return NULL; | |
1938 | } | |
1939 | ||
1940 | ||
c32bde28 | 1941 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1942 | PyObject *resultobj; |
1943 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1944 | wxBitmap *arg2 = 0 ; | |
1945 | PyObject * obj0 = 0 ; | |
1946 | PyObject * obj1 = 0 ; | |
1947 | char *kwnames[] = { | |
1948 | (char *) "self",(char *) "bitmap", NULL | |
1949 | }; | |
1950 | ||
1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1955 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1956 | SWIG_fail; | |
d14a1e28 | 1957 | if (arg2 == NULL) { |
15afbcd0 RD |
1958 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1959 | SWIG_fail; | |
d14a1e28 RD |
1960 | } |
1961 | { | |
1962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1963 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1964 | ||
1965 | wxPyEndAllowThreads(__tstate); | |
1966 | if (PyErr_Occurred()) SWIG_fail; | |
1967 | } | |
1968 | Py_INCREF(Py_None); resultobj = Py_None; | |
1969 | return resultobj; | |
1970 | fail: | |
1971 | return NULL; | |
1972 | } | |
1973 | ||
1974 | ||
c32bde28 | 1975 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1976 | PyObject *resultobj; |
1977 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1978 | wxBitmap *arg2 = 0 ; | |
1979 | PyObject * obj0 = 0 ; | |
1980 | PyObject * obj1 = 0 ; | |
1981 | char *kwnames[] = { | |
1982 | (char *) "self",(char *) "bitmap", NULL | |
1983 | }; | |
1984 | ||
1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1989 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1990 | SWIG_fail; | |
d14a1e28 | 1991 | if (arg2 == NULL) { |
15afbcd0 RD |
1992 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1993 | SWIG_fail; | |
d14a1e28 RD |
1994 | } |
1995 | { | |
1996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1997 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1998 | ||
1999 | wxPyEndAllowThreads(__tstate); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | } | |
2002 | Py_INCREF(Py_None); resultobj = Py_None; | |
2003 | return resultobj; | |
2004 | fail: | |
2005 | return NULL; | |
2006 | } | |
2007 | ||
2008 | ||
c32bde28 | 2009 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2010 | PyObject *resultobj; |
2011 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2012 | int arg2 ; | |
2013 | int arg3 ; | |
2014 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2015 | PyObject * obj1 = 0 ; |
2016 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2017 | char *kwnames[] = { |
2018 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2019 | }; | |
2020 | ||
994141e6 | 2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2024 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2025 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2026 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2027 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2028 | { |
2029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2030 | (arg1)->SetMargins(arg2,arg3); | |
2031 | ||
2032 | wxPyEndAllowThreads(__tstate); | |
2033 | if (PyErr_Occurred()) SWIG_fail; | |
2034 | } | |
2035 | Py_INCREF(Py_None); resultobj = Py_None; | |
2036 | return resultobj; | |
2037 | fail: | |
2038 | return NULL; | |
2039 | } | |
2040 | ||
2041 | ||
c32bde28 | 2042 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2043 | PyObject *resultobj; |
2044 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2045 | int result; | |
2046 | PyObject * obj0 = 0 ; | |
2047 | char *kwnames[] = { | |
2048 | (char *) "self", NULL | |
2049 | }; | |
2050 | ||
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2054 | { |
2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2056 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
2057 | ||
2058 | wxPyEndAllowThreads(__tstate); | |
2059 | if (PyErr_Occurred()) SWIG_fail; | |
2060 | } | |
c32bde28 | 2061 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2062 | return resultobj; |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
c32bde28 | 2068 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2069 | PyObject *resultobj; |
2070 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2071 | int result; | |
2072 | PyObject * obj0 = 0 ; | |
2073 | char *kwnames[] = { | |
2074 | (char *) "self", NULL | |
2075 | }; | |
2076 | ||
2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2080 | { |
2081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2082 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
2083 | ||
2084 | wxPyEndAllowThreads(__tstate); | |
2085 | if (PyErr_Occurred()) SWIG_fail; | |
2086 | } | |
c32bde28 | 2087 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2088 | return resultobj; |
2089 | fail: | |
2090 | return NULL; | |
2091 | } | |
2092 | ||
2093 | ||
c32bde28 | 2094 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2095 | PyObject *obj; |
2096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2097 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
2098 | Py_INCREF(obj); | |
2099 | return Py_BuildValue((char *)""); | |
2100 | } | |
c32bde28 | 2101 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
2102 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
2103 | return 1; | |
2104 | } | |
2105 | ||
2106 | ||
2107 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
2108 | PyObject *pyobj; | |
2109 | ||
2110 | { | |
2111 | #if wxUSE_UNICODE | |
2112 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2113 | #else | |
2114 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2115 | #endif | |
2116 | } | |
2117 | return pyobj; | |
2118 | } | |
2119 | ||
2120 | ||
c32bde28 | 2121 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2122 | PyObject *resultobj; |
2123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2124 | int arg2 = (int) -1 ; |
2125 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2126 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2127 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2128 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2129 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2130 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2131 | long arg6 = (long) 0 ; | |
2132 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2133 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2134 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2135 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2136 | wxCheckBox *result; | |
ae8162c8 | 2137 | bool temp3 = false ; |
d14a1e28 RD |
2138 | wxPoint temp4 ; |
2139 | wxSize temp5 ; | |
ae8162c8 | 2140 | bool temp8 = false ; |
d14a1e28 | 2141 | PyObject * obj0 = 0 ; |
994141e6 | 2142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2143 | PyObject * obj2 = 0 ; |
2144 | PyObject * obj3 = 0 ; | |
2145 | PyObject * obj4 = 0 ; | |
994141e6 | 2146 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2147 | PyObject * obj6 = 0 ; |
2148 | PyObject * obj7 = 0 ; | |
2149 | char *kwnames[] = { | |
2150 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2151 | }; | |
2152 | ||
248ed943 | 2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2156 | if (obj1) { |
c32bde28 | 2157 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
2158 | if (PyErr_Occurred()) SWIG_fail; |
2159 | } | |
2160 | if (obj2) { | |
2161 | { | |
2162 | arg3 = wxString_in_helper(obj2); | |
2163 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2164 | temp3 = true; |
248ed943 | 2165 | } |
d14a1e28 RD |
2166 | } |
2167 | if (obj3) { | |
2168 | { | |
2169 | arg4 = &temp4; | |
2170 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2171 | } | |
2172 | } | |
2173 | if (obj4) { | |
2174 | { | |
2175 | arg5 = &temp5; | |
2176 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2177 | } | |
2178 | } | |
994141e6 | 2179 | if (obj5) { |
c32bde28 | 2180 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2181 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2182 | } |
d14a1e28 | 2183 | if (obj6) { |
15afbcd0 RD |
2184 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2186 | SWIG_fail; | |
d14a1e28 | 2187 | if (arg7 == NULL) { |
15afbcd0 RD |
2188 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2189 | SWIG_fail; | |
d14a1e28 RD |
2190 | } |
2191 | } | |
2192 | if (obj7) { | |
2193 | { | |
2194 | arg8 = wxString_in_helper(obj7); | |
2195 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2196 | temp8 = true; |
d14a1e28 RD |
2197 | } |
2198 | } | |
2199 | { | |
e3b71cb8 | 2200 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2202 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2205 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2206 | } |
15afbcd0 | 2207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2208 | { |
2209 | if (temp3) | |
2210 | delete arg3; | |
2211 | } | |
2212 | { | |
2213 | if (temp8) | |
2214 | delete arg8; | |
2215 | } | |
2216 | return resultobj; | |
2217 | fail: | |
2218 | { | |
2219 | if (temp3) | |
2220 | delete arg3; | |
2221 | } | |
2222 | { | |
2223 | if (temp8) | |
2224 | delete arg8; | |
2225 | } | |
2226 | return NULL; | |
2227 | } | |
2228 | ||
2229 | ||
c32bde28 | 2230 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2231 | PyObject *resultobj; |
2232 | wxCheckBox *result; | |
2233 | char *kwnames[] = { | |
2234 | NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2238 | { | |
e3b71cb8 | 2239 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2241 | result = (wxCheckBox *)new wxCheckBox(); | |
2242 | ||
2243 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2244 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2245 | } |
15afbcd0 | 2246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2247 | return resultobj; |
2248 | fail: | |
2249 | return NULL; | |
2250 | } | |
2251 | ||
2252 | ||
c32bde28 | 2253 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2254 | PyObject *resultobj; |
2255 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2256 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2257 | int arg3 = (int) -1 ; |
2258 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2259 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2260 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2261 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2262 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2263 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2264 | long arg7 = (long) 0 ; | |
2265 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2266 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2267 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2268 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2269 | bool result; | |
ae8162c8 | 2270 | bool temp4 = false ; |
d14a1e28 RD |
2271 | wxPoint temp5 ; |
2272 | wxSize temp6 ; | |
ae8162c8 | 2273 | bool temp9 = false ; |
d14a1e28 RD |
2274 | PyObject * obj0 = 0 ; |
2275 | PyObject * obj1 = 0 ; | |
994141e6 | 2276 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2277 | PyObject * obj3 = 0 ; |
2278 | PyObject * obj4 = 0 ; | |
2279 | PyObject * obj5 = 0 ; | |
994141e6 | 2280 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2281 | PyObject * obj7 = 0 ; |
2282 | PyObject * obj8 = 0 ; | |
2283 | char *kwnames[] = { | |
2284 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2285 | }; | |
2286 | ||
248ed943 | 2287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2292 | if (obj2) { |
c32bde28 | 2293 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
2294 | if (PyErr_Occurred()) SWIG_fail; |
2295 | } | |
2296 | if (obj3) { | |
2297 | { | |
2298 | arg4 = wxString_in_helper(obj3); | |
2299 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2300 | temp4 = true; |
248ed943 | 2301 | } |
d14a1e28 RD |
2302 | } |
2303 | if (obj4) { | |
2304 | { | |
2305 | arg5 = &temp5; | |
2306 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2307 | } | |
2308 | } | |
2309 | if (obj5) { | |
2310 | { | |
2311 | arg6 = &temp6; | |
2312 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2313 | } | |
2314 | } | |
994141e6 | 2315 | if (obj6) { |
c32bde28 | 2316 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2317 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2318 | } |
d14a1e28 | 2319 | if (obj7) { |
15afbcd0 RD |
2320 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2321 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2322 | SWIG_fail; | |
d14a1e28 | 2323 | if (arg8 == NULL) { |
15afbcd0 RD |
2324 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2325 | SWIG_fail; | |
d14a1e28 RD |
2326 | } |
2327 | } | |
2328 | if (obj8) { | |
2329 | { | |
2330 | arg9 = wxString_in_helper(obj8); | |
2331 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2332 | temp9 = true; |
d14a1e28 RD |
2333 | } |
2334 | } | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
4f89f6a3 RD |
2342 | { |
2343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2344 | } | |
d14a1e28 RD |
2345 | { |
2346 | if (temp4) | |
2347 | delete arg4; | |
2348 | } | |
2349 | { | |
2350 | if (temp9) | |
2351 | delete arg9; | |
2352 | } | |
2353 | return resultobj; | |
2354 | fail: | |
2355 | { | |
2356 | if (temp4) | |
2357 | delete arg4; | |
2358 | } | |
2359 | { | |
2360 | if (temp9) | |
2361 | delete arg9; | |
2362 | } | |
2363 | return NULL; | |
2364 | } | |
2365 | ||
2366 | ||
c32bde28 | 2367 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2368 | PyObject *resultobj; |
2369 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2370 | bool result; | |
2371 | PyObject * obj0 = 0 ; | |
2372 | char *kwnames[] = { | |
2373 | (char *) "self", NULL | |
2374 | }; | |
2375 | ||
2376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2379 | { |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | result = (bool)(arg1)->GetValue(); | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | } | |
4f89f6a3 RD |
2386 | { |
2387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2388 | } | |
d14a1e28 RD |
2389 | return resultobj; |
2390 | fail: | |
2391 | return NULL; | |
2392 | } | |
2393 | ||
2394 | ||
c32bde28 | 2395 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2396 | PyObject *resultobj; |
2397 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2398 | bool result; | |
2399 | PyObject * obj0 = 0 ; | |
2400 | char *kwnames[] = { | |
2401 | (char *) "self", NULL | |
2402 | }; | |
2403 | ||
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2407 | { |
2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2409 | result = (bool)(arg1)->IsChecked(); | |
2410 | ||
2411 | wxPyEndAllowThreads(__tstate); | |
2412 | if (PyErr_Occurred()) SWIG_fail; | |
2413 | } | |
4f89f6a3 RD |
2414 | { |
2415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2416 | } | |
d14a1e28 RD |
2417 | return resultobj; |
2418 | fail: | |
2419 | return NULL; | |
2420 | } | |
2421 | ||
2422 | ||
c32bde28 | 2423 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2424 | PyObject *resultobj; |
2425 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2426 | bool arg2 ; | |
2427 | PyObject * obj0 = 0 ; | |
2428 | PyObject * obj1 = 0 ; | |
2429 | char *kwnames[] = { | |
2430 | (char *) "self",(char *) "state", NULL | |
2431 | }; | |
2432 | ||
2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2436 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 2437 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2438 | { |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2440 | (arg1)->SetValue(arg2); | |
2441 | ||
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
2445 | Py_INCREF(Py_None); resultobj = Py_None; | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
c32bde28 | 2452 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2453 | PyObject *resultobj; |
2454 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2455 | int result; | |
2456 | PyObject * obj0 = 0 ; | |
2457 | char *kwnames[] = { | |
2458 | (char *) "self", NULL | |
2459 | }; | |
2460 | ||
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2464 | { |
2465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2466 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2467 | ||
2468 | wxPyEndAllowThreads(__tstate); | |
2469 | if (PyErr_Occurred()) SWIG_fail; | |
2470 | } | |
c32bde28 | 2471 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2472 | return resultobj; |
2473 | fail: | |
2474 | return NULL; | |
2475 | } | |
2476 | ||
2477 | ||
c32bde28 | 2478 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2479 | PyObject *resultobj; |
2480 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2481 | int arg2 ; | |
2482 | PyObject * obj0 = 0 ; | |
994141e6 | 2483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2484 | char *kwnames[] = { |
2485 | (char *) "self",(char *) "state", NULL | |
2486 | }; | |
2487 | ||
994141e6 | 2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2491 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2492 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2493 | { |
2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2495 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2496 | ||
2497 | wxPyEndAllowThreads(__tstate); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
2500 | Py_INCREF(Py_None); resultobj = Py_None; | |
2501 | return resultobj; | |
2502 | fail: | |
2503 | return NULL; | |
2504 | } | |
2505 | ||
2506 | ||
c32bde28 | 2507 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2508 | PyObject *resultobj; |
2509 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2510 | bool result; | |
2511 | PyObject * obj0 = 0 ; | |
2512 | char *kwnames[] = { | |
2513 | (char *) "self", NULL | |
2514 | }; | |
2515 | ||
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2519 | { |
2520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2521 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2522 | ||
2523 | wxPyEndAllowThreads(__tstate); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
4f89f6a3 RD |
2526 | { |
2527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2528 | } | |
d14a1e28 RD |
2529 | return resultobj; |
2530 | fail: | |
2531 | return NULL; | |
2532 | } | |
2533 | ||
2534 | ||
c32bde28 | 2535 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2536 | PyObject *resultobj; |
2537 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2538 | bool result; | |
2539 | PyObject * obj0 = 0 ; | |
2540 | char *kwnames[] = { | |
2541 | (char *) "self", NULL | |
2542 | }; | |
2543 | ||
2544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2547 | { |
2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2549 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2550 | ||
2551 | wxPyEndAllowThreads(__tstate); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | } | |
4f89f6a3 RD |
2554 | { |
2555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2556 | } | |
d14a1e28 RD |
2557 | return resultobj; |
2558 | fail: | |
2559 | return NULL; | |
2560 | } | |
2561 | ||
2562 | ||
c32bde28 | 2563 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
2564 | PyObject *resultobj; |
2565 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2566 | wxVisualAttributes result; | |
2567 | PyObject * obj0 = 0 ; | |
2568 | char *kwnames[] = { | |
2569 | (char *) "variant", NULL | |
2570 | }; | |
2571 | ||
2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2573 | if (obj0) { | |
c32bde28 | 2574 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
2575 | if (PyErr_Occurred()) SWIG_fail; |
2576 | } | |
2577 | { | |
110da5b0 | 2578 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2580 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2581 | ||
2582 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2583 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2584 | } |
2585 | { | |
2586 | wxVisualAttributes * resultptr; | |
2587 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2589 | } | |
2590 | return resultobj; | |
2591 | fail: | |
2592 | return NULL; | |
2593 | } | |
2594 | ||
2595 | ||
c32bde28 | 2596 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2597 | PyObject *obj; |
2598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2599 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2600 | Py_INCREF(obj); | |
2601 | return Py_BuildValue((char *)""); | |
2602 | } | |
c32bde28 | 2603 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
2604 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2605 | return 1; | |
2606 | } | |
2607 | ||
2608 | ||
2609 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2610 | PyObject *pyobj; | |
2611 | ||
2612 | { | |
2613 | #if wxUSE_UNICODE | |
2614 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2615 | #else | |
2616 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2617 | #endif | |
2618 | } | |
2619 | return pyobj; | |
2620 | } | |
2621 | ||
2622 | ||
c32bde28 | 2623 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2624 | PyObject *resultobj; |
2625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2626 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2627 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2628 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2629 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2630 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2631 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2632 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2633 | long arg6 = (long) 0 ; | |
2634 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2635 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2636 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2637 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2638 | wxChoice *result; |
2639 | wxPoint temp3 ; | |
2640 | wxSize temp4 ; | |
ae8162c8 RD |
2641 | bool temp5 = false ; |
2642 | bool temp8 = false ; | |
d14a1e28 | 2643 | PyObject * obj0 = 0 ; |
994141e6 | 2644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2645 | PyObject * obj2 = 0 ; |
2646 | PyObject * obj3 = 0 ; | |
2647 | PyObject * obj4 = 0 ; | |
994141e6 | 2648 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2649 | PyObject * obj6 = 0 ; |
2650 | PyObject * obj7 = 0 ; | |
2651 | char *kwnames[] = { | |
2652 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2653 | }; | |
2654 | ||
a95a7133 | 2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2658 | if (obj1) { |
c32bde28 | 2659 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
2660 | if (PyErr_Occurred()) SWIG_fail; |
2661 | } | |
d14a1e28 RD |
2662 | if (obj2) { |
2663 | { | |
2664 | arg3 = &temp3; | |
2665 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2666 | } | |
2667 | } | |
2668 | if (obj3) { | |
2669 | { | |
2670 | arg4 = &temp4; | |
2671 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2672 | } | |
2673 | } | |
2674 | if (obj4) { | |
2675 | { | |
4d5c3d91 RD |
2676 | if (! PySequence_Check(obj4)) { |
2677 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2678 | SWIG_fail; | |
2679 | } | |
2680 | arg5 = new wxArrayString; | |
ae8162c8 | 2681 | temp5 = true; |
4d5c3d91 RD |
2682 | int i, len=PySequence_Length(obj4); |
2683 | for (i=0; i<len; i++) { | |
2684 | PyObject* item = PySequence_GetItem(obj4, i); | |
2685 | #if wxUSE_UNICODE | |
2686 | PyObject* str = PyObject_Unicode(item); | |
2687 | #else | |
2688 | PyObject* str = PyObject_Str(item); | |
2689 | #endif | |
74a57fcd | 2690 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2691 | arg5->Add(Py2wxString(str)); |
2692 | Py_DECREF(item); | |
2693 | Py_DECREF(str); | |
2694 | } | |
d14a1e28 RD |
2695 | } |
2696 | } | |
994141e6 | 2697 | if (obj5) { |
c32bde28 | 2698 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2699 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2700 | } |
d14a1e28 | 2701 | if (obj6) { |
15afbcd0 RD |
2702 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2703 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2704 | SWIG_fail; | |
4d5c3d91 | 2705 | if (arg7 == NULL) { |
15afbcd0 RD |
2706 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2707 | SWIG_fail; | |
d14a1e28 RD |
2708 | } |
2709 | } | |
2710 | if (obj7) { | |
2711 | { | |
4d5c3d91 RD |
2712 | arg8 = wxString_in_helper(obj7); |
2713 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2714 | temp8 = true; |
d14a1e28 RD |
2715 | } |
2716 | } | |
2717 | { | |
e3b71cb8 | 2718 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 2720 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2721 | |
2722 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2723 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2724 | } |
15afbcd0 | 2725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2726 | { |
3adfb63b | 2727 | if (temp5) delete arg5; |
d14a1e28 RD |
2728 | } |
2729 | { | |
2730 | if (temp8) | |
4d5c3d91 | 2731 | delete arg8; |
d14a1e28 RD |
2732 | } |
2733 | return resultobj; | |
2734 | fail: | |
2735 | { | |
3adfb63b | 2736 | if (temp5) delete arg5; |
d14a1e28 RD |
2737 | } |
2738 | { | |
2739 | if (temp8) | |
4d5c3d91 | 2740 | delete arg8; |
d14a1e28 RD |
2741 | } |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
c32bde28 | 2746 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2747 | PyObject *resultobj; |
2748 | wxChoice *result; | |
2749 | char *kwnames[] = { | |
2750 | NULL | |
2751 | }; | |
2752 | ||
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2754 | { | |
e3b71cb8 | 2755 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2757 | result = (wxChoice *)new wxChoice(); | |
2758 | ||
2759 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2760 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2761 | } |
15afbcd0 | 2762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2763 | return resultobj; |
2764 | fail: | |
2765 | return NULL; | |
2766 | } | |
2767 | ||
2768 | ||
c32bde28 | 2769 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2770 | PyObject *resultobj; |
2771 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2772 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2773 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2774 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2775 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2776 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2777 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2778 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2779 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2780 | long arg7 = (long) 0 ; | |
2781 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2782 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2783 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2784 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2785 | bool result; |
2786 | wxPoint temp4 ; | |
2787 | wxSize temp5 ; | |
ae8162c8 RD |
2788 | bool temp6 = false ; |
2789 | bool temp9 = false ; | |
d14a1e28 RD |
2790 | PyObject * obj0 = 0 ; |
2791 | PyObject * obj1 = 0 ; | |
994141e6 | 2792 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2793 | PyObject * obj3 = 0 ; |
2794 | PyObject * obj4 = 0 ; | |
2795 | PyObject * obj5 = 0 ; | |
994141e6 | 2796 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2797 | PyObject * obj7 = 0 ; |
2798 | PyObject * obj8 = 0 ; | |
2799 | char *kwnames[] = { | |
2800 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2801 | }; | |
2802 | ||
a95a7133 | 2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2808 | if (obj2) { |
c32bde28 | 2809 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
2810 | if (PyErr_Occurred()) SWIG_fail; |
2811 | } | |
d14a1e28 RD |
2812 | if (obj3) { |
2813 | { | |
2814 | arg4 = &temp4; | |
2815 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2816 | } | |
2817 | } | |
2818 | if (obj4) { | |
2819 | { | |
2820 | arg5 = &temp5; | |
2821 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2822 | } | |
2823 | } | |
2824 | if (obj5) { | |
2825 | { | |
4d5c3d91 RD |
2826 | if (! PySequence_Check(obj5)) { |
2827 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2828 | SWIG_fail; | |
2829 | } | |
2830 | arg6 = new wxArrayString; | |
ae8162c8 | 2831 | temp6 = true; |
4d5c3d91 RD |
2832 | int i, len=PySequence_Length(obj5); |
2833 | for (i=0; i<len; i++) { | |
2834 | PyObject* item = PySequence_GetItem(obj5, i); | |
2835 | #if wxUSE_UNICODE | |
2836 | PyObject* str = PyObject_Unicode(item); | |
2837 | #else | |
2838 | PyObject* str = PyObject_Str(item); | |
2839 | #endif | |
74a57fcd | 2840 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2841 | arg6->Add(Py2wxString(str)); |
2842 | Py_DECREF(item); | |
2843 | Py_DECREF(str); | |
2844 | } | |
d14a1e28 RD |
2845 | } |
2846 | } | |
994141e6 | 2847 | if (obj6) { |
c32bde28 | 2848 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2849 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2850 | } |
d14a1e28 | 2851 | if (obj7) { |
15afbcd0 RD |
2852 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2854 | SWIG_fail; | |
4d5c3d91 | 2855 | if (arg8 == NULL) { |
15afbcd0 RD |
2856 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2857 | SWIG_fail; | |
d14a1e28 RD |
2858 | } |
2859 | } | |
2860 | if (obj8) { | |
2861 | { | |
4d5c3d91 RD |
2862 | arg9 = wxString_in_helper(obj8); |
2863 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2864 | temp9 = true; |
d14a1e28 RD |
2865 | } |
2866 | } | |
2867 | { | |
2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2869 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2870 | |
2871 | wxPyEndAllowThreads(__tstate); | |
2872 | if (PyErr_Occurred()) SWIG_fail; | |
2873 | } | |
4f89f6a3 RD |
2874 | { |
2875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2876 | } | |
d14a1e28 | 2877 | { |
3adfb63b | 2878 | if (temp6) delete arg6; |
d14a1e28 RD |
2879 | } |
2880 | { | |
2881 | if (temp9) | |
4d5c3d91 | 2882 | delete arg9; |
d14a1e28 RD |
2883 | } |
2884 | return resultobj; | |
2885 | fail: | |
2886 | { | |
3adfb63b | 2887 | if (temp6) delete arg6; |
d14a1e28 RD |
2888 | } |
2889 | { | |
2890 | if (temp9) | |
4d5c3d91 | 2891 | delete arg9; |
d14a1e28 RD |
2892 | } |
2893 | return NULL; | |
2894 | } | |
2895 | ||
2896 | ||
c32bde28 | 2897 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2898 | PyObject *resultobj; |
2899 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2900 | int arg2 ; | |
2901 | PyObject * obj0 = 0 ; | |
994141e6 | 2902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2903 | char *kwnames[] = { |
2904 | (char *) "self",(char *) "n", NULL | |
2905 | }; | |
2906 | ||
994141e6 | 2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2910 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2911 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2912 | { |
2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2914 | (arg1)->SetSelection(arg2); | |
2915 | ||
2916 | wxPyEndAllowThreads(__tstate); | |
2917 | if (PyErr_Occurred()) SWIG_fail; | |
2918 | } | |
2919 | Py_INCREF(Py_None); resultobj = Py_None; | |
2920 | return resultobj; | |
2921 | fail: | |
2922 | return NULL; | |
2923 | } | |
2924 | ||
2925 | ||
c32bde28 | 2926 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2927 | PyObject *resultobj; |
2928 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2929 | wxString *arg2 = 0 ; | |
121b9a67 | 2930 | bool result; |
ae8162c8 | 2931 | bool temp2 = false ; |
d14a1e28 RD |
2932 | PyObject * obj0 = 0 ; |
2933 | PyObject * obj1 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "self",(char *) "string", NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2941 | { |
2942 | arg2 = wxString_in_helper(obj1); | |
2943 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2944 | temp2 = true; |
d14a1e28 RD |
2945 | } |
2946 | { | |
2947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2948 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2949 | |
2950 | wxPyEndAllowThreads(__tstate); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | } | |
121b9a67 RD |
2953 | { |
2954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2955 | } | |
d14a1e28 RD |
2956 | { |
2957 | if (temp2) | |
2958 | delete arg2; | |
2959 | } | |
2960 | return resultobj; | |
2961 | fail: | |
2962 | { | |
2963 | if (temp2) | |
2964 | delete arg2; | |
2965 | } | |
2966 | return NULL; | |
2967 | } | |
2968 | ||
2969 | ||
c32bde28 | 2970 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2971 | PyObject *resultobj; |
2972 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2973 | int arg2 ; | |
2974 | wxString *arg3 = 0 ; | |
ae8162c8 | 2975 | bool temp3 = false ; |
d14a1e28 | 2976 | PyObject * obj0 = 0 ; |
994141e6 | 2977 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2978 | PyObject * obj2 = 0 ; |
2979 | char *kwnames[] = { | |
fcafa8a9 | 2980 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2981 | }; |
2982 | ||
994141e6 | 2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2986 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2987 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2988 | { |
2989 | arg3 = wxString_in_helper(obj2); | |
2990 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2991 | temp3 = true; |
d14a1e28 RD |
2992 | } |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) SWIG_fail; | |
2999 | } | |
3000 | Py_INCREF(Py_None); resultobj = Py_None; | |
3001 | { | |
3002 | if (temp3) | |
3003 | delete arg3; | |
3004 | } | |
3005 | return resultobj; | |
3006 | fail: | |
3007 | { | |
3008 | if (temp3) | |
3009 | delete arg3; | |
3010 | } | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
c32bde28 | 3015 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
3016 | PyObject *resultobj; |
3017 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3018 | wxVisualAttributes result; | |
3019 | PyObject * obj0 = 0 ; | |
3020 | char *kwnames[] = { | |
3021 | (char *) "variant", NULL | |
3022 | }; | |
3023 | ||
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3025 | if (obj0) { | |
c32bde28 | 3026 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
3027 | if (PyErr_Occurred()) SWIG_fail; |
3028 | } | |
3029 | { | |
110da5b0 | 3030 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3032 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3035 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3036 | } |
3037 | { | |
3038 | wxVisualAttributes * resultptr; | |
3039 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3041 | } | |
3042 | return resultobj; | |
3043 | fail: | |
3044 | return NULL; | |
3045 | } | |
3046 | ||
3047 | ||
c32bde28 | 3048 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3049 | PyObject *obj; |
3050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3051 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
3052 | Py_INCREF(obj); | |
3053 | return Py_BuildValue((char *)""); | |
3054 | } | |
c32bde28 | 3055 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3056 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
3057 | return 1; | |
3058 | } | |
3059 | ||
3060 | ||
3061 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
3062 | PyObject *pyobj; | |
3063 | ||
3064 | { | |
3065 | #if wxUSE_UNICODE | |
3066 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3067 | #else | |
3068 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3069 | #endif | |
3070 | } | |
3071 | return pyobj; | |
3072 | } | |
3073 | ||
3074 | ||
c32bde28 | 3075 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3076 | PyObject *resultobj; |
3077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 3078 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3079 | wxString const &arg3_defvalue = wxPyEmptyString ; |
3080 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3081 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3082 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3083 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3084 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
3085 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
3086 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3087 | long arg7 = (long) 0 ; | |
3088 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3089 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3090 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
3091 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 3092 | wxComboBox *result; |
ae8162c8 | 3093 | bool temp3 = false ; |
d14a1e28 RD |
3094 | wxPoint temp4 ; |
3095 | wxSize temp5 ; | |
ae8162c8 RD |
3096 | bool temp6 = false ; |
3097 | bool temp9 = false ; | |
d14a1e28 | 3098 | PyObject * obj0 = 0 ; |
994141e6 | 3099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3100 | PyObject * obj2 = 0 ; |
3101 | PyObject * obj3 = 0 ; | |
3102 | PyObject * obj4 = 0 ; | |
3103 | PyObject * obj5 = 0 ; | |
994141e6 | 3104 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3105 | PyObject * obj7 = 0 ; |
3106 | PyObject * obj8 = 0 ; | |
3107 | char *kwnames[] = { | |
3108 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3109 | }; | |
3110 | ||
a95a7133 | 3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3114 | if (obj1) { |
c32bde28 | 3115 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
3116 | if (PyErr_Occurred()) SWIG_fail; |
3117 | } | |
d14a1e28 RD |
3118 | if (obj2) { |
3119 | { | |
3120 | arg3 = wxString_in_helper(obj2); | |
3121 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3122 | temp3 = true; |
d14a1e28 RD |
3123 | } |
3124 | } | |
3125 | if (obj3) { | |
3126 | { | |
3127 | arg4 = &temp4; | |
3128 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3129 | } | |
3130 | } | |
3131 | if (obj4) { | |
3132 | { | |
3133 | arg5 = &temp5; | |
3134 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3135 | } | |
3136 | } | |
3137 | if (obj5) { | |
3138 | { | |
4d5c3d91 RD |
3139 | if (! PySequence_Check(obj5)) { |
3140 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3141 | SWIG_fail; | |
3142 | } | |
3143 | arg6 = new wxArrayString; | |
ae8162c8 | 3144 | temp6 = true; |
4d5c3d91 RD |
3145 | int i, len=PySequence_Length(obj5); |
3146 | for (i=0; i<len; i++) { | |
3147 | PyObject* item = PySequence_GetItem(obj5, i); | |
3148 | #if wxUSE_UNICODE | |
3149 | PyObject* str = PyObject_Unicode(item); | |
3150 | #else | |
3151 | PyObject* str = PyObject_Str(item); | |
3152 | #endif | |
74a57fcd | 3153 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3154 | arg6->Add(Py2wxString(str)); |
3155 | Py_DECREF(item); | |
3156 | Py_DECREF(str); | |
3157 | } | |
d14a1e28 RD |
3158 | } |
3159 | } | |
994141e6 | 3160 | if (obj6) { |
c32bde28 | 3161 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 3162 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3163 | } |
d14a1e28 | 3164 | if (obj7) { |
15afbcd0 RD |
3165 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3166 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3167 | SWIG_fail; | |
4d5c3d91 | 3168 | if (arg8 == NULL) { |
15afbcd0 RD |
3169 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3170 | SWIG_fail; | |
d14a1e28 RD |
3171 | } |
3172 | } | |
3173 | if (obj8) { | |
3174 | { | |
4d5c3d91 RD |
3175 | arg9 = wxString_in_helper(obj8); |
3176 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3177 | temp9 = true; |
d14a1e28 RD |
3178 | } |
3179 | } | |
3180 | { | |
e3b71cb8 | 3181 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3183 | 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 |
3184 | |
3185 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3186 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3187 | } |
15afbcd0 | 3188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3189 | { |
3190 | if (temp3) | |
3191 | delete arg3; | |
3192 | } | |
3193 | { | |
3adfb63b | 3194 | if (temp6) delete arg6; |
d14a1e28 RD |
3195 | } |
3196 | { | |
3197 | if (temp9) | |
4d5c3d91 | 3198 | delete arg9; |
d14a1e28 RD |
3199 | } |
3200 | return resultobj; | |
3201 | fail: | |
3202 | { | |
3203 | if (temp3) | |
3204 | delete arg3; | |
3205 | } | |
3206 | { | |
3adfb63b | 3207 | if (temp6) delete arg6; |
d14a1e28 RD |
3208 | } |
3209 | { | |
3210 | if (temp9) | |
4d5c3d91 | 3211 | delete arg9; |
d14a1e28 RD |
3212 | } |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
c32bde28 | 3217 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3218 | PyObject *resultobj; |
3219 | wxComboBox *result; | |
3220 | char *kwnames[] = { | |
3221 | NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3225 | { | |
e3b71cb8 | 3226 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3228 | result = (wxComboBox *)new wxComboBox(); | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3231 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3232 | } |
15afbcd0 | 3233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3234 | return resultobj; |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
c32bde28 | 3240 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3241 | PyObject *resultobj; |
3242 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3243 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3244 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3245 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3246 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3247 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3248 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3249 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3250 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3251 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3252 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3253 | long arg8 = (long) 0 ; | |
3254 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3255 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3256 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3257 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3258 | bool result; |
ae8162c8 | 3259 | bool temp4 = false ; |
d14a1e28 RD |
3260 | wxPoint temp5 ; |
3261 | wxSize temp6 ; | |
ae8162c8 RD |
3262 | bool temp7 = false ; |
3263 | bool temp10 = false ; | |
d14a1e28 RD |
3264 | PyObject * obj0 = 0 ; |
3265 | PyObject * obj1 = 0 ; | |
994141e6 | 3266 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3267 | PyObject * obj3 = 0 ; |
3268 | PyObject * obj4 = 0 ; | |
3269 | PyObject * obj5 = 0 ; | |
3270 | PyObject * obj6 = 0 ; | |
994141e6 | 3271 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3272 | PyObject * obj8 = 0 ; |
3273 | PyObject * obj9 = 0 ; | |
3274 | char *kwnames[] = { | |
3275 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3276 | }; | |
3277 | ||
a95a7133 | 3278 | 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 |
3279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3283 | if (obj2) { |
c32bde28 | 3284 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
3285 | if (PyErr_Occurred()) SWIG_fail; |
3286 | } | |
d14a1e28 RD |
3287 | if (obj3) { |
3288 | { | |
3289 | arg4 = wxString_in_helper(obj3); | |
3290 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3291 | temp4 = true; |
d14a1e28 RD |
3292 | } |
3293 | } | |
3294 | if (obj4) { | |
3295 | { | |
3296 | arg5 = &temp5; | |
3297 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3298 | } | |
3299 | } | |
3300 | if (obj5) { | |
3301 | { | |
3302 | arg6 = &temp6; | |
3303 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3304 | } | |
3305 | } | |
3306 | if (obj6) { | |
3307 | { | |
4d5c3d91 RD |
3308 | if (! PySequence_Check(obj6)) { |
3309 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3310 | SWIG_fail; | |
3311 | } | |
3312 | arg7 = new wxArrayString; | |
ae8162c8 | 3313 | temp7 = true; |
4d5c3d91 RD |
3314 | int i, len=PySequence_Length(obj6); |
3315 | for (i=0; i<len; i++) { | |
3316 | PyObject* item = PySequence_GetItem(obj6, i); | |
3317 | #if wxUSE_UNICODE | |
3318 | PyObject* str = PyObject_Unicode(item); | |
3319 | #else | |
3320 | PyObject* str = PyObject_Str(item); | |
3321 | #endif | |
74a57fcd | 3322 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3323 | arg7->Add(Py2wxString(str)); |
3324 | Py_DECREF(item); | |
3325 | Py_DECREF(str); | |
3326 | } | |
d14a1e28 RD |
3327 | } |
3328 | } | |
994141e6 | 3329 | if (obj7) { |
c32bde28 | 3330 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 3331 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3332 | } |
d14a1e28 | 3333 | if (obj8) { |
15afbcd0 RD |
3334 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3335 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3336 | SWIG_fail; | |
4d5c3d91 | 3337 | if (arg9 == NULL) { |
15afbcd0 RD |
3338 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3339 | SWIG_fail; | |
d14a1e28 RD |
3340 | } |
3341 | } | |
3342 | if (obj9) { | |
3343 | { | |
4d5c3d91 RD |
3344 | arg10 = wxString_in_helper(obj9); |
3345 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 3346 | temp10 = true; |
d14a1e28 RD |
3347 | } |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3351 | 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 |
3352 | |
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) SWIG_fail; | |
3355 | } | |
4f89f6a3 RD |
3356 | { |
3357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3358 | } | |
d14a1e28 RD |
3359 | { |
3360 | if (temp4) | |
3361 | delete arg4; | |
3362 | } | |
3363 | { | |
3adfb63b | 3364 | if (temp7) delete arg7; |
d14a1e28 RD |
3365 | } |
3366 | { | |
3367 | if (temp10) | |
4d5c3d91 | 3368 | delete arg10; |
d14a1e28 RD |
3369 | } |
3370 | return resultobj; | |
3371 | fail: | |
3372 | { | |
3373 | if (temp4) | |
3374 | delete arg4; | |
3375 | } | |
3376 | { | |
3adfb63b | 3377 | if (temp7) delete arg7; |
d14a1e28 RD |
3378 | } |
3379 | { | |
3380 | if (temp10) | |
4d5c3d91 | 3381 | delete arg10; |
d14a1e28 RD |
3382 | } |
3383 | return NULL; | |
3384 | } | |
3385 | ||
3386 | ||
c32bde28 | 3387 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3388 | PyObject *resultobj; |
3389 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3390 | wxString result; | |
3391 | PyObject * obj0 = 0 ; | |
3392 | char *kwnames[] = { | |
3393 | (char *) "self", NULL | |
3394 | }; | |
3395 | ||
3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3399 | { |
3400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3401 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3402 | ||
3403 | wxPyEndAllowThreads(__tstate); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | { | |
3407 | #if wxUSE_UNICODE | |
3408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3409 | #else | |
3410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3411 | #endif | |
3412 | } | |
3413 | return resultobj; | |
3414 | fail: | |
3415 | return NULL; | |
3416 | } | |
3417 | ||
3418 | ||
c32bde28 | 3419 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3420 | PyObject *resultobj; |
3421 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3422 | wxString *arg2 = 0 ; | |
ae8162c8 | 3423 | bool temp2 = false ; |
d14a1e28 RD |
3424 | PyObject * obj0 = 0 ; |
3425 | PyObject * obj1 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "self",(char *) "value", NULL | |
3428 | }; | |
3429 | ||
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3433 | { |
3434 | arg2 = wxString_in_helper(obj1); | |
3435 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3436 | temp2 = true; |
d14a1e28 RD |
3437 | } |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | (arg1)->SetValue((wxString const &)*arg2); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | Py_INCREF(Py_None); resultobj = Py_None; | |
3446 | { | |
3447 | if (temp2) | |
3448 | delete arg2; | |
3449 | } | |
3450 | return resultobj; | |
3451 | fail: | |
3452 | { | |
3453 | if (temp2) | |
3454 | delete arg2; | |
3455 | } | |
3456 | return NULL; | |
3457 | } | |
3458 | ||
3459 | ||
c32bde28 | 3460 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3461 | PyObject *resultobj; |
3462 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3463 | PyObject * obj0 = 0 ; | |
3464 | char *kwnames[] = { | |
3465 | (char *) "self", NULL | |
3466 | }; | |
3467 | ||
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3471 | { |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | (arg1)->Copy(); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
3478 | Py_INCREF(Py_None); resultobj = Py_None; | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
c32bde28 | 3485 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3486 | PyObject *resultobj; |
3487 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3488 | PyObject * obj0 = 0 ; | |
3489 | char *kwnames[] = { | |
3490 | (char *) "self", NULL | |
3491 | }; | |
3492 | ||
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3496 | { |
3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3498 | (arg1)->Cut(); | |
3499 | ||
3500 | wxPyEndAllowThreads(__tstate); | |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
3502 | } | |
3503 | Py_INCREF(Py_None); resultobj = Py_None; | |
3504 | return resultobj; | |
3505 | fail: | |
3506 | return NULL; | |
3507 | } | |
3508 | ||
3509 | ||
c32bde28 | 3510 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3511 | PyObject *resultobj; |
3512 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3513 | PyObject * obj0 = 0 ; | |
3514 | char *kwnames[] = { | |
3515 | (char *) "self", NULL | |
3516 | }; | |
3517 | ||
3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3521 | { |
3522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3523 | (arg1)->Paste(); | |
3524 | ||
3525 | wxPyEndAllowThreads(__tstate); | |
3526 | if (PyErr_Occurred()) SWIG_fail; | |
3527 | } | |
3528 | Py_INCREF(Py_None); resultobj = Py_None; | |
3529 | return resultobj; | |
3530 | fail: | |
3531 | return NULL; | |
3532 | } | |
3533 | ||
3534 | ||
c32bde28 | 3535 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3536 | PyObject *resultobj; |
3537 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3538 | long arg2 ; | |
3539 | PyObject * obj0 = 0 ; | |
994141e6 | 3540 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3541 | char *kwnames[] = { |
3542 | (char *) "self",(char *) "pos", NULL | |
3543 | }; | |
3544 | ||
994141e6 | 3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3548 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3549 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3550 | { |
3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3552 | (arg1)->SetInsertionPoint(arg2); | |
3553 | ||
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
3557 | Py_INCREF(Py_None); resultobj = Py_None; | |
3558 | return resultobj; | |
3559 | fail: | |
3560 | return NULL; | |
3561 | } | |
3562 | ||
3563 | ||
c32bde28 | 3564 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3565 | PyObject *resultobj; |
3566 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3567 | long result; | |
3568 | PyObject * obj0 = 0 ; | |
3569 | char *kwnames[] = { | |
3570 | (char *) "self", NULL | |
3571 | }; | |
3572 | ||
3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3576 | { |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
c32bde28 | 3583 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3584 | return resultobj; |
3585 | fail: | |
3586 | return NULL; | |
3587 | } | |
3588 | ||
3589 | ||
c32bde28 | 3590 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3591 | PyObject *resultobj; |
3592 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3593 | long result; | |
3594 | PyObject * obj0 = 0 ; | |
3595 | char *kwnames[] = { | |
3596 | (char *) "self", NULL | |
3597 | }; | |
3598 | ||
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3602 | { |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3605 | ||
3606 | wxPyEndAllowThreads(__tstate); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
c32bde28 | 3609 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3610 | return resultobj; |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
c32bde28 | 3616 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3617 | PyObject *resultobj; |
3618 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3619 | long arg2 ; | |
3620 | long arg3 ; | |
3621 | wxString *arg4 = 0 ; | |
ae8162c8 | 3622 | bool temp4 = false ; |
d14a1e28 | 3623 | PyObject * obj0 = 0 ; |
994141e6 RD |
3624 | PyObject * obj1 = 0 ; |
3625 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3626 | PyObject * obj3 = 0 ; |
3627 | char *kwnames[] = { | |
3628 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3629 | }; | |
3630 | ||
994141e6 | 3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3634 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3635 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3636 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3637 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3638 | { |
3639 | arg4 = wxString_in_helper(obj3); | |
3640 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3641 | temp4 = true; |
d14a1e28 RD |
3642 | } |
3643 | { | |
3644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3645 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3646 | ||
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
3650 | Py_INCREF(Py_None); resultobj = Py_None; | |
3651 | { | |
3652 | if (temp4) | |
3653 | delete arg4; | |
3654 | } | |
3655 | return resultobj; | |
3656 | fail: | |
3657 | { | |
3658 | if (temp4) | |
3659 | delete arg4; | |
3660 | } | |
3661 | return NULL; | |
3662 | } | |
3663 | ||
3664 | ||
c32bde28 | 3665 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
fd3f2efe RD |
3666 | PyObject *resultobj; |
3667 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3668 | int arg2 ; | |
3669 | PyObject * obj0 = 0 ; | |
994141e6 | 3670 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3671 | char *kwnames[] = { |
3672 | (char *) "self",(char *) "n", NULL | |
3673 | }; | |
3674 | ||
994141e6 | 3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3678 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3679 | if (PyErr_Occurred()) SWIG_fail; |
fd3f2efe RD |
3680 | { |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | (arg1)->SetSelection(arg2); | |
3683 | ||
3684 | wxPyEndAllowThreads(__tstate); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | } | |
3687 | Py_INCREF(Py_None); resultobj = Py_None; | |
3688 | return resultobj; | |
3689 | fail: | |
3690 | return NULL; | |
3691 | } | |
3692 | ||
3693 | ||
c32bde28 | 3694 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3695 | PyObject *resultobj; |
3696 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3697 | long arg2 ; | |
3698 | long arg3 ; | |
3699 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3700 | PyObject * obj1 = 0 ; |
3701 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3702 | char *kwnames[] = { |
3703 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3704 | }; | |
3705 | ||
994141e6 | 3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3709 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3710 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3711 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3713 | { |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | (arg1)->SetSelection(arg2,arg3); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | Py_INCREF(Py_None); resultobj = Py_None; | |
3721 | return resultobj; | |
3722 | fail: | |
3723 | return NULL; | |
3724 | } | |
3725 | ||
3726 | ||
c32bde28 | 3727 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3728 | PyObject *resultobj; |
3729 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3730 | wxString *arg2 = 0 ; | |
3731 | bool result; | |
ae8162c8 | 3732 | bool temp2 = false ; |
121b9a67 RD |
3733 | PyObject * obj0 = 0 ; |
3734 | PyObject * obj1 = 0 ; | |
3735 | char *kwnames[] = { | |
3736 | (char *) "self",(char *) "string", NULL | |
3737 | }; | |
3738 | ||
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3742 | { | |
3743 | arg2 = wxString_in_helper(obj1); | |
3744 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3745 | temp2 = true; |
121b9a67 RD |
3746 | } |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3750 | ||
3751 | wxPyEndAllowThreads(__tstate); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | } | |
3754 | { | |
3755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3756 | } | |
3757 | { | |
3758 | if (temp2) | |
3759 | delete arg2; | |
3760 | } | |
3761 | return resultobj; | |
3762 | fail: | |
3763 | { | |
3764 | if (temp2) | |
3765 | delete arg2; | |
3766 | } | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
c32bde28 | 3771 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3772 | PyObject *resultobj; |
3773 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3774 | int arg2 ; | |
3775 | wxString *arg3 = 0 ; | |
ae8162c8 | 3776 | bool temp3 = false ; |
121b9a67 RD |
3777 | PyObject * obj0 = 0 ; |
3778 | PyObject * obj1 = 0 ; | |
3779 | PyObject * obj2 = 0 ; | |
3780 | char *kwnames[] = { | |
3781 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3782 | }; | |
3783 | ||
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3787 | arg2 = (int)SWIG_As_int(obj1); |
121b9a67 RD |
3788 | if (PyErr_Occurred()) SWIG_fail; |
3789 | { | |
3790 | arg3 = wxString_in_helper(obj2); | |
3791 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3792 | temp3 = true; |
121b9a67 RD |
3793 | } |
3794 | { | |
3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3796 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3797 | ||
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) SWIG_fail; | |
3800 | } | |
3801 | Py_INCREF(Py_None); resultobj = Py_None; | |
3802 | { | |
3803 | if (temp3) | |
3804 | delete arg3; | |
3805 | } | |
3806 | return resultobj; | |
3807 | fail: | |
3808 | { | |
3809 | if (temp3) | |
3810 | delete arg3; | |
3811 | } | |
3812 | return NULL; | |
3813 | } | |
3814 | ||
3815 | ||
c32bde28 | 3816 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3817 | PyObject *resultobj; |
3818 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3819 | bool arg2 ; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | PyObject * obj1 = 0 ; | |
3822 | char *kwnames[] = { | |
3823 | (char *) "self",(char *) "editable", NULL | |
3824 | }; | |
3825 | ||
3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3829 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 3830 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3831 | { |
3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3833 | (arg1)->SetEditable(arg2); | |
3834 | ||
3835 | wxPyEndAllowThreads(__tstate); | |
3836 | if (PyErr_Occurred()) SWIG_fail; | |
3837 | } | |
3838 | Py_INCREF(Py_None); resultobj = Py_None; | |
3839 | return resultobj; | |
3840 | fail: | |
3841 | return NULL; | |
3842 | } | |
3843 | ||
3844 | ||
c32bde28 | 3845 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3846 | PyObject *resultobj; |
3847 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3856 | { |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | (arg1)->SetInsertionPointEnd(); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
3863 | Py_INCREF(Py_None); resultobj = Py_None; | |
3864 | return resultobj; | |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
c32bde28 | 3870 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3871 | PyObject *resultobj; |
3872 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3873 | long arg2 ; | |
3874 | long arg3 ; | |
3875 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3876 | PyObject * obj1 = 0 ; |
3877 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3878 | char *kwnames[] = { |
3879 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3880 | }; | |
3881 | ||
994141e6 | 3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3885 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3886 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3887 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3888 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3889 | { |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | (arg1)->Remove(arg2,arg3); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | Py_INCREF(Py_None); resultobj = Py_None; | |
3897 | return resultobj; | |
3898 | fail: | |
3899 | return NULL; | |
3900 | } | |
3901 | ||
3902 | ||
5cbf236d RD |
3903 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
3904 | PyObject *resultobj; | |
3905 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3906 | bool result; | |
3907 | PyObject * obj0 = 0 ; | |
3908 | char *kwnames[] = { | |
3909 | (char *) "self", NULL | |
3910 | }; | |
3911 | ||
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
3913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3915 | { | |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3917 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | { | |
3923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3924 | } | |
3925 | return resultobj; | |
3926 | fail: | |
3927 | return NULL; | |
3928 | } | |
3929 | ||
3930 | ||
3931 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3932 | PyObject *resultobj; | |
3933 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3934 | PyObject * obj0 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
3940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | (arg1)->Undo(); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | Py_INCREF(Py_None); resultobj = Py_None; | |
3950 | return resultobj; | |
3951 | fail: | |
3952 | return NULL; | |
3953 | } | |
3954 | ||
3955 | ||
3956 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
3957 | PyObject *resultobj; | |
3958 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3959 | PyObject * obj0 = 0 ; | |
3960 | char *kwnames[] = { | |
3961 | (char *) "self", NULL | |
3962 | }; | |
3963 | ||
3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
3965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3967 | { | |
3968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3969 | (arg1)->Redo(); | |
3970 | ||
3971 | wxPyEndAllowThreads(__tstate); | |
3972 | if (PyErr_Occurred()) SWIG_fail; | |
3973 | } | |
3974 | Py_INCREF(Py_None); resultobj = Py_None; | |
3975 | return resultobj; | |
3976 | fail: | |
3977 | return NULL; | |
3978 | } | |
3979 | ||
3980 | ||
3981 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject *resultobj; | |
3983 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3984 | PyObject * obj0 = 0 ; | |
3985 | char *kwnames[] = { | |
3986 | (char *) "self", NULL | |
3987 | }; | |
3988 | ||
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
3990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3992 | { | |
3993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3994 | (arg1)->SelectAll(); | |
3995 | ||
3996 | wxPyEndAllowThreads(__tstate); | |
3997 | if (PyErr_Occurred()) SWIG_fail; | |
3998 | } | |
3999 | Py_INCREF(Py_None); resultobj = Py_None; | |
4000 | return resultobj; | |
4001 | fail: | |
4002 | return NULL; | |
4003 | } | |
4004 | ||
4005 | ||
4006 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
4007 | PyObject *resultobj; | |
4008 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4009 | bool result; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | char *kwnames[] = { | |
4012 | (char *) "self", NULL | |
4013 | }; | |
4014 | ||
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
4016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | { | |
4026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4027 | } | |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
4034 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject *resultobj; | |
4036 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4037 | bool result; | |
4038 | PyObject * obj0 = 0 ; | |
4039 | char *kwnames[] = { | |
4040 | (char *) "self", NULL | |
4041 | }; | |
4042 | ||
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
4044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4046 | { | |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4048 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
4053 | { | |
4054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4055 | } | |
4056 | return resultobj; | |
4057 | fail: | |
4058 | return NULL; | |
4059 | } | |
4060 | ||
4061 | ||
4062 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject *resultobj; | |
4064 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4065 | bool result; | |
4066 | PyObject * obj0 = 0 ; | |
4067 | char *kwnames[] = { | |
4068 | (char *) "self", NULL | |
4069 | }; | |
4070 | ||
4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
4072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4074 | { | |
4075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4076 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
4077 | ||
4078 | wxPyEndAllowThreads(__tstate); | |
4079 | if (PyErr_Occurred()) SWIG_fail; | |
4080 | } | |
4081 | { | |
4082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4083 | } | |
4084 | return resultobj; | |
4085 | fail: | |
4086 | return NULL; | |
4087 | } | |
4088 | ||
4089 | ||
4090 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
4091 | PyObject *resultobj; | |
4092 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4093 | bool result; | |
4094 | PyObject * obj0 = 0 ; | |
4095 | char *kwnames[] = { | |
4096 | (char *) "self", NULL | |
4097 | }; | |
4098 | ||
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
4100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4102 | { | |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4104 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | { | |
4110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4111 | } | |
4112 | return resultobj; | |
4113 | fail: | |
4114 | return NULL; | |
4115 | } | |
4116 | ||
4117 | ||
4118 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
4119 | PyObject *resultobj; | |
4120 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4121 | bool result; | |
4122 | PyObject * obj0 = 0 ; | |
4123 | char *kwnames[] = { | |
4124 | (char *) "self", NULL | |
4125 | }; | |
4126 | ||
4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
4128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
4129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4130 | { | |
4131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4132 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
4133 | ||
4134 | wxPyEndAllowThreads(__tstate); | |
4135 | if (PyErr_Occurred()) SWIG_fail; | |
4136 | } | |
4137 | { | |
4138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4139 | } | |
4140 | return resultobj; | |
4141 | fail: | |
4142 | return NULL; | |
4143 | } | |
4144 | ||
4145 | ||
c32bde28 | 4146 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4147 | PyObject *resultobj; |
4148 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4149 | wxVisualAttributes result; | |
4150 | PyObject * obj0 = 0 ; | |
4151 | char *kwnames[] = { | |
4152 | (char *) "variant", NULL | |
4153 | }; | |
4154 | ||
4155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4156 | if (obj0) { | |
c32bde28 | 4157 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4158 | if (PyErr_Occurred()) SWIG_fail; |
4159 | } | |
4160 | { | |
110da5b0 | 4161 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4163 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4164 | ||
4165 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4166 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4167 | } |
4168 | { | |
4169 | wxVisualAttributes * resultptr; | |
4170 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4172 | } | |
4173 | return resultobj; | |
4174 | fail: | |
4175 | return NULL; | |
4176 | } | |
4177 | ||
4178 | ||
c32bde28 | 4179 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4180 | PyObject *obj; |
4181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4182 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
4183 | Py_INCREF(obj); | |
4184 | return Py_BuildValue((char *)""); | |
4185 | } | |
c32bde28 | 4186 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
4187 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
4188 | return 1; | |
4189 | } | |
4190 | ||
4191 | ||
4192 | static PyObject *_wrap_GaugeNameStr_get() { | |
4193 | PyObject *pyobj; | |
4194 | ||
4195 | { | |
4196 | #if wxUSE_UNICODE | |
4197 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
4198 | #else | |
4199 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
4200 | #endif | |
4201 | } | |
4202 | return pyobj; | |
4203 | } | |
4204 | ||
4205 | ||
c32bde28 | 4206 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4207 | PyObject *resultobj; |
4208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4209 | int arg2 = (int) -1 ; |
4210 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
4211 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4212 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4213 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4214 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4215 | long arg6 = (long) wxGA_HORIZONTAL ; | |
4216 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4217 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4218 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
4219 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4220 | wxGauge *result; | |
4221 | wxPoint temp4 ; | |
4222 | wxSize temp5 ; | |
ae8162c8 | 4223 | bool temp8 = false ; |
d14a1e28 | 4224 | PyObject * obj0 = 0 ; |
994141e6 RD |
4225 | PyObject * obj1 = 0 ; |
4226 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4227 | PyObject * obj3 = 0 ; |
4228 | PyObject * obj4 = 0 ; | |
994141e6 | 4229 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4230 | PyObject * obj6 = 0 ; |
4231 | PyObject * obj7 = 0 ; | |
4232 | char *kwnames[] = { | |
4233 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4234 | }; | |
4235 | ||
248ed943 | 4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4239 | if (obj1) { |
c32bde28 | 4240 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4241 | if (PyErr_Occurred()) SWIG_fail; |
4242 | } | |
4243 | if (obj2) { | |
c32bde28 | 4244 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4245 | if (PyErr_Occurred()) SWIG_fail; |
4246 | } | |
d14a1e28 RD |
4247 | if (obj3) { |
4248 | { | |
4249 | arg4 = &temp4; | |
4250 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4251 | } | |
4252 | } | |
4253 | if (obj4) { | |
4254 | { | |
4255 | arg5 = &temp5; | |
4256 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4257 | } | |
4258 | } | |
994141e6 | 4259 | if (obj5) { |
c32bde28 | 4260 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4261 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4262 | } |
d14a1e28 | 4263 | if (obj6) { |
15afbcd0 RD |
4264 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
4265 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4266 | SWIG_fail; | |
d14a1e28 | 4267 | if (arg7 == NULL) { |
15afbcd0 RD |
4268 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4269 | SWIG_fail; | |
d14a1e28 RD |
4270 | } |
4271 | } | |
4272 | if (obj7) { | |
4273 | { | |
4274 | arg8 = wxString_in_helper(obj7); | |
4275 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4276 | temp8 = true; |
d14a1e28 RD |
4277 | } |
4278 | } | |
4279 | { | |
e3b71cb8 | 4280 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4282 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4283 | ||
4284 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4285 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4286 | } |
15afbcd0 | 4287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4288 | { |
4289 | if (temp8) | |
4290 | delete arg8; | |
4291 | } | |
4292 | return resultobj; | |
4293 | fail: | |
4294 | { | |
4295 | if (temp8) | |
4296 | delete arg8; | |
4297 | } | |
4298 | return NULL; | |
4299 | } | |
4300 | ||
4301 | ||
c32bde28 | 4302 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4303 | PyObject *resultobj; |
4304 | wxGauge *result; | |
4305 | char *kwnames[] = { | |
4306 | NULL | |
4307 | }; | |
4308 | ||
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
4310 | { | |
e3b71cb8 | 4311 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4313 | result = (wxGauge *)new wxGauge(); | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4316 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4317 | } |
15afbcd0 | 4318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4319 | return resultobj; |
4320 | fail: | |
4321 | return NULL; | |
4322 | } | |
4323 | ||
4324 | ||
c32bde28 | 4325 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4326 | PyObject *resultobj; |
4327 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4328 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4329 | int arg3 = (int) -1 ; |
4330 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
4331 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4332 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4333 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4334 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4335 | long arg7 = (long) wxGA_HORIZONTAL ; | |
4336 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4337 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4338 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
4339 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4340 | bool result; | |
4341 | wxPoint temp5 ; | |
4342 | wxSize temp6 ; | |
ae8162c8 | 4343 | bool temp9 = false ; |
d14a1e28 RD |
4344 | PyObject * obj0 = 0 ; |
4345 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4346 | PyObject * obj2 = 0 ; |
4347 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4348 | PyObject * obj4 = 0 ; |
4349 | PyObject * obj5 = 0 ; | |
994141e6 | 4350 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4351 | PyObject * obj7 = 0 ; |
4352 | PyObject * obj8 = 0 ; | |
4353 | char *kwnames[] = { | |
4354 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4355 | }; | |
4356 | ||
248ed943 | 4357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
4358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4360 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4362 | if (obj2) { |
c32bde28 | 4363 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4364 | if (PyErr_Occurred()) SWIG_fail; |
4365 | } | |
4366 | if (obj3) { | |
c32bde28 | 4367 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
4368 | if (PyErr_Occurred()) SWIG_fail; |
4369 | } | |
d14a1e28 RD |
4370 | if (obj4) { |
4371 | { | |
4372 | arg5 = &temp5; | |
4373 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4374 | } | |
4375 | } | |
4376 | if (obj5) { | |
4377 | { | |
4378 | arg6 = &temp6; | |
4379 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4380 | } | |
4381 | } | |
994141e6 | 4382 | if (obj6) { |
c32bde28 | 4383 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4384 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4385 | } |
d14a1e28 | 4386 | if (obj7) { |
15afbcd0 RD |
4387 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
4388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4389 | SWIG_fail; | |
d14a1e28 | 4390 | if (arg8 == NULL) { |
15afbcd0 RD |
4391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4392 | SWIG_fail; | |
d14a1e28 RD |
4393 | } |
4394 | } | |
4395 | if (obj8) { | |
4396 | { | |
4397 | arg9 = wxString_in_helper(obj8); | |
4398 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4399 | temp9 = true; |
d14a1e28 RD |
4400 | } |
4401 | } | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4f89f6a3 RD |
4409 | { |
4410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4411 | } | |
d14a1e28 RD |
4412 | { |
4413 | if (temp9) | |
4414 | delete arg9; | |
4415 | } | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | { | |
4419 | if (temp9) | |
4420 | delete arg9; | |
4421 | } | |
4422 | return NULL; | |
4423 | } | |
4424 | ||
4425 | ||
c32bde28 | 4426 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4427 | PyObject *resultobj; |
4428 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4429 | int arg2 ; | |
4430 | PyObject * obj0 = 0 ; | |
994141e6 | 4431 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4432 | char *kwnames[] = { |
4433 | (char *) "self",(char *) "range", NULL | |
4434 | }; | |
4435 | ||
994141e6 | 4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4439 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4440 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4441 | { |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | (arg1)->SetRange(arg2); | |
4444 | ||
4445 | wxPyEndAllowThreads(__tstate); | |
4446 | if (PyErr_Occurred()) SWIG_fail; | |
4447 | } | |
4448 | Py_INCREF(Py_None); resultobj = Py_None; | |
4449 | return resultobj; | |
4450 | fail: | |
4451 | return NULL; | |
4452 | } | |
4453 | ||
4454 | ||
c32bde28 | 4455 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4456 | PyObject *resultobj; |
4457 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4458 | int result; | |
4459 | PyObject * obj0 = 0 ; | |
4460 | char *kwnames[] = { | |
4461 | (char *) "self", NULL | |
4462 | }; | |
4463 | ||
4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4467 | { |
4468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4469 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4470 | ||
4471 | wxPyEndAllowThreads(__tstate); | |
4472 | if (PyErr_Occurred()) SWIG_fail; | |
4473 | } | |
c32bde28 | 4474 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4475 | return resultobj; |
4476 | fail: | |
4477 | return NULL; | |
4478 | } | |
4479 | ||
4480 | ||
c32bde28 | 4481 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4482 | PyObject *resultobj; |
4483 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4484 | int arg2 ; | |
4485 | PyObject * obj0 = 0 ; | |
994141e6 | 4486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4487 | char *kwnames[] = { |
4488 | (char *) "self",(char *) "pos", NULL | |
4489 | }; | |
4490 | ||
994141e6 | 4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4494 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4495 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4496 | { |
4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4498 | (arg1)->SetValue(arg2); | |
4499 | ||
4500 | wxPyEndAllowThreads(__tstate); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | } | |
4503 | Py_INCREF(Py_None); resultobj = Py_None; | |
4504 | return resultobj; | |
4505 | fail: | |
4506 | return NULL; | |
4507 | } | |
4508 | ||
4509 | ||
c32bde28 | 4510 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4511 | PyObject *resultobj; |
4512 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4513 | int result; | |
4514 | PyObject * obj0 = 0 ; | |
4515 | char *kwnames[] = { | |
4516 | (char *) "self", NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4522 | { |
4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4524 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4525 | ||
4526 | wxPyEndAllowThreads(__tstate); | |
4527 | if (PyErr_Occurred()) SWIG_fail; | |
4528 | } | |
c32bde28 | 4529 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4530 | return resultobj; |
4531 | fail: | |
4532 | return NULL; | |
4533 | } | |
4534 | ||
4535 | ||
c32bde28 | 4536 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4537 | PyObject *resultobj; |
4538 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4539 | bool result; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self", NULL | |
4543 | }; | |
4544 | ||
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4548 | { |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4f89f6a3 RD |
4555 | { |
4556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4557 | } | |
d14a1e28 RD |
4558 | return resultobj; |
4559 | fail: | |
4560 | return NULL; | |
4561 | } | |
4562 | ||
4563 | ||
c32bde28 | 4564 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4565 | PyObject *resultobj; |
4566 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4567 | int arg2 ; | |
4568 | PyObject * obj0 = 0 ; | |
994141e6 | 4569 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4570 | char *kwnames[] = { |
4571 | (char *) "self",(char *) "w", NULL | |
4572 | }; | |
4573 | ||
994141e6 | 4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4577 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4578 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4579 | { |
4580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4581 | (arg1)->SetShadowWidth(arg2); | |
4582 | ||
4583 | wxPyEndAllowThreads(__tstate); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | } | |
4586 | Py_INCREF(Py_None); resultobj = Py_None; | |
4587 | return resultobj; | |
4588 | fail: | |
4589 | return NULL; | |
4590 | } | |
4591 | ||
4592 | ||
c32bde28 | 4593 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4594 | PyObject *resultobj; |
4595 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4596 | int result; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | char *kwnames[] = { | |
4599 | (char *) "self", NULL | |
4600 | }; | |
4601 | ||
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4605 | { |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
c32bde28 | 4612 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4613 | return resultobj; |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
c32bde28 | 4619 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4620 | PyObject *resultobj; |
4621 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4622 | int arg2 ; | |
4623 | PyObject * obj0 = 0 ; | |
994141e6 | 4624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4625 | char *kwnames[] = { |
4626 | (char *) "self",(char *) "w", NULL | |
4627 | }; | |
4628 | ||
994141e6 | 4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4632 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4633 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4634 | { |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4636 | (arg1)->SetBezelFace(arg2); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | } | |
4641 | Py_INCREF(Py_None); resultobj = Py_None; | |
4642 | return resultobj; | |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
c32bde28 | 4648 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4649 | PyObject *resultobj; |
4650 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4651 | int result; | |
4652 | PyObject * obj0 = 0 ; | |
4653 | char *kwnames[] = { | |
4654 | (char *) "self", NULL | |
4655 | }; | |
4656 | ||
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4660 | { |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4662 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4663 | ||
4664 | wxPyEndAllowThreads(__tstate); | |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
4666 | } | |
c32bde28 | 4667 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4668 | return resultobj; |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
c32bde28 | 4674 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4675 | PyObject *resultobj; |
4676 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4677 | wxVisualAttributes result; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "variant", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4684 | if (obj0) { | |
c32bde28 | 4685 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4686 | if (PyErr_Occurred()) SWIG_fail; |
4687 | } | |
4688 | { | |
110da5b0 | 4689 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4691 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4692 | ||
4693 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4694 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4695 | } |
4696 | { | |
4697 | wxVisualAttributes * resultptr; | |
4698 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4700 | } | |
4701 | return resultobj; | |
4702 | fail: | |
4703 | return NULL; | |
4704 | } | |
4705 | ||
4706 | ||
c32bde28 | 4707 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4708 | PyObject *obj; |
4709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4710 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4711 | Py_INCREF(obj); | |
4712 | return Py_BuildValue((char *)""); | |
4713 | } | |
c32bde28 | 4714 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
4715 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4716 | return 1; | |
4717 | } | |
4718 | ||
4719 | ||
4720 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4721 | PyObject *pyobj; | |
4722 | ||
4723 | { | |
4724 | #if wxUSE_UNICODE | |
4725 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4726 | #else | |
4727 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4728 | #endif | |
4729 | } | |
4730 | return pyobj; | |
4731 | } | |
4732 | ||
4733 | ||
c32bde28 | 4734 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4735 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4736 | return 1; | |
4737 | } | |
4738 | ||
4739 | ||
4740 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4741 | PyObject *pyobj; | |
4742 | ||
4743 | { | |
4744 | #if wxUSE_UNICODE | |
4745 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4746 | #else | |
4747 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4748 | #endif | |
4749 | } | |
4750 | return pyobj; | |
4751 | } | |
4752 | ||
4753 | ||
c32bde28 | 4754 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
4755 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4756 | return 1; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4761 | PyObject *pyobj; | |
4762 | ||
4763 | { | |
4764 | #if wxUSE_UNICODE | |
4765 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4766 | #else | |
4767 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4768 | #endif | |
4769 | } | |
4770 | return pyobj; | |
4771 | } | |
4772 | ||
4773 | ||
c32bde28 | 4774 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4775 | PyObject *resultobj; |
4776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4777 | int arg2 = (int) -1 ; |
4778 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4779 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4780 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4781 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4782 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4783 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4784 | long arg6 = (long) 0 ; | |
4785 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4786 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4787 | wxStaticBox *result; | |
ae8162c8 | 4788 | bool temp3 = false ; |
d14a1e28 RD |
4789 | wxPoint temp4 ; |
4790 | wxSize temp5 ; | |
ae8162c8 | 4791 | bool temp7 = false ; |
d14a1e28 | 4792 | PyObject * obj0 = 0 ; |
994141e6 | 4793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4794 | PyObject * obj2 = 0 ; |
4795 | PyObject * obj3 = 0 ; | |
4796 | PyObject * obj4 = 0 ; | |
994141e6 | 4797 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4798 | PyObject * obj6 = 0 ; |
4799 | char *kwnames[] = { | |
4800 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4801 | }; | |
4802 | ||
248ed943 | 4803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4806 | if (obj1) { |
c32bde28 | 4807 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4808 | if (PyErr_Occurred()) SWIG_fail; |
4809 | } | |
4810 | if (obj2) { | |
4811 | { | |
4812 | arg3 = wxString_in_helper(obj2); | |
4813 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4814 | temp3 = true; |
248ed943 | 4815 | } |
d14a1e28 RD |
4816 | } |
4817 | if (obj3) { | |
4818 | { | |
4819 | arg4 = &temp4; | |
4820 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4821 | } | |
4822 | } | |
4823 | if (obj4) { | |
4824 | { | |
4825 | arg5 = &temp5; | |
4826 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4827 | } | |
4828 | } | |
994141e6 | 4829 | if (obj5) { |
c32bde28 | 4830 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4831 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4832 | } |
d14a1e28 RD |
4833 | if (obj6) { |
4834 | { | |
4835 | arg7 = wxString_in_helper(obj6); | |
4836 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 4837 | temp7 = true; |
d14a1e28 RD |
4838 | } |
4839 | } | |
4840 | { | |
e3b71cb8 | 4841 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4843 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4846 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4847 | } |
b0f7404b | 4848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4849 | { |
4850 | if (temp3) | |
4851 | delete arg3; | |
4852 | } | |
4853 | { | |
4854 | if (temp7) | |
4855 | delete arg7; | |
4856 | } | |
4857 | return resultobj; | |
4858 | fail: | |
4859 | { | |
4860 | if (temp3) | |
4861 | delete arg3; | |
4862 | } | |
4863 | { | |
4864 | if (temp7) | |
4865 | delete arg7; | |
4866 | } | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
c32bde28 | 4871 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4872 | PyObject *resultobj; |
4873 | wxStaticBox *result; | |
4874 | char *kwnames[] = { | |
4875 | NULL | |
4876 | }; | |
4877 | ||
4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4879 | { | |
e3b71cb8 | 4880 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4882 | result = (wxStaticBox *)new wxStaticBox(); | |
4883 | ||
4884 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4885 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4886 | } |
b0f7404b | 4887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4888 | return resultobj; |
4889 | fail: | |
4890 | return NULL; | |
4891 | } | |
4892 | ||
4893 | ||
c32bde28 | 4894 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4895 | PyObject *resultobj; |
4896 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4897 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4898 | int arg3 = (int) -1 ; |
4899 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4900 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
4901 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4902 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4903 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4904 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4905 | long arg7 = (long) 0 ; | |
4906 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4907 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4908 | bool result; | |
ae8162c8 | 4909 | bool temp4 = false ; |
d14a1e28 RD |
4910 | wxPoint temp5 ; |
4911 | wxSize temp6 ; | |
ae8162c8 | 4912 | bool temp8 = false ; |
d14a1e28 RD |
4913 | PyObject * obj0 = 0 ; |
4914 | PyObject * obj1 = 0 ; | |
994141e6 | 4915 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4916 | PyObject * obj3 = 0 ; |
4917 | PyObject * obj4 = 0 ; | |
4918 | PyObject * obj5 = 0 ; | |
994141e6 | 4919 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4920 | PyObject * obj7 = 0 ; |
4921 | char *kwnames[] = { | |
4922 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4923 | }; | |
4924 | ||
248ed943 | 4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4930 | if (obj2) { |
c32bde28 | 4931 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4932 | if (PyErr_Occurred()) SWIG_fail; |
4933 | } | |
4934 | if (obj3) { | |
4935 | { | |
4936 | arg4 = wxString_in_helper(obj3); | |
4937 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4938 | temp4 = true; |
248ed943 | 4939 | } |
d14a1e28 RD |
4940 | } |
4941 | if (obj4) { | |
4942 | { | |
4943 | arg5 = &temp5; | |
4944 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4945 | } | |
4946 | } | |
4947 | if (obj5) { | |
4948 | { | |
4949 | arg6 = &temp6; | |
4950 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4951 | } | |
4952 | } | |
994141e6 | 4953 | if (obj6) { |
c32bde28 | 4954 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4955 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4956 | } |
d14a1e28 RD |
4957 | if (obj7) { |
4958 | { | |
4959 | arg8 = wxString_in_helper(obj7); | |
4960 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4961 | temp8 = true; |
d14a1e28 RD |
4962 | } |
4963 | } | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4f89f6a3 RD |
4971 | { |
4972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4973 | } | |
d14a1e28 RD |
4974 | { |
4975 | if (temp4) | |
4976 | delete arg4; | |
4977 | } | |
4978 | { | |
4979 | if (temp8) | |
4980 | delete arg8; | |
4981 | } | |
4982 | return resultobj; | |
4983 | fail: | |
4984 | { | |
4985 | if (temp4) | |
4986 | delete arg4; | |
4987 | } | |
4988 | { | |
4989 | if (temp8) | |
4990 | delete arg8; | |
4991 | } | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
c32bde28 | 4996 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4997 | PyObject *resultobj; |
4998 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4999 | wxVisualAttributes result; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "variant", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5006 | if (obj0) { | |
c32bde28 | 5007 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5008 | if (PyErr_Occurred()) SWIG_fail; |
5009 | } | |
5010 | { | |
110da5b0 | 5011 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5013 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5014 | ||
5015 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5016 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5017 | } |
5018 | { | |
5019 | wxVisualAttributes * resultptr; | |
5020 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5021 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5022 | } | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
c32bde28 | 5029 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5030 | PyObject *obj; |
5031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5032 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
5033 | Py_INCREF(obj); | |
5034 | return Py_BuildValue((char *)""); | |
5035 | } | |
c32bde28 | 5036 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5037 | PyObject *resultobj; |
5038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5039 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5040 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5041 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5042 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5043 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5044 | long arg5 = (long) wxLI_HORIZONTAL ; | |
5045 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
5046 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5047 | wxStaticLine *result; | |
5048 | wxPoint temp3 ; | |
5049 | wxSize temp4 ; | |
ae8162c8 | 5050 | bool temp6 = false ; |
d14a1e28 | 5051 | PyObject * obj0 = 0 ; |
994141e6 | 5052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5053 | PyObject * obj2 = 0 ; |
5054 | PyObject * obj3 = 0 ; | |
994141e6 | 5055 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
5056 | PyObject * obj5 = 0 ; |
5057 | char *kwnames[] = { | |
5058 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5059 | }; | |
5060 | ||
248ed943 | 5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
5062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5064 | if (obj1) { |
c32bde28 | 5065 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5066 | if (PyErr_Occurred()) SWIG_fail; |
5067 | } | |
d14a1e28 RD |
5068 | if (obj2) { |
5069 | { | |
5070 | arg3 = &temp3; | |
5071 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5072 | } | |
5073 | } | |
5074 | if (obj3) { | |
5075 | { | |
5076 | arg4 = &temp4; | |
5077 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5078 | } | |
5079 | } | |
994141e6 | 5080 | if (obj4) { |
c32bde28 | 5081 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 5082 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5083 | } |
d14a1e28 RD |
5084 | if (obj5) { |
5085 | { | |
5086 | arg6 = wxString_in_helper(obj5); | |
5087 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 5088 | temp6 = true; |
d14a1e28 RD |
5089 | } |
5090 | } | |
5091 | { | |
e3b71cb8 | 5092 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5094 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5095 | ||
5096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5097 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5098 | } |
15afbcd0 | 5099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
5100 | { |
5101 | if (temp6) | |
5102 | delete arg6; | |
5103 | } | |
5104 | return resultobj; | |
5105 | fail: | |
5106 | { | |
5107 | if (temp6) | |
5108 | delete arg6; | |
5109 | } | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
c32bde28 | 5114 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5115 | PyObject *resultobj; |
5116 | wxStaticLine *result; | |
5117 | char *kwnames[] = { | |
5118 | NULL | |
5119 | }; | |
5120 | ||
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
5122 | { | |
e3b71cb8 | 5123 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5125 | result = (wxStaticLine *)new wxStaticLine(); | |
5126 | ||
5127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5128 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5129 | } |
15afbcd0 | 5130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
5131 | return resultobj; |
5132 | fail: | |
5133 | return NULL; | |
5134 | } | |
5135 | ||
5136 | ||
c32bde28 | 5137 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5138 | PyObject *resultobj; |
5139 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
5140 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5141 | int arg3 = (int) -1 ; |
d14a1e28 RD |
5142 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5143 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5144 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5145 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5146 | long arg6 = (long) wxLI_HORIZONTAL ; | |
5147 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5148 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5149 | bool result; | |
5150 | wxPoint temp4 ; | |
5151 | wxSize temp5 ; | |
ae8162c8 | 5152 | bool temp7 = false ; |
d14a1e28 RD |
5153 | PyObject * obj0 = 0 ; |
5154 | PyObject * obj1 = 0 ; | |
994141e6 | 5155 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5156 | PyObject * obj3 = 0 ; |
5157 | PyObject * obj4 = 0 ; | |
994141e6 | 5158 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5159 | PyObject * obj6 = 0 ; |
5160 | char *kwnames[] = { | |
5161 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5162 | }; | |
5163 | ||
248ed943 | 5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
5166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5169 | if (obj2) { |
c32bde28 | 5170 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5171 | if (PyErr_Occurred()) SWIG_fail; |
5172 | } | |
d14a1e28 RD |
5173 | if (obj3) { |
5174 | { | |
5175 | arg4 = &temp4; | |
5176 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5177 | } | |
5178 | } | |
5179 | if (obj4) { | |
5180 | { | |
5181 | arg5 = &temp5; | |
5182 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5183 | } | |
5184 | } | |
994141e6 | 5185 | if (obj5) { |
c32bde28 | 5186 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5187 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5188 | } |
d14a1e28 RD |
5189 | if (obj6) { |
5190 | { | |
5191 | arg7 = wxString_in_helper(obj6); | |
5192 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5193 | temp7 = true; |
d14a1e28 RD |
5194 | } |
5195 | } | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
4f89f6a3 RD |
5203 | { |
5204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5205 | } | |
d14a1e28 RD |
5206 | { |
5207 | if (temp7) | |
5208 | delete arg7; | |
5209 | } | |
5210 | return resultobj; | |
5211 | fail: | |
5212 | { | |
5213 | if (temp7) | |
5214 | delete arg7; | |
5215 | } | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
c32bde28 | 5220 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5221 | PyObject *resultobj; |
5222 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
5223 | bool result; | |
5224 | PyObject * obj0 = 0 ; | |
5225 | char *kwnames[] = { | |
5226 | (char *) "self", NULL | |
5227 | }; | |
5228 | ||
5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
5231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5232 | { |
5233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5234 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
5235 | ||
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
4f89f6a3 RD |
5239 | { |
5240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5241 | } | |
d14a1e28 RD |
5242 | return resultobj; |
5243 | fail: | |
5244 | return NULL; | |
5245 | } | |
5246 | ||
5247 | ||
c32bde28 | 5248 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5249 | PyObject *resultobj; |
5250 | int result; | |
5251 | char *kwnames[] = { | |
5252 | NULL | |
5253 | }; | |
5254 | ||
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
5256 | { | |
5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5258 | result = (int)wxStaticLine::GetDefaultSize(); | |
5259 | ||
5260 | wxPyEndAllowThreads(__tstate); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | } | |
c32bde28 | 5263 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5264 | return resultobj; |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
c32bde28 | 5270 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5271 | PyObject *resultobj; |
5272 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5273 | wxVisualAttributes result; | |
5274 | PyObject * obj0 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "variant", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5280 | if (obj0) { | |
c32bde28 | 5281 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5282 | if (PyErr_Occurred()) SWIG_fail; |
5283 | } | |
5284 | { | |
110da5b0 | 5285 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5287 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5288 | ||
5289 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5290 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5291 | } |
5292 | { | |
5293 | wxVisualAttributes * resultptr; | |
5294 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5295 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5296 | } | |
5297 | return resultobj; | |
5298 | fail: | |
5299 | return NULL; | |
5300 | } | |
5301 | ||
5302 | ||
c32bde28 | 5303 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5304 | PyObject *obj; |
5305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5306 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
5307 | Py_INCREF(obj); | |
5308 | return Py_BuildValue((char *)""); | |
5309 | } | |
c32bde28 | 5310 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5311 | PyObject *resultobj; |
5312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5313 | int arg2 = (int) -1 ; |
5314 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5315 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
5316 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5317 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5318 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5319 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5320 | long arg6 = (long) 0 ; | |
5321 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5322 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5323 | wxStaticText *result; | |
ae8162c8 | 5324 | bool temp3 = false ; |
d14a1e28 RD |
5325 | wxPoint temp4 ; |
5326 | wxSize temp5 ; | |
ae8162c8 | 5327 | bool temp7 = false ; |
d14a1e28 | 5328 | PyObject * obj0 = 0 ; |
994141e6 | 5329 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5330 | PyObject * obj2 = 0 ; |
5331 | PyObject * obj3 = 0 ; | |
5332 | PyObject * obj4 = 0 ; | |
994141e6 | 5333 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5334 | PyObject * obj6 = 0 ; |
5335 | char *kwnames[] = { | |
5336 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5337 | }; | |
5338 | ||
248ed943 | 5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5342 | if (obj1) { |
c32bde28 | 5343 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5344 | if (PyErr_Occurred()) SWIG_fail; |
5345 | } | |
5346 | if (obj2) { | |
5347 | { | |
5348 | arg3 = wxString_in_helper(obj2); | |
5349 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5350 | temp3 = true; |
248ed943 | 5351 | } |
d14a1e28 RD |
5352 | } |
5353 | if (obj3) { | |
5354 | { | |
5355 | arg4 = &temp4; | |
5356 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5357 | } | |
5358 | } | |
5359 | if (obj4) { | |
5360 | { | |
5361 | arg5 = &temp5; | |
5362 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5363 | } | |
5364 | } | |
994141e6 | 5365 | if (obj5) { |
c32bde28 | 5366 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5367 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5368 | } |
d14a1e28 RD |
5369 | if (obj6) { |
5370 | { | |
5371 | arg7 = wxString_in_helper(obj6); | |
5372 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5373 | temp7 = true; |
d14a1e28 RD |
5374 | } |
5375 | } | |
5376 | { | |
e3b71cb8 | 5377 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5379 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5380 | ||
5381 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5382 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5383 | } |
15afbcd0 | 5384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5385 | { |
5386 | if (temp3) | |
5387 | delete arg3; | |
5388 | } | |
5389 | { | |
5390 | if (temp7) | |
5391 | delete arg7; | |
5392 | } | |
5393 | return resultobj; | |
5394 | fail: | |
5395 | { | |
5396 | if (temp3) | |
5397 | delete arg3; | |
5398 | } | |
5399 | { | |
5400 | if (temp7) | |
5401 | delete arg7; | |
5402 | } | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
c32bde28 | 5407 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5408 | PyObject *resultobj; |
5409 | wxStaticText *result; | |
5410 | char *kwnames[] = { | |
5411 | NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5415 | { | |
e3b71cb8 | 5416 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5418 | result = (wxStaticText *)new wxStaticText(); | |
5419 | ||
5420 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5421 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5422 | } |
15afbcd0 | 5423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5424 | return resultobj; |
5425 | fail: | |
5426 | return NULL; | |
5427 | } | |
5428 | ||
5429 | ||
c32bde28 | 5430 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5431 | PyObject *resultobj; |
5432 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5433 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5434 | int arg3 = (int) -1 ; |
5435 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5436 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
5437 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5438 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5439 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5440 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5441 | long arg7 = (long) 0 ; | |
5442 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5443 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5444 | bool result; | |
ae8162c8 | 5445 | bool temp4 = false ; |
d14a1e28 RD |
5446 | wxPoint temp5 ; |
5447 | wxSize temp6 ; | |
ae8162c8 | 5448 | bool temp8 = false ; |
d14a1e28 RD |
5449 | PyObject * obj0 = 0 ; |
5450 | PyObject * obj1 = 0 ; | |
994141e6 | 5451 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5452 | PyObject * obj3 = 0 ; |
5453 | PyObject * obj4 = 0 ; | |
5454 | PyObject * obj5 = 0 ; | |
994141e6 | 5455 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5456 | PyObject * obj7 = 0 ; |
5457 | char *kwnames[] = { | |
5458 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5459 | }; | |
5460 | ||
248ed943 | 5461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5466 | if (obj2) { |
c32bde28 | 5467 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5468 | if (PyErr_Occurred()) SWIG_fail; |
5469 | } | |
5470 | if (obj3) { | |
5471 | { | |
5472 | arg4 = wxString_in_helper(obj3); | |
5473 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 5474 | temp4 = true; |
248ed943 | 5475 | } |
d14a1e28 RD |
5476 | } |
5477 | if (obj4) { | |
5478 | { | |
5479 | arg5 = &temp5; | |
5480 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5481 | } | |
5482 | } | |
5483 | if (obj5) { | |
5484 | { | |
5485 | arg6 = &temp6; | |
5486 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5487 | } | |
5488 | } | |
994141e6 | 5489 | if (obj6) { |
c32bde28 | 5490 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5491 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5492 | } |
d14a1e28 RD |
5493 | if (obj7) { |
5494 | { | |
5495 | arg8 = wxString_in_helper(obj7); | |
5496 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5497 | temp8 = true; |
d14a1e28 RD |
5498 | } |
5499 | } | |
5500 | { | |
5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5502 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5503 | ||
5504 | wxPyEndAllowThreads(__tstate); | |
5505 | if (PyErr_Occurred()) SWIG_fail; | |
5506 | } | |
4f89f6a3 RD |
5507 | { |
5508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5509 | } | |
d14a1e28 RD |
5510 | { |
5511 | if (temp4) | |
5512 | delete arg4; | |
5513 | } | |
5514 | { | |
5515 | if (temp8) | |
5516 | delete arg8; | |
5517 | } | |
5518 | return resultobj; | |
5519 | fail: | |
5520 | { | |
5521 | if (temp4) | |
5522 | delete arg4; | |
5523 | } | |
5524 | { | |
5525 | if (temp8) | |
5526 | delete arg8; | |
5527 | } | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
c32bde28 | 5532 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5533 | PyObject *resultobj; |
5534 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5535 | wxVisualAttributes result; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "variant", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5542 | if (obj0) { | |
c32bde28 | 5543 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5544 | if (PyErr_Occurred()) SWIG_fail; |
5545 | } | |
5546 | { | |
110da5b0 | 5547 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5549 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5552 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5553 | } |
5554 | { | |
5555 | wxVisualAttributes * resultptr; | |
5556 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5558 | } | |
5559 | return resultobj; | |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
c32bde28 | 5565 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5566 | PyObject *obj; |
5567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5568 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5569 | Py_INCREF(obj); | |
5570 | return Py_BuildValue((char *)""); | |
5571 | } | |
c32bde28 | 5572 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5573 | PyObject *resultobj; |
5574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5575 | int arg2 = (int) -1 ; |
5576 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5577 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
5578 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5579 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5580 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5581 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5582 | long arg6 = (long) 0 ; | |
5583 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5584 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5585 | wxStaticBitmap *result; | |
5586 | wxPoint temp4 ; | |
5587 | wxSize temp5 ; | |
ae8162c8 | 5588 | bool temp7 = false ; |
d14a1e28 | 5589 | PyObject * obj0 = 0 ; |
994141e6 | 5590 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5591 | PyObject * obj2 = 0 ; |
5592 | PyObject * obj3 = 0 ; | |
5593 | PyObject * obj4 = 0 ; | |
994141e6 | 5594 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5595 | PyObject * obj6 = 0 ; |
5596 | char *kwnames[] = { | |
5597 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5598 | }; | |
5599 | ||
248ed943 | 5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5603 | if (obj1) { |
c32bde28 | 5604 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5605 | if (PyErr_Occurred()) SWIG_fail; |
5606 | } | |
5607 | if (obj2) { | |
5608 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5609 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5610 | SWIG_fail; |
248ed943 RD |
5611 | if (arg3 == NULL) { |
5612 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5613 | SWIG_fail; | |
5614 | } | |
d14a1e28 RD |
5615 | } |
5616 | if (obj3) { | |
5617 | { | |
5618 | arg4 = &temp4; | |
5619 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5620 | } | |
5621 | } | |
5622 | if (obj4) { | |
5623 | { | |
5624 | arg5 = &temp5; | |
5625 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5626 | } | |
5627 | } | |
994141e6 | 5628 | if (obj5) { |
c32bde28 | 5629 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5630 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5631 | } |
d14a1e28 RD |
5632 | if (obj6) { |
5633 | { | |
5634 | arg7 = wxString_in_helper(obj6); | |
5635 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5636 | temp7 = true; |
d14a1e28 RD |
5637 | } |
5638 | } | |
5639 | { | |
e3b71cb8 | 5640 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5642 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5645 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5646 | } |
15afbcd0 | 5647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5648 | { |
5649 | if (temp7) | |
5650 | delete arg7; | |
5651 | } | |
5652 | return resultobj; | |
5653 | fail: | |
5654 | { | |
5655 | if (temp7) | |
5656 | delete arg7; | |
5657 | } | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
c32bde28 | 5662 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5663 | PyObject *resultobj; |
5664 | wxStaticBitmap *result; | |
5665 | char *kwnames[] = { | |
5666 | NULL | |
5667 | }; | |
5668 | ||
5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5670 | { | |
e3b71cb8 | 5671 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5673 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5674 | ||
5675 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5676 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5677 | } |
15afbcd0 | 5678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5679 | return resultobj; |
5680 | fail: | |
5681 | return NULL; | |
5682 | } | |
5683 | ||
5684 | ||
c32bde28 | 5685 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5686 | PyObject *resultobj; |
5687 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5689 | int arg3 = (int) -1 ; |
5690 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5691 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
5692 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5693 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5694 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5695 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5696 | long arg7 = (long) 0 ; | |
5697 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5698 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5699 | bool result; | |
5700 | wxPoint temp5 ; | |
5701 | wxSize temp6 ; | |
ae8162c8 | 5702 | bool temp8 = false ; |
d14a1e28 RD |
5703 | PyObject * obj0 = 0 ; |
5704 | PyObject * obj1 = 0 ; | |
994141e6 | 5705 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5706 | PyObject * obj3 = 0 ; |
5707 | PyObject * obj4 = 0 ; | |
5708 | PyObject * obj5 = 0 ; | |
994141e6 | 5709 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5710 | PyObject * obj7 = 0 ; |
5711 | char *kwnames[] = { | |
5712 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5713 | }; | |
5714 | ||
248ed943 | 5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5720 | if (obj2) { |
c32bde28 | 5721 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5722 | if (PyErr_Occurred()) SWIG_fail; |
5723 | } | |
5724 | if (obj3) { | |
5725 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5727 | SWIG_fail; |
248ed943 RD |
5728 | if (arg4 == NULL) { |
5729 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5730 | SWIG_fail; | |
5731 | } | |
d14a1e28 RD |
5732 | } |
5733 | if (obj4) { | |
5734 | { | |
5735 | arg5 = &temp5; | |
5736 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5737 | } | |
5738 | } | |
5739 | if (obj5) { | |
5740 | { | |
5741 | arg6 = &temp6; | |
5742 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5743 | } | |
5744 | } | |
994141e6 | 5745 | if (obj6) { |
c32bde28 | 5746 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5747 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5748 | } |
d14a1e28 RD |
5749 | if (obj7) { |
5750 | { | |
5751 | arg8 = wxString_in_helper(obj7); | |
5752 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5753 | temp8 = true; |
d14a1e28 RD |
5754 | } |
5755 | } | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
4f89f6a3 RD |
5763 | { |
5764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5765 | } | |
d14a1e28 RD |
5766 | { |
5767 | if (temp8) | |
5768 | delete arg8; | |
5769 | } | |
5770 | return resultobj; | |
5771 | fail: | |
5772 | { | |
5773 | if (temp8) | |
5774 | delete arg8; | |
5775 | } | |
5776 | return NULL; | |
5777 | } | |
5778 | ||
5779 | ||
c32bde28 | 5780 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5781 | PyObject *resultobj; |
5782 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5783 | wxBitmap result; | |
5784 | PyObject * obj0 = 0 ; | |
5785 | char *kwnames[] = { | |
5786 | (char *) "self", NULL | |
5787 | }; | |
5788 | ||
5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5792 | { |
5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5794 | result = (arg1)->GetBitmap(); | |
5795 | ||
5796 | wxPyEndAllowThreads(__tstate); | |
5797 | if (PyErr_Occurred()) SWIG_fail; | |
5798 | } | |
5799 | { | |
5800 | wxBitmap * resultptr; | |
5801 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5802 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5803 | } |
5804 | return resultobj; | |
5805 | fail: | |
5806 | return NULL; | |
5807 | } | |
5808 | ||
5809 | ||
c32bde28 | 5810 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5811 | PyObject *resultobj; |
5812 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5813 | wxBitmap *arg2 = 0 ; | |
5814 | PyObject * obj0 = 0 ; | |
5815 | PyObject * obj1 = 0 ; | |
5816 | char *kwnames[] = { | |
5817 | (char *) "self",(char *) "bitmap", NULL | |
5818 | }; | |
5819 | ||
5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5823 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5824 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5825 | SWIG_fail; | |
d14a1e28 | 5826 | if (arg2 == NULL) { |
15afbcd0 RD |
5827 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5828 | SWIG_fail; | |
d14a1e28 RD |
5829 | } |
5830 | { | |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5832 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5833 | ||
5834 | wxPyEndAllowThreads(__tstate); | |
5835 | if (PyErr_Occurred()) SWIG_fail; | |
5836 | } | |
5837 | Py_INCREF(Py_None); resultobj = Py_None; | |
5838 | return resultobj; | |
5839 | fail: | |
5840 | return NULL; | |
5841 | } | |
5842 | ||
5843 | ||
c32bde28 | 5844 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5845 | PyObject *resultobj; |
5846 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5847 | wxIcon *arg2 = 0 ; | |
5848 | PyObject * obj0 = 0 ; | |
5849 | PyObject * obj1 = 0 ; | |
5850 | char *kwnames[] = { | |
5851 | (char *) "self",(char *) "icon", NULL | |
5852 | }; | |
5853 | ||
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5859 | SWIG_fail; | |
d14a1e28 | 5860 | if (arg2 == NULL) { |
15afbcd0 RD |
5861 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5862 | SWIG_fail; | |
d14a1e28 RD |
5863 | } |
5864 | { | |
5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5866 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5867 | ||
5868 | wxPyEndAllowThreads(__tstate); | |
5869 | if (PyErr_Occurred()) SWIG_fail; | |
5870 | } | |
5871 | Py_INCREF(Py_None); resultobj = Py_None; | |
5872 | return resultobj; | |
5873 | fail: | |
5874 | return NULL; | |
5875 | } | |
5876 | ||
5877 | ||
c32bde28 | 5878 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5879 | PyObject *resultobj; |
5880 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5881 | wxVisualAttributes result; | |
5882 | PyObject * obj0 = 0 ; | |
5883 | char *kwnames[] = { | |
5884 | (char *) "variant", NULL | |
5885 | }; | |
5886 | ||
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5888 | if (obj0) { | |
c32bde28 | 5889 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5890 | if (PyErr_Occurred()) SWIG_fail; |
5891 | } | |
5892 | { | |
110da5b0 | 5893 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5895 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5898 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5899 | } |
5900 | { | |
5901 | wxVisualAttributes * resultptr; | |
5902 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5904 | } | |
5905 | return resultobj; | |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
c32bde28 | 5911 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5912 | PyObject *obj; |
5913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5914 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5915 | Py_INCREF(obj); | |
5916 | return Py_BuildValue((char *)""); | |
5917 | } | |
c32bde28 | 5918 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
5919 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5920 | return 1; | |
5921 | } | |
5922 | ||
5923 | ||
5924 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5925 | PyObject *pyobj; | |
5926 | ||
5927 | { | |
5928 | #if wxUSE_UNICODE | |
5929 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5930 | #else | |
5931 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5932 | #endif | |
5933 | } | |
5934 | return pyobj; | |
5935 | } | |
5936 | ||
5937 | ||
c32bde28 | 5938 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5939 | PyObject *resultobj; |
5940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5941 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5942 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5943 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5944 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5945 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5946 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5947 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5948 | long arg6 = (long) 0 ; | |
5949 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5950 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5951 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5952 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5953 | wxListBox *result; |
5954 | wxPoint temp3 ; | |
5955 | wxSize temp4 ; | |
ae8162c8 RD |
5956 | bool temp5 = false ; |
5957 | bool temp8 = false ; | |
d14a1e28 | 5958 | PyObject * obj0 = 0 ; |
994141e6 | 5959 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5960 | PyObject * obj2 = 0 ; |
5961 | PyObject * obj3 = 0 ; | |
5962 | PyObject * obj4 = 0 ; | |
994141e6 | 5963 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5964 | PyObject * obj6 = 0 ; |
5965 | PyObject * obj7 = 0 ; | |
5966 | char *kwnames[] = { | |
5967 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5968 | }; | |
5969 | ||
248ed943 | 5970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5973 | if (obj1) { |
c32bde28 | 5974 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5975 | if (PyErr_Occurred()) SWIG_fail; |
5976 | } | |
d14a1e28 RD |
5977 | if (obj2) { |
5978 | { | |
5979 | arg3 = &temp3; | |
5980 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5981 | } | |
5982 | } | |
5983 | if (obj3) { | |
5984 | { | |
5985 | arg4 = &temp4; | |
5986 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5987 | } | |
5988 | } | |
5989 | if (obj4) { | |
5990 | { | |
4d5c3d91 RD |
5991 | if (! PySequence_Check(obj4)) { |
5992 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5993 | SWIG_fail; | |
5994 | } | |
5995 | arg5 = new wxArrayString; | |
ae8162c8 | 5996 | temp5 = true; |
4d5c3d91 RD |
5997 | int i, len=PySequence_Length(obj4); |
5998 | for (i=0; i<len; i++) { | |
5999 | PyObject* item = PySequence_GetItem(obj4, i); | |
6000 | #if wxUSE_UNICODE | |
6001 | PyObject* str = PyObject_Unicode(item); | |
6002 | #else | |
6003 | PyObject* str = PyObject_Str(item); | |
6004 | #endif | |
74a57fcd | 6005 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6006 | arg5->Add(Py2wxString(str)); |
6007 | Py_DECREF(item); | |
6008 | Py_DECREF(str); | |
6009 | } | |
d14a1e28 RD |
6010 | } |
6011 | } | |
994141e6 | 6012 | if (obj5) { |
c32bde28 | 6013 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 6014 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6015 | } |
d14a1e28 | 6016 | if (obj6) { |
15afbcd0 RD |
6017 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6019 | SWIG_fail; | |
4d5c3d91 | 6020 | if (arg7 == NULL) { |
15afbcd0 RD |
6021 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6022 | SWIG_fail; | |
d14a1e28 RD |
6023 | } |
6024 | } | |
6025 | if (obj7) { | |
6026 | { | |
4d5c3d91 RD |
6027 | arg8 = wxString_in_helper(obj7); |
6028 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6029 | temp8 = true; |
d14a1e28 RD |
6030 | } |
6031 | } | |
6032 | { | |
e3b71cb8 | 6033 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 6035 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6036 | |
6037 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6038 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6039 | } |
15afbcd0 | 6040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 6041 | { |
3adfb63b | 6042 | if (temp5) delete arg5; |
d14a1e28 RD |
6043 | } |
6044 | { | |
6045 | if (temp8) | |
4d5c3d91 | 6046 | delete arg8; |
d14a1e28 RD |
6047 | } |
6048 | return resultobj; | |
6049 | fail: | |
6050 | { | |
3adfb63b | 6051 | if (temp5) delete arg5; |
d14a1e28 RD |
6052 | } |
6053 | { | |
6054 | if (temp8) | |
4d5c3d91 | 6055 | delete arg8; |
d14a1e28 RD |
6056 | } |
6057 | return NULL; | |
6058 | } | |
6059 | ||
6060 | ||
c32bde28 | 6061 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6062 | PyObject *resultobj; |
6063 | wxListBox *result; | |
6064 | char *kwnames[] = { | |
6065 | NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
6069 | { | |
e3b71cb8 | 6070 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6072 | result = (wxListBox *)new wxListBox(); | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6075 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6076 | } |
15afbcd0 | 6077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
6078 | return resultobj; |
6079 | fail: | |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
c32bde28 | 6084 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6085 | PyObject *resultobj; |
6086 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6088 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6089 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6090 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6091 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6092 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6093 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6094 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6095 | long arg7 = (long) 0 ; | |
6096 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6097 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6098 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6099 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6100 | bool result; |
6101 | wxPoint temp4 ; | |
6102 | wxSize temp5 ; | |
ae8162c8 RD |
6103 | bool temp6 = false ; |
6104 | bool temp9 = false ; | |
d14a1e28 RD |
6105 | PyObject * obj0 = 0 ; |
6106 | PyObject * obj1 = 0 ; | |
994141e6 | 6107 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6108 | PyObject * obj3 = 0 ; |
6109 | PyObject * obj4 = 0 ; | |
6110 | PyObject * obj5 = 0 ; | |
994141e6 | 6111 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6112 | PyObject * obj7 = 0 ; |
6113 | PyObject * obj8 = 0 ; | |
6114 | char *kwnames[] = { | |
6115 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6116 | }; | |
6117 | ||
248ed943 | 6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6123 | if (obj2) { |
c32bde28 | 6124 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
6125 | if (PyErr_Occurred()) SWIG_fail; |
6126 | } | |
d14a1e28 RD |
6127 | if (obj3) { |
6128 | { | |
6129 | arg4 = &temp4; | |
6130 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6131 | } | |
6132 | } | |
6133 | if (obj4) { | |
6134 | { | |
6135 | arg5 = &temp5; | |
6136 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6137 | } | |
6138 | } | |
6139 | if (obj5) { | |
6140 | { | |
4d5c3d91 RD |
6141 | if (! PySequence_Check(obj5)) { |
6142 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6143 | SWIG_fail; | |
6144 | } | |
6145 | arg6 = new wxArrayString; | |
ae8162c8 | 6146 | temp6 = true; |
4d5c3d91 RD |
6147 | int i, len=PySequence_Length(obj5); |
6148 | for (i=0; i<len; i++) { | |
6149 | PyObject* item = PySequence_GetItem(obj5, i); | |
6150 | #if wxUSE_UNICODE | |
6151 | PyObject* str = PyObject_Unicode(item); | |
6152 | #else | |
6153 | PyObject* str = PyObject_Str(item); | |
6154 | #endif | |
74a57fcd | 6155 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6156 | arg6->Add(Py2wxString(str)); |
6157 | Py_DECREF(item); | |
6158 | Py_DECREF(str); | |
6159 | } | |
d14a1e28 RD |
6160 | } |
6161 | } | |
994141e6 | 6162 | if (obj6) { |
c32bde28 | 6163 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 6164 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6165 | } |
d14a1e28 | 6166 | if (obj7) { |
15afbcd0 RD |
6167 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6169 | SWIG_fail; | |
4d5c3d91 | 6170 | if (arg8 == NULL) { |
15afbcd0 RD |
6171 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6172 | SWIG_fail; | |
d14a1e28 RD |
6173 | } |
6174 | } | |
6175 | if (obj8) { | |
6176 | { | |
4d5c3d91 RD |
6177 | arg9 = wxString_in_helper(obj8); |
6178 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 6179 | temp9 = true; |
d14a1e28 RD |
6180 | } |
6181 | } | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6184 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6185 | |
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
4f89f6a3 RD |
6189 | { |
6190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6191 | } | |
d14a1e28 | 6192 | { |
3adfb63b | 6193 | if (temp6) delete arg6; |
d14a1e28 RD |
6194 | } |
6195 | { | |
6196 | if (temp9) | |
4d5c3d91 | 6197 | delete arg9; |
d14a1e28 RD |
6198 | } |
6199 | return resultobj; | |
6200 | fail: | |
6201 | { | |
3adfb63b | 6202 | if (temp6) delete arg6; |
d14a1e28 RD |
6203 | } |
6204 | { | |
6205 | if (temp9) | |
4d5c3d91 | 6206 | delete arg9; |
d14a1e28 RD |
6207 | } |
6208 | return NULL; | |
6209 | } | |
6210 | ||
6211 | ||
c32bde28 | 6212 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6213 | PyObject *resultobj; |
6214 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6215 | wxString *arg2 = 0 ; | |
6216 | int arg3 ; | |
6217 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 6218 | bool temp2 = false ; |
d14a1e28 RD |
6219 | PyObject * obj0 = 0 ; |
6220 | PyObject * obj1 = 0 ; | |
994141e6 | 6221 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6222 | PyObject * obj3 = 0 ; |
6223 | char *kwnames[] = { | |
6224 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
6225 | }; | |
6226 | ||
994141e6 | 6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6230 | { |
6231 | arg2 = wxString_in_helper(obj1); | |
6232 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6233 | temp2 = true; |
d14a1e28 | 6234 | } |
c32bde28 | 6235 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6236 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6237 | if (obj3) { |
6238 | arg4 = obj3; | |
6239 | } | |
6240 | { | |
6241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6242 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
6243 | ||
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
6247 | Py_INCREF(Py_None); resultobj = Py_None; | |
6248 | { | |
6249 | if (temp2) | |
6250 | delete arg2; | |
6251 | } | |
6252 | return resultobj; | |
6253 | fail: | |
6254 | { | |
6255 | if (temp2) | |
6256 | delete arg2; | |
6257 | } | |
6258 | return NULL; | |
6259 | } | |
6260 | ||
6261 | ||
c32bde28 | 6262 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6263 | PyObject *resultobj; |
6264 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6265 | wxArrayString *arg2 = 0 ; | |
6266 | int arg3 ; | |
ae8162c8 | 6267 | bool temp2 = false ; |
d14a1e28 RD |
6268 | PyObject * obj0 = 0 ; |
6269 | PyObject * obj1 = 0 ; | |
994141e6 | 6270 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6271 | char *kwnames[] = { |
6272 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
6273 | }; | |
6274 | ||
994141e6 | 6275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6278 | { |
6279 | if (! PySequence_Check(obj1)) { | |
6280 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6281 | SWIG_fail; | |
6282 | } | |
6283 | arg2 = new wxArrayString; | |
ae8162c8 | 6284 | temp2 = true; |
d14a1e28 RD |
6285 | int i, len=PySequence_Length(obj1); |
6286 | for (i=0; i<len; i++) { | |
6287 | PyObject* item = PySequence_GetItem(obj1, i); | |
6288 | #if wxUSE_UNICODE | |
6289 | PyObject* str = PyObject_Unicode(item); | |
6290 | #else | |
6291 | PyObject* str = PyObject_Str(item); | |
6292 | #endif | |
74a57fcd | 6293 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6294 | arg2->Add(Py2wxString(str)); |
6295 | Py_DECREF(item); | |
6296 | Py_DECREF(str); | |
6297 | } | |
6298 | } | |
c32bde28 | 6299 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6300 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6301 | { |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
6304 | ||
6305 | wxPyEndAllowThreads(__tstate); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
6308 | Py_INCREF(Py_None); resultobj = Py_None; | |
6309 | { | |
3adfb63b | 6310 | if (temp2) delete arg2; |
d14a1e28 RD |
6311 | } |
6312 | return resultobj; | |
6313 | fail: | |
6314 | { | |
3adfb63b | 6315 | if (temp2) delete arg2; |
d14a1e28 RD |
6316 | } |
6317 | return NULL; | |
6318 | } | |
6319 | ||
6320 | ||
c32bde28 | 6321 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6322 | PyObject *resultobj; |
6323 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6324 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 6325 | bool temp2 = false ; |
d14a1e28 RD |
6326 | PyObject * obj0 = 0 ; |
6327 | PyObject * obj1 = 0 ; | |
6328 | char *kwnames[] = { | |
6329 | (char *) "self",(char *) "items", NULL | |
6330 | }; | |
6331 | ||
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6335 | { |
6336 | if (! PySequence_Check(obj1)) { | |
6337 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6338 | SWIG_fail; | |
6339 | } | |
6340 | arg2 = new wxArrayString; | |
ae8162c8 | 6341 | temp2 = true; |
d14a1e28 RD |
6342 | int i, len=PySequence_Length(obj1); |
6343 | for (i=0; i<len; i++) { | |
6344 | PyObject* item = PySequence_GetItem(obj1, i); | |
6345 | #if wxUSE_UNICODE | |
6346 | PyObject* str = PyObject_Unicode(item); | |
6347 | #else | |
6348 | PyObject* str = PyObject_Str(item); | |
6349 | #endif | |
74a57fcd | 6350 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6351 | arg2->Add(Py2wxString(str)); |
6352 | Py_DECREF(item); | |
6353 | Py_DECREF(str); | |
6354 | } | |
6355 | } | |
6356 | { | |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | (arg1)->Set((wxArrayString const &)*arg2); | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) SWIG_fail; | |
6362 | } | |
6363 | Py_INCREF(Py_None); resultobj = Py_None; | |
6364 | { | |
3adfb63b | 6365 | if (temp2) delete arg2; |
d14a1e28 RD |
6366 | } |
6367 | return resultobj; | |
6368 | fail: | |
6369 | { | |
3adfb63b | 6370 | if (temp2) delete arg2; |
d14a1e28 RD |
6371 | } |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
c32bde28 | 6376 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6377 | PyObject *resultobj; |
6378 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6379 | int arg2 ; | |
6380 | bool result; | |
6381 | PyObject * obj0 = 0 ; | |
994141e6 | 6382 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6383 | char *kwnames[] = { |
6384 | (char *) "self",(char *) "n", NULL | |
6385 | }; | |
6386 | ||
994141e6 | 6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6390 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6391 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6392 | { |
6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6394 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6395 | ||
6396 | wxPyEndAllowThreads(__tstate); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | } | |
4f89f6a3 RD |
6399 | { |
6400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6401 | } | |
d14a1e28 RD |
6402 | return resultobj; |
6403 | fail: | |
6404 | return NULL; | |
6405 | } | |
6406 | ||
6407 | ||
c32bde28 | 6408 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6409 | PyObject *resultobj; |
6410 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6411 | int arg2 ; | |
ae8162c8 | 6412 | bool arg3 = (bool) true ; |
d14a1e28 | 6413 | PyObject * obj0 = 0 ; |
994141e6 | 6414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6415 | PyObject * obj2 = 0 ; |
6416 | char *kwnames[] = { | |
6417 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6418 | }; | |
6419 | ||
994141e6 | 6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6423 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6424 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6425 | if (obj2) { |
c32bde28 | 6426 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6427 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6428 | } |
6429 | { | |
6430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6431 | (arg1)->SetSelection(arg2,arg3); | |
6432 | ||
6433 | wxPyEndAllowThreads(__tstate); | |
6434 | if (PyErr_Occurred()) SWIG_fail; | |
6435 | } | |
6436 | Py_INCREF(Py_None); resultobj = Py_None; | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
c32bde28 | 6443 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6444 | PyObject *resultobj; |
6445 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6446 | int arg2 ; | |
6447 | PyObject * obj0 = 0 ; | |
994141e6 | 6448 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6449 | char *kwnames[] = { |
6450 | (char *) "self",(char *) "n", NULL | |
6451 | }; | |
6452 | ||
994141e6 | 6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6456 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6457 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6458 | { |
6459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6460 | (arg1)->Select(arg2); | |
6461 | ||
6462 | wxPyEndAllowThreads(__tstate); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | } | |
6465 | Py_INCREF(Py_None); resultobj = Py_None; | |
6466 | return resultobj; | |
6467 | fail: | |
6468 | return NULL; | |
6469 | } | |
6470 | ||
6471 | ||
c32bde28 | 6472 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6473 | PyObject *resultobj; |
6474 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6475 | int arg2 ; | |
6476 | PyObject * obj0 = 0 ; | |
994141e6 | 6477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6478 | char *kwnames[] = { |
6479 | (char *) "self",(char *) "n", NULL | |
6480 | }; | |
6481 | ||
994141e6 | 6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6485 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6486 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6487 | { |
6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6489 | (arg1)->Deselect(arg2); | |
6490 | ||
6491 | wxPyEndAllowThreads(__tstate); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | Py_INCREF(Py_None); resultobj = Py_None; | |
6495 | return resultobj; | |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
c32bde28 | 6501 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6502 | PyObject *resultobj; |
6503 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6504 | int arg2 = (int) -1 ; | |
6505 | PyObject * obj0 = 0 ; | |
994141e6 | 6506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6507 | char *kwnames[] = { |
6508 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6509 | }; | |
6510 | ||
994141e6 | 6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6514 | if (obj1) { |
c32bde28 | 6515 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6516 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6517 | } |
d14a1e28 RD |
6518 | { |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | (arg1)->DeselectAll(arg2); | |
6521 | ||
6522 | wxPyEndAllowThreads(__tstate); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | Py_INCREF(Py_None); resultobj = Py_None; | |
6526 | return resultobj; | |
6527 | fail: | |
6528 | return NULL; | |
6529 | } | |
6530 | ||
6531 | ||
c32bde28 | 6532 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6533 | PyObject *resultobj; |
6534 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6535 | wxString *arg2 = 0 ; | |
ae8162c8 | 6536 | bool arg3 = (bool) true ; |
d14a1e28 | 6537 | bool result; |
ae8162c8 | 6538 | bool temp2 = false ; |
d14a1e28 RD |
6539 | PyObject * obj0 = 0 ; |
6540 | PyObject * obj1 = 0 ; | |
6541 | PyObject * obj2 = 0 ; | |
6542 | char *kwnames[] = { | |
6543 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6544 | }; | |
6545 | ||
6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6549 | { |
6550 | arg2 = wxString_in_helper(obj1); | |
6551 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6552 | temp2 = true; |
d14a1e28 RD |
6553 | } |
6554 | if (obj2) { | |
c32bde28 | 6555 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6556 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6557 | } |
6558 | { | |
6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6560 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6561 | ||
6562 | wxPyEndAllowThreads(__tstate); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | } | |
4f89f6a3 RD |
6565 | { |
6566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6567 | } | |
d14a1e28 RD |
6568 | { |
6569 | if (temp2) | |
6570 | delete arg2; | |
6571 | } | |
6572 | return resultobj; | |
6573 | fail: | |
6574 | { | |
6575 | if (temp2) | |
6576 | delete arg2; | |
6577 | } | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
c32bde28 | 6582 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6583 | PyObject *resultobj; |
6584 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6585 | PyObject *result; | |
6586 | PyObject * obj0 = 0 ; | |
6587 | char *kwnames[] = { | |
6588 | (char *) "self", NULL | |
6589 | }; | |
6590 | ||
6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6594 | { |
6595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6596 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6597 | ||
6598 | wxPyEndAllowThreads(__tstate); | |
6599 | if (PyErr_Occurred()) SWIG_fail; | |
6600 | } | |
6601 | resultobj = result; | |
6602 | return resultobj; | |
6603 | fail: | |
6604 | return NULL; | |
6605 | } | |
6606 | ||
6607 | ||
c32bde28 | 6608 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6609 | PyObject *resultobj; |
6610 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6611 | int arg2 ; | |
6612 | PyObject * obj0 = 0 ; | |
994141e6 | 6613 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6614 | char *kwnames[] = { |
6615 | (char *) "self",(char *) "n", NULL | |
6616 | }; | |
6617 | ||
994141e6 | 6618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6621 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6622 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6623 | { |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | (arg1)->SetFirstItem(arg2); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | } | |
6630 | Py_INCREF(Py_None); resultobj = Py_None; | |
6631 | return resultobj; | |
6632 | fail: | |
6633 | return NULL; | |
6634 | } | |
6635 | ||
6636 | ||
c32bde28 | 6637 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6638 | PyObject *resultobj; |
6639 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6640 | wxString *arg2 = 0 ; | |
ae8162c8 | 6641 | bool temp2 = false ; |
d14a1e28 RD |
6642 | PyObject * obj0 = 0 ; |
6643 | PyObject * obj1 = 0 ; | |
6644 | char *kwnames[] = { | |
6645 | (char *) "self",(char *) "s", NULL | |
6646 | }; | |
6647 | ||
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6651 | { |
6652 | arg2 = wxString_in_helper(obj1); | |
6653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6654 | temp2 = true; |
d14a1e28 RD |
6655 | } |
6656 | { | |
6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6658 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6659 | ||
6660 | wxPyEndAllowThreads(__tstate); | |
6661 | if (PyErr_Occurred()) SWIG_fail; | |
6662 | } | |
6663 | Py_INCREF(Py_None); resultobj = Py_None; | |
6664 | { | |
6665 | if (temp2) | |
6666 | delete arg2; | |
6667 | } | |
6668 | return resultobj; | |
6669 | fail: | |
6670 | { | |
6671 | if (temp2) | |
6672 | delete arg2; | |
6673 | } | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
c32bde28 | 6678 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6679 | PyObject *resultobj; |
6680 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6681 | int arg2 ; | |
6682 | PyObject * obj0 = 0 ; | |
994141e6 | 6683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6684 | char *kwnames[] = { |
6685 | (char *) "self",(char *) "n", NULL | |
6686 | }; | |
6687 | ||
994141e6 | 6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6691 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6692 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6693 | { |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | (arg1)->EnsureVisible(arg2); | |
6696 | ||
6697 | wxPyEndAllowThreads(__tstate); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | } | |
6700 | Py_INCREF(Py_None); resultobj = Py_None; | |
6701 | return resultobj; | |
6702 | fail: | |
6703 | return NULL; | |
6704 | } | |
6705 | ||
6706 | ||
c32bde28 | 6707 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6708 | PyObject *resultobj; |
6709 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6710 | wxString *arg2 = 0 ; | |
ae8162c8 | 6711 | bool temp2 = false ; |
d14a1e28 RD |
6712 | PyObject * obj0 = 0 ; |
6713 | PyObject * obj1 = 0 ; | |
6714 | char *kwnames[] = { | |
6715 | (char *) "self",(char *) "s", NULL | |
6716 | }; | |
6717 | ||
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6721 | { |
6722 | arg2 = wxString_in_helper(obj1); | |
6723 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6724 | temp2 = true; |
d14a1e28 RD |
6725 | } |
6726 | { | |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6728 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6729 | ||
6730 | wxPyEndAllowThreads(__tstate); | |
6731 | if (PyErr_Occurred()) SWIG_fail; | |
6732 | } | |
6733 | Py_INCREF(Py_None); resultobj = Py_None; | |
6734 | { | |
6735 | if (temp2) | |
6736 | delete arg2; | |
6737 | } | |
6738 | return resultobj; | |
6739 | fail: | |
6740 | { | |
6741 | if (temp2) | |
6742 | delete arg2; | |
6743 | } | |
6744 | return NULL; | |
6745 | } | |
6746 | ||
6747 | ||
c32bde28 | 6748 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6749 | PyObject *resultobj; |
6750 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6751 | bool result; | |
6752 | PyObject * obj0 = 0 ; | |
6753 | char *kwnames[] = { | |
6754 | (char *) "self", NULL | |
6755 | }; | |
6756 | ||
6757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6760 | { |
6761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6762 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6763 | ||
6764 | wxPyEndAllowThreads(__tstate); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
4f89f6a3 RD |
6767 | { |
6768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6769 | } | |
d14a1e28 RD |
6770 | return resultobj; |
6771 | fail: | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
c32bde28 | 6776 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6777 | PyObject *resultobj; |
6778 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6779 | int arg2 ; | |
6780 | wxColour *arg3 = 0 ; | |
6781 | wxColour temp3 ; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | PyObject * obj1 = 0 ; | |
6784 | PyObject * obj2 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6792 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6793 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6794 | { |
6795 | arg3 = &temp3; | |
6796 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6797 | } | |
6798 | { | |
6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6800 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6801 | ||
6802 | wxPyEndAllowThreads(__tstate); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
6804 | } | |
6805 | Py_INCREF(Py_None); resultobj = Py_None; | |
6806 | return resultobj; | |
6807 | fail: | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
c32bde28 | 6812 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6813 | PyObject *resultobj; |
6814 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6815 | int arg2 ; | |
6816 | wxColour *arg3 = 0 ; | |
6817 | wxColour temp3 ; | |
6818 | PyObject * obj0 = 0 ; | |
6819 | PyObject * obj1 = 0 ; | |
6820 | PyObject * obj2 = 0 ; | |
6821 | char *kwnames[] = { | |
6822 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6828 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6829 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6830 | { |
6831 | arg3 = &temp3; | |
6832 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6833 | } | |
6834 | { | |
6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6836 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6837 | ||
6838 | wxPyEndAllowThreads(__tstate); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
6841 | Py_INCREF(Py_None); resultobj = Py_None; | |
6842 | return resultobj; | |
6843 | fail: | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
c32bde28 | 6848 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6849 | PyObject *resultobj; |
6850 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6851 | int arg2 ; | |
6852 | wxFont *arg3 = 0 ; | |
6853 | PyObject * obj0 = 0 ; | |
6854 | PyObject * obj1 = 0 ; | |
6855 | PyObject * obj2 = 0 ; | |
6856 | char *kwnames[] = { | |
6857 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6858 | }; | |
6859 | ||
6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6863 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
6864 | if (PyErr_Occurred()) SWIG_fail; |
6865 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6867 | SWIG_fail; | |
c3eb6258 | 6868 | if (arg3 == NULL) { |
15afbcd0 RD |
6869 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6870 | SWIG_fail; | |
c3eb6258 RD |
6871 | } |
6872 | { | |
6873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6874 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6875 | ||
6876 | wxPyEndAllowThreads(__tstate); | |
6877 | if (PyErr_Occurred()) SWIG_fail; | |
6878 | } | |
6879 | Py_INCREF(Py_None); resultobj = Py_None; | |
6880 | return resultobj; | |
6881 | fail: | |
6882 | return NULL; | |
6883 | } | |
6884 | ||
6885 | ||
c32bde28 | 6886 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
6887 | PyObject *resultobj; |
6888 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6889 | wxVisualAttributes result; | |
6890 | PyObject * obj0 = 0 ; | |
6891 | char *kwnames[] = { | |
6892 | (char *) "variant", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6896 | if (obj0) { | |
c32bde28 | 6897 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
6898 | if (PyErr_Occurred()) SWIG_fail; |
6899 | } | |
6900 | { | |
110da5b0 | 6901 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6903 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6904 | ||
6905 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6906 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
6907 | } |
6908 | { | |
6909 | wxVisualAttributes * resultptr; | |
6910 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6912 | } | |
6913 | return resultobj; | |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
c32bde28 | 6919 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6920 | PyObject *obj; |
6921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6922 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6923 | Py_INCREF(obj); | |
6924 | return Py_BuildValue((char *)""); | |
6925 | } | |
c32bde28 | 6926 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6927 | PyObject *resultobj; |
6928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6929 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6930 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6931 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6932 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6933 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6934 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6935 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6936 | long arg6 = (long) 0 ; | |
6937 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6938 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6939 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6940 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6941 | wxCheckListBox *result; |
6942 | wxPoint temp3 ; | |
6943 | wxSize temp4 ; | |
ae8162c8 RD |
6944 | bool temp5 = false ; |
6945 | bool temp8 = false ; | |
d14a1e28 | 6946 | PyObject * obj0 = 0 ; |
994141e6 | 6947 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6948 | PyObject * obj2 = 0 ; |
6949 | PyObject * obj3 = 0 ; | |
6950 | PyObject * obj4 = 0 ; | |
994141e6 | 6951 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6952 | PyObject * obj6 = 0 ; |
6953 | PyObject * obj7 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6956 | }; | |
6957 | ||
248ed943 | 6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6961 | if (obj1) { |
c32bde28 | 6962 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
6963 | if (PyErr_Occurred()) SWIG_fail; |
6964 | } | |
d14a1e28 RD |
6965 | if (obj2) { |
6966 | { | |
6967 | arg3 = &temp3; | |
6968 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6969 | } | |
6970 | } | |
6971 | if (obj3) { | |
6972 | { | |
6973 | arg4 = &temp4; | |
6974 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6975 | } | |
6976 | } | |
6977 | if (obj4) { | |
6978 | { | |
4d5c3d91 RD |
6979 | if (! PySequence_Check(obj4)) { |
6980 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6981 | SWIG_fail; | |
6982 | } | |
6983 | arg5 = new wxArrayString; | |
ae8162c8 | 6984 | temp5 = true; |
4d5c3d91 RD |
6985 | int i, len=PySequence_Length(obj4); |
6986 | for (i=0; i<len; i++) { | |
6987 | PyObject* item = PySequence_GetItem(obj4, i); | |
6988 | #if wxUSE_UNICODE | |
6989 | PyObject* str = PyObject_Unicode(item); | |
6990 | #else | |
6991 | PyObject* str = PyObject_Str(item); | |
6992 | #endif | |
74a57fcd | 6993 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6994 | arg5->Add(Py2wxString(str)); |
6995 | Py_DECREF(item); | |
6996 | Py_DECREF(str); | |
6997 | } | |
d14a1e28 RD |
6998 | } |
6999 | } | |
994141e6 | 7000 | if (obj5) { |
c32bde28 | 7001 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 7002 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7003 | } |
d14a1e28 | 7004 | if (obj6) { |
15afbcd0 RD |
7005 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7006 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7007 | SWIG_fail; | |
4d5c3d91 | 7008 | if (arg7 == NULL) { |
15afbcd0 RD |
7009 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7010 | SWIG_fail; | |
d14a1e28 RD |
7011 | } |
7012 | } | |
7013 | if (obj7) { | |
7014 | { | |
4d5c3d91 RD |
7015 | arg8 = wxString_in_helper(obj7); |
7016 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7017 | temp8 = true; |
d14a1e28 RD |
7018 | } |
7019 | } | |
7020 | { | |
e3b71cb8 | 7021 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 7022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 7023 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
7024 | |
7025 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7026 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7027 | } |
15afbcd0 | 7028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 7029 | { |
3adfb63b | 7030 | if (temp5) delete arg5; |
d14a1e28 RD |
7031 | } |
7032 | { | |
7033 | if (temp8) | |
4d5c3d91 | 7034 | delete arg8; |
d14a1e28 RD |
7035 | } |
7036 | return resultobj; | |
7037 | fail: | |
7038 | { | |
3adfb63b | 7039 | if (temp5) delete arg5; |
d14a1e28 RD |
7040 | } |
7041 | { | |
7042 | if (temp8) | |
4d5c3d91 | 7043 | delete arg8; |
d14a1e28 RD |
7044 | } |
7045 | return NULL; | |
7046 | } | |
7047 | ||
7048 | ||
c32bde28 | 7049 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7050 | PyObject *resultobj; |
7051 | wxCheckListBox *result; | |
7052 | char *kwnames[] = { | |
7053 | NULL | |
7054 | }; | |
7055 | ||
7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
7057 | { | |
e3b71cb8 | 7058 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7060 | result = (wxCheckListBox *)new wxCheckListBox(); | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7063 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7064 | } |
15afbcd0 | 7065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
7066 | return resultobj; |
7067 | fail: | |
7068 | return NULL; | |
7069 | } | |
7070 | ||
7071 | ||
c32bde28 | 7072 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7073 | PyObject *resultobj; |
7074 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7075 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7076 | int arg3 = (int) -1 ; |
d14a1e28 RD |
7077 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7078 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7079 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7080 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
7081 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
7082 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7083 | long arg7 = (long) 0 ; | |
7084 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7085 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7086 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7087 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
7088 | bool result; |
7089 | wxPoint temp4 ; | |
7090 | wxSize temp5 ; | |
ae8162c8 RD |
7091 | bool temp6 = false ; |
7092 | bool temp9 = false ; | |
d14a1e28 RD |
7093 | PyObject * obj0 = 0 ; |
7094 | PyObject * obj1 = 0 ; | |
994141e6 | 7095 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7096 | PyObject * obj3 = 0 ; |
7097 | PyObject * obj4 = 0 ; | |
7098 | PyObject * obj5 = 0 ; | |
994141e6 | 7099 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7100 | PyObject * obj7 = 0 ; |
7101 | PyObject * obj8 = 0 ; | |
7102 | char *kwnames[] = { | |
7103 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7104 | }; | |
7105 | ||
248ed943 | 7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
7107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 7111 | if (obj2) { |
c32bde28 | 7112 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
7113 | if (PyErr_Occurred()) SWIG_fail; |
7114 | } | |
d14a1e28 RD |
7115 | if (obj3) { |
7116 | { | |
7117 | arg4 = &temp4; | |
7118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7119 | } | |
7120 | } | |
7121 | if (obj4) { | |
7122 | { | |
7123 | arg5 = &temp5; | |
7124 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7125 | } | |
7126 | } | |
7127 | if (obj5) { | |
7128 | { | |
4d5c3d91 RD |
7129 | if (! PySequence_Check(obj5)) { |
7130 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7131 | SWIG_fail; | |
7132 | } | |
7133 | arg6 = new wxArrayString; | |
ae8162c8 | 7134 | temp6 = true; |
4d5c3d91 RD |
7135 | int i, len=PySequence_Length(obj5); |
7136 | for (i=0; i<len; i++) { | |
7137 | PyObject* item = PySequence_GetItem(obj5, i); | |
7138 | #if wxUSE_UNICODE | |
7139 | PyObject* str = PyObject_Unicode(item); | |
7140 | #else | |
7141 | PyObject* str = PyObject_Str(item); | |
7142 | #endif | |
74a57fcd | 7143 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
7144 | arg6->Add(Py2wxString(str)); |
7145 | Py_DECREF(item); | |
7146 | Py_DECREF(str); | |
7147 | } | |
d14a1e28 RD |
7148 | } |
7149 | } | |
994141e6 | 7150 | if (obj6) { |
c32bde28 | 7151 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 7152 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7153 | } |
d14a1e28 | 7154 | if (obj7) { |
15afbcd0 RD |
7155 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
7156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7157 | SWIG_fail; | |
4d5c3d91 | 7158 | if (arg8 == NULL) { |
15afbcd0 RD |
7159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7160 | SWIG_fail; | |
d14a1e28 RD |
7161 | } |
7162 | } | |
7163 | if (obj8) { | |
7164 | { | |
4d5c3d91 RD |
7165 | arg9 = wxString_in_helper(obj8); |
7166 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7167 | temp9 = true; |
d14a1e28 RD |
7168 | } |
7169 | } | |
7170 | { | |
7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 7172 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
7173 | |
7174 | wxPyEndAllowThreads(__tstate); | |
7175 | if (PyErr_Occurred()) SWIG_fail; | |
7176 | } | |
4f89f6a3 RD |
7177 | { |
7178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7179 | } | |
d14a1e28 | 7180 | { |
3adfb63b | 7181 | if (temp6) delete arg6; |
d14a1e28 RD |
7182 | } |
7183 | { | |
7184 | if (temp9) | |
4d5c3d91 | 7185 | delete arg9; |
d14a1e28 RD |
7186 | } |
7187 | return resultobj; | |
7188 | fail: | |
7189 | { | |
3adfb63b | 7190 | if (temp6) delete arg6; |
d14a1e28 RD |
7191 | } |
7192 | { | |
7193 | if (temp9) | |
4d5c3d91 | 7194 | delete arg9; |
d14a1e28 RD |
7195 | } |
7196 | return NULL; | |
7197 | } | |
7198 | ||
7199 | ||
c32bde28 | 7200 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7201 | PyObject *resultobj; |
7202 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7203 | int arg2 ; | |
7204 | bool result; | |
7205 | PyObject * obj0 = 0 ; | |
994141e6 | 7206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7207 | char *kwnames[] = { |
7208 | (char *) "self",(char *) "index", NULL | |
7209 | }; | |
7210 | ||
994141e6 | 7211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7214 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7216 | { |
7217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7218 | result = (bool)(arg1)->IsChecked(arg2); | |
7219 | ||
7220 | wxPyEndAllowThreads(__tstate); | |
7221 | if (PyErr_Occurred()) SWIG_fail; | |
7222 | } | |
4f89f6a3 RD |
7223 | { |
7224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7225 | } | |
d14a1e28 RD |
7226 | return resultobj; |
7227 | fail: | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
c32bde28 | 7232 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7233 | PyObject *resultobj; |
7234 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7235 | int arg2 ; | |
ae8162c8 | 7236 | int arg3 = (int) true ; |
d14a1e28 | 7237 | PyObject * obj0 = 0 ; |
994141e6 RD |
7238 | PyObject * obj1 = 0 ; |
7239 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7240 | char *kwnames[] = { |
7241 | (char *) "self",(char *) "index",(char *) "check", NULL | |
7242 | }; | |
7243 | ||
994141e6 | 7244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7247 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7248 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7249 | if (obj2) { |
c32bde28 | 7250 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7251 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7252 | } |
d14a1e28 RD |
7253 | { |
7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7255 | (arg1)->Check(arg2,arg3); | |
7256 | ||
7257 | wxPyEndAllowThreads(__tstate); | |
7258 | if (PyErr_Occurred()) SWIG_fail; | |
7259 | } | |
7260 | Py_INCREF(Py_None); resultobj = Py_None; | |
7261 | return resultobj; | |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
c32bde28 | 7267 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7268 | PyObject *resultobj; |
7269 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7270 | int result; | |
7271 | PyObject * obj0 = 0 ; | |
7272 | char *kwnames[] = { | |
7273 | (char *) "self", NULL | |
7274 | }; | |
7275 | ||
7276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7279 | { |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = (int)(arg1)->GetItemHeight(); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
c32bde28 | 7286 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7287 | return resultobj; |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
c32bde28 | 7293 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7294 | PyObject *resultobj; |
7295 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7296 | wxPoint *arg2 = 0 ; | |
7297 | int result; | |
7298 | wxPoint temp2 ; | |
7299 | PyObject * obj0 = 0 ; | |
7300 | PyObject * obj1 = 0 ; | |
7301 | char *kwnames[] = { | |
7302 | (char *) "self",(char *) "pt", NULL | |
7303 | }; | |
7304 | ||
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7308 | { |
7309 | arg2 = &temp2; | |
7310 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7311 | } | |
7312 | { | |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
7315 | ||
7316 | wxPyEndAllowThreads(__tstate); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
c32bde28 | 7319 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7320 | return resultobj; |
7321 | fail: | |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
c32bde28 | 7326 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7327 | PyObject *resultobj; |
7328 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
7329 | int arg2 ; |
7330 | int arg3 ; | |
d14a1e28 RD |
7331 | int result; |
7332 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7333 | PyObject * obj1 = 0 ; |
7334 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7335 | char *kwnames[] = { |
7336 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7337 | }; | |
7338 | ||
994141e6 | 7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7342 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7343 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7344 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7345 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7346 | { |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
c32bde28 | 7353 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7354 | return resultobj; |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
c32bde28 | 7360 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7361 | PyObject *obj; |
7362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7363 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
7364 | Py_INCREF(obj); | |
7365 | return Py_BuildValue((char *)""); | |
7366 | } | |
c32bde28 | 7367 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
7368 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
7369 | return 1; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7374 | PyObject *pyobj; | |
7375 | ||
7376 | { | |
7377 | #if wxUSE_UNICODE | |
7378 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7379 | #else | |
7380 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7381 | #endif | |
7382 | } | |
7383 | return pyobj; | |
7384 | } | |
7385 | ||
7386 | ||
c32bde28 | 7387 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7388 | PyObject *resultobj; |
908b74cd RD |
7389 | wxColour const &arg1_defvalue = wxNullColour ; |
7390 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
7391 | wxColour const &arg2_defvalue = wxNullColour ; |
7392 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7393 | wxFont const &arg3_defvalue = wxNullFont ; | |
7394 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7395 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7396 | wxTextAttr *result; | |
7397 | wxColour temp1 ; | |
7398 | wxColour temp2 ; | |
7399 | PyObject * obj0 = 0 ; | |
7400 | PyObject * obj1 = 0 ; | |
7401 | PyObject * obj2 = 0 ; | |
994141e6 | 7402 | PyObject * obj3 = 0 ; |
908b74cd RD |
7403 | char *kwnames[] = { |
7404 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7405 | }; | |
d14a1e28 | 7406 | |
908b74cd RD |
7407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7408 | if (obj0) { | |
7409 | { | |
7410 | arg1 = &temp1; | |
7411 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7412 | } | |
d14a1e28 RD |
7413 | } |
7414 | if (obj1) { | |
7415 | { | |
7416 | arg2 = &temp2; | |
7417 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7418 | } | |
7419 | } | |
7420 | if (obj2) { | |
15afbcd0 RD |
7421 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
7422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7423 | SWIG_fail; | |
d14a1e28 | 7424 | if (arg3 == NULL) { |
15afbcd0 RD |
7425 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7426 | SWIG_fail; | |
d14a1e28 RD |
7427 | } |
7428 | } | |
994141e6 | 7429 | if (obj3) { |
c32bde28 | 7430 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 7431 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7432 | } |
d14a1e28 RD |
7433 | { |
7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7435 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7436 | ||
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
15afbcd0 | 7440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7441 | return resultobj; |
7442 | fail: | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
c32bde28 | 7447 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7448 | PyObject *resultobj; |
7449 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7450 | PyObject * obj0 = 0 ; | |
7451 | char *kwnames[] = { | |
7452 | (char *) "self", NULL | |
7453 | }; | |
7454 | ||
994141e6 | 7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7458 | { |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7460 | delete arg1; |
d14a1e28 RD |
7461 | |
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | Py_INCREF(Py_None); resultobj = Py_None; | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
c32bde28 | 7472 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
7473 | PyObject *resultobj; |
7474 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7475 | PyObject * obj0 = 0 ; | |
7476 | char *kwnames[] = { | |
7477 | (char *) "self", NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7483 | { |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7485 | (arg1)->Init(); | |
7486 | ||
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | Py_INCREF(Py_None); resultobj = Py_None; | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
c32bde28 | 7497 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7498 | PyObject *resultobj; |
7499 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7500 | wxColour *arg2 = 0 ; | |
7501 | wxColour temp2 ; | |
7502 | PyObject * obj0 = 0 ; | |
7503 | PyObject * obj1 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self",(char *) "colText", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7511 | { |
7512 | arg2 = &temp2; | |
7513 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7514 | } | |
7515 | { | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
7522 | Py_INCREF(Py_None); resultobj = Py_None; | |
7523 | return resultobj; | |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
c32bde28 | 7529 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7530 | PyObject *resultobj; |
7531 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7532 | wxColour *arg2 = 0 ; | |
7533 | wxColour temp2 ; | |
7534 | PyObject * obj0 = 0 ; | |
7535 | PyObject * obj1 = 0 ; | |
7536 | char *kwnames[] = { | |
7537 | (char *) "self",(char *) "colBack", NULL | |
7538 | }; | |
7539 | ||
7540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7543 | { |
7544 | arg2 = &temp2; | |
7545 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7546 | } | |
7547 | { | |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | Py_INCREF(Py_None); resultobj = Py_None; | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
c32bde28 | 7561 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7562 | PyObject *resultobj; |
7563 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7564 | wxFont *arg2 = 0 ; | |
7565 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7566 | PyObject * obj0 = 0 ; | |
7567 | PyObject * obj1 = 0 ; | |
994141e6 | 7568 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7569 | char *kwnames[] = { |
7570 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7571 | }; | |
7572 | ||
994141e6 | 7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7577 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7578 | SWIG_fail; | |
d14a1e28 | 7579 | if (arg2 == NULL) { |
15afbcd0 RD |
7580 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7581 | SWIG_fail; | |
d14a1e28 | 7582 | } |
994141e6 | 7583 | if (obj2) { |
c32bde28 | 7584 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 7585 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7586 | } |
d14a1e28 RD |
7587 | { |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
c32bde28 | 7601 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7602 | PyObject *resultobj; |
7603 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7604 | int arg2 ; | |
7605 | PyObject * obj0 = 0 ; | |
994141e6 | 7606 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7607 | char *kwnames[] = { |
7608 | (char *) "self",(char *) "alignment", NULL | |
7609 | }; | |
7610 | ||
994141e6 | 7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7614 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7615 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7616 | { |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7619 | ||
7620 | wxPyEndAllowThreads(__tstate); | |
7621 | if (PyErr_Occurred()) SWIG_fail; | |
7622 | } | |
7623 | Py_INCREF(Py_None); resultobj = Py_None; | |
7624 | return resultobj; | |
7625 | fail: | |
7626 | return NULL; | |
7627 | } | |
7628 | ||
7629 | ||
c32bde28 | 7630 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7631 | PyObject *resultobj; |
7632 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7633 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 7634 | bool temp2 = false ; |
d14a1e28 RD |
7635 | PyObject * obj0 = 0 ; |
7636 | PyObject * obj1 = 0 ; | |
7637 | char *kwnames[] = { | |
7638 | (char *) "self",(char *) "tabs", NULL | |
7639 | }; | |
7640 | ||
7641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7644 | { |
7645 | if (! PySequence_Check(obj1)) { | |
7646 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7647 | SWIG_fail; | |
7648 | } | |
7649 | arg2 = new wxArrayInt; | |
ae8162c8 | 7650 | temp2 = true; |
d14a1e28 RD |
7651 | int i, len=PySequence_Length(obj1); |
7652 | for (i=0; i<len; i++) { | |
7653 | PyObject* item = PySequence_GetItem(obj1, i); | |
7654 | PyObject* number = PyNumber_Int(item); | |
7655 | arg2->Add(PyInt_AS_LONG(number)); | |
7656 | Py_DECREF(item); | |
7657 | Py_DECREF(number); | |
7658 | } | |
7659 | } | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
7667 | Py_INCREF(Py_None); resultobj = Py_None; | |
7668 | { | |
3adfb63b | 7669 | if (temp2) delete arg2; |
d14a1e28 RD |
7670 | } |
7671 | return resultobj; | |
7672 | fail: | |
7673 | { | |
3adfb63b | 7674 | if (temp2) delete arg2; |
d14a1e28 RD |
7675 | } |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
c32bde28 | 7680 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7681 | PyObject *resultobj; |
7682 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7683 | int arg2 ; | |
5e4ca4a8 | 7684 | int arg3 = (int) 0 ; |
d14a1e28 | 7685 | PyObject * obj0 = 0 ; |
994141e6 | 7686 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7687 | PyObject * obj2 = 0 ; |
d14a1e28 | 7688 | char *kwnames[] = { |
5e4ca4a8 | 7689 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7690 | }; |
7691 | ||
5e4ca4a8 | 7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7695 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7696 | if (PyErr_Occurred()) SWIG_fail; |
5e4ca4a8 | 7697 | if (obj2) { |
c32bde28 | 7698 | arg3 = (int)SWIG_As_int(obj2); |
5e4ca4a8 RD |
7699 | if (PyErr_Occurred()) SWIG_fail; |
7700 | } | |
d14a1e28 RD |
7701 | { |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7703 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7704 | |
7705 | wxPyEndAllowThreads(__tstate); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
7708 | Py_INCREF(Py_None); resultobj = Py_None; | |
7709 | return resultobj; | |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
c32bde28 | 7715 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7716 | PyObject *resultobj; |
7717 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7718 | int arg2 ; | |
7719 | PyObject * obj0 = 0 ; | |
994141e6 | 7720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7721 | char *kwnames[] = { |
7722 | (char *) "self",(char *) "indent", NULL | |
7723 | }; | |
7724 | ||
994141e6 | 7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7728 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7729 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7730 | { |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | (arg1)->SetRightIndent(arg2); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
c32bde28 | 7744 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7745 | PyObject *resultobj; |
7746 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7747 | long arg2 ; | |
7748 | PyObject * obj0 = 0 ; | |
994141e6 | 7749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7750 | char *kwnames[] = { |
7751 | (char *) "self",(char *) "flags", NULL | |
7752 | }; | |
7753 | ||
994141e6 | 7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7757 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7758 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7759 | { |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | (arg1)->SetFlags(arg2); | |
7762 | ||
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
7766 | Py_INCREF(Py_None); resultobj = Py_None; | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
c32bde28 | 7773 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7774 | PyObject *resultobj; |
7775 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7776 | bool result; | |
7777 | PyObject * obj0 = 0 ; | |
7778 | char *kwnames[] = { | |
7779 | (char *) "self", NULL | |
7780 | }; | |
7781 | ||
7782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7785 | { |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7787 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
4f89f6a3 RD |
7792 | { |
7793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7794 | } | |
d14a1e28 RD |
7795 | return resultobj; |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
c32bde28 | 7801 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7802 | PyObject *resultobj; |
7803 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7804 | bool result; | |
7805 | PyObject * obj0 = 0 ; | |
7806 | char *kwnames[] = { | |
7807 | (char *) "self", NULL | |
7808 | }; | |
7809 | ||
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7813 | { |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
4f89f6a3 RD |
7820 | { |
7821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7822 | } | |
d14a1e28 RD |
7823 | return resultobj; |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
c32bde28 | 7829 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7830 | PyObject *resultobj; |
7831 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7832 | bool result; | |
7833 | PyObject * obj0 = 0 ; | |
7834 | char *kwnames[] = { | |
7835 | (char *) "self", NULL | |
7836 | }; | |
7837 | ||
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7841 | { |
7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7843 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7844 | ||
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
4f89f6a3 RD |
7848 | { |
7849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7850 | } | |
d14a1e28 RD |
7851 | return resultobj; |
7852 | fail: | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
c32bde28 | 7857 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7858 | PyObject *resultobj; |
7859 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7860 | bool result; | |
7861 | PyObject * obj0 = 0 ; | |
7862 | char *kwnames[] = { | |
7863 | (char *) "self", NULL | |
7864 | }; | |
7865 | ||
7866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7869 | { |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
4f89f6a3 RD |
7876 | { |
7877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7878 | } | |
d14a1e28 RD |
7879 | return resultobj; |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
c32bde28 | 7885 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7886 | PyObject *resultobj; |
7887 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7888 | bool result; | |
7889 | PyObject * obj0 = 0 ; | |
7890 | char *kwnames[] = { | |
7891 | (char *) "self", NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7897 | { |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
4f89f6a3 RD |
7904 | { |
7905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7906 | } | |
d14a1e28 RD |
7907 | return resultobj; |
7908 | fail: | |
7909 | return NULL; | |
7910 | } | |
7911 | ||
7912 | ||
c32bde28 | 7913 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7914 | PyObject *resultobj; |
7915 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7916 | bool result; | |
7917 | PyObject * obj0 = 0 ; | |
7918 | char *kwnames[] = { | |
7919 | (char *) "self", NULL | |
7920 | }; | |
7921 | ||
7922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7925 | { |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
4f89f6a3 RD |
7932 | { |
7933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7934 | } | |
d14a1e28 RD |
7935 | return resultobj; |
7936 | fail: | |
7937 | return NULL; | |
7938 | } | |
7939 | ||
7940 | ||
c32bde28 | 7941 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7942 | PyObject *resultobj; |
7943 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7944 | bool result; | |
7945 | PyObject * obj0 = 0 ; | |
7946 | char *kwnames[] = { | |
7947 | (char *) "self", NULL | |
7948 | }; | |
7949 | ||
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7953 | { |
7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7955 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7956 | ||
7957 | wxPyEndAllowThreads(__tstate); | |
7958 | if (PyErr_Occurred()) SWIG_fail; | |
7959 | } | |
4f89f6a3 RD |
7960 | { |
7961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7962 | } | |
d14a1e28 RD |
7963 | return resultobj; |
7964 | fail: | |
7965 | return NULL; | |
7966 | } | |
7967 | ||
7968 | ||
c32bde28 | 7969 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7970 | PyObject *resultobj; |
7971 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7972 | long arg2 ; | |
7973 | bool result; | |
7974 | PyObject * obj0 = 0 ; | |
994141e6 | 7975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7976 | char *kwnames[] = { |
7977 | (char *) "self",(char *) "flag", NULL | |
7978 | }; | |
7979 | ||
994141e6 | 7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7983 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7984 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7985 | { |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7988 | ||
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
4f89f6a3 RD |
7992 | { |
7993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7994 | } | |
d14a1e28 RD |
7995 | return resultobj; |
7996 | fail: | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
c32bde28 | 8001 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8002 | PyObject *resultobj; |
8003 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8004 | wxColour *result; | |
8005 | PyObject * obj0 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8013 | { |
8014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8015 | { | |
8016 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
8017 | result = (wxColour *) &_result_ref; | |
8018 | } | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
15afbcd0 | 8023 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
8024 | return resultobj; |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
c32bde28 | 8030 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8031 | PyObject *resultobj; |
8032 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8033 | wxColour *result; | |
8034 | PyObject * obj0 = 0 ; | |
8035 | char *kwnames[] = { | |
8036 | (char *) "self", NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8042 | { |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | { | |
8045 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
8046 | result = (wxColour *) &_result_ref; | |
8047 | } | |
8048 | ||
8049 | wxPyEndAllowThreads(__tstate); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
15afbcd0 | 8052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
8053 | return resultobj; |
8054 | fail: | |
8055 | return NULL; | |
8056 | } | |
8057 | ||
8058 | ||
c32bde28 | 8059 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8060 | PyObject *resultobj; |
8061 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8062 | wxFont *result; | |
8063 | PyObject * obj0 = 0 ; | |
8064 | char *kwnames[] = { | |
8065 | (char *) "self", NULL | |
8066 | }; | |
8067 | ||
8068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8071 | { |
8072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8073 | { | |
8074 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
8075 | result = (wxFont *) &_result_ref; | |
8076 | } | |
8077 | ||
8078 | wxPyEndAllowThreads(__tstate); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | } | |
4276dc52 RD |
8081 | { |
8082 | wxFont* resultptr = new wxFont(*result); | |
8083 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
8084 | } | |
d14a1e28 RD |
8085 | return resultobj; |
8086 | fail: | |
8087 | return NULL; | |
8088 | } | |
8089 | ||
8090 | ||
c32bde28 | 8091 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8092 | PyObject *resultobj; |
8093 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8094 | int result; | |
8095 | PyObject * obj0 = 0 ; | |
8096 | char *kwnames[] = { | |
8097 | (char *) "self", NULL | |
8098 | }; | |
8099 | ||
8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8103 | { |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
c32bde28 | 8110 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8111 | return resultobj; |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
c32bde28 | 8117 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8118 | PyObject *resultobj; |
8119 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8120 | wxArrayInt *result; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | char *kwnames[] = { | |
8123 | (char *) "self", NULL | |
8124 | }; | |
8125 | ||
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8129 | { |
8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8131 | { | |
8132 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
8133 | result = (wxArrayInt *) &_result_ref; | |
8134 | } | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | { | |
8140 | resultobj = PyList_New(0); | |
8141 | size_t idx; | |
8142 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
8143 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
8144 | PyList_Append(resultobj, val); | |
8145 | Py_DECREF(val); | |
8146 | } | |
8147 | } | |
8148 | return resultobj; | |
8149 | fail: | |
8150 | return NULL; | |
8151 | } | |
8152 | ||
8153 | ||
c32bde28 | 8154 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8155 | PyObject *resultobj; |
8156 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8157 | long result; | |
8158 | PyObject * obj0 = 0 ; | |
8159 | char *kwnames[] = { | |
8160 | (char *) "self", NULL | |
8161 | }; | |
8162 | ||
8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8166 | { |
8167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8168 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
8169 | ||
8170 | wxPyEndAllowThreads(__tstate); | |
8171 | if (PyErr_Occurred()) SWIG_fail; | |
8172 | } | |
c32bde28 | 8173 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8174 | return resultobj; |
8175 | fail: | |
8176 | return NULL; | |
8177 | } | |
8178 | ||
8179 | ||
c32bde28 | 8180 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
5e4ca4a8 RD |
8181 | PyObject *resultobj; |
8182 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8183 | long result; | |
8184 | PyObject * obj0 = 0 ; | |
8185 | char *kwnames[] = { | |
8186 | (char *) "self", NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
8190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
8191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8192 | { | |
8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8194 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
8195 | ||
8196 | wxPyEndAllowThreads(__tstate); | |
8197 | if (PyErr_Occurred()) SWIG_fail; | |
8198 | } | |
c32bde28 | 8199 | resultobj = SWIG_From_long((long)result); |
5e4ca4a8 RD |
8200 | return resultobj; |
8201 | fail: | |
8202 | return NULL; | |
8203 | } | |
8204 | ||
8205 | ||
c32bde28 | 8206 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8207 | PyObject *resultobj; |
8208 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8209 | long result; | |
8210 | PyObject * obj0 = 0 ; | |
8211 | char *kwnames[] = { | |
8212 | (char *) "self", NULL | |
8213 | }; | |
8214 | ||
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8218 | { |
8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8220 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
8221 | ||
8222 | wxPyEndAllowThreads(__tstate); | |
8223 | if (PyErr_Occurred()) SWIG_fail; | |
8224 | } | |
c32bde28 | 8225 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8226 | return resultobj; |
8227 | fail: | |
8228 | return NULL; | |
8229 | } | |
8230 | ||
8231 | ||
c32bde28 | 8232 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8233 | PyObject *resultobj; |
8234 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8235 | long result; | |
8236 | PyObject * obj0 = 0 ; | |
8237 | char *kwnames[] = { | |
8238 | (char *) "self", NULL | |
8239 | }; | |
8240 | ||
8241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8244 | { |
8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8246 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
8247 | ||
8248 | wxPyEndAllowThreads(__tstate); | |
8249 | if (PyErr_Occurred()) SWIG_fail; | |
8250 | } | |
c32bde28 | 8251 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8252 | return resultobj; |
8253 | fail: | |
8254 | return NULL; | |
8255 | } | |
8256 | ||
8257 | ||
c32bde28 | 8258 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8259 | PyObject *resultobj; |
8260 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8261 | bool result; | |
8262 | PyObject * obj0 = 0 ; | |
8263 | char *kwnames[] = { | |
8264 | (char *) "self", NULL | |
8265 | }; | |
8266 | ||
8267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8270 | { |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
4f89f6a3 RD |
8277 | { |
8278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8279 | } | |
d14a1e28 RD |
8280 | return resultobj; |
8281 | fail: | |
8282 | return NULL; | |
8283 | } | |
8284 | ||
8285 | ||
c32bde28 | 8286 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8287 | PyObject *resultobj; |
8288 | wxTextAttr *arg1 = 0 ; | |
8289 | wxTextAttr *arg2 = 0 ; | |
8290 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
8291 | wxTextAttr result; | |
8292 | PyObject * obj0 = 0 ; | |
8293 | PyObject * obj1 = 0 ; | |
8294 | PyObject * obj2 = 0 ; | |
8295 | char *kwnames[] = { | |
8296 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
8297 | }; | |
8298 | ||
8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8302 | SWIG_fail; | |
d14a1e28 | 8303 | if (arg1 == NULL) { |
15afbcd0 RD |
8304 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8305 | SWIG_fail; | |
d14a1e28 | 8306 | } |
15afbcd0 RD |
8307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
8308 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8309 | SWIG_fail; | |
d14a1e28 | 8310 | if (arg2 == NULL) { |
15afbcd0 RD |
8311 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8312 | SWIG_fail; | |
d14a1e28 | 8313 | } |
15afbcd0 RD |
8314 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
8315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8316 | { |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | } | |
8323 | { | |
8324 | wxTextAttr * resultptr; | |
8325 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 8326 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8327 | } |
8328 | return resultobj; | |
8329 | fail: | |
8330 | return NULL; | |
8331 | } | |
8332 | ||
8333 | ||
c32bde28 | 8334 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8335 | PyObject *obj; |
8336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8337 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
8338 | Py_INCREF(obj); | |
8339 | return Py_BuildValue((char *)""); | |
8340 | } | |
c32bde28 | 8341 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8342 | PyObject *resultobj; |
8343 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8344 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8345 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8346 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8347 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8348 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8349 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8350 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8351 | long arg6 = (long) 0 ; | |
8352 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8353 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8354 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
8355 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8356 | wxTextCtrl *result; | |
ae8162c8 | 8357 | bool temp3 = false ; |
d14a1e28 RD |
8358 | wxPoint temp4 ; |
8359 | wxSize temp5 ; | |
ae8162c8 | 8360 | bool temp8 = false ; |
d14a1e28 | 8361 | PyObject * obj0 = 0 ; |
994141e6 | 8362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8363 | PyObject * obj2 = 0 ; |
8364 | PyObject * obj3 = 0 ; | |
8365 | PyObject * obj4 = 0 ; | |
994141e6 | 8366 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8367 | PyObject * obj6 = 0 ; |
8368 | PyObject * obj7 = 0 ; | |
8369 | char *kwnames[] = { | |
8370 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8371 | }; | |
8372 | ||
248ed943 | 8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
8374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8376 | if (obj1) { |
c32bde28 | 8377 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
8378 | if (PyErr_Occurred()) SWIG_fail; |
8379 | } | |
d14a1e28 RD |
8380 | if (obj2) { |
8381 | { | |
8382 | arg3 = wxString_in_helper(obj2); | |
8383 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8384 | temp3 = true; |
d14a1e28 RD |
8385 | } |
8386 | } | |
8387 | if (obj3) { | |
8388 | { | |
8389 | arg4 = &temp4; | |
8390 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8391 | } | |
8392 | } | |
8393 | if (obj4) { | |
8394 | { | |
8395 | arg5 = &temp5; | |
8396 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8397 | } | |
8398 | } | |
994141e6 | 8399 | if (obj5) { |
c32bde28 | 8400 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 8401 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8402 | } |
d14a1e28 | 8403 | if (obj6) { |
15afbcd0 RD |
8404 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
8405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8406 | SWIG_fail; | |
d14a1e28 | 8407 | if (arg7 == NULL) { |
15afbcd0 RD |
8408 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8409 | SWIG_fail; | |
d14a1e28 RD |
8410 | } |
8411 | } | |
8412 | if (obj7) { | |
8413 | { | |
8414 | arg8 = wxString_in_helper(obj7); | |
8415 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8416 | temp8 = true; |
d14a1e28 RD |
8417 | } |
8418 | } | |
8419 | { | |
e3b71cb8 | 8420 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8422 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8425 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8426 | } |
b0f7404b | 8427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8428 | { |
8429 | if (temp3) | |
8430 | delete arg3; | |
8431 | } | |
8432 | { | |
8433 | if (temp8) | |
8434 | delete arg8; | |
8435 | } | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | { | |
8439 | if (temp3) | |
8440 | delete arg3; | |
8441 | } | |
8442 | { | |
8443 | if (temp8) | |
8444 | delete arg8; | |
8445 | } | |
8446 | return NULL; | |
8447 | } | |
8448 | ||
8449 | ||
c32bde28 | 8450 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8451 | PyObject *resultobj; |
8452 | wxTextCtrl *result; | |
8453 | char *kwnames[] = { | |
8454 | NULL | |
8455 | }; | |
8456 | ||
8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8458 | { | |
e3b71cb8 | 8459 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8461 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8462 | ||
8463 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8464 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8465 | } |
b0f7404b | 8466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8467 | return resultobj; |
8468 | fail: | |
8469 | return NULL; | |
8470 | } | |
8471 | ||
8472 | ||
c32bde28 | 8473 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8474 | PyObject *resultobj; |
8475 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8476 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8477 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8478 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8479 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8480 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8481 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8482 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8483 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8484 | long arg7 = (long) 0 ; | |
8485 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8486 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8487 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8488 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8489 | bool result; | |
ae8162c8 | 8490 | bool temp4 = false ; |
d14a1e28 RD |
8491 | wxPoint temp5 ; |
8492 | wxSize temp6 ; | |
ae8162c8 | 8493 | bool temp9 = false ; |
d14a1e28 RD |
8494 | PyObject * obj0 = 0 ; |
8495 | PyObject * obj1 = 0 ; | |
994141e6 | 8496 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8497 | PyObject * obj3 = 0 ; |
8498 | PyObject * obj4 = 0 ; | |
8499 | PyObject * obj5 = 0 ; | |
994141e6 | 8500 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8501 | PyObject * obj7 = 0 ; |
8502 | PyObject * obj8 = 0 ; | |
8503 | char *kwnames[] = { | |
8504 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8505 | }; | |
8506 | ||
248ed943 | 8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8512 | if (obj2) { |
c32bde28 | 8513 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
8514 | if (PyErr_Occurred()) SWIG_fail; |
8515 | } | |
d14a1e28 RD |
8516 | if (obj3) { |
8517 | { | |
8518 | arg4 = wxString_in_helper(obj3); | |
8519 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 8520 | temp4 = true; |
d14a1e28 RD |
8521 | } |
8522 | } | |
8523 | if (obj4) { | |
8524 | { | |
8525 | arg5 = &temp5; | |
8526 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8527 | } | |
8528 | } | |
8529 | if (obj5) { | |
8530 | { | |
8531 | arg6 = &temp6; | |
8532 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8533 | } | |
8534 | } | |
994141e6 | 8535 | if (obj6) { |
c32bde28 | 8536 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 8537 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8538 | } |
d14a1e28 | 8539 | if (obj7) { |
15afbcd0 RD |
8540 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8541 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8542 | SWIG_fail; | |
d14a1e28 | 8543 | if (arg8 == NULL) { |
15afbcd0 RD |
8544 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8545 | SWIG_fail; | |
d14a1e28 RD |
8546 | } |
8547 | } | |
8548 | if (obj8) { | |
8549 | { | |
8550 | arg9 = wxString_in_helper(obj8); | |
8551 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8552 | temp9 = true; |
d14a1e28 RD |
8553 | } |
8554 | } | |
8555 | { | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
4f89f6a3 RD |
8562 | { |
8563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8564 | } | |
d14a1e28 RD |
8565 | { |
8566 | if (temp4) | |
8567 | delete arg4; | |
8568 | } | |
8569 | { | |
8570 | if (temp9) | |
8571 | delete arg9; | |
8572 | } | |
8573 | return resultobj; | |
8574 | fail: | |
8575 | { | |
8576 | if (temp4) | |
8577 | delete arg4; | |
8578 | } | |
8579 | { | |
8580 | if (temp9) | |
8581 | delete arg9; | |
8582 | } | |
8583 | return NULL; | |
8584 | } | |
8585 | ||
8586 | ||
c32bde28 | 8587 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8588 | PyObject *resultobj; |
8589 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8590 | wxString result; | |
8591 | PyObject * obj0 = 0 ; | |
8592 | char *kwnames[] = { | |
8593 | (char *) "self", NULL | |
8594 | }; | |
8595 | ||
8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8599 | { |
8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8601 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8602 | ||
8603 | wxPyEndAllowThreads(__tstate); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | { | |
8607 | #if wxUSE_UNICODE | |
8608 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8609 | #else | |
8610 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8611 | #endif | |
8612 | } | |
8613 | return resultobj; | |
8614 | fail: | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
c32bde28 | 8619 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8620 | PyObject *resultobj; |
8621 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8622 | wxString *arg2 = 0 ; | |
ae8162c8 | 8623 | bool temp2 = false ; |
d14a1e28 RD |
8624 | PyObject * obj0 = 0 ; |
8625 | PyObject * obj1 = 0 ; | |
8626 | char *kwnames[] = { | |
8627 | (char *) "self",(char *) "value", NULL | |
8628 | }; | |
8629 | ||
8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8633 | { |
8634 | arg2 = wxString_in_helper(obj1); | |
8635 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8636 | temp2 = true; |
d14a1e28 RD |
8637 | } |
8638 | { | |
8639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8640 | (arg1)->SetValue((wxString const &)*arg2); | |
8641 | ||
8642 | wxPyEndAllowThreads(__tstate); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
8644 | } | |
8645 | Py_INCREF(Py_None); resultobj = Py_None; | |
8646 | { | |
8647 | if (temp2) | |
8648 | delete arg2; | |
8649 | } | |
8650 | return resultobj; | |
8651 | fail: | |
8652 | { | |
8653 | if (temp2) | |
8654 | delete arg2; | |
8655 | } | |
8656 | return NULL; | |
8657 | } | |
8658 | ||
8659 | ||
c32bde28 | 8660 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8661 | PyObject *resultobj; |
8662 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8663 | long arg2 ; | |
8664 | long arg3 ; | |
8665 | wxString result; | |
8666 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8667 | PyObject * obj1 = 0 ; |
8668 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8669 | char *kwnames[] = { |
8670 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8671 | }; | |
8672 | ||
994141e6 | 8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8676 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8677 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8678 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8679 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8680 | { |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | { | |
8688 | #if wxUSE_UNICODE | |
8689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8690 | #else | |
8691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8692 | #endif | |
8693 | } | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | return NULL; | |
8697 | } | |
8698 | ||
8699 | ||
c32bde28 | 8700 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8701 | PyObject *resultobj; |
8702 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8703 | long arg2 ; | |
8704 | int result; | |
8705 | PyObject * obj0 = 0 ; | |
994141e6 | 8706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8707 | char *kwnames[] = { |
8708 | (char *) "self",(char *) "lineNo", NULL | |
8709 | }; | |
8710 | ||
994141e6 | 8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8714 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8715 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8716 | { |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
c32bde28 | 8723 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8724 | return resultobj; |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
c32bde28 | 8730 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8731 | PyObject *resultobj; |
8732 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8733 | long arg2 ; | |
8734 | wxString result; | |
8735 | PyObject * obj0 = 0 ; | |
994141e6 | 8736 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8737 | char *kwnames[] = { |
8738 | (char *) "self",(char *) "lineNo", NULL | |
8739 | }; | |
8740 | ||
994141e6 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8744 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8745 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8746 | { |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | { | |
8754 | #if wxUSE_UNICODE | |
8755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8756 | #else | |
8757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8758 | #endif | |
8759 | } | |
8760 | return resultobj; | |
8761 | fail: | |
8762 | return NULL; | |
8763 | } | |
8764 | ||
8765 | ||
c32bde28 | 8766 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8767 | PyObject *resultobj; |
8768 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8769 | int result; | |
8770 | PyObject * obj0 = 0 ; | |
8771 | char *kwnames[] = { | |
8772 | (char *) "self", NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8778 | { |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
c32bde28 | 8785 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8786 | return resultobj; |
8787 | fail: | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
c32bde28 | 8792 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8793 | PyObject *resultobj; |
8794 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8795 | bool result; | |
8796 | PyObject * obj0 = 0 ; | |
8797 | char *kwnames[] = { | |
8798 | (char *) "self", NULL | |
8799 | }; | |
8800 | ||
8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8804 | { |
8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8806 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8807 | ||
8808 | wxPyEndAllowThreads(__tstate); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
4f89f6a3 RD |
8811 | { |
8812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8813 | } | |
d14a1e28 RD |
8814 | return resultobj; |
8815 | fail: | |
8816 | return NULL; | |
8817 | } | |
8818 | ||
8819 | ||
c32bde28 | 8820 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8821 | PyObject *resultobj; |
8822 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8823 | bool result; | |
8824 | PyObject * obj0 = 0 ; | |
8825 | char *kwnames[] = { | |
8826 | (char *) "self", NULL | |
8827 | }; | |
8828 | ||
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8832 | { |
8833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8834 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8835 | ||
8836 | wxPyEndAllowThreads(__tstate); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
4f89f6a3 RD |
8839 | { |
8840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8841 | } | |
d14a1e28 RD |
8842 | return resultobj; |
8843 | fail: | |
8844 | return NULL; | |
8845 | } | |
8846 | ||
8847 | ||
c32bde28 | 8848 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8849 | PyObject *resultobj; |
8850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8851 | bool result; | |
8852 | PyObject * obj0 = 0 ; | |
8853 | char *kwnames[] = { | |
8854 | (char *) "self", NULL | |
8855 | }; | |
8856 | ||
8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8860 | { |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) SWIG_fail; | |
8866 | } | |
4f89f6a3 RD |
8867 | { |
8868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8869 | } | |
d14a1e28 RD |
8870 | return resultobj; |
8871 | fail: | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
c32bde28 | 8876 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8877 | PyObject *resultobj; |
8878 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8879 | bool result; | |
8880 | PyObject * obj0 = 0 ; | |
8881 | char *kwnames[] = { | |
8882 | (char *) "self", NULL | |
8883 | }; | |
8884 | ||
8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8890 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8891 | ||
8892 | wxPyEndAllowThreads(__tstate); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | } | |
4f89f6a3 RD |
8895 | { |
8896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8897 | } | |
d14a1e28 RD |
8898 | return resultobj; |
8899 | fail: | |
8900 | return NULL; | |
8901 | } | |
8902 | ||
8903 | ||
c32bde28 | 8904 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8905 | PyObject *resultobj; |
8906 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8907 | long *arg2 = (long *) 0 ; | |
8908 | long *arg3 = (long *) 0 ; | |
8909 | long temp2 ; | |
c32bde28 | 8910 | int res2 = 0 ; |
d14a1e28 | 8911 | long temp3 ; |
c32bde28 | 8912 | int res3 = 0 ; |
d14a1e28 RD |
8913 | PyObject * obj0 = 0 ; |
8914 | char *kwnames[] = { | |
8915 | (char *) "self", NULL | |
8916 | }; | |
8917 | ||
c32bde28 RD |
8918 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8919 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8923 | { |
8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8925 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8926 | ||
8927 | wxPyEndAllowThreads(__tstate); | |
8928 | if (PyErr_Occurred()) SWIG_fail; | |
8929 | } | |
8930 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
8931 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8932 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
8933 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8934 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
8935 | return resultobj; |
8936 | fail: | |
8937 | return NULL; | |
8938 | } | |
8939 | ||
8940 | ||
c32bde28 | 8941 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8942 | PyObject *resultobj; |
8943 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8944 | wxString result; | |
8945 | PyObject * obj0 = 0 ; | |
8946 | char *kwnames[] = { | |
8947 | (char *) "self", NULL | |
8948 | }; | |
8949 | ||
8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8953 | { |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8956 | ||
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
8960 | { | |
8961 | #if wxUSE_UNICODE | |
8962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8963 | #else | |
8964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8965 | #endif | |
8966 | } | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
c32bde28 | 8973 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8974 | PyObject *resultobj; |
8975 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8984 | { |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8986 | (arg1)->Clear(); | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | } | |
8991 | Py_INCREF(Py_None); resultobj = Py_None; | |
8992 | return resultobj; | |
8993 | fail: | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
c32bde28 | 8998 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8999 | PyObject *resultobj; |
9000 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9001 | long arg2 ; | |
9002 | long arg3 ; | |
9003 | wxString *arg4 = 0 ; | |
ae8162c8 | 9004 | bool temp4 = false ; |
d14a1e28 | 9005 | PyObject * obj0 = 0 ; |
994141e6 RD |
9006 | PyObject * obj1 = 0 ; |
9007 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9008 | PyObject * obj3 = 0 ; |
9009 | char *kwnames[] = { | |
9010 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
9011 | }; | |
9012 | ||
994141e6 | 9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9016 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9017 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9018 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9019 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9020 | { |
9021 | arg4 = wxString_in_helper(obj3); | |
9022 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9023 | temp4 = true; |
d14a1e28 RD |
9024 | } |
9025 | { | |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
9028 | ||
9029 | wxPyEndAllowThreads(__tstate); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
9031 | } | |
9032 | Py_INCREF(Py_None); resultobj = Py_None; | |
9033 | { | |
9034 | if (temp4) | |
9035 | delete arg4; | |
9036 | } | |
9037 | return resultobj; | |
9038 | fail: | |
9039 | { | |
9040 | if (temp4) | |
9041 | delete arg4; | |
9042 | } | |
9043 | return NULL; | |
9044 | } | |
9045 | ||
9046 | ||
c32bde28 | 9047 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9048 | PyObject *resultobj; |
9049 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9050 | long arg2 ; | |
9051 | long arg3 ; | |
9052 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9053 | PyObject * obj1 = 0 ; |
9054 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9055 | char *kwnames[] = { |
9056 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9057 | }; | |
9058 | ||
994141e6 | 9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9062 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9063 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9064 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9065 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9066 | { |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | (arg1)->Remove(arg2,arg3); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9081 | PyObject *resultobj; |
9082 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9083 | wxString *arg2 = 0 ; | |
9084 | bool result; | |
ae8162c8 | 9085 | bool temp2 = false ; |
d14a1e28 RD |
9086 | PyObject * obj0 = 0 ; |
9087 | PyObject * obj1 = 0 ; | |
9088 | char *kwnames[] = { | |
9089 | (char *) "self",(char *) "file", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9095 | { |
9096 | arg2 = wxString_in_helper(obj1); | |
9097 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9098 | temp2 = true; |
d14a1e28 RD |
9099 | } |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
4f89f6a3 RD |
9107 | { |
9108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9109 | } | |
d14a1e28 RD |
9110 | { |
9111 | if (temp2) | |
9112 | delete arg2; | |
9113 | } | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | { | |
9117 | if (temp2) | |
9118 | delete arg2; | |
9119 | } | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
c32bde28 | 9124 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9125 | PyObject *resultobj; |
9126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9127 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9128 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9129 | bool result; | |
ae8162c8 | 9130 | bool temp2 = false ; |
d14a1e28 RD |
9131 | PyObject * obj0 = 0 ; |
9132 | PyObject * obj1 = 0 ; | |
9133 | char *kwnames[] = { | |
9134 | (char *) "self",(char *) "file", NULL | |
9135 | }; | |
9136 | ||
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9140 | if (obj1) { |
9141 | { | |
9142 | arg2 = wxString_in_helper(obj1); | |
9143 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9144 | temp2 = true; |
d14a1e28 RD |
9145 | } |
9146 | } | |
9147 | { | |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
4f89f6a3 RD |
9154 | { |
9155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9156 | } | |
d14a1e28 RD |
9157 | { |
9158 | if (temp2) | |
9159 | delete arg2; | |
9160 | } | |
9161 | return resultobj; | |
9162 | fail: | |
9163 | { | |
9164 | if (temp2) | |
9165 | delete arg2; | |
9166 | } | |
9167 | return NULL; | |
9168 | } | |
9169 | ||
9170 | ||
c32bde28 | 9171 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9172 | PyObject *resultobj; |
9173 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9182 | { |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | (arg1)->MarkDirty(); | |
9185 | ||
9186 | wxPyEndAllowThreads(__tstate); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | } | |
9189 | Py_INCREF(Py_None); resultobj = Py_None; | |
9190 | return resultobj; | |
9191 | fail: | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
c32bde28 | 9196 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9197 | PyObject *resultobj; |
9198 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9199 | PyObject * obj0 = 0 ; | |
9200 | char *kwnames[] = { | |
9201 | (char *) "self", NULL | |
9202 | }; | |
9203 | ||
9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9207 | { |
9208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9209 | (arg1)->DiscardEdits(); | |
9210 | ||
9211 | wxPyEndAllowThreads(__tstate); | |
9212 | if (PyErr_Occurred()) SWIG_fail; | |
9213 | } | |
9214 | Py_INCREF(Py_None); resultobj = Py_None; | |
9215 | return resultobj; | |
9216 | fail: | |
9217 | return NULL; | |
9218 | } | |
9219 | ||
9220 | ||
c32bde28 | 9221 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9222 | PyObject *resultobj; |
9223 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9224 | unsigned long arg2 ; | |
9225 | PyObject * obj0 = 0 ; | |
9226 | PyObject * obj1 = 0 ; | |
9227 | char *kwnames[] = { | |
9228 | (char *) "self",(char *) "len", NULL | |
9229 | }; | |
9230 | ||
9231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9234 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 9235 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9236 | { |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | (arg1)->SetMaxLength(arg2); | |
9239 | ||
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
9243 | Py_INCREF(Py_None); resultobj = Py_None; | |
9244 | return resultobj; | |
9245 | fail: | |
9246 | return NULL; | |
9247 | } | |
9248 | ||
9249 | ||
c32bde28 | 9250 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9251 | PyObject *resultobj; |
9252 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9253 | wxString *arg2 = 0 ; | |
ae8162c8 | 9254 | bool temp2 = false ; |
d14a1e28 RD |
9255 | PyObject * obj0 = 0 ; |
9256 | PyObject * obj1 = 0 ; | |
9257 | char *kwnames[] = { | |
9258 | (char *) "self",(char *) "text", NULL | |
9259 | }; | |
9260 | ||
9261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9264 | { |
9265 | arg2 = wxString_in_helper(obj1); | |
9266 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9267 | temp2 = true; |
d14a1e28 RD |
9268 | } |
9269 | { | |
9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9271 | (arg1)->WriteText((wxString const &)*arg2); | |
9272 | ||
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | Py_INCREF(Py_None); resultobj = Py_None; | |
9277 | { | |
9278 | if (temp2) | |
9279 | delete arg2; | |
9280 | } | |
9281 | return resultobj; | |
9282 | fail: | |
9283 | { | |
9284 | if (temp2) | |
9285 | delete arg2; | |
9286 | } | |
9287 | return NULL; | |
9288 | } | |
9289 | ||
9290 | ||
c32bde28 | 9291 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9292 | PyObject *resultobj; |
9293 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9294 | wxString *arg2 = 0 ; | |
ae8162c8 | 9295 | bool temp2 = false ; |
d14a1e28 RD |
9296 | PyObject * obj0 = 0 ; |
9297 | PyObject * obj1 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self",(char *) "text", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9305 | { |
9306 | arg2 = wxString_in_helper(obj1); | |
9307 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9308 | temp2 = true; |
d14a1e28 RD |
9309 | } |
9310 | { | |
9311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9312 | (arg1)->AppendText((wxString const &)*arg2); | |
9313 | ||
9314 | wxPyEndAllowThreads(__tstate); | |
9315 | if (PyErr_Occurred()) SWIG_fail; | |
9316 | } | |
9317 | Py_INCREF(Py_None); resultobj = Py_None; | |
9318 | { | |
9319 | if (temp2) | |
9320 | delete arg2; | |
9321 | } | |
9322 | return resultobj; | |
9323 | fail: | |
9324 | { | |
9325 | if (temp2) | |
9326 | delete arg2; | |
9327 | } | |
9328 | return NULL; | |
9329 | } | |
9330 | ||
9331 | ||
c32bde28 | 9332 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9333 | PyObject *resultobj; |
9334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9335 | wxKeyEvent *arg2 = 0 ; | |
9336 | bool result; | |
9337 | PyObject * obj0 = 0 ; | |
9338 | PyObject * obj1 = 0 ; | |
9339 | char *kwnames[] = { | |
9340 | (char *) "self",(char *) "event", NULL | |
9341 | }; | |
9342 | ||
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
9347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9348 | SWIG_fail; | |
d14a1e28 | 9349 | if (arg2 == NULL) { |
15afbcd0 RD |
9350 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9351 | SWIG_fail; | |
d14a1e28 RD |
9352 | } |
9353 | { | |
9354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9355 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
9356 | ||
9357 | wxPyEndAllowThreads(__tstate); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
4f89f6a3 RD |
9360 | { |
9361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9362 | } | |
d14a1e28 RD |
9363 | return resultobj; |
9364 | fail: | |
9365 | return NULL; | |
9366 | } | |
9367 | ||
9368 | ||
c32bde28 | 9369 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9370 | PyObject *resultobj; |
9371 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9372 | long arg2 ; | |
9373 | long arg3 ; | |
9374 | wxTextAttr *arg4 = 0 ; | |
9375 | bool result; | |
9376 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9377 | PyObject * obj1 = 0 ; |
9378 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9379 | PyObject * obj3 = 0 ; |
9380 | char *kwnames[] = { | |
9381 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9382 | }; | |
9383 | ||
994141e6 | 9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9387 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9388 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9389 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 RD |
9390 | if (PyErr_Occurred()) SWIG_fail; |
9391 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9393 | SWIG_fail; | |
d14a1e28 | 9394 | if (arg4 == NULL) { |
15afbcd0 RD |
9395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9396 | SWIG_fail; | |
d14a1e28 RD |
9397 | } |
9398 | { | |
9399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9400 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9401 | ||
9402 | wxPyEndAllowThreads(__tstate); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | } | |
4f89f6a3 RD |
9405 | { |
9406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9407 | } | |
d14a1e28 RD |
9408 | return resultobj; |
9409 | fail: | |
9410 | return NULL; | |
9411 | } | |
9412 | ||
9413 | ||
c32bde28 | 9414 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9415 | PyObject *resultobj; |
9416 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9417 | long arg2 ; | |
9418 | wxTextAttr *arg3 = 0 ; | |
9419 | bool result; | |
9420 | PyObject * obj0 = 0 ; | |
994141e6 | 9421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9422 | PyObject * obj2 = 0 ; |
9423 | char *kwnames[] = { | |
9424 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9425 | }; | |
9426 | ||
994141e6 | 9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9430 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
9431 | if (PyErr_Occurred()) SWIG_fail; |
9432 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9434 | SWIG_fail; | |
d14a1e28 | 9435 | if (arg3 == NULL) { |
15afbcd0 RD |
9436 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9437 | SWIG_fail; | |
d14a1e28 RD |
9438 | } |
9439 | { | |
9440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9441 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9442 | ||
9443 | wxPyEndAllowThreads(__tstate); | |
9444 | if (PyErr_Occurred()) SWIG_fail; | |
9445 | } | |
4f89f6a3 RD |
9446 | { |
9447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9448 | } | |
d14a1e28 RD |
9449 | return resultobj; |
9450 | fail: | |
9451 | return NULL; | |
9452 | } | |
9453 | ||
9454 | ||
c32bde28 | 9455 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9456 | PyObject *resultobj; |
9457 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9458 | wxTextAttr *arg2 = 0 ; | |
9459 | bool result; | |
9460 | PyObject * obj0 = 0 ; | |
9461 | PyObject * obj1 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self",(char *) "style", NULL | |
9464 | }; | |
9465 | ||
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9471 | SWIG_fail; | |
d14a1e28 | 9472 | if (arg2 == NULL) { |
15afbcd0 RD |
9473 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9474 | SWIG_fail; | |
d14a1e28 RD |
9475 | } |
9476 | { | |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
4f89f6a3 RD |
9483 | { |
9484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9485 | } | |
d14a1e28 RD |
9486 | return resultobj; |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
c32bde28 | 9492 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9493 | PyObject *resultobj; |
9494 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9495 | wxTextAttr *result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | { | |
9507 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9508 | result = (wxTextAttr *) &_result_ref; | |
9509 | } | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
15afbcd0 | 9514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9515 | return resultobj; |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
c32bde28 | 9521 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9522 | PyObject *resultobj; |
9523 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9524 | long arg2 ; | |
9525 | long arg3 ; | |
9526 | long result; | |
9527 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9528 | PyObject * obj1 = 0 ; |
9529 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9530 | char *kwnames[] = { |
9531 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9532 | }; | |
9533 | ||
994141e6 | 9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9537 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9538 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9539 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9540 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9541 | { |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
c32bde28 | 9548 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9549 | return resultobj; |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
c32bde28 | 9555 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9556 | PyObject *resultobj; |
9557 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9558 | long arg2 ; | |
9559 | long *arg3 = (long *) 0 ; | |
9560 | long *arg4 = (long *) 0 ; | |
9561 | long temp3 ; | |
c32bde28 | 9562 | int res3 = 0 ; |
d14a1e28 | 9563 | long temp4 ; |
c32bde28 | 9564 | int res4 = 0 ; |
d14a1e28 | 9565 | PyObject * obj0 = 0 ; |
994141e6 | 9566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9567 | char *kwnames[] = { |
9568 | (char *) "self",(char *) "pos", NULL | |
9569 | }; | |
9570 | ||
c32bde28 RD |
9571 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9572 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9576 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9577 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9578 | { |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
9586 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
9587 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9588 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9589 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
9590 | return resultobj; |
9591 | fail: | |
9592 | return NULL; | |
9593 | } | |
9594 | ||
9595 | ||
c32bde28 | 9596 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9597 | PyObject *resultobj; |
9598 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9599 | long arg2 ; | |
9600 | PyObject * obj0 = 0 ; | |
994141e6 | 9601 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9602 | char *kwnames[] = { |
9603 | (char *) "self",(char *) "pos", NULL | |
9604 | }; | |
9605 | ||
994141e6 | 9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9609 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9610 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9611 | { |
9612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9613 | (arg1)->ShowPosition(arg2); | |
9614 | ||
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | Py_INCREF(Py_None); resultobj = Py_None; | |
9619 | return resultobj; | |
9620 | fail: | |
9621 | return NULL; | |
9622 | } | |
9623 | ||
9624 | ||
c32bde28 | 9625 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
9626 | PyObject *resultobj; |
9627 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9628 | wxPoint *arg2 = 0 ; | |
9629 | long *arg3 = (long *) 0 ; | |
9630 | long *arg4 = (long *) 0 ; | |
9631 | int result; | |
9632 | wxPoint temp2 ; | |
9633 | long temp3 ; | |
c32bde28 | 9634 | int res3 = 0 ; |
4d5c3d91 | 9635 | long temp4 ; |
c32bde28 | 9636 | int res4 = 0 ; |
4d5c3d91 RD |
9637 | PyObject * obj0 = 0 ; |
9638 | PyObject * obj1 = 0 ; | |
9639 | char *kwnames[] = { | |
9640 | (char *) "self",(char *) "pt", NULL | |
9641 | }; | |
9642 | ||
c32bde28 RD |
9643 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9644 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9648 | { |
9649 | arg2 = &temp2; | |
9650 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9651 | } | |
9652 | { | |
9653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9654 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9655 | ||
9656 | wxPyEndAllowThreads(__tstate); | |
9657 | if (PyErr_Occurred()) SWIG_fail; | |
9658 | } | |
c32bde28 RD |
9659 | resultobj = SWIG_From_int((int)result); |
9660 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9661 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9662 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9663 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
9664 | return resultobj; |
9665 | fail: | |
9666 | return NULL; | |
9667 | } | |
9668 | ||
9669 | ||
c32bde28 | 9670 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
9671 | PyObject *resultobj; |
9672 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9673 | wxPoint *arg2 = 0 ; | |
9674 | long *arg3 = (long *) 0 ; | |
9675 | int result; | |
9676 | wxPoint temp2 ; | |
9677 | long temp3 ; | |
c32bde28 | 9678 | int res3 = 0 ; |
4896ac9e RD |
9679 | PyObject * obj0 = 0 ; |
9680 | PyObject * obj1 = 0 ; | |
9681 | char *kwnames[] = { | |
9682 | (char *) "self",(char *) "pt", NULL | |
9683 | }; | |
9684 | ||
c32bde28 | 9685 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e RD |
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
9687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9689 | { | |
9690 | arg2 = &temp2; | |
9691 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9692 | } | |
9693 | { | |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9696 | ||
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
c32bde28 RD |
9700 | resultobj = SWIG_From_int((int)result); |
9701 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9702 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
9703 | return resultobj; |
9704 | fail: | |
9705 | return NULL; | |
9706 | } | |
9707 | ||
9708 | ||
c32bde28 | 9709 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9710 | PyObject *resultobj; |
9711 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "self", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9720 | { |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | (arg1)->Copy(); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
9727 | Py_INCREF(Py_None); resultobj = Py_None; | |
9728 | return resultobj; | |
9729 | fail: | |
9730 | return NULL; | |
9731 | } | |
9732 | ||
9733 | ||
c32bde28 | 9734 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9735 | PyObject *resultobj; |
9736 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | char *kwnames[] = { | |
9739 | (char *) "self", NULL | |
9740 | }; | |
9741 | ||
9742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9745 | { |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9747 | (arg1)->Cut(); | |
9748 | ||
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
9752 | Py_INCREF(Py_None); resultobj = Py_None; | |
9753 | return resultobj; | |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
c32bde28 | 9759 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9760 | PyObject *resultobj; |
9761 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9762 | PyObject * obj0 = 0 ; | |
9763 | char *kwnames[] = { | |
9764 | (char *) "self", NULL | |
9765 | }; | |
9766 | ||
9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9770 | { |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | (arg1)->Paste(); | |
9773 | ||
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | Py_INCREF(Py_None); resultobj = Py_None; | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | return NULL; | |
9781 | } | |
9782 | ||
9783 | ||
c32bde28 | 9784 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9785 | PyObject *resultobj; |
9786 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9787 | bool result; | |
9788 | PyObject * obj0 = 0 ; | |
9789 | char *kwnames[] = { | |
9790 | (char *) "self", NULL | |
9791 | }; | |
9792 | ||
9793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9796 | { |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9799 | ||
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) SWIG_fail; | |
9802 | } | |
4f89f6a3 RD |
9803 | { |
9804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9805 | } | |
d14a1e28 RD |
9806 | return resultobj; |
9807 | fail: | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
c32bde28 | 9812 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9813 | PyObject *resultobj; |
9814 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9815 | bool result; | |
9816 | PyObject * obj0 = 0 ; | |
9817 | char *kwnames[] = { | |
9818 | (char *) "self", NULL | |
9819 | }; | |
9820 | ||
9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9824 | { |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
4f89f6a3 RD |
9831 | { |
9832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9833 | } | |
d14a1e28 RD |
9834 | return resultobj; |
9835 | fail: | |
9836 | return NULL; | |
9837 | } | |
9838 | ||
9839 | ||
c32bde28 | 9840 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9841 | PyObject *resultobj; |
9842 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9843 | bool result; | |
9844 | PyObject * obj0 = 0 ; | |
9845 | char *kwnames[] = { | |
9846 | (char *) "self", NULL | |
9847 | }; | |
9848 | ||
9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9852 | { |
9853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9854 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9855 | ||
9856 | wxPyEndAllowThreads(__tstate); | |
9857 | if (PyErr_Occurred()) SWIG_fail; | |
9858 | } | |
4f89f6a3 RD |
9859 | { |
9860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9861 | } | |
d14a1e28 RD |
9862 | return resultobj; |
9863 | fail: | |
9864 | return NULL; | |
9865 | } | |
9866 | ||
9867 | ||
c32bde28 | 9868 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9869 | PyObject *resultobj; |
9870 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9879 | { |
9880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9881 | (arg1)->Undo(); | |
9882 | ||
9883 | wxPyEndAllowThreads(__tstate); | |
9884 | if (PyErr_Occurred()) SWIG_fail; | |
9885 | } | |
9886 | Py_INCREF(Py_None); resultobj = Py_None; | |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
9890 | } | |
9891 | ||
9892 | ||
c32bde28 | 9893 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9894 | PyObject *resultobj; |
9895 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9896 | PyObject * obj0 = 0 ; | |
9897 | char *kwnames[] = { | |
9898 | (char *) "self", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9904 | { |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9906 | (arg1)->Redo(); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | Py_INCREF(Py_None); resultobj = Py_None; | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
c32bde28 | 9918 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9919 | PyObject *resultobj; |
9920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9921 | bool result; | |
9922 | PyObject * obj0 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9930 | { |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | } | |
4f89f6a3 RD |
9937 | { |
9938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9939 | } | |
d14a1e28 RD |
9940 | return resultobj; |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
c32bde28 | 9946 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9947 | PyObject *resultobj; |
9948 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9949 | bool result; | |
9950 | PyObject * obj0 = 0 ; | |
9951 | char *kwnames[] = { | |
9952 | (char *) "self", NULL | |
9953 | }; | |
9954 | ||
9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9958 | { |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
4f89f6a3 RD |
9965 | { |
9966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9967 | } | |
d14a1e28 RD |
9968 | return resultobj; |
9969 | fail: | |
9970 | return NULL; | |
9971 | } | |
9972 | ||
9973 | ||
c32bde28 | 9974 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9975 | PyObject *resultobj; |
9976 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9977 | long arg2 ; | |
9978 | PyObject * obj0 = 0 ; | |
994141e6 | 9979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9980 | char *kwnames[] = { |
9981 | (char *) "self",(char *) "pos", NULL | |
9982 | }; | |
9983 | ||
994141e6 | 9984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9987 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9988 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9989 | { |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | (arg1)->SetInsertionPoint(arg2); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | Py_INCREF(Py_None); resultobj = Py_None; | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
c32bde28 | 10003 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10004 | PyObject *resultobj; |
10005 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10006 | PyObject * obj0 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10014 | { |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | (arg1)->SetInsertionPointEnd(); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | Py_INCREF(Py_None); resultobj = Py_None; | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
c32bde28 | 10028 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10029 | PyObject *resultobj; |
10030 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10031 | long result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10040 | { |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
c32bde28 | 10047 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10048 | return resultobj; |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
c32bde28 | 10054 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10055 | PyObject *resultobj; |
10056 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10057 | long result; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10066 | { |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
10069 | ||
10070 | wxPyEndAllowThreads(__tstate); | |
10071 | if (PyErr_Occurred()) SWIG_fail; | |
10072 | } | |
c32bde28 | 10073 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10074 | return resultobj; |
10075 | fail: | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
c32bde28 | 10080 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10081 | PyObject *resultobj; |
10082 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10083 | long arg2 ; | |
10084 | long arg3 ; | |
10085 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10086 | PyObject * obj1 = 0 ; |
10087 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10088 | char *kwnames[] = { |
10089 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10090 | }; | |
10091 | ||
994141e6 | 10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10095 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 10096 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10097 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10099 | { |
10100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10101 | (arg1)->SetSelection(arg2,arg3); | |
10102 | ||
10103 | wxPyEndAllowThreads(__tstate); | |
10104 | if (PyErr_Occurred()) SWIG_fail; | |
10105 | } | |
10106 | Py_INCREF(Py_None); resultobj = Py_None; | |
10107 | return resultobj; | |
10108 | fail: | |
10109 | return NULL; | |
10110 | } | |
10111 | ||
10112 | ||
c32bde28 | 10113 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10114 | PyObject *resultobj; |
10115 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10116 | PyObject * obj0 = 0 ; | |
10117 | char *kwnames[] = { | |
10118 | (char *) "self", NULL | |
10119 | }; | |
10120 | ||
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10124 | { |
10125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10126 | (arg1)->SelectAll(); | |
10127 | ||
10128 | wxPyEndAllowThreads(__tstate); | |
10129 | if (PyErr_Occurred()) SWIG_fail; | |
10130 | } | |
10131 | Py_INCREF(Py_None); resultobj = Py_None; | |
10132 | return resultobj; | |
10133 | fail: | |
10134 | return NULL; | |
10135 | } | |
10136 | ||
10137 | ||
c32bde28 | 10138 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10139 | PyObject *resultobj; |
10140 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10141 | bool arg2 ; | |
10142 | PyObject * obj0 = 0 ; | |
10143 | PyObject * obj1 = 0 ; | |
10144 | char *kwnames[] = { | |
10145 | (char *) "self",(char *) "editable", NULL | |
10146 | }; | |
10147 | ||
10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10151 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 10152 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10153 | { |
10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10155 | (arg1)->SetEditable(arg2); | |
10156 | ||
10157 | wxPyEndAllowThreads(__tstate); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | } | |
10160 | Py_INCREF(Py_None); resultobj = Py_None; | |
10161 | return resultobj; | |
10162 | fail: | |
10163 | return NULL; | |
10164 | } | |
10165 | ||
10166 | ||
c32bde28 | 10167 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10168 | PyObject *resultobj; |
10169 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10170 | wxString *arg2 = 0 ; | |
ae8162c8 | 10171 | bool temp2 = false ; |
d14a1e28 RD |
10172 | PyObject * obj0 = 0 ; |
10173 | PyObject * obj1 = 0 ; | |
10174 | char *kwnames[] = { | |
10175 | (char *) "self",(char *) "text", NULL | |
10176 | }; | |
10177 | ||
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10181 | { |
10182 | arg2 = wxString_in_helper(obj1); | |
10183 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10184 | temp2 = true; |
d14a1e28 RD |
10185 | } |
10186 | { | |
10187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10188 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
10189 | ||
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | Py_INCREF(Py_None); resultobj = Py_None; | |
10194 | { | |
10195 | if (temp2) | |
10196 | delete arg2; | |
10197 | } | |
10198 | return resultobj; | |
10199 | fail: | |
10200 | { | |
10201 | if (temp2) | |
10202 | delete arg2; | |
10203 | } | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
c32bde28 | 10208 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10209 | PyObject *resultobj; |
10210 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10211 | long arg2 ; | |
10212 | long arg3 ; | |
10213 | wxString result; | |
10214 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10215 | PyObject * obj1 = 0 ; |
10216 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10217 | char *kwnames[] = { |
10218 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10219 | }; | |
10220 | ||
994141e6 | 10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
10223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10224 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 10225 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10226 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10228 | { |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | { | |
10236 | #if wxUSE_UNICODE | |
10237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10238 | #else | |
10239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10240 | #endif | |
10241 | } | |
10242 | return resultobj; | |
10243 | fail: | |
10244 | return NULL; | |
10245 | } | |
10246 | ||
10247 | ||
c32bde28 | 10248 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10249 | PyObject *resultobj; |
10250 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10251 | wxVisualAttributes result; | |
10252 | PyObject * obj0 = 0 ; | |
10253 | char *kwnames[] = { | |
10254 | (char *) "variant", NULL | |
10255 | }; | |
10256 | ||
10257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10258 | if (obj0) { | |
c32bde28 | 10259 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10260 | if (PyErr_Occurred()) SWIG_fail; |
10261 | } | |
10262 | { | |
110da5b0 | 10263 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10265 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10266 | ||
10267 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10268 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10269 | } |
10270 | { | |
10271 | wxVisualAttributes * resultptr; | |
10272 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10273 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10274 | } | |
10275 | return resultobj; | |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
c32bde28 | 10281 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10282 | PyObject *obj; |
10283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10284 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
10285 | Py_INCREF(obj); | |
10286 | return Py_BuildValue((char *)""); | |
10287 | } | |
c32bde28 | 10288 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10289 | PyObject *resultobj; |
10290 | int arg1 ; | |
10291 | wxMouseEvent *arg2 = 0 ; | |
10292 | long arg3 ; | |
10293 | long arg4 ; | |
10294 | wxTextUrlEvent *result; | |
994141e6 | 10295 | PyObject * obj0 = 0 ; |
d14a1e28 | 10296 | PyObject * obj1 = 0 ; |
994141e6 RD |
10297 | PyObject * obj2 = 0 ; |
10298 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10299 | char *kwnames[] = { |
10300 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
10301 | }; | |
10302 | ||
994141e6 | 10303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 10304 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 RD |
10305 | if (PyErr_Occurred()) SWIG_fail; |
10306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
10307 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10308 | SWIG_fail; | |
d14a1e28 | 10309 | if (arg2 == NULL) { |
15afbcd0 RD |
10310 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10311 | SWIG_fail; | |
994141e6 | 10312 | } |
c32bde28 | 10313 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10314 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10315 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 10316 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10317 | { |
10318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10319 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
10320 | ||
10321 | wxPyEndAllowThreads(__tstate); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | } | |
15afbcd0 | 10324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
10325 | return resultobj; |
10326 | fail: | |
10327 | return NULL; | |
10328 | } | |
10329 | ||
10330 | ||
c32bde28 | 10331 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10332 | PyObject *resultobj; |
10333 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10334 | wxMouseEvent *result; | |
10335 | PyObject * obj0 = 0 ; | |
10336 | char *kwnames[] = { | |
10337 | (char *) "self", NULL | |
10338 | }; | |
10339 | ||
10340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10343 | { |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | { | |
10346 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
10347 | result = (wxMouseEvent *) &_result_ref; | |
10348 | } | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
15afbcd0 | 10353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
10354 | return resultobj; |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
c32bde28 | 10360 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10361 | PyObject *resultobj; |
10362 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10363 | long result; | |
10364 | PyObject * obj0 = 0 ; | |
10365 | char *kwnames[] = { | |
10366 | (char *) "self", NULL | |
10367 | }; | |
10368 | ||
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10372 | { |
10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10374 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10375 | ||
10376 | wxPyEndAllowThreads(__tstate); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | } | |
c32bde28 | 10379 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10380 | return resultobj; |
10381 | fail: | |
10382 | return NULL; | |
10383 | } | |
10384 | ||
10385 | ||
c32bde28 | 10386 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10387 | PyObject *resultobj; |
10388 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10389 | long result; | |
10390 | PyObject * obj0 = 0 ; | |
10391 | char *kwnames[] = { | |
10392 | (char *) "self", NULL | |
10393 | }; | |
10394 | ||
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10398 | { |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10400 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10401 | ||
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
c32bde28 | 10405 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10406 | return resultobj; |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
c32bde28 | 10412 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10413 | PyObject *obj; |
10414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10415 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10416 | Py_INCREF(obj); | |
10417 | return Py_BuildValue((char *)""); | |
10418 | } | |
c32bde28 | 10419 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
10420 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
10421 | return 1; | |
10422 | } | |
10423 | ||
10424 | ||
10425 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10426 | PyObject *pyobj; | |
10427 | ||
10428 | { | |
10429 | #if wxUSE_UNICODE | |
10430 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10431 | #else | |
10432 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10433 | #endif | |
10434 | } | |
10435 | return pyobj; | |
10436 | } | |
10437 | ||
10438 | ||
c32bde28 | 10439 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10440 | PyObject *resultobj; |
10441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10442 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10443 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10444 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10445 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10446 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10447 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10448 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10449 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10450 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10451 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10452 | wxScrollBar *result; | |
10453 | wxPoint temp3 ; | |
10454 | wxSize temp4 ; | |
ae8162c8 | 10455 | bool temp7 = false ; |
d14a1e28 | 10456 | PyObject * obj0 = 0 ; |
994141e6 | 10457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10458 | PyObject * obj2 = 0 ; |
10459 | PyObject * obj3 = 0 ; | |
994141e6 | 10460 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10461 | PyObject * obj5 = 0 ; |
10462 | PyObject * obj6 = 0 ; | |
10463 | char *kwnames[] = { | |
10464 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10465 | }; | |
10466 | ||
994141e6 | 10467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10470 | if (obj1) { |
c32bde28 | 10471 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10472 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10473 | } |
d14a1e28 RD |
10474 | if (obj2) { |
10475 | { | |
10476 | arg3 = &temp3; | |
10477 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10478 | } | |
10479 | } | |
10480 | if (obj3) { | |
10481 | { | |
10482 | arg4 = &temp4; | |
10483 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10484 | } | |
10485 | } | |
994141e6 | 10486 | if (obj4) { |
c32bde28 | 10487 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10488 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10489 | } |
d14a1e28 | 10490 | if (obj5) { |
15afbcd0 RD |
10491 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10492 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10493 | SWIG_fail; | |
d14a1e28 | 10494 | if (arg6 == NULL) { |
15afbcd0 RD |
10495 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10496 | SWIG_fail; | |
d14a1e28 RD |
10497 | } |
10498 | } | |
10499 | if (obj6) { | |
10500 | { | |
10501 | arg7 = wxString_in_helper(obj6); | |
10502 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 10503 | temp7 = true; |
d14a1e28 RD |
10504 | } |
10505 | } | |
10506 | { | |
e3b71cb8 | 10507 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10509 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10512 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10513 | } |
15afbcd0 | 10514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10515 | { |
10516 | if (temp7) | |
10517 | delete arg7; | |
10518 | } | |
10519 | return resultobj; | |
10520 | fail: | |
10521 | { | |
10522 | if (temp7) | |
10523 | delete arg7; | |
10524 | } | |
10525 | return NULL; | |
10526 | } | |
10527 | ||
10528 | ||
c32bde28 | 10529 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10530 | PyObject *resultobj; |
10531 | wxScrollBar *result; | |
10532 | char *kwnames[] = { | |
10533 | NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10537 | { | |
e3b71cb8 | 10538 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10540 | result = (wxScrollBar *)new wxScrollBar(); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10543 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10544 | } |
15afbcd0 | 10545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10546 | return resultobj; |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
c32bde28 | 10552 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10553 | PyObject *resultobj; |
10554 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10555 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10556 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10557 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10558 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10559 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10560 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10561 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10562 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10563 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10564 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10565 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10566 | bool result; | |
10567 | wxPoint temp4 ; | |
10568 | wxSize temp5 ; | |
ae8162c8 | 10569 | bool temp8 = false ; |
d14a1e28 RD |
10570 | PyObject * obj0 = 0 ; |
10571 | PyObject * obj1 = 0 ; | |
994141e6 | 10572 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10573 | PyObject * obj3 = 0 ; |
10574 | PyObject * obj4 = 0 ; | |
994141e6 | 10575 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10576 | PyObject * obj6 = 0 ; |
10577 | PyObject * obj7 = 0 ; | |
10578 | char *kwnames[] = { | |
10579 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10580 | }; | |
10581 | ||
994141e6 | 10582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10587 | if (obj2) { |
c32bde28 | 10588 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10589 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10590 | } |
d14a1e28 RD |
10591 | if (obj3) { |
10592 | { | |
10593 | arg4 = &temp4; | |
10594 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10595 | } | |
10596 | } | |
10597 | if (obj4) { | |
10598 | { | |
10599 | arg5 = &temp5; | |
10600 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10601 | } | |
10602 | } | |
994141e6 | 10603 | if (obj5) { |
c32bde28 | 10604 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 10605 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10606 | } |
d14a1e28 | 10607 | if (obj6) { |
15afbcd0 RD |
10608 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10609 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10610 | SWIG_fail; | |
d14a1e28 | 10611 | if (arg7 == NULL) { |
15afbcd0 RD |
10612 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10613 | SWIG_fail; | |
d14a1e28 RD |
10614 | } |
10615 | } | |
10616 | if (obj7) { | |
10617 | { | |
10618 | arg8 = wxString_in_helper(obj7); | |
10619 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 10620 | temp8 = true; |
d14a1e28 RD |
10621 | } |
10622 | } | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10626 | ||
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) SWIG_fail; | |
10629 | } | |
4f89f6a3 RD |
10630 | { |
10631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10632 | } | |
d14a1e28 RD |
10633 | { |
10634 | if (temp8) | |
10635 | delete arg8; | |
10636 | } | |
10637 | return resultobj; | |
10638 | fail: | |
10639 | { | |
10640 | if (temp8) | |
10641 | delete arg8; | |
10642 | } | |
10643 | return NULL; | |
10644 | } | |
10645 | ||
10646 | ||
c32bde28 | 10647 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10648 | PyObject *resultobj; |
10649 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10650 | int result; | |
10651 | PyObject * obj0 = 0 ; | |
10652 | char *kwnames[] = { | |
10653 | (char *) "self", NULL | |
10654 | }; | |
10655 | ||
10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10659 | { |
10660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10661 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10662 | ||
10663 | wxPyEndAllowThreads(__tstate); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | } | |
c32bde28 | 10666 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10667 | return resultobj; |
10668 | fail: | |
10669 | return NULL; | |
10670 | } | |
10671 | ||
10672 | ||
c32bde28 | 10673 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10674 | PyObject *resultobj; |
10675 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10676 | int result; | |
10677 | PyObject * obj0 = 0 ; | |
10678 | char *kwnames[] = { | |
10679 | (char *) "self", NULL | |
10680 | }; | |
10681 | ||
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10685 | { |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
c32bde28 | 10692 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10693 | return resultobj; |
10694 | fail: | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
c32bde28 | 10699 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10700 | PyObject *resultobj; |
10701 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10702 | int result; | |
10703 | PyObject * obj0 = 0 ; | |
10704 | char *kwnames[] = { | |
10705 | (char *) "self", NULL | |
10706 | }; | |
10707 | ||
10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10711 | { |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10713 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10714 | ||
10715 | wxPyEndAllowThreads(__tstate); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
c32bde28 | 10718 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10719 | return resultobj; |
10720 | fail: | |
10721 | return NULL; | |
10722 | } | |
10723 | ||
10724 | ||
c32bde28 | 10725 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10726 | PyObject *resultobj; |
10727 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10728 | int result; | |
10729 | PyObject * obj0 = 0 ; | |
10730 | char *kwnames[] = { | |
10731 | (char *) "self", NULL | |
10732 | }; | |
10733 | ||
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10737 | { |
10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10739 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10740 | ||
10741 | wxPyEndAllowThreads(__tstate); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | } | |
c32bde28 | 10744 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10745 | return resultobj; |
10746 | fail: | |
10747 | return NULL; | |
10748 | } | |
10749 | ||
10750 | ||
c32bde28 | 10751 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10752 | PyObject *resultobj; |
10753 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10754 | bool result; | |
10755 | PyObject * obj0 = 0 ; | |
10756 | char *kwnames[] = { | |
10757 | (char *) "self", NULL | |
10758 | }; | |
10759 | ||
10760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10763 | { |
10764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10765 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10766 | ||
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
4f89f6a3 RD |
10770 | { |
10771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10772 | } | |
d14a1e28 RD |
10773 | return resultobj; |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
c32bde28 | 10779 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10780 | PyObject *resultobj; |
10781 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10782 | int arg2 ; | |
10783 | PyObject * obj0 = 0 ; | |
994141e6 | 10784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10785 | char *kwnames[] = { |
10786 | (char *) "self",(char *) "viewStart", NULL | |
10787 | }; | |
10788 | ||
994141e6 | 10789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10792 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10793 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10794 | { |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | (arg1)->SetThumbPosition(arg2); | |
10797 | ||
10798 | wxPyEndAllowThreads(__tstate); | |
10799 | if (PyErr_Occurred()) SWIG_fail; | |
10800 | } | |
10801 | Py_INCREF(Py_None); resultobj = Py_None; | |
10802 | return resultobj; | |
10803 | fail: | |
10804 | return NULL; | |
10805 | } | |
10806 | ||
10807 | ||
c32bde28 | 10808 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10809 | PyObject *resultobj; |
10810 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10811 | int arg2 ; | |
10812 | int arg3 ; | |
10813 | int arg4 ; | |
10814 | int arg5 ; | |
ae8162c8 | 10815 | bool arg6 = (bool) true ; |
d14a1e28 | 10816 | PyObject * obj0 = 0 ; |
994141e6 RD |
10817 | PyObject * obj1 = 0 ; |
10818 | PyObject * obj2 = 0 ; | |
10819 | PyObject * obj3 = 0 ; | |
10820 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10821 | PyObject * obj5 = 0 ; |
10822 | char *kwnames[] = { | |
10823 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10824 | }; | |
10825 | ||
994141e6 | 10826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10829 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10830 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10831 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10832 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10833 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10834 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10835 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10836 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10837 | if (obj5) { |
c32bde28 | 10838 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 10839 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10840 | } |
10841 | { | |
10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10843 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10844 | ||
10845 | wxPyEndAllowThreads(__tstate); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
10847 | } | |
10848 | Py_INCREF(Py_None); resultobj = Py_None; | |
10849 | return resultobj; | |
10850 | fail: | |
10851 | return NULL; | |
10852 | } | |
10853 | ||
10854 | ||
c32bde28 | 10855 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10856 | PyObject *resultobj; |
10857 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10858 | wxVisualAttributes result; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | char *kwnames[] = { | |
10861 | (char *) "variant", NULL | |
10862 | }; | |
10863 | ||
10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10865 | if (obj0) { | |
c32bde28 | 10866 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10867 | if (PyErr_Occurred()) SWIG_fail; |
10868 | } | |
10869 | { | |
110da5b0 | 10870 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10872 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10873 | ||
10874 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10875 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10876 | } |
10877 | { | |
10878 | wxVisualAttributes * resultptr; | |
10879 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10880 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10881 | } | |
10882 | return resultobj; | |
10883 | fail: | |
10884 | return NULL; | |
10885 | } | |
10886 | ||
10887 | ||
c32bde28 | 10888 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10889 | PyObject *obj; |
10890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10891 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10892 | Py_INCREF(obj); | |
10893 | return Py_BuildValue((char *)""); | |
10894 | } | |
c32bde28 | 10895 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
10896 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10897 | return 1; | |
10898 | } | |
10899 | ||
10900 | ||
10901 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10902 | PyObject *pyobj; | |
10903 | ||
10904 | { | |
10905 | #if wxUSE_UNICODE | |
10906 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10907 | #else | |
10908 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10909 | #endif | |
10910 | } | |
10911 | return pyobj; | |
10912 | } | |
10913 | ||
10914 | ||
c32bde28 | 10915 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
10916 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
10917 | return 1; | |
10918 | } | |
10919 | ||
10920 | ||
10921 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10922 | PyObject *pyobj; | |
10923 | ||
10924 | { | |
10925 | #if wxUSE_UNICODE | |
10926 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10927 | #else | |
10928 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10929 | #endif | |
10930 | } | |
10931 | return pyobj; | |
10932 | } | |
10933 | ||
10934 | ||
c32bde28 | 10935 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10936 | PyObject *resultobj; |
10937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10938 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10939 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10940 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10941 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10942 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10943 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10944 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10945 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10946 | wxSpinButton *result; | |
10947 | wxPoint temp3 ; | |
10948 | wxSize temp4 ; | |
ae8162c8 | 10949 | bool temp6 = false ; |
d14a1e28 | 10950 | PyObject * obj0 = 0 ; |
994141e6 | 10951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10952 | PyObject * obj2 = 0 ; |
10953 | PyObject * obj3 = 0 ; | |
994141e6 | 10954 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10955 | PyObject * obj5 = 0 ; |
10956 | char *kwnames[] = { | |
10957 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10958 | }; | |
10959 | ||
994141e6 | 10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10963 | if (obj1) { |
c32bde28 | 10964 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10965 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10966 | } |
d14a1e28 RD |
10967 | if (obj2) { |
10968 | { | |
10969 | arg3 = &temp3; | |
10970 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10971 | } | |
10972 | } | |
10973 | if (obj3) { | |
10974 | { | |
10975 | arg4 = &temp4; | |
10976 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10977 | } | |
10978 | } | |
994141e6 | 10979 | if (obj4) { |
c32bde28 | 10980 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10981 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10982 | } |
d14a1e28 RD |
10983 | if (obj5) { |
10984 | { | |
10985 | arg6 = wxString_in_helper(obj5); | |
10986 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 10987 | temp6 = true; |
d14a1e28 RD |
10988 | } |
10989 | } | |
10990 | { | |
e3b71cb8 | 10991 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10993 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10996 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10997 | } |
15afbcd0 | 10998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10999 | { |
11000 | if (temp6) | |
11001 | delete arg6; | |
11002 | } | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | { | |
11006 | if (temp6) | |
11007 | delete arg6; | |
11008 | } | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
c32bde28 | 11013 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11014 | PyObject *resultobj; |
11015 | wxSpinButton *result; | |
11016 | char *kwnames[] = { | |
11017 | NULL | |
11018 | }; | |
11019 | ||
11020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
11021 | { | |
e3b71cb8 | 11022 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11024 | result = (wxSpinButton *)new wxSpinButton(); | |
11025 | ||
11026 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11027 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11028 | } |
15afbcd0 | 11029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
11030 | return resultobj; |
11031 | fail: | |
11032 | return NULL; | |
11033 | } | |
11034 | ||
11035 | ||
c32bde28 | 11036 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11037 | PyObject *resultobj; |
11038 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11039 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11040 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11041 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11042 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11043 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11044 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11045 | long arg6 = (long) wxSP_HORIZONTAL ; | |
11046 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
11047 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11048 | bool result; | |
11049 | wxPoint temp4 ; | |
11050 | wxSize temp5 ; | |
ae8162c8 | 11051 | bool temp7 = false ; |
d14a1e28 RD |
11052 | PyObject * obj0 = 0 ; |
11053 | PyObject * obj1 = 0 ; | |
994141e6 | 11054 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11055 | PyObject * obj3 = 0 ; |
11056 | PyObject * obj4 = 0 ; | |
994141e6 | 11057 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11058 | PyObject * obj6 = 0 ; |
11059 | char *kwnames[] = { | |
11060 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11061 | }; | |
11062 | ||
994141e6 | 11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
11064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11068 | if (obj2) { |
c32bde28 | 11069 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11070 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11071 | } |
d14a1e28 RD |
11072 | if (obj3) { |
11073 | { | |
11074 | arg4 = &temp4; | |
11075 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11076 | } | |
11077 | } | |
11078 | if (obj4) { | |
11079 | { | |
11080 | arg5 = &temp5; | |
11081 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11082 | } | |
11083 | } | |
994141e6 | 11084 | if (obj5) { |
c32bde28 | 11085 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 11086 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11087 | } |
d14a1e28 RD |
11088 | if (obj6) { |
11089 | { | |
11090 | arg7 = wxString_in_helper(obj6); | |
11091 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 11092 | temp7 = true; |
d14a1e28 RD |
11093 | } |
11094 | } | |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
4f89f6a3 RD |
11102 | { |
11103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11104 | } | |
d14a1e28 RD |
11105 | { |
11106 | if (temp7) | |
11107 | delete arg7; | |
11108 | } | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | { | |
11112 | if (temp7) | |
11113 | delete arg7; | |
11114 | } | |
11115 | return NULL; | |
11116 | } | |
11117 | ||
11118 | ||
c32bde28 | 11119 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11120 | PyObject *resultobj; |
11121 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11122 | int result; | |
11123 | PyObject * obj0 = 0 ; | |
11124 | char *kwnames[] = { | |
11125 | (char *) "self", NULL | |
11126 | }; | |
11127 | ||
11128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11131 | { |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
11134 | ||
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
c32bde28 | 11138 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11139 | return resultobj; |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
c32bde28 | 11145 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11146 | PyObject *resultobj; |
11147 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11148 | int result; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | char *kwnames[] = { | |
11151 | (char *) "self", NULL | |
11152 | }; | |
11153 | ||
11154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11157 | { |
11158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11159 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
11160 | ||
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
c32bde28 | 11164 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11165 | return resultobj; |
11166 | fail: | |
11167 | return NULL; | |
11168 | } | |
11169 | ||
11170 | ||
c32bde28 | 11171 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11172 | PyObject *resultobj; |
11173 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11174 | int result; | |
11175 | PyObject * obj0 = 0 ; | |
11176 | char *kwnames[] = { | |
11177 | (char *) "self", NULL | |
11178 | }; | |
11179 | ||
11180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11183 | { |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
c32bde28 | 11190 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11191 | return resultobj; |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
c32bde28 | 11197 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11198 | PyObject *resultobj; |
11199 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11200 | int arg2 ; | |
11201 | PyObject * obj0 = 0 ; | |
994141e6 | 11202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11203 | char *kwnames[] = { |
11204 | (char *) "self",(char *) "val", NULL | |
11205 | }; | |
11206 | ||
994141e6 | 11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11210 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11211 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11212 | { |
11213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11214 | (arg1)->SetValue(arg2); | |
11215 | ||
11216 | wxPyEndAllowThreads(__tstate); | |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
11218 | } | |
11219 | Py_INCREF(Py_None); resultobj = Py_None; | |
11220 | return resultobj; | |
11221 | fail: | |
11222 | return NULL; | |
11223 | } | |
11224 | ||
11225 | ||
c32bde28 | 11226 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11227 | PyObject *resultobj; |
11228 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11229 | int arg2 ; | |
11230 | PyObject * obj0 = 0 ; | |
994141e6 | 11231 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11232 | char *kwnames[] = { |
11233 | (char *) "self",(char *) "minVal", NULL | |
11234 | }; | |
11235 | ||
994141e6 | 11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11239 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11240 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11241 | { |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | (arg1)->SetMin(arg2); | |
11244 | ||
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | Py_INCREF(Py_None); resultobj = Py_None; | |
11249 | return resultobj; | |
11250 | fail: | |
11251 | return NULL; | |
11252 | } | |
11253 | ||
11254 | ||
c32bde28 | 11255 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11256 | PyObject *resultobj; |
11257 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11258 | int arg2 ; | |
11259 | PyObject * obj0 = 0 ; | |
994141e6 | 11260 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11261 | char *kwnames[] = { |
11262 | (char *) "self",(char *) "maxVal", NULL | |
11263 | }; | |
11264 | ||
994141e6 | 11265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11268 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11269 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11270 | { |
11271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11272 | (arg1)->SetMax(arg2); | |
11273 | ||
11274 | wxPyEndAllowThreads(__tstate); | |
11275 | if (PyErr_Occurred()) SWIG_fail; | |
11276 | } | |
11277 | Py_INCREF(Py_None); resultobj = Py_None; | |
11278 | return resultobj; | |
11279 | fail: | |
11280 | return NULL; | |
11281 | } | |
11282 | ||
11283 | ||
c32bde28 | 11284 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11285 | PyObject *resultobj; |
11286 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11287 | int arg2 ; | |
11288 | int arg3 ; | |
11289 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11290 | PyObject * obj1 = 0 ; |
11291 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11292 | char *kwnames[] = { |
11293 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11294 | }; | |
11295 | ||
994141e6 | 11296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11299 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11300 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11301 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11302 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11303 | { |
15afbcd0 RD |
11304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11305 | (arg1)->SetRange(arg2,arg3); | |
11306 | ||
11307 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
11308 | if (PyErr_Occurred()) SWIG_fail; |
11309 | } | |
22bfe96c RD |
11310 | Py_INCREF(Py_None); resultobj = Py_None; |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
c32bde28 | 11317 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11318 | PyObject *resultobj; |
11319 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11320 | bool result; | |
11321 | PyObject * obj0 = 0 ; | |
11322 | char *kwnames[] = { | |
11323 | (char *) "self", NULL | |
11324 | }; | |
11325 | ||
11326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
11327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11331 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | { | |
11337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11338 | } | |
d14a1e28 RD |
11339 | return resultobj; |
11340 | fail: | |
11341 | return NULL; | |
11342 | } | |
11343 | ||
11344 | ||
c32bde28 | 11345 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11346 | PyObject *resultobj; |
22bfe96c RD |
11347 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
11348 | wxVisualAttributes result; | |
d14a1e28 RD |
11349 | PyObject * obj0 = 0 ; |
11350 | char *kwnames[] = { | |
22bfe96c | 11351 | (char *) "variant", NULL |
d14a1e28 RD |
11352 | }; |
11353 | ||
22bfe96c RD |
11354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11355 | if (obj0) { | |
c32bde28 | 11356 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11357 | if (PyErr_Occurred()) SWIG_fail; |
11358 | } | |
d14a1e28 | 11359 | { |
110da5b0 | 11360 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 11362 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
11363 | |
11364 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11365 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11366 | } |
4f89f6a3 | 11367 | { |
22bfe96c RD |
11368 | wxVisualAttributes * resultptr; |
11369 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11370 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 11371 | } |
d14a1e28 RD |
11372 | return resultobj; |
11373 | fail: | |
11374 | return NULL; | |
11375 | } | |
11376 | ||
11377 | ||
c32bde28 | 11378 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11379 | PyObject *obj; |
11380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11381 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11382 | Py_INCREF(obj); | |
11383 | return Py_BuildValue((char *)""); | |
11384 | } | |
c32bde28 | 11385 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11386 | PyObject *resultobj; |
11387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11388 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11389 | wxString const &arg3_defvalue = wxPyEmptyString ; |
11390 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11391 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11392 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11393 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11394 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11395 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11396 | int arg7 = (int) 0 ; | |
11397 | int arg8 = (int) 100 ; | |
11398 | int arg9 = (int) 0 ; | |
11399 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11400 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11401 | wxSpinCtrl *result; | |
ae8162c8 | 11402 | bool temp3 = false ; |
d14a1e28 RD |
11403 | wxPoint temp4 ; |
11404 | wxSize temp5 ; | |
ae8162c8 | 11405 | bool temp10 = false ; |
d14a1e28 | 11406 | PyObject * obj0 = 0 ; |
994141e6 | 11407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11408 | PyObject * obj2 = 0 ; |
11409 | PyObject * obj3 = 0 ; | |
11410 | PyObject * obj4 = 0 ; | |
994141e6 RD |
11411 | PyObject * obj5 = 0 ; |
11412 | PyObject * obj6 = 0 ; | |
11413 | PyObject * obj7 = 0 ; | |
11414 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11415 | PyObject * obj9 = 0 ; |
11416 | char *kwnames[] = { | |
11417 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11418 | }; | |
11419 | ||
994141e6 | 11420 | 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 |
11421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11423 | if (obj1) { |
c32bde28 | 11424 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11425 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11426 | } |
11427 | if (obj2) { | |
d14a1e28 RD |
11428 | { |
11429 | arg3 = wxString_in_helper(obj2); | |
11430 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11431 | temp3 = true; |
d14a1e28 RD |
11432 | } |
11433 | } | |
11434 | if (obj3) { | |
11435 | { | |
11436 | arg4 = &temp4; | |
11437 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11438 | } | |
11439 | } | |
11440 | if (obj4) { | |
11441 | { | |
11442 | arg5 = &temp5; | |
11443 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11444 | } | |
11445 | } | |
994141e6 | 11446 | if (obj5) { |
c32bde28 | 11447 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 11448 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11449 | } |
11450 | if (obj6) { | |
c32bde28 | 11451 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11452 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11453 | } |
11454 | if (obj7) { | |
c32bde28 | 11455 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11456 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11457 | } |
11458 | if (obj8) { | |
c32bde28 | 11459 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11460 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11461 | } |
d14a1e28 RD |
11462 | if (obj9) { |
11463 | { | |
11464 | arg10 = wxString_in_helper(obj9); | |
11465 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 11466 | temp10 = true; |
d14a1e28 RD |
11467 | } |
11468 | } | |
11469 | { | |
e3b71cb8 | 11470 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11472 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11473 | ||
11474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11475 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11476 | } |
15afbcd0 | 11477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11478 | { |
11479 | if (temp3) | |
11480 | delete arg3; | |
11481 | } | |
11482 | { | |
11483 | if (temp10) | |
11484 | delete arg10; | |
11485 | } | |
11486 | return resultobj; | |
11487 | fail: | |
11488 | { | |
11489 | if (temp3) | |
11490 | delete arg3; | |
11491 | } | |
11492 | { | |
11493 | if (temp10) | |
11494 | delete arg10; | |
11495 | } | |
11496 | return NULL; | |
11497 | } | |
11498 | ||
11499 | ||
c32bde28 | 11500 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11501 | PyObject *resultobj; |
11502 | wxSpinCtrl *result; | |
11503 | char *kwnames[] = { | |
11504 | NULL | |
11505 | }; | |
11506 | ||
11507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11508 | { | |
e3b71cb8 | 11509 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11511 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11514 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11515 | } |
15afbcd0 | 11516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11517 | return resultobj; |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
c32bde28 | 11523 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11524 | PyObject *resultobj; |
11525 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11526 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11527 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11528 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11529 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11530 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11531 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11532 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11533 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11534 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11535 | int arg8 = (int) 0 ; | |
11536 | int arg9 = (int) 100 ; | |
11537 | int arg10 = (int) 0 ; | |
11538 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11539 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11540 | bool result; | |
ae8162c8 | 11541 | bool temp4 = false ; |
d14a1e28 RD |
11542 | wxPoint temp5 ; |
11543 | wxSize temp6 ; | |
ae8162c8 | 11544 | bool temp11 = false ; |
d14a1e28 RD |
11545 | PyObject * obj0 = 0 ; |
11546 | PyObject * obj1 = 0 ; | |
994141e6 | 11547 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11548 | PyObject * obj3 = 0 ; |
11549 | PyObject * obj4 = 0 ; | |
11550 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11551 | PyObject * obj6 = 0 ; |
11552 | PyObject * obj7 = 0 ; | |
11553 | PyObject * obj8 = 0 ; | |
11554 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11555 | PyObject * obj10 = 0 ; |
11556 | char *kwnames[] = { | |
11557 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11558 | }; | |
11559 | ||
994141e6 | 11560 | 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 |
11561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11565 | if (obj2) { |
c32bde28 | 11566 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11567 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11568 | } |
d14a1e28 RD |
11569 | if (obj3) { |
11570 | { | |
11571 | arg4 = wxString_in_helper(obj3); | |
11572 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 11573 | temp4 = true; |
d14a1e28 RD |
11574 | } |
11575 | } | |
11576 | if (obj4) { | |
11577 | { | |
11578 | arg5 = &temp5; | |
11579 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11580 | } | |
11581 | } | |
11582 | if (obj5) { | |
11583 | { | |
11584 | arg6 = &temp6; | |
11585 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11586 | } | |
11587 | } | |
994141e6 | 11588 | if (obj6) { |
c32bde28 | 11589 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 11590 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11591 | } |
11592 | if (obj7) { | |
c32bde28 | 11593 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11594 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11595 | } |
11596 | if (obj8) { | |
c32bde28 | 11597 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11598 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11599 | } |
11600 | if (obj9) { | |
c32bde28 | 11601 | arg10 = (int)SWIG_As_int(obj9); |
15afbcd0 | 11602 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11603 | } |
d14a1e28 RD |
11604 | if (obj10) { |
11605 | { | |
11606 | arg11 = wxString_in_helper(obj10); | |
11607 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 11608 | temp11 = true; |
d14a1e28 RD |
11609 | } |
11610 | } | |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
4f89f6a3 RD |
11618 | { |
11619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11620 | } | |
d14a1e28 RD |
11621 | { |
11622 | if (temp4) | |
11623 | delete arg4; | |
11624 | } | |
11625 | { | |
11626 | if (temp11) | |
11627 | delete arg11; | |
11628 | } | |
11629 | return resultobj; | |
11630 | fail: | |
11631 | { | |
11632 | if (temp4) | |
11633 | delete arg4; | |
11634 | } | |
11635 | { | |
11636 | if (temp11) | |
11637 | delete arg11; | |
11638 | } | |
11639 | return NULL; | |
11640 | } | |
11641 | ||
11642 | ||
c32bde28 | 11643 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11644 | PyObject *resultobj; |
11645 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11646 | int result; | |
11647 | PyObject * obj0 = 0 ; | |
11648 | char *kwnames[] = { | |
11649 | (char *) "self", NULL | |
11650 | }; | |
11651 | ||
11652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11655 | { |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11657 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11658 | ||
11659 | wxPyEndAllowThreads(__tstate); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | } | |
c32bde28 | 11662 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11663 | return resultobj; |
11664 | fail: | |
11665 | return NULL; | |
11666 | } | |
11667 | ||
11668 | ||
c32bde28 | 11669 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11670 | PyObject *resultobj; |
11671 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11672 | int arg2 ; | |
11673 | PyObject * obj0 = 0 ; | |
994141e6 | 11674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11675 | char *kwnames[] = { |
11676 | (char *) "self",(char *) "value", NULL | |
11677 | }; | |
11678 | ||
994141e6 | 11679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11682 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11684 | { |
11685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11686 | (arg1)->SetValue(arg2); | |
11687 | ||
11688 | wxPyEndAllowThreads(__tstate); | |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
11690 | } | |
11691 | Py_INCREF(Py_None); resultobj = Py_None; | |
11692 | return resultobj; | |
11693 | fail: | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
c32bde28 | 11698 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11699 | PyObject *resultobj; |
11700 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11701 | wxString *arg2 = 0 ; | |
ae8162c8 | 11702 | bool temp2 = false ; |
d14a1e28 RD |
11703 | PyObject * obj0 = 0 ; |
11704 | PyObject * obj1 = 0 ; | |
11705 | char *kwnames[] = { | |
11706 | (char *) "self",(char *) "text", NULL | |
11707 | }; | |
11708 | ||
11709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11712 | { |
11713 | arg2 = wxString_in_helper(obj1); | |
11714 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11715 | temp2 = true; |
d14a1e28 RD |
11716 | } |
11717 | { | |
11718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11719 | (arg1)->SetValue((wxString const &)*arg2); | |
11720 | ||
11721 | wxPyEndAllowThreads(__tstate); | |
11722 | if (PyErr_Occurred()) SWIG_fail; | |
11723 | } | |
11724 | Py_INCREF(Py_None); resultobj = Py_None; | |
11725 | { | |
11726 | if (temp2) | |
11727 | delete arg2; | |
11728 | } | |
11729 | return resultobj; | |
11730 | fail: | |
11731 | { | |
11732 | if (temp2) | |
11733 | delete arg2; | |
11734 | } | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
c32bde28 | 11739 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11740 | PyObject *resultobj; |
11741 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11742 | int arg2 ; | |
11743 | int arg3 ; | |
11744 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11745 | PyObject * obj1 = 0 ; |
11746 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11747 | char *kwnames[] = { |
11748 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11749 | }; | |
11750 | ||
994141e6 | 11751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11754 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11755 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11756 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11757 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11758 | { |
11759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11760 | (arg1)->SetRange(arg2,arg3); | |
11761 | ||
11762 | wxPyEndAllowThreads(__tstate); | |
11763 | if (PyErr_Occurred()) SWIG_fail; | |
11764 | } | |
11765 | Py_INCREF(Py_None); resultobj = Py_None; | |
11766 | return resultobj; | |
11767 | fail: | |
11768 | return NULL; | |
11769 | } | |
11770 | ||
11771 | ||
c32bde28 | 11772 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11773 | PyObject *resultobj; |
11774 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11775 | int result; | |
11776 | PyObject * obj0 = 0 ; | |
11777 | char *kwnames[] = { | |
11778 | (char *) "self", NULL | |
11779 | }; | |
11780 | ||
11781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11784 | { |
11785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11786 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11787 | ||
11788 | wxPyEndAllowThreads(__tstate); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
c32bde28 | 11791 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11792 | return resultobj; |
11793 | fail: | |
11794 | return NULL; | |
11795 | } | |
11796 | ||
11797 | ||
c32bde28 | 11798 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11799 | PyObject *resultobj; |
11800 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11801 | int result; | |
11802 | PyObject * obj0 = 0 ; | |
11803 | char *kwnames[] = { | |
11804 | (char *) "self", NULL | |
11805 | }; | |
11806 | ||
11807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11810 | { |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11813 | ||
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
c32bde28 | 11817 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11818 | return resultobj; |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
c32bde28 | 11824 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11825 | PyObject *resultobj; |
11826 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11827 | long arg2 ; | |
11828 | long arg3 ; | |
11829 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11830 | PyObject * obj1 = 0 ; |
11831 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11832 | char *kwnames[] = { |
11833 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11834 | }; | |
11835 | ||
994141e6 | 11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11839 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 11840 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11841 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 11842 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11843 | { |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11845 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11846 | |
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | Py_INCREF(Py_None); resultobj = Py_None; | |
11851 | return resultobj; | |
11852 | fail: | |
11853 | return NULL; | |
11854 | } | |
11855 | ||
11856 | ||
c32bde28 | 11857 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11858 | PyObject *resultobj; |
11859 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11860 | wxVisualAttributes result; | |
11861 | PyObject * obj0 = 0 ; | |
11862 | char *kwnames[] = { | |
11863 | (char *) "variant", NULL | |
11864 | }; | |
11865 | ||
11866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11867 | if (obj0) { | |
c32bde28 | 11868 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11869 | if (PyErr_Occurred()) SWIG_fail; |
11870 | } | |
11871 | { | |
110da5b0 | 11872 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11874 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11877 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11878 | } |
11879 | { | |
11880 | wxVisualAttributes * resultptr; | |
11881 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11882 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11883 | } | |
11884 | return resultobj; | |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
c32bde28 | 11890 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11891 | PyObject *obj; |
11892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11893 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11894 | Py_INCREF(obj); | |
11895 | return Py_BuildValue((char *)""); | |
11896 | } | |
c32bde28 | 11897 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11898 | PyObject *resultobj; |
11899 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11900 | int arg2 = (int) 0 ; | |
11901 | wxSpinEvent *result; | |
994141e6 RD |
11902 | PyObject * obj0 = 0 ; |
11903 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11904 | char *kwnames[] = { |
11905 | (char *) "commandType",(char *) "winid", NULL | |
11906 | }; | |
11907 | ||
994141e6 RD |
11908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11909 | if (obj0) { | |
c32bde28 | 11910 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 11911 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11912 | } |
11913 | if (obj1) { | |
c32bde28 | 11914 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11915 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11916 | } |
d1e20054 RD |
11917 | { |
11918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11919 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11920 | ||
11921 | wxPyEndAllowThreads(__tstate); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | } | |
15afbcd0 | 11924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11925 | return resultobj; |
11926 | fail: | |
11927 | return NULL; | |
11928 | } | |
11929 | ||
11930 | ||
c32bde28 | 11931 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11932 | PyObject *resultobj; |
11933 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11934 | int result; | |
11935 | PyObject * obj0 = 0 ; | |
11936 | char *kwnames[] = { | |
11937 | (char *) "self", NULL | |
11938 | }; | |
11939 | ||
11940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11943 | { |
11944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11945 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11946 | ||
11947 | wxPyEndAllowThreads(__tstate); | |
11948 | if (PyErr_Occurred()) SWIG_fail; | |
11949 | } | |
c32bde28 | 11950 | resultobj = SWIG_From_int((int)result); |
d1e20054 RD |
11951 | return resultobj; |
11952 | fail: | |
11953 | return NULL; | |
11954 | } | |
11955 | ||
11956 | ||
c32bde28 | 11957 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11958 | PyObject *resultobj; |
11959 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11960 | int arg2 ; | |
11961 | PyObject * obj0 = 0 ; | |
994141e6 | 11962 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11963 | char *kwnames[] = { |
11964 | (char *) "self",(char *) "pos", NULL | |
11965 | }; | |
11966 | ||
994141e6 | 11967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11970 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11971 | if (PyErr_Occurred()) SWIG_fail; |
d1e20054 RD |
11972 | { |
11973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11974 | (arg1)->SetPosition(arg2); | |
11975 | ||
11976 | wxPyEndAllowThreads(__tstate); | |
11977 | if (PyErr_Occurred()) SWIG_fail; | |
11978 | } | |
11979 | Py_INCREF(Py_None); resultobj = Py_None; | |
11980 | return resultobj; | |
11981 | fail: | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
c32bde28 | 11986 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
11987 | PyObject *obj; |
11988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11989 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11990 | Py_INCREF(obj); | |
11991 | return Py_BuildValue((char *)""); | |
11992 | } | |
c32bde28 | 11993 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
11994 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
11995 | return 1; | |
11996 | } | |
11997 | ||
11998 | ||
11999 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
12000 | PyObject *pyobj; | |
12001 | ||
12002 | { | |
12003 | #if wxUSE_UNICODE | |
12004 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
12005 | #else | |
12006 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
12007 | #endif | |
12008 | } | |
12009 | return pyobj; | |
12010 | } | |
12011 | ||
12012 | ||
c32bde28 | 12013 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
12014 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
12015 | return 1; | |
12016 | } | |
12017 | ||
12018 | ||
12019 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
12020 | PyObject *pyobj; | |
12021 | ||
12022 | { | |
12023 | #if wxUSE_UNICODE | |
12024 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
12025 | #else | |
12026 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
12027 | #endif | |
12028 | } | |
12029 | return pyobj; | |
12030 | } | |
12031 | ||
12032 | ||
c32bde28 | 12033 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12034 | PyObject *resultobj; |
12035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12036 | int arg2 = (int) -1 ; |
12037 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12038 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12039 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12040 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12041 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12042 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
12043 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
12044 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
12045 | int arg7 = (int) 0 ; | |
12046 | long arg8 = (long) wxRA_HORIZONTAL ; | |
12047 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12048 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12049 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
12050 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 12051 | wxRadioBox *result; |
ae8162c8 | 12052 | bool temp3 = false ; |
d14a1e28 RD |
12053 | wxPoint temp4 ; |
12054 | wxSize temp5 ; | |
ae8162c8 RD |
12055 | bool temp6 = false ; |
12056 | bool temp10 = false ; | |
d14a1e28 | 12057 | PyObject * obj0 = 0 ; |
994141e6 | 12058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12059 | PyObject * obj2 = 0 ; |
12060 | PyObject * obj3 = 0 ; | |
12061 | PyObject * obj4 = 0 ; | |
12062 | PyObject * obj5 = 0 ; | |
994141e6 RD |
12063 | PyObject * obj6 = 0 ; |
12064 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
12065 | PyObject * obj8 = 0 ; |
12066 | PyObject * obj9 = 0 ; | |
12067 | char *kwnames[] = { | |
994141e6 | 12068 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12069 | }; |
12070 | ||
248ed943 | 12071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
12072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12074 | if (obj1) { |
c32bde28 | 12075 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12076 | if (PyErr_Occurred()) SWIG_fail; |
12077 | } | |
12078 | if (obj2) { | |
12079 | { | |
12080 | arg3 = wxString_in_helper(obj2); | |
12081 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12082 | temp3 = true; |
248ed943 | 12083 | } |
d14a1e28 RD |
12084 | } |
12085 | if (obj3) { | |
12086 | { | |
12087 | arg4 = &temp4; | |
12088 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12089 | } | |
12090 | } | |
12091 | if (obj4) { | |
12092 | { | |
12093 | arg5 = &temp5; | |
12094 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12095 | } | |
12096 | } | |
12097 | if (obj5) { | |
12098 | { | |
4d5c3d91 RD |
12099 | if (! PySequence_Check(obj5)) { |
12100 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12101 | SWIG_fail; | |
12102 | } | |
12103 | arg6 = new wxArrayString; | |
ae8162c8 | 12104 | temp6 = true; |
4d5c3d91 RD |
12105 | int i, len=PySequence_Length(obj5); |
12106 | for (i=0; i<len; i++) { | |
12107 | PyObject* item = PySequence_GetItem(obj5, i); | |
12108 | #if wxUSE_UNICODE | |
12109 | PyObject* str = PyObject_Unicode(item); | |
12110 | #else | |
12111 | PyObject* str = PyObject_Str(item); | |
12112 | #endif | |
74a57fcd | 12113 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
12114 | arg6->Add(Py2wxString(str)); |
12115 | Py_DECREF(item); | |
12116 | Py_DECREF(str); | |
12117 | } | |
d14a1e28 RD |
12118 | } |
12119 | } | |
994141e6 | 12120 | if (obj6) { |
c32bde28 | 12121 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 12122 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12123 | } |
12124 | if (obj7) { | |
c32bde28 | 12125 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 12126 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12127 | } |
d14a1e28 | 12128 | if (obj8) { |
15afbcd0 RD |
12129 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12131 | SWIG_fail; | |
4d5c3d91 | 12132 | if (arg9 == NULL) { |
15afbcd0 RD |
12133 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12134 | SWIG_fail; | |
d14a1e28 RD |
12135 | } |
12136 | } | |
12137 | if (obj9) { | |
12138 | { | |
4d5c3d91 RD |
12139 | arg10 = wxString_in_helper(obj9); |
12140 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 12141 | temp10 = true; |
d14a1e28 RD |
12142 | } |
12143 | } | |
12144 | { | |
e3b71cb8 | 12145 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 12146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 12147 | 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 |
12148 | |
12149 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12150 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12151 | } |
15afbcd0 | 12152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
12153 | { |
12154 | if (temp3) | |
12155 | delete arg3; | |
12156 | } | |
12157 | { | |
3adfb63b | 12158 | if (temp6) delete arg6; |
d14a1e28 RD |
12159 | } |
12160 | { | |
12161 | if (temp10) | |
4d5c3d91 | 12162 | delete arg10; |
d14a1e28 RD |
12163 | } |
12164 | return resultobj; | |
12165 | fail: | |
12166 | { | |
12167 | if (temp3) | |
12168 | delete arg3; | |
12169 | } | |
12170 | { | |
3adfb63b | 12171 | if (temp6) delete arg6; |
d14a1e28 RD |
12172 | } |
12173 | { | |
12174 | if (temp10) | |
4d5c3d91 | 12175 | delete arg10; |
d14a1e28 RD |
12176 | } |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
c32bde28 | 12181 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12182 | PyObject *resultobj; |
12183 | wxRadioBox *result; | |
12184 | char *kwnames[] = { | |
12185 | NULL | |
12186 | }; | |
12187 | ||
12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
12189 | { | |
e3b71cb8 | 12190 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12192 | result = (wxRadioBox *)new wxRadioBox(); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12195 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12196 | } |
15afbcd0 | 12197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
12198 | return resultobj; |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
c32bde28 | 12204 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12205 | PyObject *resultobj; |
12206 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12207 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12208 | int arg3 = (int) -1 ; |
12209 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12210 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12211 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12212 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12213 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12214 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
12215 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
12216 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
12217 | int arg8 = (int) 0 ; | |
12218 | long arg9 = (long) wxRA_HORIZONTAL ; | |
12219 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12220 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12221 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
12222 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 12223 | bool result; |
ae8162c8 | 12224 | bool temp4 = false ; |
d14a1e28 RD |
12225 | wxPoint temp5 ; |
12226 | wxSize temp6 ; | |
ae8162c8 RD |
12227 | bool temp7 = false ; |
12228 | bool temp11 = false ; | |
d14a1e28 RD |
12229 | PyObject * obj0 = 0 ; |
12230 | PyObject * obj1 = 0 ; | |
994141e6 | 12231 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12232 | PyObject * obj3 = 0 ; |
12233 | PyObject * obj4 = 0 ; | |
12234 | PyObject * obj5 = 0 ; | |
12235 | PyObject * obj6 = 0 ; | |
994141e6 RD |
12236 | PyObject * obj7 = 0 ; |
12237 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
12238 | PyObject * obj9 = 0 ; |
12239 | PyObject * obj10 = 0 ; | |
12240 | char *kwnames[] = { | |
994141e6 | 12241 | (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 |
12242 | }; |
12243 | ||
248ed943 | 12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
12245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12249 | if (obj2) { |
c32bde28 | 12250 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12251 | if (PyErr_Occurred()) SWIG_fail; |
12252 | } | |
12253 | if (obj3) { | |
12254 | { | |
12255 | arg4 = wxString_in_helper(obj3); | |
12256 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12257 | temp4 = true; |
248ed943 | 12258 | } |
d14a1e28 RD |
12259 | } |
12260 | if (obj4) { | |
12261 | { | |
12262 | arg5 = &temp5; | |
12263 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12264 | } | |
12265 | } | |
12266 | if (obj5) { | |
12267 | { | |
12268 | arg6 = &temp6; | |
12269 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12270 | } | |
12271 | } | |
12272 | if (obj6) { | |
12273 | { | |
4d5c3d91 RD |
12274 | if (! PySequence_Check(obj6)) { |
12275 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12276 | SWIG_fail; | |
12277 | } | |
12278 | arg7 = new wxArrayString; | |
ae8162c8 | 12279 | temp7 = true; |
4d5c3d91 RD |
12280 | int i, len=PySequence_Length(obj6); |
12281 | for (i=0; i<len; i++) { | |
12282 | PyObject* item = PySequence_GetItem(obj6, i); | |
12283 | #if wxUSE_UNICODE | |
12284 | PyObject* str = PyObject_Unicode(item); | |
12285 | #else | |
12286 | PyObject* str = PyObject_Str(item); | |
12287 | #endif | |
74a57fcd | 12288 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
12289 | arg7->Add(Py2wxString(str)); |
12290 | Py_DECREF(item); | |
12291 | Py_DECREF(str); | |
12292 | } | |
d14a1e28 RD |
12293 | } |
12294 | } | |
994141e6 | 12295 | if (obj7) { |
c32bde28 | 12296 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 12297 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12298 | } |
12299 | if (obj8) { | |
c32bde28 | 12300 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 12301 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12302 | } |
d14a1e28 | 12303 | if (obj9) { |
15afbcd0 RD |
12304 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12305 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12306 | SWIG_fail; | |
4d5c3d91 | 12307 | if (arg10 == NULL) { |
15afbcd0 RD |
12308 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12309 | SWIG_fail; | |
d14a1e28 RD |
12310 | } |
12311 | } | |
12312 | if (obj10) { | |
12313 | { | |
4d5c3d91 RD |
12314 | arg11 = wxString_in_helper(obj10); |
12315 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 12316 | temp11 = true; |
d14a1e28 RD |
12317 | } |
12318 | } | |
12319 | { | |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 12321 | 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 |
12322 | |
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
4f89f6a3 RD |
12326 | { |
12327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12328 | } | |
d14a1e28 RD |
12329 | { |
12330 | if (temp4) | |
12331 | delete arg4; | |
12332 | } | |
12333 | { | |
3adfb63b | 12334 | if (temp7) delete arg7; |
d14a1e28 RD |
12335 | } |
12336 | { | |
12337 | if (temp11) | |
4d5c3d91 | 12338 | delete arg11; |
d14a1e28 RD |
12339 | } |
12340 | return resultobj; | |
12341 | fail: | |
12342 | { | |
12343 | if (temp4) | |
12344 | delete arg4; | |
12345 | } | |
12346 | { | |
3adfb63b | 12347 | if (temp7) delete arg7; |
d14a1e28 RD |
12348 | } |
12349 | { | |
12350 | if (temp11) | |
4d5c3d91 | 12351 | delete arg11; |
d14a1e28 RD |
12352 | } |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
c32bde28 | 12357 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12358 | PyObject *resultobj; |
12359 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12360 | int arg2 ; | |
12361 | PyObject * obj0 = 0 ; | |
994141e6 | 12362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12363 | char *kwnames[] = { |
12364 | (char *) "self",(char *) "n", NULL | |
12365 | }; | |
12366 | ||
994141e6 | 12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12370 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12371 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12372 | { |
12373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12374 | (arg1)->SetSelection(arg2); | |
12375 | ||
12376 | wxPyEndAllowThreads(__tstate); | |
12377 | if (PyErr_Occurred()) SWIG_fail; | |
12378 | } | |
12379 | Py_INCREF(Py_None); resultobj = Py_None; | |
12380 | return resultobj; | |
12381 | fail: | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
c32bde28 | 12386 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12387 | PyObject *resultobj; |
12388 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12389 | int result; | |
12390 | PyObject * obj0 = 0 ; | |
12391 | char *kwnames[] = { | |
12392 | (char *) "self", NULL | |
12393 | }; | |
12394 | ||
12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12398 | { |
12399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12400 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12401 | ||
12402 | wxPyEndAllowThreads(__tstate); | |
12403 | if (PyErr_Occurred()) SWIG_fail; | |
12404 | } | |
c32bde28 | 12405 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12406 | return resultobj; |
12407 | fail: | |
12408 | return NULL; | |
12409 | } | |
12410 | ||
12411 | ||
c32bde28 | 12412 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12413 | PyObject *resultobj; |
12414 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12415 | wxString result; | |
12416 | PyObject * obj0 = 0 ; | |
12417 | char *kwnames[] = { | |
12418 | (char *) "self", NULL | |
12419 | }; | |
12420 | ||
12421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12424 | { |
12425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12426 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12427 | ||
12428 | wxPyEndAllowThreads(__tstate); | |
12429 | if (PyErr_Occurred()) SWIG_fail; | |
12430 | } | |
12431 | { | |
12432 | #if wxUSE_UNICODE | |
12433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12434 | #else | |
12435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12436 | #endif | |
12437 | } | |
12438 | return resultobj; | |
12439 | fail: | |
12440 | return NULL; | |
12441 | } | |
12442 | ||
12443 | ||
c32bde28 | 12444 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12445 | PyObject *resultobj; |
12446 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12447 | wxString *arg2 = 0 ; | |
12448 | bool result; | |
ae8162c8 | 12449 | bool temp2 = false ; |
d14a1e28 RD |
12450 | PyObject * obj0 = 0 ; |
12451 | PyObject * obj1 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self",(char *) "s", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12459 | { |
12460 | arg2 = wxString_in_helper(obj1); | |
12461 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12462 | temp2 = true; |
d14a1e28 RD |
12463 | } |
12464 | { | |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12467 | ||
12468 | wxPyEndAllowThreads(__tstate); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
4f89f6a3 RD |
12471 | { |
12472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12473 | } | |
d14a1e28 RD |
12474 | { |
12475 | if (temp2) | |
12476 | delete arg2; | |
12477 | } | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | { | |
12481 | if (temp2) | |
12482 | delete arg2; | |
12483 | } | |
12484 | return NULL; | |
12485 | } | |
12486 | ||
12487 | ||
c32bde28 | 12488 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12489 | PyObject *resultobj; |
12490 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12491 | int result; | |
12492 | PyObject * obj0 = 0 ; | |
12493 | char *kwnames[] = { | |
12494 | (char *) "self", NULL | |
12495 | }; | |
12496 | ||
12497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12500 | { |
12501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12502 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12503 | ||
12504 | wxPyEndAllowThreads(__tstate); | |
12505 | if (PyErr_Occurred()) SWIG_fail; | |
12506 | } | |
c32bde28 | 12507 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12508 | return resultobj; |
12509 | fail: | |
12510 | return NULL; | |
12511 | } | |
12512 | ||
12513 | ||
c32bde28 | 12514 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12515 | PyObject *resultobj; |
12516 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12517 | wxString *arg2 = 0 ; | |
12518 | int result; | |
ae8162c8 | 12519 | bool temp2 = false ; |
d14a1e28 RD |
12520 | PyObject * obj0 = 0 ; |
12521 | PyObject * obj1 = 0 ; | |
12522 | char *kwnames[] = { | |
12523 | (char *) "self",(char *) "s", NULL | |
12524 | }; | |
12525 | ||
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12529 | { |
12530 | arg2 = wxString_in_helper(obj1); | |
12531 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12532 | temp2 = true; |
d14a1e28 RD |
12533 | } |
12534 | { | |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
c32bde28 | 12541 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12542 | { |
12543 | if (temp2) | |
12544 | delete arg2; | |
12545 | } | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | { | |
12549 | if (temp2) | |
12550 | delete arg2; | |
12551 | } | |
12552 | return NULL; | |
12553 | } | |
12554 | ||
12555 | ||
c32bde28 | 12556 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12557 | PyObject *resultobj; |
12558 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12559 | int arg2 ; | |
12560 | wxString result; | |
12561 | PyObject * obj0 = 0 ; | |
994141e6 | 12562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12563 | char *kwnames[] = { |
12564 | (char *) "self",(char *) "n", NULL | |
12565 | }; | |
12566 | ||
994141e6 | 12567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12570 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12571 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12572 | { |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12574 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12575 | ||
12576 | wxPyEndAllowThreads(__tstate); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
12579 | { | |
12580 | #if wxUSE_UNICODE | |
12581 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12582 | #else | |
12583 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12584 | #endif | |
12585 | } | |
12586 | return resultobj; | |
12587 | fail: | |
12588 | return NULL; | |
12589 | } | |
12590 | ||
12591 | ||
c32bde28 | 12592 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12593 | PyObject *resultobj; |
12594 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12595 | int arg2 ; | |
12596 | wxString *arg3 = 0 ; | |
ae8162c8 | 12597 | bool temp3 = false ; |
d14a1e28 | 12598 | PyObject * obj0 = 0 ; |
994141e6 | 12599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12600 | PyObject * obj2 = 0 ; |
12601 | char *kwnames[] = { | |
12602 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12603 | }; | |
12604 | ||
994141e6 | 12605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12608 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12609 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12610 | { |
12611 | arg3 = wxString_in_helper(obj2); | |
12612 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12613 | temp3 = true; |
d14a1e28 RD |
12614 | } |
12615 | { | |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12618 | ||
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | Py_INCREF(Py_None); resultobj = Py_None; | |
12623 | { | |
12624 | if (temp3) | |
12625 | delete arg3; | |
12626 | } | |
12627 | return resultobj; | |
12628 | fail: | |
12629 | { | |
12630 | if (temp3) | |
12631 | delete arg3; | |
12632 | } | |
12633 | return NULL; | |
12634 | } | |
12635 | ||
12636 | ||
c32bde28 | 12637 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12638 | PyObject *resultobj; |
12639 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12640 | int arg2 ; | |
ae8162c8 | 12641 | bool arg3 = (bool) true ; |
d14a1e28 | 12642 | PyObject * obj0 = 0 ; |
994141e6 | 12643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12644 | PyObject * obj2 = 0 ; |
12645 | char *kwnames[] = { | |
12646 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12647 | }; | |
12648 | ||
994141e6 | 12649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12652 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12653 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12654 | if (obj2) { |
c32bde28 | 12655 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12656 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12657 | } |
12658 | { | |
12659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12660 | (arg1)->Enable(arg2,arg3); | |
12661 | ||
12662 | wxPyEndAllowThreads(__tstate); | |
12663 | if (PyErr_Occurred()) SWIG_fail; | |
12664 | } | |
12665 | Py_INCREF(Py_None); resultobj = Py_None; | |
12666 | return resultobj; | |
12667 | fail: | |
12668 | return NULL; | |
12669 | } | |
12670 | ||
12671 | ||
c32bde28 | 12672 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12673 | PyObject *resultobj; |
12674 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12675 | int arg2 ; | |
ae8162c8 | 12676 | bool arg3 = (bool) true ; |
d14a1e28 | 12677 | PyObject * obj0 = 0 ; |
994141e6 | 12678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12679 | PyObject * obj2 = 0 ; |
12680 | char *kwnames[] = { | |
12681 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12682 | }; | |
12683 | ||
994141e6 | 12684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12687 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12688 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12689 | if (obj2) { |
c32bde28 | 12690 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12691 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12692 | } |
12693 | { | |
12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12695 | (arg1)->Show(arg2,arg3); | |
12696 | ||
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
12700 | Py_INCREF(Py_None); resultobj = Py_None; | |
12701 | return resultobj; | |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
c32bde28 | 12707 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12708 | PyObject *resultobj; |
12709 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12710 | int result; | |
12711 | PyObject * obj0 = 0 ; | |
12712 | char *kwnames[] = { | |
12713 | (char *) "self", NULL | |
12714 | }; | |
12715 | ||
12716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12719 | { |
12720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12721 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12722 | ||
12723 | wxPyEndAllowThreads(__tstate); | |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
12725 | } | |
c32bde28 | 12726 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12727 | return resultobj; |
12728 | fail: | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
c32bde28 | 12733 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12734 | PyObject *resultobj; |
12735 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12736 | int result; | |
12737 | PyObject * obj0 = 0 ; | |
12738 | char *kwnames[] = { | |
12739 | (char *) "self", NULL | |
12740 | }; | |
12741 | ||
12742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12745 | { |
12746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12747 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12748 | ||
12749 | wxPyEndAllowThreads(__tstate); | |
12750 | if (PyErr_Occurred()) SWIG_fail; | |
12751 | } | |
c32bde28 | 12752 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12753 | return resultobj; |
12754 | fail: | |
12755 | return NULL; | |
12756 | } | |
12757 | ||
12758 | ||
c32bde28 | 12759 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12760 | PyObject *resultobj; |
12761 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12762 | int arg2 ; | |
12763 | int arg3 ; | |
12764 | long arg4 ; | |
12765 | int result; | |
12766 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12767 | PyObject * obj1 = 0 ; |
12768 | PyObject * obj2 = 0 ; | |
12769 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12770 | char *kwnames[] = { |
12771 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12772 | }; | |
12773 | ||
994141e6 | 12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12777 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12778 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12779 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12780 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12781 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 12782 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12783 | { |
12784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12785 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12786 | ||
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
c32bde28 | 12790 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12791 | return resultobj; |
12792 | fail: | |
12793 | return NULL; | |
12794 | } | |
12795 | ||
12796 | ||
c32bde28 | 12797 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12798 | PyObject *resultobj; |
12799 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12800 | wxVisualAttributes result; | |
12801 | PyObject * obj0 = 0 ; | |
12802 | char *kwnames[] = { | |
12803 | (char *) "variant", NULL | |
12804 | }; | |
12805 | ||
12806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12807 | if (obj0) { | |
c32bde28 | 12808 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
12809 | if (PyErr_Occurred()) SWIG_fail; |
12810 | } | |
12811 | { | |
110da5b0 | 12812 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12814 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12815 | ||
12816 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12817 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12818 | } |
12819 | { | |
12820 | wxVisualAttributes * resultptr; | |
12821 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12823 | } | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
c32bde28 | 12830 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12831 | PyObject *obj; |
12832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12833 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12834 | Py_INCREF(obj); | |
12835 | return Py_BuildValue((char *)""); | |
12836 | } | |
c32bde28 | 12837 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12838 | PyObject *resultobj; |
12839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12840 | int arg2 = (int) -1 ; |
12841 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12842 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12843 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12844 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12845 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12846 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12847 | long arg6 = (long) 0 ; | |
12848 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12849 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12850 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12851 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12852 | wxRadioButton *result; | |
ae8162c8 | 12853 | bool temp3 = false ; |
d14a1e28 RD |
12854 | wxPoint temp4 ; |
12855 | wxSize temp5 ; | |
ae8162c8 | 12856 | bool temp8 = false ; |
d14a1e28 | 12857 | PyObject * obj0 = 0 ; |
994141e6 | 12858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12859 | PyObject * obj2 = 0 ; |
12860 | PyObject * obj3 = 0 ; | |
12861 | PyObject * obj4 = 0 ; | |
994141e6 | 12862 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12863 | PyObject * obj6 = 0 ; |
12864 | PyObject * obj7 = 0 ; | |
12865 | char *kwnames[] = { | |
12866 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12867 | }; | |
12868 | ||
248ed943 | 12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12872 | if (obj1) { |
c32bde28 | 12873 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12874 | if (PyErr_Occurred()) SWIG_fail; |
12875 | } | |
12876 | if (obj2) { | |
12877 | { | |
12878 | arg3 = wxString_in_helper(obj2); | |
12879 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12880 | temp3 = true; |
248ed943 | 12881 | } |
d14a1e28 RD |
12882 | } |
12883 | if (obj3) { | |
12884 | { | |
12885 | arg4 = &temp4; | |
12886 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12887 | } | |
12888 | } | |
12889 | if (obj4) { | |
12890 | { | |
12891 | arg5 = &temp5; | |
12892 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12893 | } | |
12894 | } | |
994141e6 | 12895 | if (obj5) { |
c32bde28 | 12896 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 12897 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12898 | } |
d14a1e28 | 12899 | if (obj6) { |
15afbcd0 RD |
12900 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12901 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12902 | SWIG_fail; | |
d14a1e28 | 12903 | if (arg7 == NULL) { |
15afbcd0 RD |
12904 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12905 | SWIG_fail; | |
d14a1e28 RD |
12906 | } |
12907 | } | |
12908 | if (obj7) { | |
12909 | { | |
12910 | arg8 = wxString_in_helper(obj7); | |
12911 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12912 | temp8 = true; |
d14a1e28 RD |
12913 | } |
12914 | } | |
12915 | { | |
e3b71cb8 | 12916 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12918 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12919 | ||
12920 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12921 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12922 | } |
15afbcd0 | 12923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12924 | { |
12925 | if (temp3) | |
12926 | delete arg3; | |
12927 | } | |
12928 | { | |
12929 | if (temp8) | |
12930 | delete arg8; | |
12931 | } | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | { | |
12935 | if (temp3) | |
12936 | delete arg3; | |
12937 | } | |
12938 | { | |
12939 | if (temp8) | |
12940 | delete arg8; | |
12941 | } | |
12942 | return NULL; | |
12943 | } | |
12944 | ||
12945 | ||
c32bde28 | 12946 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12947 | PyObject *resultobj; |
12948 | wxRadioButton *result; | |
12949 | char *kwnames[] = { | |
12950 | NULL | |
12951 | }; | |
12952 | ||
12953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12954 | { | |
e3b71cb8 | 12955 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12957 | result = (wxRadioButton *)new wxRadioButton(); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12960 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12961 | } |
15afbcd0 | 12962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12963 | return resultobj; |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
c32bde28 | 12969 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12970 | PyObject *resultobj; |
12971 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12972 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12973 | int arg3 = (int) -1 ; |
12974 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12975 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12976 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12977 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12978 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12979 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12980 | long arg7 = (long) 0 ; | |
12981 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12982 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12983 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12984 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12985 | bool result; | |
ae8162c8 | 12986 | bool temp4 = false ; |
d14a1e28 RD |
12987 | wxPoint temp5 ; |
12988 | wxSize temp6 ; | |
ae8162c8 | 12989 | bool temp9 = false ; |
d14a1e28 RD |
12990 | PyObject * obj0 = 0 ; |
12991 | PyObject * obj1 = 0 ; | |
994141e6 | 12992 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12993 | PyObject * obj3 = 0 ; |
12994 | PyObject * obj4 = 0 ; | |
12995 | PyObject * obj5 = 0 ; | |
994141e6 | 12996 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12997 | PyObject * obj7 = 0 ; |
12998 | PyObject * obj8 = 0 ; | |
12999 | char *kwnames[] = { | |
13000 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13001 | }; | |
13002 | ||
248ed943 | 13003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
13004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
13005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13008 | if (obj2) { |
c32bde28 | 13009 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13010 | if (PyErr_Occurred()) SWIG_fail; |
13011 | } | |
13012 | if (obj3) { | |
13013 | { | |
13014 | arg4 = wxString_in_helper(obj3); | |
13015 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13016 | temp4 = true; |
248ed943 | 13017 | } |
d14a1e28 RD |
13018 | } |
13019 | if (obj4) { | |
13020 | { | |
13021 | arg5 = &temp5; | |
13022 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13023 | } | |
13024 | } | |
13025 | if (obj5) { | |
13026 | { | |
13027 | arg6 = &temp6; | |
13028 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13029 | } | |
13030 | } | |
994141e6 | 13031 | if (obj6) { |
c32bde28 | 13032 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 13033 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13034 | } |
d14a1e28 | 13035 | if (obj7) { |
15afbcd0 RD |
13036 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13037 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13038 | SWIG_fail; | |
d14a1e28 | 13039 | if (arg8 == NULL) { |
15afbcd0 RD |
13040 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13041 | SWIG_fail; | |
d14a1e28 RD |
13042 | } |
13043 | } | |
13044 | if (obj8) { | |
13045 | { | |
13046 | arg9 = wxString_in_helper(obj8); | |
13047 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 13048 | temp9 = true; |
d14a1e28 RD |
13049 | } |
13050 | } | |
13051 | { | |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13053 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
4f89f6a3 RD |
13058 | { |
13059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13060 | } | |
d14a1e28 RD |
13061 | { |
13062 | if (temp4) | |
13063 | delete arg4; | |
13064 | } | |
13065 | { | |
13066 | if (temp9) | |
13067 | delete arg9; | |
13068 | } | |
13069 | return resultobj; | |
13070 | fail: | |
13071 | { | |
13072 | if (temp4) | |
13073 | delete arg4; | |
13074 | } | |
13075 | { | |
13076 | if (temp9) | |
13077 | delete arg9; | |
13078 | } | |
13079 | return NULL; | |
13080 | } | |
13081 | ||
13082 | ||
c32bde28 | 13083 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13084 | PyObject *resultobj; |
13085 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
13086 | bool result; | |
13087 | PyObject * obj0 = 0 ; | |
13088 | char *kwnames[] = { | |
13089 | (char *) "self", NULL | |
13090 | }; | |
13091 | ||
13092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
13094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13095 | { |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | result = (bool)(arg1)->GetValue(); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
4f89f6a3 RD |
13102 | { |
13103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13104 | } | |
d14a1e28 RD |
13105 | return resultobj; |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
c32bde28 | 13111 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13112 | PyObject *resultobj; |
13113 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
13114 | bool arg2 ; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | PyObject * obj1 = 0 ; | |
13117 | char *kwnames[] = { | |
13118 | (char *) "self",(char *) "value", NULL | |
13119 | }; | |
13120 | ||
13121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
13123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13124 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 13125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13126 | { |
13127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13128 | (arg1)->SetValue(arg2); | |
13129 | ||
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
13133 | Py_INCREF(Py_None); resultobj = Py_None; | |
13134 | return resultobj; | |
13135 | fail: | |
13136 | return NULL; | |
13137 | } | |
13138 | ||
13139 | ||
c32bde28 | 13140 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
13141 | PyObject *resultobj; |
13142 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13143 | wxVisualAttributes result; | |
13144 | PyObject * obj0 = 0 ; | |
13145 | char *kwnames[] = { | |
13146 | (char *) "variant", NULL | |
13147 | }; | |
13148 | ||
13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13150 | if (obj0) { | |
c32bde28 | 13151 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
13152 | if (PyErr_Occurred()) SWIG_fail; |
13153 | } | |
13154 | { | |
110da5b0 | 13155 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13157 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13158 | ||
13159 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13160 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13161 | } |
13162 | { | |
13163 | wxVisualAttributes * resultptr; | |
13164 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13166 | } | |
13167 | return resultobj; | |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
c32bde28 | 13173 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13174 | PyObject *obj; |
13175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13176 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
13177 | Py_INCREF(obj); | |
13178 | return Py_BuildValue((char *)""); | |
13179 | } | |
c32bde28 | 13180 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
13181 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
13182 | return 1; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | static PyObject *_wrap_SliderNameStr_get() { | |
13187 | PyObject *pyobj; | |
13188 | ||
13189 | { | |
13190 | #if wxUSE_UNICODE | |
13191 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
13192 | #else | |
13193 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
13194 | #endif | |
13195 | } | |
13196 | return pyobj; | |
13197 | } | |
13198 | ||
13199 | ||
c32bde28 | 13200 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13201 | PyObject *resultobj; |
13202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13203 | int arg2 = (int) -1 ; |
13204 | int arg3 = (int) 0 ; | |
13205 | int arg4 = (int) 0 ; | |
13206 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
13207 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
13208 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
13209 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
13210 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
13211 | long arg8 = (long) wxSL_HORIZONTAL ; | |
13212 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13213 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13214 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
13215 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13216 | wxSlider *result; | |
13217 | wxPoint temp6 ; | |
13218 | wxSize temp7 ; | |
ae8162c8 | 13219 | bool temp10 = false ; |
d14a1e28 | 13220 | PyObject * obj0 = 0 ; |
994141e6 RD |
13221 | PyObject * obj1 = 0 ; |
13222 | PyObject * obj2 = 0 ; | |
13223 | PyObject * obj3 = 0 ; | |
13224 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13225 | PyObject * obj5 = 0 ; |
13226 | PyObject * obj6 = 0 ; | |
994141e6 | 13227 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
13228 | PyObject * obj8 = 0 ; |
13229 | PyObject * obj9 = 0 ; | |
13230 | char *kwnames[] = { | |
994141e6 | 13231 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13232 | }; |
13233 | ||
248ed943 | 13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
13235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13237 | if (obj1) { |
c32bde28 | 13238 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
13239 | if (PyErr_Occurred()) SWIG_fail; |
13240 | } | |
13241 | if (obj2) { | |
c32bde28 | 13242 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13243 | if (PyErr_Occurred()) SWIG_fail; |
13244 | } | |
13245 | if (obj3) { | |
c32bde28 | 13246 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13247 | if (PyErr_Occurred()) SWIG_fail; |
13248 | } | |
13249 | if (obj4) { | |
c32bde28 | 13250 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13251 | if (PyErr_Occurred()) SWIG_fail; |
13252 | } | |
d14a1e28 RD |
13253 | if (obj5) { |
13254 | { | |
13255 | arg6 = &temp6; | |
13256 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13257 | } | |
13258 | } | |
13259 | if (obj6) { | |
13260 | { | |
13261 | arg7 = &temp7; | |
13262 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
13263 | } | |
13264 | } | |
994141e6 | 13265 | if (obj7) { |
c32bde28 | 13266 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 13267 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13268 | } |
d14a1e28 | 13269 | if (obj8) { |
15afbcd0 RD |
13270 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
13271 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13272 | SWIG_fail; | |
d14a1e28 | 13273 | if (arg9 == NULL) { |
15afbcd0 RD |
13274 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13275 | SWIG_fail; | |
d14a1e28 RD |
13276 | } |
13277 | } | |
13278 | if (obj9) { | |
13279 | { | |
13280 | arg10 = wxString_in_helper(obj9); | |
13281 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13282 | temp10 = true; |
d14a1e28 RD |
13283 | } |
13284 | } | |
13285 | { | |
e3b71cb8 | 13286 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13288 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13289 | ||
13290 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13291 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13292 | } |
15afbcd0 | 13293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13294 | { |
13295 | if (temp10) | |
13296 | delete arg10; | |
13297 | } | |
13298 | return resultobj; | |
13299 | fail: | |
13300 | { | |
13301 | if (temp10) | |
13302 | delete arg10; | |
13303 | } | |
13304 | return NULL; | |
13305 | } | |
13306 | ||
13307 | ||
c32bde28 | 13308 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13309 | PyObject *resultobj; |
13310 | wxSlider *result; | |
13311 | char *kwnames[] = { | |
13312 | NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
13316 | { | |
e3b71cb8 | 13317 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13319 | result = (wxSlider *)new wxSlider(); | |
13320 | ||
13321 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13322 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13323 | } |
15afbcd0 | 13324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13325 | return resultobj; |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
c32bde28 | 13331 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13332 | PyObject *resultobj; |
13333 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13335 | int arg3 = (int) -1 ; |
13336 | int arg4 = (int) 0 ; | |
13337 | int arg5 = (int) 0 ; | |
13338 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
13339 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
13340 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
13341 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
13342 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
13343 | long arg9 = (long) wxSL_HORIZONTAL ; | |
13344 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13345 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13346 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
13347 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13348 | bool result; | |
13349 | wxPoint temp7 ; | |
13350 | wxSize temp8 ; | |
ae8162c8 | 13351 | bool temp11 = false ; |
d14a1e28 RD |
13352 | PyObject * obj0 = 0 ; |
13353 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13354 | PyObject * obj2 = 0 ; |
13355 | PyObject * obj3 = 0 ; | |
13356 | PyObject * obj4 = 0 ; | |
13357 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
13358 | PyObject * obj6 = 0 ; |
13359 | PyObject * obj7 = 0 ; | |
994141e6 | 13360 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
13361 | PyObject * obj9 = 0 ; |
13362 | PyObject * obj10 = 0 ; | |
13363 | char *kwnames[] = { | |
994141e6 | 13364 | (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 |
13365 | }; |
13366 | ||
248ed943 | 13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
13368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13372 | if (obj2) { |
c32bde28 | 13373 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13374 | if (PyErr_Occurred()) SWIG_fail; |
13375 | } | |
13376 | if (obj3) { | |
c32bde28 | 13377 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13378 | if (PyErr_Occurred()) SWIG_fail; |
13379 | } | |
13380 | if (obj4) { | |
c32bde28 | 13381 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13382 | if (PyErr_Occurred()) SWIG_fail; |
13383 | } | |
13384 | if (obj5) { | |
c32bde28 | 13385 | arg6 = (int)SWIG_As_int(obj5); |
248ed943 RD |
13386 | if (PyErr_Occurred()) SWIG_fail; |
13387 | } | |
d14a1e28 RD |
13388 | if (obj6) { |
13389 | { | |
13390 | arg7 = &temp7; | |
13391 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13392 | } | |
13393 | } | |
13394 | if (obj7) { | |
13395 | { | |
13396 | arg8 = &temp8; | |
13397 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13398 | } | |
13399 | } | |
994141e6 | 13400 | if (obj8) { |
c32bde28 | 13401 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 13402 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13403 | } |
d14a1e28 | 13404 | if (obj9) { |
15afbcd0 RD |
13405 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
13406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13407 | SWIG_fail; | |
d14a1e28 | 13408 | if (arg10 == NULL) { |
15afbcd0 RD |
13409 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13410 | SWIG_fail; | |
d14a1e28 RD |
13411 | } |
13412 | } | |
13413 | if (obj10) { | |
13414 | { | |
13415 | arg11 = wxString_in_helper(obj10); | |
13416 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13417 | temp11 = true; |
d14a1e28 RD |
13418 | } |
13419 | } | |
13420 | { | |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
4f89f6a3 RD |
13427 | { |
13428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13429 | } | |
d14a1e28 RD |
13430 | { |
13431 | if (temp11) | |
13432 | delete arg11; | |
13433 | } | |
13434 | return resultobj; | |
13435 | fail: | |
13436 | { | |
13437 | if (temp11) | |
13438 | delete arg11; | |
13439 | } | |
13440 | return NULL; | |
13441 | } | |
13442 | ||
13443 | ||
c32bde28 | 13444 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13445 | PyObject *resultobj; |
13446 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13447 | int result; | |
13448 | PyObject * obj0 = 0 ; | |
13449 | char *kwnames[] = { | |
13450 | (char *) "self", NULL | |
13451 | }; | |
13452 | ||
13453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13456 | { |
13457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13458 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13459 | ||
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
c32bde28 | 13463 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13464 | return resultobj; |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
c32bde28 | 13470 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13471 | PyObject *resultobj; |
13472 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13473 | int arg2 ; | |
13474 | PyObject * obj0 = 0 ; | |
994141e6 | 13475 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13476 | char *kwnames[] = { |
13477 | (char *) "self",(char *) "value", NULL | |
13478 | }; | |
13479 | ||
994141e6 | 13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13483 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13484 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13485 | { |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | (arg1)->SetValue(arg2); | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | Py_INCREF(Py_None); resultobj = Py_None; | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
c32bde28 | 13499 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13500 | PyObject *resultobj; |
13501 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13502 | int arg2 ; | |
13503 | int arg3 ; | |
13504 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13505 | PyObject * obj1 = 0 ; |
13506 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13507 | char *kwnames[] = { |
13508 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13509 | }; | |
13510 | ||
994141e6 | 13511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13514 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13515 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13516 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13517 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13518 | { |
13519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13520 | (arg1)->SetRange(arg2,arg3); | |
13521 | ||
13522 | wxPyEndAllowThreads(__tstate); | |
13523 | if (PyErr_Occurred()) SWIG_fail; | |
13524 | } | |
13525 | Py_INCREF(Py_None); resultobj = Py_None; | |
13526 | return resultobj; | |
13527 | fail: | |
13528 | return NULL; | |
13529 | } | |
13530 | ||
13531 | ||
c32bde28 | 13532 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13533 | PyObject *resultobj; |
13534 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13535 | int result; | |
13536 | PyObject * obj0 = 0 ; | |
13537 | char *kwnames[] = { | |
13538 | (char *) "self", NULL | |
13539 | }; | |
13540 | ||
13541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13544 | { |
13545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13546 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13547 | ||
13548 | wxPyEndAllowThreads(__tstate); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | } | |
c32bde28 | 13551 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13552 | return resultobj; |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
c32bde28 | 13558 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13559 | PyObject *resultobj; |
13560 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13561 | int result; | |
13562 | PyObject * obj0 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "self", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13570 | { |
13571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13572 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13573 | ||
13574 | wxPyEndAllowThreads(__tstate); | |
13575 | if (PyErr_Occurred()) SWIG_fail; | |
13576 | } | |
c32bde28 | 13577 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13578 | return resultobj; |
13579 | fail: | |
13580 | return NULL; | |
13581 | } | |
13582 | ||
13583 | ||
c32bde28 | 13584 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13585 | PyObject *resultobj; |
13586 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13587 | int arg2 ; | |
13588 | PyObject * obj0 = 0 ; | |
994141e6 | 13589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13590 | char *kwnames[] = { |
13591 | (char *) "self",(char *) "minValue", NULL | |
13592 | }; | |
13593 | ||
994141e6 | 13594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13597 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13598 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13599 | { |
13600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13601 | (arg1)->SetMin(arg2); | |
13602 | ||
13603 | wxPyEndAllowThreads(__tstate); | |
13604 | if (PyErr_Occurred()) SWIG_fail; | |
13605 | } | |
13606 | Py_INCREF(Py_None); resultobj = Py_None; | |
13607 | return resultobj; | |
13608 | fail: | |
13609 | return NULL; | |
13610 | } | |
13611 | ||
13612 | ||
c32bde28 | 13613 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13614 | PyObject *resultobj; |
13615 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13616 | int arg2 ; | |
13617 | PyObject * obj0 = 0 ; | |
994141e6 | 13618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13619 | char *kwnames[] = { |
13620 | (char *) "self",(char *) "maxValue", NULL | |
13621 | }; | |
13622 | ||
994141e6 | 13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13626 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13627 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13628 | { |
13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13630 | (arg1)->SetMax(arg2); | |
13631 | ||
13632 | wxPyEndAllowThreads(__tstate); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | } | |
13635 | Py_INCREF(Py_None); resultobj = Py_None; | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | return NULL; | |
13639 | } | |
13640 | ||
13641 | ||
c32bde28 | 13642 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13643 | PyObject *resultobj; |
13644 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13645 | int arg2 ; | |
13646 | PyObject * obj0 = 0 ; | |
994141e6 | 13647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13648 | char *kwnames[] = { |
13649 | (char *) "self",(char *) "lineSize", NULL | |
13650 | }; | |
13651 | ||
994141e6 | 13652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13655 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13656 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13657 | { |
13658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13659 | (arg1)->SetLineSize(arg2); | |
13660 | ||
13661 | wxPyEndAllowThreads(__tstate); | |
13662 | if (PyErr_Occurred()) SWIG_fail; | |
13663 | } | |
13664 | Py_INCREF(Py_None); resultobj = Py_None; | |
13665 | return resultobj; | |
13666 | fail: | |
13667 | return NULL; | |
13668 | } | |
13669 | ||
13670 | ||
c32bde28 | 13671 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13672 | PyObject *resultobj; |
13673 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13674 | int arg2 ; | |
13675 | PyObject * obj0 = 0 ; | |
994141e6 | 13676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13677 | char *kwnames[] = { |
13678 | (char *) "self",(char *) "pageSize", NULL | |
13679 | }; | |
13680 | ||
994141e6 | 13681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13684 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13685 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13686 | { |
13687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13688 | (arg1)->SetPageSize(arg2); | |
13689 | ||
13690 | wxPyEndAllowThreads(__tstate); | |
13691 | if (PyErr_Occurred()) SWIG_fail; | |
13692 | } | |
13693 | Py_INCREF(Py_None); resultobj = Py_None; | |
13694 | return resultobj; | |
13695 | fail: | |
13696 | return NULL; | |
13697 | } | |
13698 | ||
13699 | ||
c32bde28 | 13700 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13701 | PyObject *resultobj; |
13702 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13703 | int result; | |
13704 | PyObject * obj0 = 0 ; | |
13705 | char *kwnames[] = { | |
13706 | (char *) "self", NULL | |
13707 | }; | |
13708 | ||
13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13712 | { |
13713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13714 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13715 | ||
13716 | wxPyEndAllowThreads(__tstate); | |
13717 | if (PyErr_Occurred()) SWIG_fail; | |
13718 | } | |
c32bde28 | 13719 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13720 | return resultobj; |
13721 | fail: | |
13722 | return NULL; | |
13723 | } | |
13724 | ||
13725 | ||
c32bde28 | 13726 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13727 | PyObject *resultobj; |
13728 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13729 | int result; | |
13730 | PyObject * obj0 = 0 ; | |
13731 | char *kwnames[] = { | |
13732 | (char *) "self", NULL | |
13733 | }; | |
13734 | ||
13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13738 | { |
13739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13740 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13741 | ||
13742 | wxPyEndAllowThreads(__tstate); | |
13743 | if (PyErr_Occurred()) SWIG_fail; | |
13744 | } | |
c32bde28 | 13745 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13746 | return resultobj; |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
c32bde28 | 13752 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13753 | PyObject *resultobj; |
13754 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13755 | int arg2 ; | |
13756 | PyObject * obj0 = 0 ; | |
994141e6 | 13757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13758 | char *kwnames[] = { |
13759 | (char *) "self",(char *) "lenPixels", NULL | |
13760 | }; | |
13761 | ||
994141e6 | 13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13765 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13766 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13767 | { |
13768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13769 | (arg1)->SetThumbLength(arg2); | |
13770 | ||
13771 | wxPyEndAllowThreads(__tstate); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | Py_INCREF(Py_None); resultobj = Py_None; | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
c32bde28 | 13781 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13782 | PyObject *resultobj; |
13783 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13784 | int result; | |
13785 | PyObject * obj0 = 0 ; | |
13786 | char *kwnames[] = { | |
13787 | (char *) "self", NULL | |
13788 | }; | |
13789 | ||
13790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13793 | { |
13794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13795 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13796 | ||
13797 | wxPyEndAllowThreads(__tstate); | |
13798 | if (PyErr_Occurred()) SWIG_fail; | |
13799 | } | |
c32bde28 | 13800 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13801 | return resultobj; |
13802 | fail: | |
13803 | return NULL; | |
13804 | } | |
13805 | ||
13806 | ||
c32bde28 | 13807 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13808 | PyObject *resultobj; |
13809 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13810 | int arg2 ; | |
994141e6 | 13811 | int arg3 = (int) 1 ; |
d14a1e28 | 13812 | PyObject * obj0 = 0 ; |
994141e6 RD |
13813 | PyObject * obj1 = 0 ; |
13814 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13815 | char *kwnames[] = { |
13816 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13817 | }; | |
13818 | ||
994141e6 | 13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13822 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13823 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13824 | if (obj2) { |
c32bde28 | 13825 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13826 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13827 | } |
d14a1e28 RD |
13828 | { |
13829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13830 | (arg1)->SetTickFreq(arg2,arg3); | |
13831 | ||
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | Py_INCREF(Py_None); resultobj = Py_None; | |
13836 | return resultobj; | |
13837 | fail: | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
c32bde28 | 13842 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13843 | PyObject *resultobj; |
13844 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13845 | int result; | |
13846 | PyObject * obj0 = 0 ; | |
13847 | char *kwnames[] = { | |
13848 | (char *) "self", NULL | |
13849 | }; | |
13850 | ||
13851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13854 | { |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
c32bde28 | 13861 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13862 | return resultobj; |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
c32bde28 | 13868 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13869 | PyObject *resultobj; |
13870 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13871 | PyObject * obj0 = 0 ; | |
13872 | char *kwnames[] = { | |
13873 | (char *) "self", NULL | |
13874 | }; | |
13875 | ||
13876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13879 | { |
13880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13881 | (arg1)->ClearTicks(); | |
13882 | ||
13883 | wxPyEndAllowThreads(__tstate); | |
13884 | if (PyErr_Occurred()) SWIG_fail; | |
13885 | } | |
13886 | Py_INCREF(Py_None); resultobj = Py_None; | |
13887 | return resultobj; | |
13888 | fail: | |
13889 | return NULL; | |
13890 | } | |
13891 | ||
13892 | ||
c32bde28 | 13893 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13894 | PyObject *resultobj; |
13895 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13896 | int arg2 ; | |
13897 | PyObject * obj0 = 0 ; | |
994141e6 | 13898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13899 | char *kwnames[] = { |
13900 | (char *) "self",(char *) "tickPos", NULL | |
13901 | }; | |
13902 | ||
994141e6 | 13903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13906 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13907 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13908 | { |
13909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13910 | (arg1)->SetTick(arg2); | |
13911 | ||
13912 | wxPyEndAllowThreads(__tstate); | |
13913 | if (PyErr_Occurred()) SWIG_fail; | |
13914 | } | |
13915 | Py_INCREF(Py_None); resultobj = Py_None; | |
13916 | return resultobj; | |
13917 | fail: | |
13918 | return NULL; | |
13919 | } | |
13920 | ||
13921 | ||
c32bde28 | 13922 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13923 | PyObject *resultobj; |
13924 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13925 | PyObject * obj0 = 0 ; | |
13926 | char *kwnames[] = { | |
13927 | (char *) "self", NULL | |
13928 | }; | |
13929 | ||
13930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13933 | { |
13934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13935 | (arg1)->ClearSel(); | |
13936 | ||
13937 | wxPyEndAllowThreads(__tstate); | |
13938 | if (PyErr_Occurred()) SWIG_fail; | |
13939 | } | |
13940 | Py_INCREF(Py_None); resultobj = Py_None; | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | return NULL; | |
13944 | } | |
13945 | ||
13946 | ||
c32bde28 | 13947 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13948 | PyObject *resultobj; |
13949 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13950 | int result; | |
13951 | PyObject * obj0 = 0 ; | |
13952 | char *kwnames[] = { | |
13953 | (char *) "self", NULL | |
13954 | }; | |
13955 | ||
13956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13959 | { |
13960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13961 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13962 | ||
13963 | wxPyEndAllowThreads(__tstate); | |
13964 | if (PyErr_Occurred()) SWIG_fail; | |
13965 | } | |
c32bde28 | 13966 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13967 | return resultobj; |
13968 | fail: | |
13969 | return NULL; | |
13970 | } | |
13971 | ||
13972 | ||
c32bde28 | 13973 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13974 | PyObject *resultobj; |
13975 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13976 | int result; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | char *kwnames[] = { | |
13979 | (char *) "self", NULL | |
13980 | }; | |
13981 | ||
13982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13985 | { |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
c32bde28 | 13992 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13993 | return resultobj; |
13994 | fail: | |
13995 | return NULL; | |
13996 | } | |
13997 | ||
13998 | ||
c32bde28 | 13999 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14000 | PyObject *resultobj; |
14001 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14002 | int arg2 ; | |
14003 | int arg3 ; | |
14004 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14005 | PyObject * obj1 = 0 ; |
14006 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14007 | char *kwnames[] = { |
14008 | (char *) "self",(char *) "min",(char *) "max", NULL | |
14009 | }; | |
14010 | ||
994141e6 | 14011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
14013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14014 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14015 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14016 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14017 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14018 | { |
14019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14020 | (arg1)->SetSelection(arg2,arg3); | |
14021 | ||
14022 | wxPyEndAllowThreads(__tstate); | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | } | |
14025 | Py_INCREF(Py_None); resultobj = Py_None; | |
14026 | return resultobj; | |
14027 | fail: | |
14028 | return NULL; | |
14029 | } | |
14030 | ||
14031 | ||
c32bde28 | 14032 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14033 | PyObject *resultobj; |
14034 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14035 | wxVisualAttributes result; | |
14036 | PyObject * obj0 = 0 ; | |
14037 | char *kwnames[] = { | |
14038 | (char *) "variant", NULL | |
14039 | }; | |
14040 | ||
14041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14042 | if (obj0) { | |
c32bde28 | 14043 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14044 | if (PyErr_Occurred()) SWIG_fail; |
14045 | } | |
14046 | { | |
110da5b0 | 14047 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14049 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14050 | ||
14051 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14052 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14053 | } |
14054 | { | |
14055 | wxVisualAttributes * resultptr; | |
14056 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14058 | } | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | return NULL; | |
14062 | } | |
14063 | ||
14064 | ||
c32bde28 | 14065 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14066 | PyObject *obj; |
14067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14068 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
14069 | Py_INCREF(obj); | |
14070 | return Py_BuildValue((char *)""); | |
14071 | } | |
c32bde28 | 14072 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
14073 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
14074 | return 1; | |
14075 | } | |
14076 | ||
14077 | ||
14078 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
14079 | PyObject *pyobj; | |
14080 | ||
14081 | { | |
14082 | #if wxUSE_UNICODE | |
14083 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
14084 | #else | |
14085 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
14086 | #endif | |
14087 | } | |
14088 | return pyobj; | |
14089 | } | |
14090 | ||
14091 | ||
c32bde28 | 14092 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14093 | PyObject *resultobj; |
14094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14095 | int arg2 = (int) -1 ; |
14096 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14097 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
14098 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14099 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14100 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14101 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14102 | long arg6 = (long) 0 ; | |
14103 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14104 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14105 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
14106 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14107 | wxToggleButton *result; | |
ae8162c8 | 14108 | bool temp3 = false ; |
d14a1e28 RD |
14109 | wxPoint temp4 ; |
14110 | wxSize temp5 ; | |
ae8162c8 | 14111 | bool temp8 = false ; |
d14a1e28 | 14112 | PyObject * obj0 = 0 ; |
994141e6 | 14113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14114 | PyObject * obj2 = 0 ; |
14115 | PyObject * obj3 = 0 ; | |
14116 | PyObject * obj4 = 0 ; | |
994141e6 | 14117 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14118 | PyObject * obj6 = 0 ; |
14119 | PyObject * obj7 = 0 ; | |
14120 | char *kwnames[] = { | |
14121 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14122 | }; | |
14123 | ||
248ed943 | 14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
14125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14127 | if (obj1) { |
c32bde28 | 14128 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
14129 | if (PyErr_Occurred()) SWIG_fail; |
14130 | } | |
14131 | if (obj2) { | |
14132 | { | |
14133 | arg3 = wxString_in_helper(obj2); | |
14134 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14135 | temp3 = true; |
248ed943 | 14136 | } |
d14a1e28 RD |
14137 | } |
14138 | if (obj3) { | |
14139 | { | |
14140 | arg4 = &temp4; | |
14141 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14142 | } | |
14143 | } | |
14144 | if (obj4) { | |
14145 | { | |
14146 | arg5 = &temp5; | |
14147 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14148 | } | |
14149 | } | |
994141e6 | 14150 | if (obj5) { |
c32bde28 | 14151 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 14152 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14153 | } |
d14a1e28 | 14154 | if (obj6) { |
15afbcd0 RD |
14155 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
14156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14157 | SWIG_fail; | |
d14a1e28 | 14158 | if (arg7 == NULL) { |
15afbcd0 RD |
14159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14160 | SWIG_fail; | |
d14a1e28 RD |
14161 | } |
14162 | } | |
14163 | if (obj7) { | |
14164 | { | |
14165 | arg8 = wxString_in_helper(obj7); | |
14166 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14167 | temp8 = true; |
d14a1e28 RD |
14168 | } |
14169 | } | |
14170 | { | |
e3b71cb8 | 14171 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14173 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14176 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14177 | } |
15afbcd0 | 14178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
14179 | { |
14180 | if (temp3) | |
14181 | delete arg3; | |
14182 | } | |
14183 | { | |
14184 | if (temp8) | |
14185 | delete arg8; | |
14186 | } | |
14187 | return resultobj; | |
14188 | fail: | |
14189 | { | |
14190 | if (temp3) | |
14191 | delete arg3; | |
14192 | } | |
14193 | { | |
14194 | if (temp8) | |
14195 | delete arg8; | |
14196 | } | |
14197 | return NULL; | |
14198 | } | |
14199 | ||
14200 | ||
c32bde28 | 14201 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14202 | PyObject *resultobj; |
14203 | wxToggleButton *result; | |
14204 | char *kwnames[] = { | |
14205 | NULL | |
14206 | }; | |
14207 | ||
14208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
14209 | { | |
e3b71cb8 | 14210 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14212 | result = (wxToggleButton *)new wxToggleButton(); | |
14213 | ||
14214 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14216 | } |
15afbcd0 | 14217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
14218 | return resultobj; |
14219 | fail: | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
c32bde28 | 14224 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14225 | PyObject *resultobj; |
14226 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14228 | int arg3 = (int) -1 ; |
14229 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14230 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
14231 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14232 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14233 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14234 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14235 | long arg7 = (long) 0 ; | |
14236 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14237 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14238 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
14239 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14240 | bool result; | |
ae8162c8 | 14241 | bool temp4 = false ; |
d14a1e28 RD |
14242 | wxPoint temp5 ; |
14243 | wxSize temp6 ; | |
ae8162c8 | 14244 | bool temp9 = false ; |
d14a1e28 RD |
14245 | PyObject * obj0 = 0 ; |
14246 | PyObject * obj1 = 0 ; | |
994141e6 | 14247 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14248 | PyObject * obj3 = 0 ; |
14249 | PyObject * obj4 = 0 ; | |
14250 | PyObject * obj5 = 0 ; | |
994141e6 | 14251 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14252 | PyObject * obj7 = 0 ; |
14253 | PyObject * obj8 = 0 ; | |
14254 | char *kwnames[] = { | |
14255 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14256 | }; | |
14257 | ||
248ed943 | 14258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
14259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14263 | if (obj2) { |
c32bde28 | 14264 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
14265 | if (PyErr_Occurred()) SWIG_fail; |
14266 | } | |
14267 | if (obj3) { | |
14268 | { | |
14269 | arg4 = wxString_in_helper(obj3); | |
14270 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14271 | temp4 = true; |
248ed943 | 14272 | } |
d14a1e28 RD |
14273 | } |
14274 | if (obj4) { | |
14275 | { | |
14276 | arg5 = &temp5; | |
14277 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14278 | } | |
14279 | } | |
14280 | if (obj5) { | |
14281 | { | |
14282 | arg6 = &temp6; | |
14283 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14284 | } | |
14285 | } | |
994141e6 | 14286 | if (obj6) { |
c32bde28 | 14287 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 14288 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14289 | } |
d14a1e28 | 14290 | if (obj7) { |
15afbcd0 RD |
14291 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
14292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14293 | SWIG_fail; | |
d14a1e28 | 14294 | if (arg8 == NULL) { |
15afbcd0 RD |
14295 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14296 | SWIG_fail; | |
d14a1e28 RD |
14297 | } |
14298 | } | |
14299 | if (obj8) { | |
14300 | { | |
14301 | arg9 = wxString_in_helper(obj8); | |
14302 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14303 | temp9 = true; |
d14a1e28 RD |
14304 | } |
14305 | } | |
14306 | { | |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
4f89f6a3 RD |
14313 | { |
14314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14315 | } | |
d14a1e28 RD |
14316 | { |
14317 | if (temp4) | |
14318 | delete arg4; | |
14319 | } | |
14320 | { | |
14321 | if (temp9) | |
14322 | delete arg9; | |
14323 | } | |
14324 | return resultobj; | |
14325 | fail: | |
14326 | { | |
14327 | if (temp4) | |
14328 | delete arg4; | |
14329 | } | |
14330 | { | |
14331 | if (temp9) | |
14332 | delete arg9; | |
14333 | } | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
c32bde28 | 14338 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14339 | PyObject *resultobj; |
14340 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14341 | bool arg2 ; | |
14342 | PyObject * obj0 = 0 ; | |
14343 | PyObject * obj1 = 0 ; | |
14344 | char *kwnames[] = { | |
14345 | (char *) "self",(char *) "value", NULL | |
14346 | }; | |
14347 | ||
14348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14351 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14353 | { |
14354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14355 | (arg1)->SetValue(arg2); | |
14356 | ||
14357 | wxPyEndAllowThreads(__tstate); | |
14358 | if (PyErr_Occurred()) SWIG_fail; | |
14359 | } | |
14360 | Py_INCREF(Py_None); resultobj = Py_None; | |
14361 | return resultobj; | |
14362 | fail: | |
14363 | return NULL; | |
14364 | } | |
14365 | ||
14366 | ||
c32bde28 | 14367 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14368 | PyObject *resultobj; |
14369 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14370 | bool result; | |
14371 | PyObject * obj0 = 0 ; | |
14372 | char *kwnames[] = { | |
14373 | (char *) "self", NULL | |
14374 | }; | |
14375 | ||
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14379 | { |
14380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14381 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14382 | ||
14383 | wxPyEndAllowThreads(__tstate); | |
14384 | if (PyErr_Occurred()) SWIG_fail; | |
14385 | } | |
4f89f6a3 RD |
14386 | { |
14387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14388 | } | |
d14a1e28 RD |
14389 | return resultobj; |
14390 | fail: | |
14391 | return NULL; | |
14392 | } | |
14393 | ||
14394 | ||
c32bde28 | 14395 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14396 | PyObject *resultobj; |
14397 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14398 | wxString *arg2 = 0 ; | |
ae8162c8 | 14399 | bool temp2 = false ; |
d14a1e28 RD |
14400 | PyObject * obj0 = 0 ; |
14401 | PyObject * obj1 = 0 ; | |
14402 | char *kwnames[] = { | |
14403 | (char *) "self",(char *) "label", NULL | |
14404 | }; | |
14405 | ||
14406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14409 | { |
14410 | arg2 = wxString_in_helper(obj1); | |
14411 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14412 | temp2 = true; |
d14a1e28 RD |
14413 | } |
14414 | { | |
14415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14416 | (arg1)->SetLabel((wxString const &)*arg2); | |
14417 | ||
14418 | wxPyEndAllowThreads(__tstate); | |
14419 | if (PyErr_Occurred()) SWIG_fail; | |
14420 | } | |
14421 | Py_INCREF(Py_None); resultobj = Py_None; | |
14422 | { | |
14423 | if (temp2) | |
14424 | delete arg2; | |
14425 | } | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | { | |
14429 | if (temp2) | |
14430 | delete arg2; | |
14431 | } | |
14432 | return NULL; | |
14433 | } | |
14434 | ||
14435 | ||
c32bde28 | 14436 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14437 | PyObject *resultobj; |
14438 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14439 | wxVisualAttributes result; | |
14440 | PyObject * obj0 = 0 ; | |
14441 | char *kwnames[] = { | |
14442 | (char *) "variant", NULL | |
14443 | }; | |
14444 | ||
14445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14446 | if (obj0) { | |
c32bde28 | 14447 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14448 | if (PyErr_Occurred()) SWIG_fail; |
14449 | } | |
14450 | { | |
110da5b0 | 14451 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14453 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14454 | ||
14455 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14456 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14457 | } |
14458 | { | |
14459 | wxVisualAttributes * resultptr; | |
14460 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14462 | } | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
c32bde28 | 14469 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14470 | PyObject *obj; |
14471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14472 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14473 | Py_INCREF(obj); | |
14474 | return Py_BuildValue((char *)""); | |
14475 | } | |
c32bde28 | 14476 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
b2dc1044 RD |
14477 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
14478 | return 1; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14483 | PyObject *pyobj; | |
14484 | ||
14485 | { | |
14486 | #if wxUSE_UNICODE | |
14487 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14488 | #else | |
14489 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14490 | #endif | |
14491 | } | |
14492 | return pyobj; | |
14493 | } | |
14494 | ||
14495 | ||
8ac8dba0 | 14496 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14497 | PyObject *resultobj; |
8ac8dba0 | 14498 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14499 | size_t result; |
14500 | PyObject * obj0 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
8ac8dba0 RD |
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14508 | { |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14510 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d14a1e28 RD |
14511 | |
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
c32bde28 | 14515 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
14516 | return resultobj; |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
8ac8dba0 | 14522 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14523 | PyObject *resultobj; |
8ac8dba0 | 14524 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14525 | size_t arg2 ; |
14526 | wxWindow *result; | |
14527 | PyObject * obj0 = 0 ; | |
14528 | PyObject * obj1 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self",(char *) "n", NULL | |
14531 | }; | |
14532 | ||
8ac8dba0 RD |
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
14534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14536 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14537 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14538 | { |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
14545 | { | |
412d302d | 14546 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14547 | } |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
8ac8dba0 | 14554 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 14555 | PyObject *resultobj; |
8ac8dba0 | 14556 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
14557 | wxWindow *result; |
14558 | PyObject * obj0 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self", NULL | |
14561 | }; | |
14562 | ||
8ac8dba0 RD |
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
8fb0e70a RD |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14568 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
14569 | |
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | { | |
14574 | resultobj = wxPyMake_wxObject(result, 0); | |
14575 | } | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
8ac8dba0 | 14582 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14583 | PyObject *resultobj; |
8ac8dba0 | 14584 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14585 | int result; |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
8ac8dba0 RD |
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14594 | { |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14596 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d14a1e28 RD |
14597 | |
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
c32bde28 | 14601 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14602 | return resultobj; |
14603 | fail: | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
8ac8dba0 | 14608 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14609 | PyObject *resultobj; |
8ac8dba0 | 14610 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14611 | size_t arg2 ; |
14612 | wxString *arg3 = 0 ; | |
14613 | bool result; | |
ae8162c8 | 14614 | bool temp3 = false ; |
d14a1e28 RD |
14615 | PyObject * obj0 = 0 ; |
14616 | PyObject * obj1 = 0 ; | |
14617 | PyObject * obj2 = 0 ; | |
14618 | char *kwnames[] = { | |
14619 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14620 | }; | |
14621 | ||
8ac8dba0 RD |
14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14625 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14627 | { |
14628 | arg3 = wxString_in_helper(obj2); | |
14629 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14630 | temp3 = true; |
d14a1e28 RD |
14631 | } |
14632 | { | |
14633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14634 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14635 | ||
14636 | wxPyEndAllowThreads(__tstate); | |
14637 | if (PyErr_Occurred()) SWIG_fail; | |
14638 | } | |
4f89f6a3 RD |
14639 | { |
14640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14641 | } | |
d14a1e28 RD |
14642 | { |
14643 | if (temp3) | |
14644 | delete arg3; | |
14645 | } | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | { | |
14649 | if (temp3) | |
14650 | delete arg3; | |
14651 | } | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
8ac8dba0 | 14656 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14657 | PyObject *resultobj; |
8ac8dba0 | 14658 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14659 | size_t arg2 ; |
14660 | wxString result; | |
14661 | PyObject * obj0 = 0 ; | |
14662 | PyObject * obj1 = 0 ; | |
14663 | char *kwnames[] = { | |
14664 | (char *) "self",(char *) "n", NULL | |
14665 | }; | |
14666 | ||
8ac8dba0 RD |
14667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
14668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14670 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14671 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14672 | { |
14673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14674 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d14a1e28 RD |
14675 | |
14676 | wxPyEndAllowThreads(__tstate); | |
14677 | if (PyErr_Occurred()) SWIG_fail; | |
14678 | } | |
14679 | { | |
14680 | #if wxUSE_UNICODE | |
14681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14682 | #else | |
14683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14684 | #endif | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
8ac8dba0 | 14692 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14693 | PyObject *resultobj; |
8ac8dba0 | 14694 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14695 | wxImageList *arg2 = (wxImageList *) 0 ; |
14696 | PyObject * obj0 = 0 ; | |
14697 | PyObject * obj1 = 0 ; | |
14698 | char *kwnames[] = { | |
14699 | (char *) "self",(char *) "imageList", NULL | |
14700 | }; | |
14701 | ||
8ac8dba0 RD |
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
14703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 RD |
14704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14707 | { |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14709 | (arg1)->SetImageList(arg2); | |
14710 | ||
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
8ac8dba0 | 14721 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14722 | PyObject *resultobj; |
8ac8dba0 | 14723 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14724 | wxImageList *arg2 = (wxImageList *) 0 ; |
14725 | PyObject * obj0 = 0 ; | |
14726 | PyObject * obj1 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self",(char *) "imageList", NULL | |
14729 | }; | |
14730 | ||
8ac8dba0 RD |
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 RD |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
14734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14735 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14736 | { |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | (arg1)->AssignImageList(arg2); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | Py_INCREF(Py_None); resultobj = Py_None; | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
8ac8dba0 | 14750 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14751 | PyObject *resultobj; |
8ac8dba0 | 14752 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14753 | wxImageList *result; |
14754 | PyObject * obj0 = 0 ; | |
14755 | char *kwnames[] = { | |
14756 | (char *) "self", NULL | |
14757 | }; | |
14758 | ||
8ac8dba0 RD |
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
14760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14762 | { |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14764 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d14a1e28 RD |
14765 | |
14766 | wxPyEndAllowThreads(__tstate); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
14768 | } | |
14769 | { | |
412d302d | 14770 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14771 | } |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
8ac8dba0 | 14778 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14779 | PyObject *resultobj; |
8ac8dba0 | 14780 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14781 | size_t arg2 ; |
14782 | int result; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | char *kwnames[] = { | |
14786 | (char *) "self",(char *) "n", NULL | |
14787 | }; | |
14788 | ||
8ac8dba0 RD |
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
14790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14792 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14793 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14794 | { |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14796 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d14a1e28 RD |
14797 | |
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
c32bde28 | 14801 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14802 | return resultobj; |
14803 | fail: | |
14804 | return NULL; | |
14805 | } | |
14806 | ||
14807 | ||
8ac8dba0 | 14808 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14809 | PyObject *resultobj; |
8ac8dba0 | 14810 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14811 | size_t arg2 ; |
14812 | int arg3 ; | |
14813 | bool result; | |
14814 | PyObject * obj0 = 0 ; | |
14815 | PyObject * obj1 = 0 ; | |
994141e6 | 14816 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14817 | char *kwnames[] = { |
14818 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14819 | }; | |
14820 | ||
8ac8dba0 RD |
14821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14824 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14825 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14826 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14827 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14828 | { |
14829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14830 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14831 | ||
14832 | wxPyEndAllowThreads(__tstate); | |
14833 | if (PyErr_Occurred()) SWIG_fail; | |
14834 | } | |
4f89f6a3 RD |
14835 | { |
14836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14837 | } | |
d14a1e28 RD |
14838 | return resultobj; |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
8ac8dba0 | 14844 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14845 | PyObject *resultobj; |
8ac8dba0 | 14846 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14847 | wxSize *arg2 = 0 ; |
14848 | wxSize temp2 ; | |
14849 | PyObject * obj0 = 0 ; | |
14850 | PyObject * obj1 = 0 ; | |
14851 | char *kwnames[] = { | |
14852 | (char *) "self",(char *) "size", NULL | |
14853 | }; | |
14854 | ||
8ac8dba0 RD |
14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
14856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14858 | { |
14859 | arg2 = &temp2; | |
14860 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14861 | } | |
14862 | { | |
14863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14864 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14865 | ||
14866 | wxPyEndAllowThreads(__tstate); | |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
14868 | } | |
14869 | Py_INCREF(Py_None); resultobj = Py_None; | |
14870 | return resultobj; | |
14871 | fail: | |
14872 | return NULL; | |
14873 | } | |
14874 | ||
14875 | ||
8ac8dba0 | 14876 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14877 | PyObject *resultobj; |
8ac8dba0 | 14878 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14879 | wxSize *arg2 = 0 ; |
14880 | wxSize result; | |
14881 | wxSize temp2 ; | |
14882 | PyObject * obj0 = 0 ; | |
14883 | PyObject * obj1 = 0 ; | |
14884 | char *kwnames[] = { | |
14885 | (char *) "self",(char *) "sizePage", NULL | |
14886 | }; | |
14887 | ||
8ac8dba0 RD |
14888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
14889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14891 | { |
14892 | arg2 = &temp2; | |
14893 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14894 | } | |
14895 | { | |
14896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 14897 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d14a1e28 RD |
14898 | |
14899 | wxPyEndAllowThreads(__tstate); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | } | |
14902 | { | |
14903 | wxSize * resultptr; | |
14904 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14906 | } |
14907 | return resultobj; | |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
8ac8dba0 | 14913 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14914 | PyObject *resultobj; |
8ac8dba0 | 14915 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14916 | size_t arg2 ; |
14917 | bool result; | |
14918 | PyObject * obj0 = 0 ; | |
14919 | PyObject * obj1 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "self",(char *) "n", NULL | |
14922 | }; | |
14923 | ||
8ac8dba0 RD |
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
14925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14927 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14928 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14929 | { |
14930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14931 | result = (bool)(arg1)->DeletePage(arg2); | |
14932 | ||
14933 | wxPyEndAllowThreads(__tstate); | |
14934 | if (PyErr_Occurred()) SWIG_fail; | |
14935 | } | |
4f89f6a3 RD |
14936 | { |
14937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14938 | } | |
d14a1e28 RD |
14939 | return resultobj; |
14940 | fail: | |
14941 | return NULL; | |
14942 | } | |
14943 | ||
14944 | ||
8ac8dba0 | 14945 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14946 | PyObject *resultobj; |
8ac8dba0 | 14947 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14948 | size_t arg2 ; |
14949 | bool result; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | PyObject * obj1 = 0 ; | |
14952 | char *kwnames[] = { | |
14953 | (char *) "self",(char *) "n", NULL | |
14954 | }; | |
14955 | ||
8ac8dba0 RD |
14956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
14957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 14959 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14960 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14961 | { |
14962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14963 | result = (bool)(arg1)->RemovePage(arg2); | |
14964 | ||
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
4f89f6a3 RD |
14968 | { |
14969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14970 | } | |
d14a1e28 RD |
14971 | return resultobj; |
14972 | fail: | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
8ac8dba0 | 14977 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14978 | PyObject *resultobj; |
8ac8dba0 | 14979 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
14980 | bool result; |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
8ac8dba0 RD |
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
14987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 14988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
14989 | { |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (bool)(arg1)->DeleteAllPages(); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
4f89f6a3 RD |
14996 | { |
14997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14998 | } | |
d14a1e28 RD |
14999 | return resultobj; |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
8ac8dba0 | 15005 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15006 | PyObject *resultobj; |
8ac8dba0 | 15007 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
15008 | wxWindow *arg2 = (wxWindow *) 0 ; |
15009 | wxString *arg3 = 0 ; | |
ae8162c8 | 15010 | bool arg4 = (bool) false ; |
d14a1e28 RD |
15011 | int arg5 = (int) -1 ; |
15012 | bool result; | |
ae8162c8 | 15013 | bool temp3 = false ; |
d14a1e28 RD |
15014 | PyObject * obj0 = 0 ; |
15015 | PyObject * obj1 = 0 ; | |
15016 | PyObject * obj2 = 0 ; | |
15017 | PyObject * obj3 = 0 ; | |
994141e6 | 15018 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15019 | char *kwnames[] = { |
15020 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
15021 | }; | |
15022 | ||
8ac8dba0 RD |
15023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 RD |
15025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
15026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15028 | { |
15029 | arg3 = wxString_in_helper(obj2); | |
15030 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15031 | temp3 = true; |
d14a1e28 RD |
15032 | } |
15033 | if (obj3) { | |
c32bde28 | 15034 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 15035 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15036 | } |
15037 | if (obj4) { | |
c32bde28 | 15038 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 15039 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15040 | } |
15041 | { | |
15042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15043 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
15044 | ||
15045 | wxPyEndAllowThreads(__tstate); | |
15046 | if (PyErr_Occurred()) SWIG_fail; | |
15047 | } | |
4f89f6a3 RD |
15048 | { |
15049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15050 | } | |
d14a1e28 RD |
15051 | { |
15052 | if (temp3) | |
15053 | delete arg3; | |
15054 | } | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | { | |
15058 | if (temp3) | |
15059 | delete arg3; | |
15060 | } | |
15061 | return NULL; | |
15062 | } | |
15063 | ||
15064 | ||
8ac8dba0 | 15065 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15066 | PyObject *resultobj; |
8ac8dba0 | 15067 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
15068 | size_t arg2 ; |
15069 | wxWindow *arg3 = (wxWindow *) 0 ; | |
15070 | wxString *arg4 = 0 ; | |
ae8162c8 | 15071 | bool arg5 = (bool) false ; |
d14a1e28 RD |
15072 | int arg6 = (int) -1 ; |
15073 | bool result; | |
ae8162c8 | 15074 | bool temp4 = false ; |
d14a1e28 RD |
15075 | PyObject * obj0 = 0 ; |
15076 | PyObject * obj1 = 0 ; | |
15077 | PyObject * obj2 = 0 ; | |
15078 | PyObject * obj3 = 0 ; | |
15079 | PyObject * obj4 = 0 ; | |
994141e6 | 15080 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15081 | char *kwnames[] = { |
15082 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
15083 | }; | |
15084 | ||
8ac8dba0 RD |
15085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 15087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15088 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
15089 | if (PyErr_Occurred()) SWIG_fail; |
15090 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
15091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15092 | { |
15093 | arg4 = wxString_in_helper(obj3); | |
15094 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 15095 | temp4 = true; |
d14a1e28 RD |
15096 | } |
15097 | if (obj4) { | |
c32bde28 | 15098 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 15099 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15100 | } |
15101 | if (obj5) { | |
c32bde28 | 15102 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 15103 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15104 | } |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
4f89f6a3 RD |
15112 | { |
15113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15114 | } | |
d14a1e28 RD |
15115 | { |
15116 | if (temp4) | |
15117 | delete arg4; | |
15118 | } | |
15119 | return resultobj; | |
15120 | fail: | |
15121 | { | |
15122 | if (temp4) | |
15123 | delete arg4; | |
15124 | } | |
15125 | return NULL; | |
15126 | } | |
15127 | ||
15128 | ||
8ac8dba0 | 15129 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15130 | PyObject *resultobj; |
8ac8dba0 | 15131 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
15132 | size_t arg2 ; |
15133 | int result; | |
15134 | PyObject * obj0 = 0 ; | |
15135 | PyObject * obj1 = 0 ; | |
15136 | char *kwnames[] = { | |
15137 | (char *) "self",(char *) "n", NULL | |
15138 | }; | |
15139 | ||
8ac8dba0 RD |
15140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 15142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15143 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 15144 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15145 | { |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15147 | result = (int)(arg1)->SetSelection(arg2); | |
15148 | ||
15149 | wxPyEndAllowThreads(__tstate); | |
15150 | if (PyErr_Occurred()) SWIG_fail; | |
15151 | } | |
c32bde28 | 15152 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15153 | return resultobj; |
15154 | fail: | |
15155 | return NULL; | |
15156 | } | |
15157 | ||
15158 | ||
8ac8dba0 | 15159 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15160 | PyObject *resultobj; |
8ac8dba0 | 15161 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 15162 | bool arg2 = (bool) true ; |
d14a1e28 RD |
15163 | PyObject * obj0 = 0 ; |
15164 | PyObject * obj1 = 0 ; | |
15165 | char *kwnames[] = { | |
15166 | (char *) "self",(char *) "forward", NULL | |
15167 | }; | |
15168 | ||
8ac8dba0 RD |
15169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
15170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, | |
15afbcd0 | 15171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 | 15172 | if (obj1) { |
c32bde28 | 15173 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 15174 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15175 | } |
15176 | { | |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | (arg1)->AdvanceSelection(arg2); | |
15179 | ||
15180 | wxPyEndAllowThreads(__tstate); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | } | |
15183 | Py_INCREF(Py_None); resultobj = Py_None; | |
15184 | return resultobj; | |
15185 | fail: | |
15186 | return NULL; | |
15187 | } | |
15188 | ||
15189 | ||
8ac8dba0 | 15190 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
15191 | PyObject *resultobj; |
15192 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15193 | wxVisualAttributes result; | |
15194 | PyObject * obj0 = 0 ; | |
15195 | char *kwnames[] = { | |
15196 | (char *) "variant", NULL | |
15197 | }; | |
15198 | ||
8ac8dba0 | 15199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
22bfe96c | 15200 | if (obj0) { |
c32bde28 | 15201 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
15202 | if (PyErr_Occurred()) SWIG_fail; |
15203 | } | |
15204 | { | |
110da5b0 | 15205 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 15206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8ac8dba0 | 15207 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
22bfe96c RD |
15208 | |
15209 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15210 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15211 | } |
15212 | { | |
15213 | wxVisualAttributes * resultptr; | |
15214 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15216 | } | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
8ac8dba0 | 15223 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15224 | PyObject *obj; |
15225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 15226 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d14a1e28 RD |
15227 | Py_INCREF(obj); |
15228 | return Py_BuildValue((char *)""); | |
15229 | } | |
8ac8dba0 | 15230 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15231 | PyObject *resultobj; |
15232 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15233 | int arg2 = (int) 0 ; | |
15234 | int arg3 = (int) -1 ; | |
15235 | int arg4 = (int) -1 ; | |
8ac8dba0 | 15236 | wxBookCtrlBaseEvent *result; |
994141e6 RD |
15237 | PyObject * obj0 = 0 ; |
15238 | PyObject * obj1 = 0 ; | |
15239 | PyObject * obj2 = 0 ; | |
15240 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15241 | char *kwnames[] = { |
15242 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15243 | }; | |
15244 | ||
8ac8dba0 | 15245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 15246 | if (obj0) { |
c32bde28 | 15247 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15248 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15249 | } |
15250 | if (obj1) { | |
c32bde28 | 15251 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15252 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15253 | } |
15254 | if (obj2) { | |
c32bde28 | 15255 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15256 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15257 | } |
15258 | if (obj3) { | |
c32bde28 | 15259 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15260 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15261 | } |
d14a1e28 RD |
15262 | { |
15263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15264 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
15265 | |
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
8ac8dba0 | 15269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d14a1e28 RD |
15270 | return resultobj; |
15271 | fail: | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
8ac8dba0 | 15276 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15277 | PyObject *resultobj; |
8ac8dba0 | 15278 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
15279 | int result; |
15280 | PyObject * obj0 = 0 ; | |
15281 | char *kwnames[] = { | |
15282 | (char *) "self", NULL | |
15283 | }; | |
15284 | ||
8ac8dba0 RD |
15285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
15286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
15afbcd0 | 15287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15290 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d14a1e28 RD |
15291 | |
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
c32bde28 | 15295 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15296 | return resultobj; |
15297 | fail: | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
8ac8dba0 | 15302 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15303 | PyObject *resultobj; |
8ac8dba0 | 15304 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
15305 | int arg2 ; |
15306 | PyObject * obj0 = 0 ; | |
994141e6 | 15307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15308 | char *kwnames[] = { |
15309 | (char *) "self",(char *) "nSel", NULL | |
15310 | }; | |
15311 | ||
8ac8dba0 RD |
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
15afbcd0 | 15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15315 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15316 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15317 | { |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | (arg1)->SetSelection(arg2); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | Py_INCREF(Py_None); resultobj = Py_None; | |
15325 | return resultobj; | |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
8ac8dba0 | 15331 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15332 | PyObject *resultobj; |
8ac8dba0 | 15333 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
15334 | int result; |
15335 | PyObject * obj0 = 0 ; | |
15336 | char *kwnames[] = { | |
15337 | (char *) "self", NULL | |
15338 | }; | |
15339 | ||
8ac8dba0 RD |
15340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
15341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
15afbcd0 | 15342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
15343 | { |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 15345 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d14a1e28 RD |
15346 | |
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
c32bde28 | 15350 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15351 | return resultobj; |
15352 | fail: | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
8ac8dba0 | 15357 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15358 | PyObject *resultobj; |
8ac8dba0 | 15359 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
15360 | int arg2 ; |
15361 | PyObject * obj0 = 0 ; | |
994141e6 | 15362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15363 | char *kwnames[] = { |
15364 | (char *) "self",(char *) "nOldSel", NULL | |
15365 | }; | |
15366 | ||
8ac8dba0 RD |
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent, | |
15afbcd0 | 15369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
c32bde28 | 15370 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15371 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15372 | { |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | (arg1)->SetOldSelection(arg2); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | Py_INCREF(Py_None); resultobj = Py_None; | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
8ac8dba0 | 15386 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15387 | PyObject *obj; |
15388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 15389 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d14a1e28 RD |
15390 | Py_INCREF(obj); |
15391 | return Py_BuildValue((char *)""); | |
15392 | } | |
c32bde28 | 15393 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15394 | PyObject *resultobj; |
15395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15396 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15397 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15398 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15399 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15400 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15401 | long arg5 = (long) 0 ; | |
15402 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15403 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15404 | wxNotebook *result; | |
15405 | wxPoint temp3 ; | |
15406 | wxSize temp4 ; | |
ae8162c8 | 15407 | bool temp6 = false ; |
d14a1e28 | 15408 | PyObject * obj0 = 0 ; |
994141e6 | 15409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15410 | PyObject * obj2 = 0 ; |
15411 | PyObject * obj3 = 0 ; | |
994141e6 | 15412 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15413 | PyObject * obj5 = 0 ; |
15414 | char *kwnames[] = { | |
15415 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15416 | }; | |
15417 | ||
4f89f6a3 | 15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15421 | if (obj1) { |
c32bde28 | 15422 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15423 | if (PyErr_Occurred()) SWIG_fail; |
15424 | } | |
d14a1e28 RD |
15425 | if (obj2) { |
15426 | { | |
15427 | arg3 = &temp3; | |
15428 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15429 | } | |
15430 | } | |
15431 | if (obj3) { | |
15432 | { | |
15433 | arg4 = &temp4; | |
15434 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15435 | } | |
15436 | } | |
994141e6 | 15437 | if (obj4) { |
c32bde28 | 15438 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15439 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15440 | } |
d14a1e28 RD |
15441 | if (obj5) { |
15442 | { | |
15443 | arg6 = wxString_in_helper(obj5); | |
15444 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15445 | temp6 = true; |
d14a1e28 RD |
15446 | } |
15447 | } | |
15448 | { | |
e3b71cb8 | 15449 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15451 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15452 | ||
15453 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15454 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15455 | } |
b0f7404b | 15456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15457 | { |
15458 | if (temp6) | |
15459 | delete arg6; | |
15460 | } | |
15461 | return resultobj; | |
15462 | fail: | |
15463 | { | |
15464 | if (temp6) | |
15465 | delete arg6; | |
15466 | } | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
c32bde28 | 15471 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15472 | PyObject *resultobj; |
15473 | wxNotebook *result; | |
15474 | char *kwnames[] = { | |
15475 | NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15479 | { | |
e3b71cb8 | 15480 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15482 | result = (wxNotebook *)new wxNotebook(); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15485 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15486 | } |
b0f7404b | 15487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15488 | return resultobj; |
15489 | fail: | |
15490 | return NULL; | |
15491 | } | |
15492 | ||
15493 | ||
c32bde28 | 15494 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15495 | PyObject *resultobj; |
15496 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15497 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15498 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15499 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15500 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15501 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15502 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15503 | long arg6 = (long) 0 ; | |
15504 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15505 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15506 | bool result; | |
15507 | wxPoint temp4 ; | |
15508 | wxSize temp5 ; | |
ae8162c8 | 15509 | bool temp7 = false ; |
d14a1e28 RD |
15510 | PyObject * obj0 = 0 ; |
15511 | PyObject * obj1 = 0 ; | |
994141e6 | 15512 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15513 | PyObject * obj3 = 0 ; |
15514 | PyObject * obj4 = 0 ; | |
994141e6 | 15515 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15516 | PyObject * obj6 = 0 ; |
15517 | char *kwnames[] = { | |
15518 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15519 | }; | |
15520 | ||
248ed943 | 15521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15526 | if (obj2) { |
c32bde28 | 15527 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15528 | if (PyErr_Occurred()) SWIG_fail; |
15529 | } | |
d14a1e28 RD |
15530 | if (obj3) { |
15531 | { | |
15532 | arg4 = &temp4; | |
15533 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15534 | } | |
15535 | } | |
15536 | if (obj4) { | |
15537 | { | |
15538 | arg5 = &temp5; | |
15539 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15540 | } | |
15541 | } | |
994141e6 | 15542 | if (obj5) { |
c32bde28 | 15543 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15544 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15545 | } |
d14a1e28 RD |
15546 | if (obj6) { |
15547 | { | |
15548 | arg7 = wxString_in_helper(obj6); | |
15549 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 15550 | temp7 = true; |
d14a1e28 RD |
15551 | } |
15552 | } | |
15553 | { | |
15554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15555 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15556 | ||
15557 | wxPyEndAllowThreads(__tstate); | |
15558 | if (PyErr_Occurred()) SWIG_fail; | |
15559 | } | |
4f89f6a3 RD |
15560 | { |
15561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15562 | } | |
d14a1e28 RD |
15563 | { |
15564 | if (temp7) | |
15565 | delete arg7; | |
15566 | } | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | { | |
15570 | if (temp7) | |
15571 | delete arg7; | |
15572 | } | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
c32bde28 | 15577 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15578 | PyObject *resultobj; |
15579 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15580 | int result; | |
15581 | PyObject * obj0 = 0 ; | |
15582 | char *kwnames[] = { | |
15583 | (char *) "self", NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15589 | { |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15592 | ||
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
c32bde28 | 15596 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15597 | return resultobj; |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
c32bde28 | 15603 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15604 | PyObject *resultobj; |
15605 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15606 | wxSize *arg2 = 0 ; | |
15607 | wxSize temp2 ; | |
15608 | PyObject * obj0 = 0 ; | |
15609 | PyObject * obj1 = 0 ; | |
15610 | char *kwnames[] = { | |
15611 | (char *) "self",(char *) "padding", NULL | |
15612 | }; | |
15613 | ||
15614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15617 | { |
15618 | arg2 = &temp2; | |
15619 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15620 | } | |
15621 | { | |
15622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15623 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15624 | ||
15625 | wxPyEndAllowThreads(__tstate); | |
15626 | if (PyErr_Occurred()) SWIG_fail; | |
15627 | } | |
15628 | Py_INCREF(Py_None); resultobj = Py_None; | |
15629 | return resultobj; | |
15630 | fail: | |
15631 | return NULL; | |
15632 | } | |
15633 | ||
15634 | ||
c32bde28 | 15635 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15636 | PyObject *resultobj; |
15637 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15638 | wxSize *arg2 = 0 ; | |
15639 | wxSize temp2 ; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | PyObject * obj1 = 0 ; | |
15642 | char *kwnames[] = { | |
15643 | (char *) "self",(char *) "sz", NULL | |
15644 | }; | |
15645 | ||
15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15649 | { |
15650 | arg2 = &temp2; | |
15651 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15652 | } | |
15653 | { | |
15654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15655 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15656 | ||
15657 | wxPyEndAllowThreads(__tstate); | |
15658 | if (PyErr_Occurred()) SWIG_fail; | |
15659 | } | |
15660 | Py_INCREF(Py_None); resultobj = Py_None; | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
c32bde28 | 15667 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15668 | PyObject *resultobj; |
15669 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15670 | wxPoint *arg2 = 0 ; | |
15671 | long *arg3 = (long *) 0 ; | |
15672 | int result; | |
15673 | wxPoint temp2 ; | |
15674 | long temp3 ; | |
c32bde28 | 15675 | int res3 = 0 ; |
d14a1e28 RD |
15676 | PyObject * obj0 = 0 ; |
15677 | PyObject * obj1 = 0 ; | |
15678 | char *kwnames[] = { | |
15679 | (char *) "self",(char *) "pt", NULL | |
15680 | }; | |
15681 | ||
c32bde28 | 15682 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 15683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15686 | { |
15687 | arg2 = &temp2; | |
15688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15689 | } | |
15690 | { | |
15691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15692 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15693 | ||
15694 | wxPyEndAllowThreads(__tstate); | |
15695 | if (PyErr_Occurred()) SWIG_fail; | |
15696 | } | |
c32bde28 RD |
15697 | resultobj = SWIG_From_int((int)result); |
15698 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15699 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
15700 | return resultobj; |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
c32bde28 | 15706 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15707 | PyObject *resultobj; |
15708 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15709 | wxSize *arg2 = 0 ; | |
15710 | wxSize result; | |
15711 | wxSize temp2 ; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | PyObject * obj1 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self",(char *) "sizePage", NULL | |
15716 | }; | |
15717 | ||
15718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15721 | { |
15722 | arg2 = &temp2; | |
15723 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15724 | } | |
15725 | { | |
15726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15727 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15728 | ||
15729 | wxPyEndAllowThreads(__tstate); | |
15730 | if (PyErr_Occurred()) SWIG_fail; | |
15731 | } | |
15732 | { | |
15733 | wxSize * resultptr; | |
15734 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15736 | } |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
c32bde28 | 15743 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
15744 | PyObject *resultobj; |
15745 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15746 | wxVisualAttributes result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "variant", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15753 | if (obj0) { | |
c32bde28 | 15754 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
15755 | if (PyErr_Occurred()) SWIG_fail; |
15756 | } | |
15757 | { | |
110da5b0 | 15758 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15760 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15763 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15764 | } |
15765 | { | |
15766 | wxVisualAttributes * resultptr; | |
15767 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15769 | } | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
c32bde28 | 15776 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15777 | PyObject *obj; |
15778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15779 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15780 | Py_INCREF(obj); | |
15781 | return Py_BuildValue((char *)""); | |
15782 | } | |
c32bde28 | 15783 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15784 | PyObject *resultobj; |
15785 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15786 | int arg2 = (int) 0 ; | |
15787 | int arg3 = (int) -1 ; | |
15788 | int arg4 = (int) -1 ; | |
15789 | wxNotebookEvent *result; | |
994141e6 RD |
15790 | PyObject * obj0 = 0 ; |
15791 | PyObject * obj1 = 0 ; | |
15792 | PyObject * obj2 = 0 ; | |
15793 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15794 | char *kwnames[] = { |
15795 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15796 | }; | |
15797 | ||
994141e6 RD |
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15799 | if (obj0) { | |
c32bde28 | 15800 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15801 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15802 | } |
15803 | if (obj1) { | |
c32bde28 | 15804 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15805 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15806 | } |
15807 | if (obj2) { | |
c32bde28 | 15808 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15809 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15810 | } |
15811 | if (obj3) { | |
c32bde28 | 15812 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15813 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15814 | } |
d14a1e28 RD |
15815 | { |
15816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15818 | ||
15819 | wxPyEndAllowThreads(__tstate); | |
15820 | if (PyErr_Occurred()) SWIG_fail; | |
15821 | } | |
15afbcd0 | 15822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15823 | return resultobj; |
15824 | fail: | |
15825 | return NULL; | |
15826 | } | |
15827 | ||
15828 | ||
c32bde28 | 15829 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15830 | PyObject *obj; |
15831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15832 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15833 | Py_INCREF(obj); | |
15834 | return Py_BuildValue((char *)""); | |
15835 | } | |
c32bde28 | 15836 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15837 | PyObject *resultobj; |
15838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15839 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15840 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15841 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15842 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15843 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15844 | long arg5 = (long) 0 ; | |
15845 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15846 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15847 | wxListbook *result; | |
15848 | wxPoint temp3 ; | |
15849 | wxSize temp4 ; | |
ae8162c8 | 15850 | bool temp6 = false ; |
d14a1e28 | 15851 | PyObject * obj0 = 0 ; |
994141e6 | 15852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15853 | PyObject * obj2 = 0 ; |
15854 | PyObject * obj3 = 0 ; | |
994141e6 | 15855 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15856 | PyObject * obj5 = 0 ; |
15857 | char *kwnames[] = { | |
15858 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15859 | }; | |
15860 | ||
4f89f6a3 | 15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15864 | if (obj1) { |
c32bde28 | 15865 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15866 | if (PyErr_Occurred()) SWIG_fail; |
15867 | } | |
d14a1e28 RD |
15868 | if (obj2) { |
15869 | { | |
15870 | arg3 = &temp3; | |
15871 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15872 | } | |
15873 | } | |
15874 | if (obj3) { | |
15875 | { | |
15876 | arg4 = &temp4; | |
15877 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15878 | } | |
15879 | } | |
994141e6 | 15880 | if (obj4) { |
c32bde28 | 15881 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15882 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15883 | } |
d14a1e28 RD |
15884 | if (obj5) { |
15885 | { | |
15886 | arg6 = wxString_in_helper(obj5); | |
15887 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15888 | temp6 = true; |
d14a1e28 RD |
15889 | } |
15890 | } | |
15891 | { | |
e3b71cb8 | 15892 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15894 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15895 | ||
15896 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15897 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15898 | } |
15afbcd0 | 15899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15900 | { |
15901 | if (temp6) | |
15902 | delete arg6; | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | { | |
15907 | if (temp6) | |
15908 | delete arg6; | |
15909 | } | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
c32bde28 | 15914 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15915 | PyObject *resultobj; |
15916 | wxListbook *result; | |
15917 | char *kwnames[] = { | |
15918 | NULL | |
15919 | }; | |
15920 | ||
15921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15922 | { | |
e3b71cb8 | 15923 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15925 | result = (wxListbook *)new wxListbook(); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15928 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15929 | } |
15afbcd0 | 15930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15931 | return resultobj; |
15932 | fail: | |
15933 | return NULL; | |
15934 | } | |
15935 | ||
15936 | ||
c32bde28 | 15937 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15938 | PyObject *resultobj; |
15939 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15940 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15941 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15942 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15943 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15944 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15945 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15946 | long arg6 = (long) 0 ; | |
15947 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15948 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15949 | bool result; | |
15950 | wxPoint temp4 ; | |
15951 | wxSize temp5 ; | |
ae8162c8 | 15952 | bool temp7 = false ; |
d14a1e28 RD |
15953 | PyObject * obj0 = 0 ; |
15954 | PyObject * obj1 = 0 ; | |
994141e6 | 15955 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15956 | PyObject * obj3 = 0 ; |
15957 | PyObject * obj4 = 0 ; | |
994141e6 | 15958 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15959 | PyObject * obj6 = 0 ; |
15960 | char *kwnames[] = { | |
15961 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15962 | }; | |
15963 | ||
248ed943 | 15964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15969 | if (obj2) { |
c32bde28 | 15970 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15971 | if (PyErr_Occurred()) SWIG_fail; |
15972 | } | |
d14a1e28 RD |
15973 | if (obj3) { |
15974 | { | |
15975 | arg4 = &temp4; | |
15976 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15977 | } | |
15978 | } | |
15979 | if (obj4) { | |
15980 | { | |
15981 | arg5 = &temp5; | |
15982 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15983 | } | |
15984 | } | |
994141e6 | 15985 | if (obj5) { |
c32bde28 | 15986 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15987 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15988 | } |
d14a1e28 RD |
15989 | if (obj6) { |
15990 | { | |
15991 | arg7 = wxString_in_helper(obj6); | |
15992 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 15993 | temp7 = true; |
d14a1e28 RD |
15994 | } |
15995 | } | |
15996 | { | |
15997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15998 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15999 | ||
16000 | wxPyEndAllowThreads(__tstate); | |
16001 | if (PyErr_Occurred()) SWIG_fail; | |
16002 | } | |
4f89f6a3 RD |
16003 | { |
16004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16005 | } | |
d14a1e28 RD |
16006 | { |
16007 | if (temp7) | |
16008 | delete arg7; | |
16009 | } | |
16010 | return resultobj; | |
16011 | fail: | |
16012 | { | |
16013 | if (temp7) | |
16014 | delete arg7; | |
16015 | } | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
c32bde28 | 16020 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16021 | PyObject *resultobj; |
16022 | wxListbook *arg1 = (wxListbook *) 0 ; | |
16023 | bool result; | |
16024 | PyObject * obj0 = 0 ; | |
16025 | char *kwnames[] = { | |
16026 | (char *) "self", NULL | |
16027 | }; | |
16028 | ||
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
16031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16032 | { |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
4f89f6a3 RD |
16039 | { |
16040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16041 | } | |
d14a1e28 RD |
16042 | return resultobj; |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
1fbf26be RD |
16048 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
16049 | PyObject *resultobj; | |
16050 | wxListbook *arg1 = (wxListbook *) 0 ; | |
16051 | wxListView *result; | |
16052 | PyObject * obj0 = 0 ; | |
16053 | char *kwnames[] = { | |
16054 | (char *) "self", NULL | |
16055 | }; | |
16056 | ||
16057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
16058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16060 | { | |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16062 | result = (wxListView *)(arg1)->GetListView(); | |
16063 | ||
16064 | wxPyEndAllowThreads(__tstate); | |
16065 | if (PyErr_Occurred()) SWIG_fail; | |
16066 | } | |
16067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
16068 | return resultobj; | |
16069 | fail: | |
16070 | return NULL; | |
16071 | } | |
16072 | ||
16073 | ||
c32bde28 | 16074 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16075 | PyObject *obj; |
16076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16077 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
16078 | Py_INCREF(obj); | |
16079 | return Py_BuildValue((char *)""); | |
16080 | } | |
c32bde28 | 16081 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16082 | PyObject *resultobj; |
16083 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16084 | int arg2 = (int) 0 ; | |
16085 | int arg3 = (int) -1 ; | |
16086 | int arg4 = (int) -1 ; | |
16087 | wxListbookEvent *result; | |
994141e6 RD |
16088 | PyObject * obj0 = 0 ; |
16089 | PyObject * obj1 = 0 ; | |
16090 | PyObject * obj2 = 0 ; | |
16091 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16092 | char *kwnames[] = { |
16093 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16094 | }; | |
16095 | ||
994141e6 RD |
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16097 | if (obj0) { | |
c32bde28 | 16098 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 16099 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16100 | } |
16101 | if (obj1) { | |
c32bde28 | 16102 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 16103 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16104 | } |
16105 | if (obj2) { | |
c32bde28 | 16106 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 16107 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
16108 | } |
16109 | if (obj3) { | |
c32bde28 | 16110 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 16111 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 16112 | } |
d14a1e28 RD |
16113 | { |
16114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16115 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
16116 | ||
16117 | wxPyEndAllowThreads(__tstate); | |
16118 | if (PyErr_Occurred()) SWIG_fail; | |
16119 | } | |
15afbcd0 | 16120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
16121 | return resultobj; |
16122 | fail: | |
16123 | return NULL; | |
16124 | } | |
16125 | ||
16126 | ||
c32bde28 | 16127 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16128 | PyObject *obj; |
16129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16130 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
16131 | Py_INCREF(obj); | |
16132 | return Py_BuildValue((char *)""); | |
16133 | } | |
2ef75293 RD |
16134 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
16135 | PyObject *resultobj; | |
16136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16137 | int arg2 ; | |
16138 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16139 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16140 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16141 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16142 | long arg5 = (long) 0 ; | |
16143 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
16144 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16145 | wxChoicebook *result; | |
16146 | wxPoint temp3 ; | |
16147 | wxSize temp4 ; | |
ae8162c8 | 16148 | bool temp6 = false ; |
2ef75293 RD |
16149 | PyObject * obj0 = 0 ; |
16150 | PyObject * obj1 = 0 ; | |
16151 | PyObject * obj2 = 0 ; | |
16152 | PyObject * obj3 = 0 ; | |
16153 | PyObject * obj4 = 0 ; | |
16154 | PyObject * obj5 = 0 ; | |
16155 | char *kwnames[] = { | |
16156 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16157 | }; | |
16158 | ||
16159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16162 | arg2 = (int)SWIG_As_int(obj1); | |
16163 | if (PyErr_Occurred()) SWIG_fail; | |
16164 | if (obj2) { | |
16165 | { | |
16166 | arg3 = &temp3; | |
16167 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16168 | } | |
16169 | } | |
16170 | if (obj3) { | |
16171 | { | |
16172 | arg4 = &temp4; | |
16173 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16174 | } | |
16175 | } | |
16176 | if (obj4) { | |
16177 | arg5 = (long)SWIG_As_long(obj4); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | } | |
16180 | if (obj5) { | |
16181 | { | |
16182 | arg6 = wxString_in_helper(obj5); | |
16183 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 16184 | temp6 = true; |
2ef75293 RD |
16185 | } |
16186 | } | |
16187 | { | |
16188 | if (!wxPyCheckForApp()) SWIG_fail; | |
16189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16190 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16191 | ||
16192 | wxPyEndAllowThreads(__tstate); | |
16193 | if (PyErr_Occurred()) SWIG_fail; | |
16194 | } | |
16195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
16196 | { | |
16197 | if (temp6) | |
16198 | delete arg6; | |
16199 | } | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | { | |
16203 | if (temp6) | |
16204 | delete arg6; | |
16205 | } | |
16206 | return NULL; | |
16207 | } | |
16208 | ||
16209 | ||
16210 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
16211 | PyObject *resultobj; | |
16212 | wxChoicebook *result; | |
16213 | char *kwnames[] = { | |
16214 | NULL | |
16215 | }; | |
16216 | ||
16217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
16218 | { | |
16219 | if (!wxPyCheckForApp()) SWIG_fail; | |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (wxChoicebook *)new wxChoicebook(); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
16227 | return resultobj; | |
16228 | fail: | |
16229 | return NULL; | |
16230 | } | |
16231 | ||
16232 | ||
16233 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
16234 | PyObject *resultobj; | |
16235 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16236 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16237 | int arg3 ; | |
16238 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16239 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16240 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16241 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16242 | long arg6 = (long) 0 ; | |
16243 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16244 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16245 | bool result; | |
16246 | wxPoint temp4 ; | |
16247 | wxSize temp5 ; | |
ae8162c8 | 16248 | bool temp7 = false ; |
2ef75293 RD |
16249 | PyObject * obj0 = 0 ; |
16250 | PyObject * obj1 = 0 ; | |
16251 | PyObject * obj2 = 0 ; | |
16252 | PyObject * obj3 = 0 ; | |
16253 | PyObject * obj4 = 0 ; | |
16254 | PyObject * obj5 = 0 ; | |
16255 | PyObject * obj6 = 0 ; | |
16256 | char *kwnames[] = { | |
16257 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16258 | }; | |
16259 | ||
16260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16265 | arg3 = (int)SWIG_As_int(obj2); | |
16266 | if (PyErr_Occurred()) SWIG_fail; | |
16267 | if (obj3) { | |
16268 | { | |
16269 | arg4 = &temp4; | |
16270 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16271 | } | |
16272 | } | |
16273 | if (obj4) { | |
16274 | { | |
16275 | arg5 = &temp5; | |
16276 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16277 | } | |
16278 | } | |
16279 | if (obj5) { | |
16280 | arg6 = (long)SWIG_As_long(obj5); | |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | if (obj6) { | |
16284 | { | |
16285 | arg7 = wxString_in_helper(obj6); | |
16286 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 16287 | temp7 = true; |
2ef75293 RD |
16288 | } |
16289 | } | |
16290 | { | |
16291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16292 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
16293 | ||
16294 | wxPyEndAllowThreads(__tstate); | |
16295 | if (PyErr_Occurred()) SWIG_fail; | |
16296 | } | |
16297 | { | |
16298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16299 | } | |
16300 | { | |
16301 | if (temp7) | |
16302 | delete arg7; | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | { | |
16307 | if (temp7) | |
16308 | delete arg7; | |
16309 | } | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
16314 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16317 | bool result; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self", NULL | |
16321 | }; | |
16322 | ||
16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
16324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16326 | { | |
16327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16328 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
16329 | ||
16330 | wxPyEndAllowThreads(__tstate); | |
16331 | if (PyErr_Occurred()) SWIG_fail; | |
16332 | } | |
16333 | { | |
16334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16335 | } | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
16342 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
16343 | PyObject *resultobj; | |
16344 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16345 | bool result; | |
16346 | PyObject * obj0 = 0 ; | |
16347 | char *kwnames[] = { | |
16348 | (char *) "self", NULL | |
16349 | }; | |
16350 | ||
16351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
16352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16354 | { | |
16355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16356 | result = (bool)(arg1)->DeleteAllPages(); | |
16357 | ||
16358 | wxPyEndAllowThreads(__tstate); | |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
16360 | } | |
16361 | { | |
16362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16363 | } | |
16364 | return resultobj; | |
16365 | fail: | |
16366 | return NULL; | |
16367 | } | |
16368 | ||
16369 | ||
16370 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
16371 | PyObject *obj; | |
16372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16373 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
16374 | Py_INCREF(obj); | |
16375 | return Py_BuildValue((char *)""); | |
16376 | } | |
16377 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
16378 | PyObject *resultobj; | |
16379 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16380 | int arg2 = (int) 0 ; | |
16381 | int arg3 = (int) -1 ; | |
16382 | int arg4 = (int) -1 ; | |
16383 | wxChoicebookEvent *result; | |
16384 | PyObject * obj0 = 0 ; | |
16385 | PyObject * obj1 = 0 ; | |
16386 | PyObject * obj2 = 0 ; | |
16387 | PyObject * obj3 = 0 ; | |
16388 | char *kwnames[] = { | |
16389 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16390 | }; | |
16391 | ||
16392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16393 | if (obj0) { | |
16394 | arg1 = (wxEventType)SWIG_As_int(obj0); | |
16395 | if (PyErr_Occurred()) SWIG_fail; | |
16396 | } | |
16397 | if (obj1) { | |
16398 | arg2 = (int)SWIG_As_int(obj1); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | if (obj2) { | |
16402 | arg3 = (int)SWIG_As_int(obj2); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
16405 | if (obj3) { | |
16406 | arg4 = (int)SWIG_As_int(obj3); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | { | |
16410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16411 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
16412 | ||
16413 | wxPyEndAllowThreads(__tstate); | |
16414 | if (PyErr_Occurred()) SWIG_fail; | |
16415 | } | |
16416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
16417 | return resultobj; | |
16418 | fail: | |
16419 | return NULL; | |
16420 | } | |
16421 | ||
16422 | ||
16423 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
16424 | PyObject *obj; | |
16425 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16426 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
16427 | Py_INCREF(obj); | |
16428 | return Py_BuildValue((char *)""); | |
16429 | } | |
c32bde28 | 16430 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16431 | PyObject *resultobj; |
8ac8dba0 | 16432 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16433 | wxBookCtrlSizer *result; |
16434 | PyObject * obj0 = 0 ; | |
16435 | char *kwnames[] = { | |
16436 | (char *) "nb", NULL | |
16437 | }; | |
16438 | ||
16439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
8ac8dba0 | 16440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase, |
15afbcd0 | 16441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
16442 | { |
16443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16444 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
16445 | ||
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
15afbcd0 | 16449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
16450 | return resultobj; |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
c32bde28 | 16456 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16457 | PyObject *resultobj; |
16458 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | char *kwnames[] = { | |
16461 | (char *) "self", NULL | |
16462 | }; | |
16463 | ||
16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16467 | { |
16468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16469 | (arg1)->RecalcSizes(); | |
16470 | ||
16471 | wxPyEndAllowThreads(__tstate); | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
16473 | } | |
16474 | Py_INCREF(Py_None); resultobj = Py_None; | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | return NULL; | |
16478 | } | |
16479 | ||
16480 | ||
c32bde28 | 16481 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16482 | PyObject *resultobj; |
16483 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16484 | wxSize result; | |
16485 | PyObject * obj0 = 0 ; | |
16486 | char *kwnames[] = { | |
16487 | (char *) "self", NULL | |
16488 | }; | |
16489 | ||
16490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16493 | { |
16494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16495 | result = (arg1)->CalcMin(); | |
16496 | ||
16497 | wxPyEndAllowThreads(__tstate); | |
16498 | if (PyErr_Occurred()) SWIG_fail; | |
16499 | } | |
16500 | { | |
16501 | wxSize * resultptr; | |
16502 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16504 | } |
16505 | return resultobj; | |
16506 | fail: | |
16507 | return NULL; | |
16508 | } | |
16509 | ||
16510 | ||
c32bde28 | 16511 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16512 | PyObject *resultobj; |
16513 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
8ac8dba0 | 16514 | wxBookCtrlBase *result; |
d14a1e28 RD |
16515 | PyObject * obj0 = 0 ; |
16516 | char *kwnames[] = { | |
16517 | (char *) "self", NULL | |
16518 | }; | |
16519 | ||
16520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16523 | { |
16524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16525 | result = (wxBookCtrlBase *)(arg1)->GetControl(); |
d14a1e28 RD |
16526 | |
16527 | wxPyEndAllowThreads(__tstate); | |
16528 | if (PyErr_Occurred()) SWIG_fail; | |
16529 | } | |
8ac8dba0 | 16530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0); |
d14a1e28 RD |
16531 | return resultobj; |
16532 | fail: | |
16533 | return NULL; | |
16534 | } | |
16535 | ||
16536 | ||
c32bde28 | 16537 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16538 | PyObject *obj; |
16539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16540 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
16541 | Py_INCREF(obj); | |
16542 | return Py_BuildValue((char *)""); | |
16543 | } | |
c32bde28 | 16544 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16545 | PyObject *resultobj; |
16546 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
16547 | wxNotebookSizer *result; | |
16548 | PyObject * obj0 = 0 ; | |
16549 | char *kwnames[] = { | |
16550 | (char *) "nb", NULL | |
16551 | }; | |
16552 | ||
16553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
16555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16556 | { |
16557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16558 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
16559 | ||
16560 | wxPyEndAllowThreads(__tstate); | |
16561 | if (PyErr_Occurred()) SWIG_fail; | |
16562 | } | |
15afbcd0 | 16563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
16564 | return resultobj; |
16565 | fail: | |
16566 | return NULL; | |
16567 | } | |
16568 | ||
16569 | ||
c32bde28 | 16570 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16571 | PyObject *resultobj; |
16572 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16573 | PyObject * obj0 = 0 ; | |
16574 | char *kwnames[] = { | |
16575 | (char *) "self", NULL | |
16576 | }; | |
16577 | ||
16578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16581 | { |
16582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16583 | (arg1)->RecalcSizes(); | |
16584 | ||
16585 | wxPyEndAllowThreads(__tstate); | |
16586 | if (PyErr_Occurred()) SWIG_fail; | |
16587 | } | |
16588 | Py_INCREF(Py_None); resultobj = Py_None; | |
16589 | return resultobj; | |
16590 | fail: | |
16591 | return NULL; | |
16592 | } | |
16593 | ||
16594 | ||
c32bde28 | 16595 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16596 | PyObject *resultobj; |
16597 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16598 | wxSize result; | |
16599 | PyObject * obj0 = 0 ; | |
16600 | char *kwnames[] = { | |
16601 | (char *) "self", NULL | |
16602 | }; | |
16603 | ||
16604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16607 | { |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | result = (arg1)->CalcMin(); | |
16610 | ||
16611 | wxPyEndAllowThreads(__tstate); | |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
16614 | { | |
16615 | wxSize * resultptr; | |
16616 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16618 | } |
16619 | return resultobj; | |
16620 | fail: | |
16621 | return NULL; | |
16622 | } | |
16623 | ||
16624 | ||
c32bde28 | 16625 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16626 | PyObject *resultobj; |
16627 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16628 | wxNotebook *result; | |
16629 | PyObject * obj0 = 0 ; | |
16630 | char *kwnames[] = { | |
16631 | (char *) "self", NULL | |
16632 | }; | |
16633 | ||
16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16637 | { |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
16644 | { | |
412d302d | 16645 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16646 | } |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
c32bde28 | 16653 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16654 | PyObject *obj; |
16655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16656 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
16657 | Py_INCREF(obj); | |
16658 | return Py_BuildValue((char *)""); | |
16659 | } | |
c32bde28 | 16660 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16661 | PyObject *resultobj; |
16662 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16663 | int result; | |
16664 | PyObject * obj0 = 0 ; | |
16665 | char *kwnames[] = { | |
16666 | (char *) "self", NULL | |
16667 | }; | |
16668 | ||
16669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16672 | { |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | result = (int)(arg1)->GetId(); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
c32bde28 | 16679 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16680 | return resultobj; |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
c32bde28 | 16686 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16687 | PyObject *resultobj; |
16688 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16689 | wxControl *result; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self", NULL | |
16693 | }; | |
16694 | ||
16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16698 | { |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | result = (wxControl *)(arg1)->GetControl(); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | { | |
412d302d | 16706 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16707 | } |
16708 | return resultobj; | |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
c32bde28 | 16714 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16715 | PyObject *resultobj; |
16716 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16717 | wxToolBarBase *result; | |
16718 | PyObject * obj0 = 0 ; | |
16719 | char *kwnames[] = { | |
16720 | (char *) "self", NULL | |
16721 | }; | |
16722 | ||
16723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16726 | { |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | { | |
412d302d | 16734 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16735 | } |
16736 | return resultobj; | |
16737 | fail: | |
16738 | return NULL; | |
16739 | } | |
16740 | ||
16741 | ||
c32bde28 | 16742 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16743 | PyObject *resultobj; |
16744 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16745 | int result; | |
16746 | PyObject * obj0 = 0 ; | |
16747 | char *kwnames[] = { | |
16748 | (char *) "self", NULL | |
16749 | }; | |
16750 | ||
16751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16754 | { |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | result = (int)(arg1)->IsButton(); | |
16757 | ||
16758 | wxPyEndAllowThreads(__tstate); | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
c32bde28 | 16761 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16762 | return resultobj; |
16763 | fail: | |
16764 | return NULL; | |
16765 | } | |
16766 | ||
16767 | ||
c32bde28 | 16768 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16769 | PyObject *resultobj; |
16770 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16771 | int result; | |
16772 | PyObject * obj0 = 0 ; | |
16773 | char *kwnames[] = { | |
16774 | (char *) "self", NULL | |
16775 | }; | |
16776 | ||
16777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16780 | { |
16781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16782 | result = (int)(arg1)->IsControl(); | |
16783 | ||
16784 | wxPyEndAllowThreads(__tstate); | |
16785 | if (PyErr_Occurred()) SWIG_fail; | |
16786 | } | |
c32bde28 | 16787 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16788 | return resultobj; |
16789 | fail: | |
16790 | return NULL; | |
16791 | } | |
16792 | ||
16793 | ||
c32bde28 | 16794 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16795 | PyObject *resultobj; |
16796 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16797 | int result; | |
16798 | PyObject * obj0 = 0 ; | |
16799 | char *kwnames[] = { | |
16800 | (char *) "self", NULL | |
16801 | }; | |
16802 | ||
16803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16806 | { |
16807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16808 | result = (int)(arg1)->IsSeparator(); | |
16809 | ||
16810 | wxPyEndAllowThreads(__tstate); | |
16811 | if (PyErr_Occurred()) SWIG_fail; | |
16812 | } | |
c32bde28 | 16813 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16814 | return resultobj; |
16815 | fail: | |
16816 | return NULL; | |
16817 | } | |
16818 | ||
16819 | ||
c32bde28 | 16820 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16821 | PyObject *resultobj; |
16822 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16823 | int result; | |
16824 | PyObject * obj0 = 0 ; | |
16825 | char *kwnames[] = { | |
16826 | (char *) "self", NULL | |
16827 | }; | |
16828 | ||
16829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16832 | { |
16833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16834 | result = (int)(arg1)->GetStyle(); | |
16835 | ||
16836 | wxPyEndAllowThreads(__tstate); | |
16837 | if (PyErr_Occurred()) SWIG_fail; | |
16838 | } | |
c32bde28 | 16839 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16840 | return resultobj; |
16841 | fail: | |
16842 | return NULL; | |
16843 | } | |
16844 | ||
16845 | ||
c32bde28 | 16846 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16847 | PyObject *resultobj; |
16848 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16849 | int result; | |
16850 | PyObject * obj0 = 0 ; | |
16851 | char *kwnames[] = { | |
16852 | (char *) "self", NULL | |
16853 | }; | |
16854 | ||
16855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16858 | { |
16859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16860 | result = (int)(arg1)->GetKind(); | |
16861 | ||
16862 | wxPyEndAllowThreads(__tstate); | |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
c32bde28 | 16865 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16866 | return resultobj; |
16867 | fail: | |
16868 | return NULL; | |
16869 | } | |
16870 | ||
16871 | ||
c32bde28 | 16872 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16873 | PyObject *resultobj; |
16874 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16875 | bool result; | |
16876 | PyObject * obj0 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16884 | { |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | result = (bool)(arg1)->IsEnabled(); | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
4f89f6a3 RD |
16891 | { |
16892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16893 | } | |
d14a1e28 RD |
16894 | return resultobj; |
16895 | fail: | |
16896 | return NULL; | |
16897 | } | |
16898 | ||
16899 | ||
c32bde28 | 16900 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16901 | PyObject *resultobj; |
16902 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16903 | bool result; | |
16904 | PyObject * obj0 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "self", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16912 | { |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16914 | result = (bool)(arg1)->IsToggled(); | |
16915 | ||
16916 | wxPyEndAllowThreads(__tstate); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
4f89f6a3 RD |
16919 | { |
16920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16921 | } | |
d14a1e28 RD |
16922 | return resultobj; |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
c32bde28 | 16928 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16929 | PyObject *resultobj; |
16930 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16931 | bool result; | |
16932 | PyObject * obj0 = 0 ; | |
16933 | char *kwnames[] = { | |
16934 | (char *) "self", NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16940 | { |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = (bool)(arg1)->CanBeToggled(); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
4f89f6a3 RD |
16947 | { |
16948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16949 | } | |
d14a1e28 RD |
16950 | return resultobj; |
16951 | fail: | |
16952 | return NULL; | |
16953 | } | |
16954 | ||
16955 | ||
c32bde28 | 16956 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16957 | PyObject *resultobj; |
16958 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16959 | wxBitmap *result; | |
16960 | PyObject * obj0 = 0 ; | |
16961 | char *kwnames[] = { | |
16962 | (char *) "self", NULL | |
16963 | }; | |
16964 | ||
16965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16968 | { |
16969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16970 | { | |
16971 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16972 | result = (wxBitmap *) &_result_ref; | |
16973 | } | |
16974 | ||
16975 | wxPyEndAllowThreads(__tstate); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
4276dc52 RD |
16978 | { |
16979 | wxBitmap* resultptr = new wxBitmap(*result); | |
16980 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16981 | } | |
d14a1e28 RD |
16982 | return resultobj; |
16983 | fail: | |
16984 | return NULL; | |
16985 | } | |
16986 | ||
16987 | ||
c32bde28 | 16988 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16989 | PyObject *resultobj; |
16990 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16991 | wxBitmap *result; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | char *kwnames[] = { | |
16994 | (char *) "self", NULL | |
16995 | }; | |
16996 | ||
16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17000 | { |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | { | |
17003 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
17004 | result = (wxBitmap *) &_result_ref; | |
17005 | } | |
17006 | ||
17007 | wxPyEndAllowThreads(__tstate); | |
17008 | if (PyErr_Occurred()) SWIG_fail; | |
17009 | } | |
4276dc52 RD |
17010 | { |
17011 | wxBitmap* resultptr = new wxBitmap(*result); | |
17012 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
17013 | } | |
d14a1e28 RD |
17014 | return resultobj; |
17015 | fail: | |
17016 | return NULL; | |
17017 | } | |
17018 | ||
17019 | ||
c32bde28 | 17020 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17021 | PyObject *resultobj; |
17022 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17023 | wxBitmap result; | |
17024 | PyObject * obj0 = 0 ; | |
17025 | char *kwnames[] = { | |
17026 | (char *) "self", NULL | |
17027 | }; | |
17028 | ||
17029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17032 | { |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17034 | result = (arg1)->GetBitmap(); | |
17035 | ||
17036 | wxPyEndAllowThreads(__tstate); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
17039 | { | |
17040 | wxBitmap * resultptr; | |
17041 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 17042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
17043 | } |
17044 | return resultobj; | |
17045 | fail: | |
17046 | return NULL; | |
17047 | } | |
17048 | ||
17049 | ||
c32bde28 | 17050 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17051 | PyObject *resultobj; |
17052 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17053 | wxString result; | |
17054 | PyObject * obj0 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "self", NULL | |
17057 | }; | |
17058 | ||
17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17062 | { |
17063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17064 | result = (arg1)->GetLabel(); | |
17065 | ||
17066 | wxPyEndAllowThreads(__tstate); | |
17067 | if (PyErr_Occurred()) SWIG_fail; | |
17068 | } | |
17069 | { | |
17070 | #if wxUSE_UNICODE | |
17071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17072 | #else | |
17073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17074 | #endif | |
17075 | } | |
17076 | return resultobj; | |
17077 | fail: | |
17078 | return NULL; | |
17079 | } | |
17080 | ||
17081 | ||
c32bde28 | 17082 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17083 | PyObject *resultobj; |
17084 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17085 | wxString result; | |
17086 | PyObject * obj0 = 0 ; | |
17087 | char *kwnames[] = { | |
17088 | (char *) "self", NULL | |
17089 | }; | |
17090 | ||
17091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17094 | { |
17095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17096 | result = (arg1)->GetShortHelp(); | |
17097 | ||
17098 | wxPyEndAllowThreads(__tstate); | |
17099 | if (PyErr_Occurred()) SWIG_fail; | |
17100 | } | |
17101 | { | |
17102 | #if wxUSE_UNICODE | |
17103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17104 | #else | |
17105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17106 | #endif | |
17107 | } | |
17108 | return resultobj; | |
17109 | fail: | |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
c32bde28 | 17114 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17115 | PyObject *resultobj; |
17116 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17117 | wxString result; | |
17118 | PyObject * obj0 = 0 ; | |
17119 | char *kwnames[] = { | |
17120 | (char *) "self", NULL | |
17121 | }; | |
17122 | ||
17123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17126 | { |
17127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17128 | result = (arg1)->GetLongHelp(); | |
17129 | ||
17130 | wxPyEndAllowThreads(__tstate); | |
17131 | if (PyErr_Occurred()) SWIG_fail; | |
17132 | } | |
17133 | { | |
17134 | #if wxUSE_UNICODE | |
17135 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17136 | #else | |
17137 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17138 | #endif | |
17139 | } | |
17140 | return resultobj; | |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
c32bde28 | 17146 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17147 | PyObject *resultobj; |
17148 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17149 | bool arg2 ; | |
17150 | bool result; | |
17151 | PyObject * obj0 = 0 ; | |
17152 | PyObject * obj1 = 0 ; | |
17153 | char *kwnames[] = { | |
17154 | (char *) "self",(char *) "enable", NULL | |
17155 | }; | |
17156 | ||
17157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17160 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17161 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17162 | { |
17163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17164 | result = (bool)(arg1)->Enable(arg2); | |
17165 | ||
17166 | wxPyEndAllowThreads(__tstate); | |
17167 | if (PyErr_Occurred()) SWIG_fail; | |
17168 | } | |
4f89f6a3 RD |
17169 | { |
17170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17171 | } | |
d14a1e28 RD |
17172 | return resultobj; |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
c32bde28 | 17178 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17179 | PyObject *resultobj; |
17180 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17181 | PyObject * obj0 = 0 ; | |
17182 | char *kwnames[] = { | |
17183 | (char *) "self", NULL | |
17184 | }; | |
17185 | ||
17186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17189 | { |
17190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17191 | (arg1)->Toggle(); | |
17192 | ||
17193 | wxPyEndAllowThreads(__tstate); | |
17194 | if (PyErr_Occurred()) SWIG_fail; | |
17195 | } | |
17196 | Py_INCREF(Py_None); resultobj = Py_None; | |
17197 | return resultobj; | |
17198 | fail: | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
c32bde28 | 17203 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17204 | PyObject *resultobj; |
17205 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17206 | bool arg2 ; | |
17207 | bool result; | |
17208 | PyObject * obj0 = 0 ; | |
17209 | PyObject * obj1 = 0 ; | |
17210 | char *kwnames[] = { | |
17211 | (char *) "self",(char *) "toggle", NULL | |
17212 | }; | |
17213 | ||
17214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17217 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 17218 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17219 | { |
17220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17221 | result = (bool)(arg1)->SetToggle(arg2); | |
17222 | ||
17223 | wxPyEndAllowThreads(__tstate); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | } | |
4f89f6a3 RD |
17226 | { |
17227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17228 | } | |
d14a1e28 RD |
17229 | return resultobj; |
17230 | fail: | |
17231 | return NULL; | |
17232 | } | |
17233 | ||
17234 | ||
c32bde28 | 17235 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17236 | PyObject *resultobj; |
17237 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17238 | wxString *arg2 = 0 ; | |
17239 | bool result; | |
ae8162c8 | 17240 | bool temp2 = false ; |
d14a1e28 RD |
17241 | PyObject * obj0 = 0 ; |
17242 | PyObject * obj1 = 0 ; | |
17243 | char *kwnames[] = { | |
17244 | (char *) "self",(char *) "help", NULL | |
17245 | }; | |
17246 | ||
17247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17250 | { |
17251 | arg2 = wxString_in_helper(obj1); | |
17252 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17253 | temp2 = true; |
d14a1e28 RD |
17254 | } |
17255 | { | |
17256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17257 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
17258 | ||
17259 | wxPyEndAllowThreads(__tstate); | |
17260 | if (PyErr_Occurred()) SWIG_fail; | |
17261 | } | |
4f89f6a3 RD |
17262 | { |
17263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17264 | } | |
d14a1e28 RD |
17265 | { |
17266 | if (temp2) | |
17267 | delete arg2; | |
17268 | } | |
17269 | return resultobj; | |
17270 | fail: | |
17271 | { | |
17272 | if (temp2) | |
17273 | delete arg2; | |
17274 | } | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
c32bde28 | 17279 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17280 | PyObject *resultobj; |
17281 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17282 | wxString *arg2 = 0 ; | |
17283 | bool result; | |
ae8162c8 | 17284 | bool temp2 = false ; |
d14a1e28 RD |
17285 | PyObject * obj0 = 0 ; |
17286 | PyObject * obj1 = 0 ; | |
17287 | char *kwnames[] = { | |
17288 | (char *) "self",(char *) "help", NULL | |
17289 | }; | |
17290 | ||
17291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17294 | { |
17295 | arg2 = wxString_in_helper(obj1); | |
17296 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17297 | temp2 = true; |
d14a1e28 RD |
17298 | } |
17299 | { | |
17300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17301 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
17302 | ||
17303 | wxPyEndAllowThreads(__tstate); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
4f89f6a3 RD |
17306 | { |
17307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17308 | } | |
d14a1e28 RD |
17309 | { |
17310 | if (temp2) | |
17311 | delete arg2; | |
17312 | } | |
17313 | return resultobj; | |
17314 | fail: | |
17315 | { | |
17316 | if (temp2) | |
17317 | delete arg2; | |
17318 | } | |
17319 | return NULL; | |
17320 | } | |
17321 | ||
17322 | ||
c32bde28 | 17323 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17324 | PyObject *resultobj; |
17325 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17326 | wxBitmap *arg2 = 0 ; | |
17327 | PyObject * obj0 = 0 ; | |
17328 | PyObject * obj1 = 0 ; | |
17329 | char *kwnames[] = { | |
17330 | (char *) "self",(char *) "bmp", NULL | |
17331 | }; | |
17332 | ||
17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17337 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17338 | SWIG_fail; | |
d14a1e28 | 17339 | if (arg2 == NULL) { |
15afbcd0 RD |
17340 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17341 | SWIG_fail; | |
d14a1e28 RD |
17342 | } |
17343 | { | |
17344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17345 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
17346 | ||
17347 | wxPyEndAllowThreads(__tstate); | |
17348 | if (PyErr_Occurred()) SWIG_fail; | |
17349 | } | |
17350 | Py_INCREF(Py_None); resultobj = Py_None; | |
17351 | return resultobj; | |
17352 | fail: | |
17353 | return NULL; | |
17354 | } | |
17355 | ||
17356 | ||
c32bde28 | 17357 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17358 | PyObject *resultobj; |
17359 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17360 | wxBitmap *arg2 = 0 ; | |
17361 | PyObject * obj0 = 0 ; | |
17362 | PyObject * obj1 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self",(char *) "bmp", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17372 | SWIG_fail; | |
d14a1e28 | 17373 | if (arg2 == NULL) { |
15afbcd0 RD |
17374 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17375 | SWIG_fail; | |
d14a1e28 RD |
17376 | } |
17377 | { | |
17378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17379 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
17380 | ||
17381 | wxPyEndAllowThreads(__tstate); | |
17382 | if (PyErr_Occurred()) SWIG_fail; | |
17383 | } | |
17384 | Py_INCREF(Py_None); resultobj = Py_None; | |
17385 | return resultobj; | |
17386 | fail: | |
17387 | return NULL; | |
17388 | } | |
17389 | ||
17390 | ||
c32bde28 | 17391 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17392 | PyObject *resultobj; |
17393 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17394 | wxString *arg2 = 0 ; | |
ae8162c8 | 17395 | bool temp2 = false ; |
d14a1e28 RD |
17396 | PyObject * obj0 = 0 ; |
17397 | PyObject * obj1 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self",(char *) "label", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17405 | { |
17406 | arg2 = wxString_in_helper(obj1); | |
17407 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17408 | temp2 = true; |
d14a1e28 RD |
17409 | } |
17410 | { | |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | (arg1)->SetLabel((wxString const &)*arg2); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | Py_INCREF(Py_None); resultobj = Py_None; | |
17418 | { | |
17419 | if (temp2) | |
17420 | delete arg2; | |
17421 | } | |
17422 | return resultobj; | |
17423 | fail: | |
17424 | { | |
17425 | if (temp2) | |
17426 | delete arg2; | |
17427 | } | |
17428 | return NULL; | |
17429 | } | |
17430 | ||
17431 | ||
c32bde28 | 17432 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17433 | PyObject *resultobj; |
17434 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "self", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17443 | { |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | (arg1)->Detach(); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
17450 | Py_INCREF(Py_None); resultobj = Py_None; | |
17451 | return resultobj; | |
17452 | fail: | |
17453 | return NULL; | |
17454 | } | |
17455 | ||
17456 | ||
c32bde28 | 17457 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17458 | PyObject *resultobj; |
17459 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17460 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
17461 | PyObject * obj0 = 0 ; | |
17462 | PyObject * obj1 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self",(char *) "tbar", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
17471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17472 | { |
17473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17474 | (arg1)->Attach(arg2); | |
17475 | ||
17476 | wxPyEndAllowThreads(__tstate); | |
17477 | if (PyErr_Occurred()) SWIG_fail; | |
17478 | } | |
17479 | Py_INCREF(Py_None); resultobj = Py_None; | |
17480 | return resultobj; | |
17481 | fail: | |
17482 | return NULL; | |
17483 | } | |
17484 | ||
17485 | ||
c32bde28 | 17486 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17487 | PyObject *resultobj; |
17488 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17489 | PyObject *result; | |
17490 | PyObject * obj0 = 0 ; | |
17491 | char *kwnames[] = { | |
17492 | (char *) "self", NULL | |
17493 | }; | |
17494 | ||
17495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17498 | { |
17499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17500 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
17501 | ||
17502 | wxPyEndAllowThreads(__tstate); | |
17503 | if (PyErr_Occurred()) SWIG_fail; | |
17504 | } | |
17505 | resultobj = result; | |
17506 | return resultobj; | |
17507 | fail: | |
17508 | return NULL; | |
17509 | } | |
17510 | ||
17511 | ||
c32bde28 | 17512 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17513 | PyObject *resultobj; |
17514 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17515 | PyObject *arg2 = (PyObject *) 0 ; | |
17516 | PyObject * obj0 = 0 ; | |
17517 | PyObject * obj1 = 0 ; | |
17518 | char *kwnames[] = { | |
17519 | (char *) "self",(char *) "clientData", NULL | |
17520 | }; | |
17521 | ||
17522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17525 | arg2 = obj1; |
17526 | { | |
17527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17528 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
17529 | ||
17530 | wxPyEndAllowThreads(__tstate); | |
17531 | if (PyErr_Occurred()) SWIG_fail; | |
17532 | } | |
17533 | Py_INCREF(Py_None); resultobj = Py_None; | |
17534 | return resultobj; | |
17535 | fail: | |
17536 | return NULL; | |
17537 | } | |
17538 | ||
17539 | ||
c32bde28 | 17540 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17541 | PyObject *obj; |
17542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17543 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
17544 | Py_INCREF(obj); | |
17545 | return Py_BuildValue((char *)""); | |
17546 | } | |
c32bde28 | 17547 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17548 | PyObject *resultobj; |
17549 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17550 | int arg2 ; | |
17551 | wxString *arg3 = 0 ; | |
17552 | wxBitmap *arg4 = 0 ; | |
17553 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
17554 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
17555 | int arg6 = (int) wxITEM_NORMAL ; | |
17556 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17557 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17558 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17559 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17560 | PyObject *arg9 = (PyObject *) NULL ; | |
17561 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17562 | bool temp3 = false ; |
17563 | bool temp7 = false ; | |
17564 | bool temp8 = false ; | |
d14a1e28 | 17565 | PyObject * obj0 = 0 ; |
994141e6 | 17566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17567 | PyObject * obj2 = 0 ; |
17568 | PyObject * obj3 = 0 ; | |
17569 | PyObject * obj4 = 0 ; | |
994141e6 | 17570 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17571 | PyObject * obj6 = 0 ; |
17572 | PyObject * obj7 = 0 ; | |
17573 | PyObject * obj8 = 0 ; | |
17574 | char *kwnames[] = { | |
17575 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17576 | }; | |
17577 | ||
994141e6 | 17578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
17579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17581 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17582 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17583 | { |
17584 | arg3 = wxString_in_helper(obj2); | |
17585 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17586 | temp3 = true; |
d14a1e28 | 17587 | } |
15afbcd0 RD |
17588 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
17589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17590 | SWIG_fail; | |
d14a1e28 | 17591 | if (arg4 == NULL) { |
15afbcd0 RD |
17592 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17593 | SWIG_fail; | |
d14a1e28 RD |
17594 | } |
17595 | if (obj4) { | |
15afbcd0 RD |
17596 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
17597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17598 | SWIG_fail; | |
d14a1e28 | 17599 | if (arg5 == NULL) { |
15afbcd0 RD |
17600 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17601 | SWIG_fail; | |
d14a1e28 RD |
17602 | } |
17603 | } | |
994141e6 | 17604 | if (obj5) { |
c32bde28 | 17605 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 17606 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17607 | } |
d14a1e28 RD |
17608 | if (obj6) { |
17609 | { | |
17610 | arg7 = wxString_in_helper(obj6); | |
17611 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17612 | temp7 = true; |
d14a1e28 RD |
17613 | } |
17614 | } | |
17615 | if (obj7) { | |
17616 | { | |
17617 | arg8 = wxString_in_helper(obj7); | |
17618 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17619 | temp8 = true; |
d14a1e28 RD |
17620 | } |
17621 | } | |
17622 | if (obj8) { | |
17623 | arg9 = obj8; | |
17624 | } | |
17625 | { | |
17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17627 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
17628 | ||
17629 | wxPyEndAllowThreads(__tstate); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
17632 | { | |
412d302d | 17633 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17634 | } |
17635 | { | |
17636 | if (temp3) | |
17637 | delete arg3; | |
17638 | } | |
17639 | { | |
17640 | if (temp7) | |
17641 | delete arg7; | |
17642 | } | |
17643 | { | |
17644 | if (temp8) | |
17645 | delete arg8; | |
17646 | } | |
17647 | return resultobj; | |
17648 | fail: | |
17649 | { | |
17650 | if (temp3) | |
17651 | delete arg3; | |
17652 | } | |
17653 | { | |
17654 | if (temp7) | |
17655 | delete arg7; | |
17656 | } | |
17657 | { | |
17658 | if (temp8) | |
17659 | delete arg8; | |
17660 | } | |
17661 | return NULL; | |
17662 | } | |
17663 | ||
17664 | ||
c32bde28 | 17665 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17666 | PyObject *resultobj; |
17667 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17668 | size_t arg2 ; | |
17669 | int arg3 ; | |
17670 | wxString *arg4 = 0 ; | |
17671 | wxBitmap *arg5 = 0 ; | |
17672 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17673 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17674 | int arg7 = (int) wxITEM_NORMAL ; | |
17675 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17676 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17677 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17678 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17679 | PyObject *arg10 = (PyObject *) NULL ; | |
17680 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17681 | bool temp4 = false ; |
17682 | bool temp8 = false ; | |
17683 | bool temp9 = false ; | |
d14a1e28 RD |
17684 | PyObject * obj0 = 0 ; |
17685 | PyObject * obj1 = 0 ; | |
994141e6 | 17686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17687 | PyObject * obj3 = 0 ; |
17688 | PyObject * obj4 = 0 ; | |
17689 | PyObject * obj5 = 0 ; | |
994141e6 | 17690 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
17691 | PyObject * obj7 = 0 ; |
17692 | PyObject * obj8 = 0 ; | |
17693 | PyObject * obj9 = 0 ; | |
17694 | char *kwnames[] = { | |
17695 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17696 | }; | |
17697 | ||
994141e6 | 17698 | 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 |
17699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17701 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17702 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17703 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17704 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17705 | { |
17706 | arg4 = wxString_in_helper(obj3); | |
17707 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17708 | temp4 = true; |
d14a1e28 | 17709 | } |
15afbcd0 RD |
17710 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
17711 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17712 | SWIG_fail; | |
d14a1e28 | 17713 | if (arg5 == NULL) { |
15afbcd0 RD |
17714 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17715 | SWIG_fail; | |
d14a1e28 RD |
17716 | } |
17717 | if (obj5) { | |
15afbcd0 RD |
17718 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
17719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17720 | SWIG_fail; | |
d14a1e28 | 17721 | if (arg6 == NULL) { |
15afbcd0 RD |
17722 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17723 | SWIG_fail; | |
d14a1e28 RD |
17724 | } |
17725 | } | |
994141e6 | 17726 | if (obj6) { |
c32bde28 | 17727 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 17728 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17729 | } |
d14a1e28 RD |
17730 | if (obj7) { |
17731 | { | |
17732 | arg8 = wxString_in_helper(obj7); | |
17733 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17734 | temp8 = true; |
d14a1e28 RD |
17735 | } |
17736 | } | |
17737 | if (obj8) { | |
17738 | { | |
17739 | arg9 = wxString_in_helper(obj8); | |
17740 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 17741 | temp9 = true; |
d14a1e28 RD |
17742 | } |
17743 | } | |
17744 | if (obj9) { | |
17745 | arg10 = obj9; | |
17746 | } | |
17747 | { | |
17748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17749 | 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); | |
17750 | ||
17751 | wxPyEndAllowThreads(__tstate); | |
17752 | if (PyErr_Occurred()) SWIG_fail; | |
17753 | } | |
17754 | { | |
412d302d | 17755 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17756 | } |
17757 | { | |
17758 | if (temp4) | |
17759 | delete arg4; | |
17760 | } | |
17761 | { | |
17762 | if (temp8) | |
17763 | delete arg8; | |
17764 | } | |
17765 | { | |
17766 | if (temp9) | |
17767 | delete arg9; | |
17768 | } | |
17769 | return resultobj; | |
17770 | fail: | |
17771 | { | |
17772 | if (temp4) | |
17773 | delete arg4; | |
17774 | } | |
17775 | { | |
17776 | if (temp8) | |
17777 | delete arg8; | |
17778 | } | |
17779 | { | |
17780 | if (temp9) | |
17781 | delete arg9; | |
17782 | } | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
c32bde28 | 17787 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17788 | PyObject *resultobj; |
17789 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17790 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17791 | wxToolBarToolBase *result; | |
17792 | PyObject * obj0 = 0 ; | |
17793 | PyObject * obj1 = 0 ; | |
17794 | char *kwnames[] = { | |
17795 | (char *) "self",(char *) "tool", NULL | |
17796 | }; | |
17797 | ||
17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17803 | { |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17806 | ||
17807 | wxPyEndAllowThreads(__tstate); | |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
17809 | } | |
17810 | { | |
412d302d | 17811 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17812 | } |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
c32bde28 | 17819 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17820 | PyObject *resultobj; |
17821 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17822 | size_t arg2 ; | |
17823 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17824 | wxToolBarToolBase *result; | |
17825 | PyObject * obj0 = 0 ; | |
17826 | PyObject * obj1 = 0 ; | |
17827 | PyObject * obj2 = 0 ; | |
17828 | char *kwnames[] = { | |
17829 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17830 | }; | |
17831 | ||
17832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17835 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17836 | if (PyErr_Occurred()) SWIG_fail; |
17837 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17839 | { |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | { | |
412d302d | 17847 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17848 | } |
17849 | return resultobj; | |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
c32bde28 | 17855 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17856 | PyObject *resultobj; |
17857 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17858 | wxControl *arg2 = (wxControl *) 0 ; | |
17859 | wxToolBarToolBase *result; | |
17860 | PyObject * obj0 = 0 ; | |
17861 | PyObject * obj1 = 0 ; | |
17862 | char *kwnames[] = { | |
17863 | (char *) "self",(char *) "control", NULL | |
17864 | }; | |
17865 | ||
17866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17869 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17871 | { |
17872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17873 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17874 | ||
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | { | |
412d302d | 17879 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17880 | } |
17881 | return resultobj; | |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
c32bde28 | 17887 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17888 | PyObject *resultobj; |
17889 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17890 | size_t arg2 ; | |
17891 | wxControl *arg3 = (wxControl *) 0 ; | |
17892 | wxToolBarToolBase *result; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | PyObject * obj1 = 0 ; | |
17895 | PyObject * obj2 = 0 ; | |
17896 | char *kwnames[] = { | |
17897 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17898 | }; | |
17899 | ||
17900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17903 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17904 | if (PyErr_Occurred()) SWIG_fail; |
17905 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17907 | { |
17908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17909 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17910 | ||
17911 | wxPyEndAllowThreads(__tstate); | |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
17913 | } | |
17914 | { | |
412d302d | 17915 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17916 | } |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
c32bde28 | 17923 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17924 | PyObject *resultobj; |
17925 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17926 | int arg2 ; | |
17927 | wxControl *result; | |
17928 | PyObject * obj0 = 0 ; | |
994141e6 | 17929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17930 | char *kwnames[] = { |
17931 | (char *) "self",(char *) "id", NULL | |
17932 | }; | |
17933 | ||
994141e6 | 17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17937 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17938 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17939 | { |
17940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17941 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17942 | ||
17943 | wxPyEndAllowThreads(__tstate); | |
17944 | if (PyErr_Occurred()) SWIG_fail; | |
17945 | } | |
17946 | { | |
412d302d | 17947 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17948 | } |
17949 | return resultobj; | |
17950 | fail: | |
17951 | return NULL; | |
17952 | } | |
17953 | ||
17954 | ||
c32bde28 | 17955 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17956 | PyObject *resultobj; |
17957 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17958 | wxToolBarToolBase *result; | |
17959 | PyObject * obj0 = 0 ; | |
17960 | char *kwnames[] = { | |
17961 | (char *) "self", NULL | |
17962 | }; | |
17963 | ||
17964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17967 | { |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17970 | ||
17971 | wxPyEndAllowThreads(__tstate); | |
17972 | if (PyErr_Occurred()) SWIG_fail; | |
17973 | } | |
17974 | { | |
412d302d | 17975 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17976 | } |
17977 | return resultobj; | |
17978 | fail: | |
17979 | return NULL; | |
17980 | } | |
17981 | ||
17982 | ||
c32bde28 | 17983 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17984 | PyObject *resultobj; |
17985 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17986 | size_t arg2 ; | |
17987 | wxToolBarToolBase *result; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | PyObject * obj1 = 0 ; | |
17990 | char *kwnames[] = { | |
17991 | (char *) "self",(char *) "pos", NULL | |
17992 | }; | |
17993 | ||
17994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17997 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17998 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17999 | { |
18000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18001 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
18002 | ||
18003 | wxPyEndAllowThreads(__tstate); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
18005 | } | |
18006 | { | |
412d302d | 18007 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18008 | } |
18009 | return resultobj; | |
18010 | fail: | |
18011 | return NULL; | |
18012 | } | |
18013 | ||
18014 | ||
c32bde28 | 18015 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18016 | PyObject *resultobj; |
18017 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18018 | int arg2 ; | |
18019 | wxToolBarToolBase *result; | |
18020 | PyObject * obj0 = 0 ; | |
994141e6 | 18021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18022 | char *kwnames[] = { |
18023 | (char *) "self",(char *) "id", NULL | |
18024 | }; | |
18025 | ||
994141e6 | 18026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18029 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18030 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18031 | { |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | { | |
412d302d | 18039 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18040 | } |
18041 | return resultobj; | |
18042 | fail: | |
18043 | return NULL; | |
18044 | } | |
18045 | ||
18046 | ||
c32bde28 | 18047 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18048 | PyObject *resultobj; |
18049 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18050 | size_t arg2 ; | |
18051 | bool result; | |
18052 | PyObject * obj0 = 0 ; | |
18053 | PyObject * obj1 = 0 ; | |
18054 | char *kwnames[] = { | |
18055 | (char *) "self",(char *) "pos", NULL | |
18056 | }; | |
18057 | ||
18058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18061 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 18062 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18063 | { |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
4f89f6a3 RD |
18070 | { |
18071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18072 | } | |
d14a1e28 RD |
18073 | return resultobj; |
18074 | fail: | |
18075 | return NULL; | |
18076 | } | |
18077 | ||
18078 | ||
c32bde28 | 18079 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18080 | PyObject *resultobj; |
18081 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18082 | int arg2 ; | |
18083 | bool result; | |
18084 | PyObject * obj0 = 0 ; | |
994141e6 | 18085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18086 | char *kwnames[] = { |
18087 | (char *) "self",(char *) "id", NULL | |
18088 | }; | |
18089 | ||
994141e6 | 18090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18093 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18094 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18095 | { |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18097 | result = (bool)(arg1)->DeleteTool(arg2); | |
18098 | ||
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
4f89f6a3 RD |
18102 | { |
18103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18104 | } | |
d14a1e28 RD |
18105 | return resultobj; |
18106 | fail: | |
18107 | return NULL; | |
18108 | } | |
18109 | ||
18110 | ||
c32bde28 | 18111 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18112 | PyObject *resultobj; |
18113 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18114 | PyObject * obj0 = 0 ; | |
18115 | char *kwnames[] = { | |
18116 | (char *) "self", NULL | |
18117 | }; | |
18118 | ||
18119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18122 | { |
18123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18124 | (arg1)->ClearTools(); | |
18125 | ||
18126 | wxPyEndAllowThreads(__tstate); | |
18127 | if (PyErr_Occurred()) SWIG_fail; | |
18128 | } | |
18129 | Py_INCREF(Py_None); resultobj = Py_None; | |
18130 | return resultobj; | |
18131 | fail: | |
18132 | return NULL; | |
18133 | } | |
18134 | ||
18135 | ||
c32bde28 | 18136 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18137 | PyObject *resultobj; |
18138 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18139 | bool result; | |
18140 | PyObject * obj0 = 0 ; | |
18141 | char *kwnames[] = { | |
18142 | (char *) "self", NULL | |
18143 | }; | |
18144 | ||
18145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18148 | { |
18149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18150 | result = (bool)(arg1)->Realize(); | |
18151 | ||
18152 | wxPyEndAllowThreads(__tstate); | |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
18154 | } | |
4f89f6a3 RD |
18155 | { |
18156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18157 | } | |
d14a1e28 RD |
18158 | return resultobj; |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
c32bde28 | 18164 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18165 | PyObject *resultobj; |
18166 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18167 | int arg2 ; | |
18168 | bool arg3 ; | |
18169 | PyObject * obj0 = 0 ; | |
994141e6 | 18170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18171 | PyObject * obj2 = 0 ; |
18172 | char *kwnames[] = { | |
18173 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
18174 | }; | |
18175 | ||
994141e6 | 18176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18179 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18180 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18181 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 18182 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18183 | { |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | (arg1)->EnableTool(arg2,arg3); | |
18186 | ||
18187 | wxPyEndAllowThreads(__tstate); | |
18188 | if (PyErr_Occurred()) SWIG_fail; | |
18189 | } | |
18190 | Py_INCREF(Py_None); resultobj = Py_None; | |
18191 | return resultobj; | |
18192 | fail: | |
18193 | return NULL; | |
18194 | } | |
18195 | ||
18196 | ||
c32bde28 | 18197 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18198 | PyObject *resultobj; |
18199 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18200 | int arg2 ; | |
18201 | bool arg3 ; | |
18202 | PyObject * obj0 = 0 ; | |
994141e6 | 18203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18204 | PyObject * obj2 = 0 ; |
18205 | char *kwnames[] = { | |
18206 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
18207 | }; | |
18208 | ||
994141e6 | 18209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18212 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18213 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18214 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 18215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18216 | { |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | (arg1)->ToggleTool(arg2,arg3); | |
18219 | ||
18220 | wxPyEndAllowThreads(__tstate); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | Py_INCREF(Py_None); resultobj = Py_None; | |
18224 | return resultobj; | |
18225 | fail: | |
18226 | return NULL; | |
18227 | } | |
18228 | ||
18229 | ||
c32bde28 | 18230 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18231 | PyObject *resultobj; |
18232 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18233 | int arg2 ; | |
18234 | bool arg3 ; | |
18235 | PyObject * obj0 = 0 ; | |
994141e6 | 18236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18237 | PyObject * obj2 = 0 ; |
18238 | char *kwnames[] = { | |
18239 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
18240 | }; | |
18241 | ||
994141e6 | 18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18245 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18246 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18247 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 18248 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18249 | { |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | (arg1)->SetToggle(arg2,arg3); | |
18252 | ||
18253 | wxPyEndAllowThreads(__tstate); | |
18254 | if (PyErr_Occurred()) SWIG_fail; | |
18255 | } | |
18256 | Py_INCREF(Py_None); resultobj = Py_None; | |
18257 | return resultobj; | |
18258 | fail: | |
18259 | return NULL; | |
18260 | } | |
18261 | ||
18262 | ||
c32bde28 | 18263 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18264 | PyObject *resultobj; |
18265 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18266 | int arg2 ; | |
18267 | PyObject *result; | |
18268 | PyObject * obj0 = 0 ; | |
994141e6 | 18269 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18270 | char *kwnames[] = { |
18271 | (char *) "self",(char *) "id", NULL | |
18272 | }; | |
18273 | ||
994141e6 | 18274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18277 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18278 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18279 | { |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | resultobj = result; | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
c32bde28 | 18293 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18294 | PyObject *resultobj; |
18295 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18296 | int arg2 ; | |
18297 | PyObject *arg3 = (PyObject *) 0 ; | |
18298 | PyObject * obj0 = 0 ; | |
994141e6 | 18299 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18300 | PyObject * obj2 = 0 ; |
18301 | char *kwnames[] = { | |
18302 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
18303 | }; | |
18304 | ||
994141e6 | 18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18308 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18309 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18310 | arg3 = obj2; |
18311 | { | |
18312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18313 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
18314 | ||
18315 | wxPyEndAllowThreads(__tstate); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | Py_INCREF(Py_None); resultobj = Py_None; | |
18319 | return resultobj; | |
18320 | fail: | |
18321 | return NULL; | |
18322 | } | |
18323 | ||
18324 | ||
c32bde28 | 18325 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18326 | PyObject *resultobj; |
18327 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18328 | int arg2 ; | |
18329 | int result; | |
18330 | PyObject * obj0 = 0 ; | |
994141e6 | 18331 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18332 | char *kwnames[] = { |
18333 | (char *) "self",(char *) "id", NULL | |
18334 | }; | |
18335 | ||
994141e6 | 18336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18339 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18340 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18341 | { |
18342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18343 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
18344 | ||
18345 | wxPyEndAllowThreads(__tstate); | |
18346 | if (PyErr_Occurred()) SWIG_fail; | |
18347 | } | |
c32bde28 | 18348 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18349 | return resultobj; |
18350 | fail: | |
18351 | return NULL; | |
18352 | } | |
18353 | ||
18354 | ||
c32bde28 | 18355 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18356 | PyObject *resultobj; |
18357 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18358 | int arg2 ; | |
18359 | bool result; | |
18360 | PyObject * obj0 = 0 ; | |
994141e6 | 18361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18362 | char *kwnames[] = { |
18363 | (char *) "self",(char *) "id", NULL | |
18364 | }; | |
18365 | ||
994141e6 | 18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18369 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18370 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18371 | { |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (bool)(arg1)->GetToolState(arg2); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
4f89f6a3 RD |
18378 | { |
18379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18380 | } | |
d14a1e28 RD |
18381 | return resultobj; |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
c32bde28 | 18387 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18388 | PyObject *resultobj; |
18389 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18390 | int arg2 ; | |
18391 | bool result; | |
18392 | PyObject * obj0 = 0 ; | |
994141e6 | 18393 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18394 | char *kwnames[] = { |
18395 | (char *) "self",(char *) "id", NULL | |
18396 | }; | |
18397 | ||
994141e6 | 18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18401 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18402 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18403 | { |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
4f89f6a3 RD |
18410 | { |
18411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18412 | } | |
d14a1e28 RD |
18413 | return resultobj; |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
c32bde28 | 18419 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18420 | PyObject *resultobj; |
18421 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18422 | int arg2 ; | |
18423 | wxString *arg3 = 0 ; | |
ae8162c8 | 18424 | bool temp3 = false ; |
d14a1e28 | 18425 | PyObject * obj0 = 0 ; |
994141e6 | 18426 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18427 | PyObject * obj2 = 0 ; |
18428 | char *kwnames[] = { | |
18429 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18430 | }; | |
18431 | ||
994141e6 | 18432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18435 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18436 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18437 | { |
18438 | arg3 = wxString_in_helper(obj2); | |
18439 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18440 | temp3 = true; |
d14a1e28 RD |
18441 | } |
18442 | { | |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | Py_INCREF(Py_None); resultobj = Py_None; | |
18450 | { | |
18451 | if (temp3) | |
18452 | delete arg3; | |
18453 | } | |
18454 | return resultobj; | |
18455 | fail: | |
18456 | { | |
18457 | if (temp3) | |
18458 | delete arg3; | |
18459 | } | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
c32bde28 | 18464 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18465 | PyObject *resultobj; |
18466 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18467 | int arg2 ; | |
18468 | wxString result; | |
18469 | PyObject * obj0 = 0 ; | |
994141e6 | 18470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18471 | char *kwnames[] = { |
18472 | (char *) "self",(char *) "id", NULL | |
18473 | }; | |
18474 | ||
994141e6 | 18475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18478 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18479 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18480 | { |
18481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18482 | result = (arg1)->GetToolShortHelp(arg2); | |
18483 | ||
18484 | wxPyEndAllowThreads(__tstate); | |
18485 | if (PyErr_Occurred()) SWIG_fail; | |
18486 | } | |
18487 | { | |
18488 | #if wxUSE_UNICODE | |
18489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18490 | #else | |
18491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18492 | #endif | |
18493 | } | |
18494 | return resultobj; | |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
c32bde28 | 18500 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18501 | PyObject *resultobj; |
18502 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18503 | int arg2 ; | |
18504 | wxString *arg3 = 0 ; | |
ae8162c8 | 18505 | bool temp3 = false ; |
d14a1e28 | 18506 | PyObject * obj0 = 0 ; |
994141e6 | 18507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18508 | PyObject * obj2 = 0 ; |
18509 | char *kwnames[] = { | |
18510 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18511 | }; | |
18512 | ||
994141e6 | 18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18516 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18517 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18518 | { |
18519 | arg3 = wxString_in_helper(obj2); | |
18520 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18521 | temp3 = true; |
d14a1e28 RD |
18522 | } |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
18526 | ||
18527 | wxPyEndAllowThreads(__tstate); | |
18528 | if (PyErr_Occurred()) SWIG_fail; | |
18529 | } | |
18530 | Py_INCREF(Py_None); resultobj = Py_None; | |
18531 | { | |
18532 | if (temp3) | |
18533 | delete arg3; | |
18534 | } | |
18535 | return resultobj; | |
18536 | fail: | |
18537 | { | |
18538 | if (temp3) | |
18539 | delete arg3; | |
18540 | } | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
c32bde28 | 18545 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18546 | PyObject *resultobj; |
18547 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18548 | int arg2 ; | |
18549 | wxString result; | |
18550 | PyObject * obj0 = 0 ; | |
994141e6 | 18551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18552 | char *kwnames[] = { |
18553 | (char *) "self",(char *) "id", NULL | |
18554 | }; | |
18555 | ||
994141e6 | 18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18559 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18560 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18561 | { |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | result = (arg1)->GetToolLongHelp(arg2); | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
18568 | { | |
18569 | #if wxUSE_UNICODE | |
18570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18571 | #else | |
18572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18573 | #endif | |
18574 | } | |
18575 | return resultobj; | |
18576 | fail: | |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
c32bde28 | 18581 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18582 | PyObject *resultobj; |
18583 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18584 | int arg2 ; | |
18585 | int arg3 ; | |
18586 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18587 | PyObject * obj1 = 0 ; |
18588 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18589 | char *kwnames[] = { |
18590 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18591 | }; | |
18592 | ||
994141e6 | 18593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18596 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18597 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18598 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18599 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18600 | { |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | (arg1)->SetMargins(arg2,arg3); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | Py_INCREF(Py_None); resultobj = Py_None; | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
c32bde28 | 18614 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18615 | PyObject *resultobj; |
18616 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18617 | wxSize *arg2 = 0 ; | |
18618 | wxSize temp2 ; | |
18619 | PyObject * obj0 = 0 ; | |
18620 | PyObject * obj1 = 0 ; | |
18621 | char *kwnames[] = { | |
18622 | (char *) "self",(char *) "size", NULL | |
18623 | }; | |
18624 | ||
18625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18628 | { |
18629 | arg2 = &temp2; | |
18630 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18631 | } | |
18632 | { | |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | (arg1)->SetMargins((wxSize const &)*arg2); | |
18635 | ||
18636 | wxPyEndAllowThreads(__tstate); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | Py_INCREF(Py_None); resultobj = Py_None; | |
18640 | return resultobj; | |
18641 | fail: | |
18642 | return NULL; | |
18643 | } | |
18644 | ||
18645 | ||
c32bde28 | 18646 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18647 | PyObject *resultobj; |
18648 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18649 | int arg2 ; | |
18650 | PyObject * obj0 = 0 ; | |
994141e6 | 18651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18652 | char *kwnames[] = { |
18653 | (char *) "self",(char *) "packing", NULL | |
18654 | }; | |
18655 | ||
994141e6 | 18656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18659 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18660 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18661 | { |
18662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18663 | (arg1)->SetToolPacking(arg2); | |
18664 | ||
18665 | wxPyEndAllowThreads(__tstate); | |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
18667 | } | |
18668 | Py_INCREF(Py_None); resultobj = Py_None; | |
18669 | return resultobj; | |
18670 | fail: | |
18671 | return NULL; | |
18672 | } | |
18673 | ||
18674 | ||
c32bde28 | 18675 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18676 | PyObject *resultobj; |
18677 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18678 | int arg2 ; | |
18679 | PyObject * obj0 = 0 ; | |
994141e6 | 18680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18681 | char *kwnames[] = { |
18682 | (char *) "self",(char *) "separation", NULL | |
18683 | }; | |
18684 | ||
994141e6 | 18685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18688 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18689 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18690 | { |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | (arg1)->SetToolSeparation(arg2); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | Py_INCREF(Py_None); resultobj = Py_None; | |
18698 | return resultobj; | |
18699 | fail: | |
18700 | return NULL; | |
18701 | } | |
18702 | ||
18703 | ||
c32bde28 | 18704 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18705 | PyObject *resultobj; |
18706 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18707 | wxSize result; | |
18708 | PyObject * obj0 = 0 ; | |
18709 | char *kwnames[] = { | |
18710 | (char *) "self", NULL | |
18711 | }; | |
18712 | ||
18713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18716 | { |
18717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18718 | result = (arg1)->GetToolMargins(); | |
18719 | ||
18720 | wxPyEndAllowThreads(__tstate); | |
18721 | if (PyErr_Occurred()) SWIG_fail; | |
18722 | } | |
18723 | { | |
18724 | wxSize * resultptr; | |
18725 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18727 | } |
18728 | return resultobj; | |
18729 | fail: | |
18730 | return NULL; | |
18731 | } | |
18732 | ||
18733 | ||
c32bde28 | 18734 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18735 | PyObject *resultobj; |
18736 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18737 | wxSize result; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18746 | { |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (arg1)->GetMargins(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
18753 | { | |
18754 | wxSize * resultptr; | |
18755 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18757 | } |
18758 | return resultobj; | |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
c32bde28 | 18764 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18765 | PyObject *resultobj; |
18766 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18767 | int result; | |
18768 | PyObject * obj0 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "self", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18776 | { |
18777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18778 | result = (int)(arg1)->GetToolPacking(); | |
18779 | ||
18780 | wxPyEndAllowThreads(__tstate); | |
18781 | if (PyErr_Occurred()) SWIG_fail; | |
18782 | } | |
c32bde28 | 18783 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18784 | return resultobj; |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
c32bde28 | 18790 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18791 | PyObject *resultobj; |
18792 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18793 | int result; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18802 | { |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | result = (int)(arg1)->GetToolSeparation(); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
c32bde28 | 18809 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18810 | return resultobj; |
18811 | fail: | |
18812 | return NULL; | |
18813 | } | |
18814 | ||
18815 | ||
c32bde28 | 18816 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18817 | PyObject *resultobj; |
18818 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18819 | int arg2 ; | |
18820 | PyObject * obj0 = 0 ; | |
994141e6 | 18821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18822 | char *kwnames[] = { |
18823 | (char *) "self",(char *) "nRows", NULL | |
18824 | }; | |
18825 | ||
994141e6 | 18826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18829 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18830 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18831 | { |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | (arg1)->SetRows(arg2); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | Py_INCREF(Py_None); resultobj = Py_None; | |
18839 | return resultobj; | |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
c32bde28 | 18845 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18846 | PyObject *resultobj; |
18847 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18848 | int arg2 ; | |
18849 | int arg3 ; | |
18850 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18851 | PyObject * obj1 = 0 ; |
18852 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18853 | char *kwnames[] = { |
18854 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18855 | }; | |
18856 | ||
994141e6 | 18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18860 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18861 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18862 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18863 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18864 | { |
18865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18866 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
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 | ||
c32bde28 | 18878 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18879 | PyObject *resultobj; |
18880 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18881 | int result; | |
18882 | PyObject * obj0 = 0 ; | |
18883 | char *kwnames[] = { | |
18884 | (char *) "self", NULL | |
18885 | }; | |
18886 | ||
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18890 | { |
18891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18892 | result = (int)(arg1)->GetMaxRows(); | |
18893 | ||
18894 | wxPyEndAllowThreads(__tstate); | |
18895 | if (PyErr_Occurred()) SWIG_fail; | |
18896 | } | |
c32bde28 | 18897 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18898 | return resultobj; |
18899 | fail: | |
18900 | return NULL; | |
18901 | } | |
18902 | ||
18903 | ||
c32bde28 | 18904 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18905 | PyObject *resultobj; |
18906 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18907 | int result; | |
18908 | PyObject * obj0 = 0 ; | |
18909 | char *kwnames[] = { | |
18910 | (char *) "self", NULL | |
18911 | }; | |
18912 | ||
18913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18916 | { |
18917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18918 | result = (int)(arg1)->GetMaxCols(); | |
18919 | ||
18920 | wxPyEndAllowThreads(__tstate); | |
18921 | if (PyErr_Occurred()) SWIG_fail; | |
18922 | } | |
c32bde28 | 18923 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18924 | return resultobj; |
18925 | fail: | |
18926 | return NULL; | |
18927 | } | |
18928 | ||
18929 | ||
c32bde28 | 18930 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18931 | PyObject *resultobj; |
18932 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18933 | wxSize *arg2 = 0 ; | |
18934 | wxSize temp2 ; | |
18935 | PyObject * obj0 = 0 ; | |
18936 | PyObject * obj1 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self",(char *) "size", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18944 | { |
18945 | arg2 = &temp2; | |
18946 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18947 | } | |
18948 | { | |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
18955 | Py_INCREF(Py_None); resultobj = Py_None; | |
18956 | return resultobj; | |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
c32bde28 | 18962 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18963 | PyObject *resultobj; |
18964 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18965 | wxSize result; | |
18966 | PyObject * obj0 = 0 ; | |
18967 | char *kwnames[] = { | |
18968 | (char *) "self", NULL | |
18969 | }; | |
18970 | ||
18971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18974 | { |
18975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18976 | result = (arg1)->GetToolBitmapSize(); | |
18977 | ||
18978 | wxPyEndAllowThreads(__tstate); | |
18979 | if (PyErr_Occurred()) SWIG_fail; | |
18980 | } | |
18981 | { | |
18982 | wxSize * resultptr; | |
18983 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18984 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18985 | } |
18986 | return resultobj; | |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
c32bde28 | 18992 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18993 | PyObject *resultobj; |
18994 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18995 | wxSize result; | |
18996 | PyObject * obj0 = 0 ; | |
18997 | char *kwnames[] = { | |
18998 | (char *) "self", NULL | |
18999 | }; | |
19000 | ||
19001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
19003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19004 | { |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | result = (arg1)->GetToolSize(); | |
19007 | ||
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
19011 | { | |
19012 | wxSize * resultptr; | |
19013 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 19014 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
19015 | } |
19016 | return resultobj; | |
19017 | fail: | |
19018 | return NULL; | |
19019 | } | |
19020 | ||
19021 | ||
c32bde28 | 19022 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19023 | PyObject *resultobj; |
19024 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
19025 | int arg2 ; |
19026 | int arg3 ; | |
d14a1e28 RD |
19027 | wxToolBarToolBase *result; |
19028 | PyObject * obj0 = 0 ; | |
994141e6 RD |
19029 | PyObject * obj1 = 0 ; |
19030 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19031 | char *kwnames[] = { |
19032 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19033 | }; | |
19034 | ||
994141e6 | 19035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
19037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19038 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19039 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 19040 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 19041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19042 | { |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
19045 | ||
19046 | wxPyEndAllowThreads(__tstate); | |
19047 | if (PyErr_Occurred()) SWIG_fail; | |
19048 | } | |
19049 | { | |
412d302d | 19050 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19051 | } |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
c32bde28 | 19058 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
19059 | PyObject *resultobj; |
19060 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19061 | int arg2 ; | |
19062 | wxToolBarToolBase *result; | |
19063 | PyObject * obj0 = 0 ; | |
994141e6 | 19064 | PyObject * obj1 = 0 ; |
3a04f143 RD |
19065 | char *kwnames[] = { |
19066 | (char *) "self",(char *) "toolid", NULL | |
19067 | }; | |
19068 | ||
994141e6 | 19069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
19071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19072 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19073 | if (PyErr_Occurred()) SWIG_fail; |
3a04f143 RD |
19074 | { |
19075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19076 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
19077 | ||
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
19081 | { | |
412d302d | 19082 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19083 | } |
19084 | return resultobj; | |
19085 | fail: | |
19086 | return NULL; | |
19087 | } | |
19088 | ||
19089 | ||
c32bde28 | 19090 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19091 | PyObject *resultobj; |
19092 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19093 | bool result; | |
19094 | PyObject * obj0 = 0 ; | |
19095 | char *kwnames[] = { | |
19096 | (char *) "self", NULL | |
19097 | }; | |
19098 | ||
19099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
19101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19102 | { |
19103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19104 | result = (bool)(arg1)->IsVertical(); | |
19105 | ||
19106 | wxPyEndAllowThreads(__tstate); | |
19107 | if (PyErr_Occurred()) SWIG_fail; | |
19108 | } | |
4f89f6a3 RD |
19109 | { |
19110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19111 | } | |
d14a1e28 RD |
19112 | return resultobj; |
19113 | fail: | |
19114 | return NULL; | |
19115 | } | |
19116 | ||
19117 | ||
c32bde28 | 19118 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19119 | PyObject *obj; |
19120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19121 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
19122 | Py_INCREF(obj); | |
19123 | return Py_BuildValue((char *)""); | |
19124 | } | |
c32bde28 | 19125 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19126 | PyObject *resultobj; |
19127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 19128 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19129 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19130 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19131 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19132 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19133 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
19134 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
19135 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19136 | wxToolBar *result; | |
19137 | wxPoint temp3 ; | |
19138 | wxSize temp4 ; | |
ae8162c8 | 19139 | bool temp6 = false ; |
d14a1e28 | 19140 | PyObject * obj0 = 0 ; |
994141e6 | 19141 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19142 | PyObject * obj2 = 0 ; |
19143 | PyObject * obj3 = 0 ; | |
994141e6 | 19144 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19145 | PyObject * obj5 = 0 ; |
19146 | char *kwnames[] = { | |
19147 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19148 | }; | |
19149 | ||
248ed943 | 19150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
19151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 19153 | if (obj1) { |
c32bde28 | 19154 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
19155 | if (PyErr_Occurred()) SWIG_fail; |
19156 | } | |
d14a1e28 RD |
19157 | if (obj2) { |
19158 | { | |
19159 | arg3 = &temp3; | |
19160 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19161 | } | |
19162 | } | |
19163 | if (obj3) { | |
19164 | { | |
19165 | arg4 = &temp4; | |
19166 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19167 | } | |
19168 | } | |
994141e6 | 19169 | if (obj4) { |
c32bde28 | 19170 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 19171 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19172 | } |
d14a1e28 RD |
19173 | if (obj5) { |
19174 | { | |
19175 | arg6 = wxString_in_helper(obj5); | |
19176 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 19177 | temp6 = true; |
d14a1e28 RD |
19178 | } |
19179 | } | |
19180 | { | |
e3b71cb8 | 19181 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19183 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19184 | ||
19185 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19186 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 19187 | } |
b0f7404b | 19188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
19189 | { |
19190 | if (temp6) | |
19191 | delete arg6; | |
19192 | } | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | { | |
19196 | if (temp6) | |
19197 | delete arg6; | |
19198 | } | |
19199 | return NULL; | |
19200 | } | |
19201 | ||
19202 | ||
c32bde28 | 19203 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19204 | PyObject *resultobj; |
19205 | wxToolBar *result; | |
19206 | char *kwnames[] = { | |
19207 | NULL | |
19208 | }; | |
19209 | ||
19210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
19211 | { | |
e3b71cb8 | 19212 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
19213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19214 | result = (wxToolBar *)new wxToolBar(); | |
19215 | ||
19216 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 19217 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 19218 | } |
b0f7404b | 19219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
19220 | return resultobj; |
19221 | fail: | |
19222 | return NULL; | |
19223 | } | |
19224 | ||
19225 | ||
c32bde28 | 19226 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19227 | PyObject *resultobj; |
19228 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
19229 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 19230 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19231 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19232 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19233 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19234 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19235 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
19236 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
19237 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19238 | bool result; | |
19239 | wxPoint temp4 ; | |
19240 | wxSize temp5 ; | |
ae8162c8 | 19241 | bool temp7 = false ; |
d14a1e28 RD |
19242 | PyObject * obj0 = 0 ; |
19243 | PyObject * obj1 = 0 ; | |
994141e6 | 19244 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19245 | PyObject * obj3 = 0 ; |
19246 | PyObject * obj4 = 0 ; | |
994141e6 | 19247 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19248 | PyObject * obj6 = 0 ; |
19249 | char *kwnames[] = { | |
19250 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19251 | }; | |
19252 | ||
248ed943 | 19253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
19254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
19255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 19258 | if (obj2) { |
c32bde28 | 19259 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
19260 | if (PyErr_Occurred()) SWIG_fail; |
19261 | } | |
d14a1e28 RD |
19262 | if (obj3) { |
19263 | { | |
19264 | arg4 = &temp4; | |
19265 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19266 | } | |
19267 | } | |
19268 | if (obj4) { | |
19269 | { | |
19270 | arg5 = &temp5; | |
19271 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19272 | } | |
19273 | } | |
994141e6 | 19274 | if (obj5) { |
c32bde28 | 19275 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 19276 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19277 | } |
d14a1e28 RD |
19278 | if (obj6) { |
19279 | { | |
19280 | arg7 = wxString_in_helper(obj6); | |
19281 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19282 | temp7 = true; |
d14a1e28 RD |
19283 | } |
19284 | } | |
19285 | { | |
19286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19287 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19288 | ||
19289 | wxPyEndAllowThreads(__tstate); | |
19290 | if (PyErr_Occurred()) SWIG_fail; | |
19291 | } | |
4f89f6a3 RD |
19292 | { |
19293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19294 | } | |
d14a1e28 RD |
19295 | { |
19296 | if (temp7) | |
19297 | delete arg7; | |
19298 | } | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | { | |
19302 | if (temp7) | |
19303 | delete arg7; | |
19304 | } | |
19305 | return NULL; | |
19306 | } | |
19307 | ||
19308 | ||
c32bde28 | 19309 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19310 | PyObject *resultobj; |
19311 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
19312 | int arg2 ; |
19313 | int arg3 ; | |
d14a1e28 RD |
19314 | wxToolBarToolBase *result; |
19315 | PyObject * obj0 = 0 ; | |
994141e6 RD |
19316 | PyObject * obj1 = 0 ; |
19317 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19318 | char *kwnames[] = { |
19319 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19320 | }; | |
19321 | ||
994141e6 | 19322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
19324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19325 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19326 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 19327 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 19328 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19329 | { |
19330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19331 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
19332 | ||
19333 | wxPyEndAllowThreads(__tstate); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | { | |
412d302d | 19337 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19338 | } |
19339 | return resultobj; | |
19340 | fail: | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
c32bde28 | 19345 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
19346 | PyObject *resultobj; |
19347 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
19348 | wxVisualAttributes result; | |
19349 | PyObject * obj0 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "variant", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
19355 | if (obj0) { | |
c32bde28 | 19356 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
19357 | if (PyErr_Occurred()) SWIG_fail; |
19358 | } | |
19359 | { | |
110da5b0 | 19360 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
19361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19362 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
19363 | ||
19364 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 19365 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
19366 | } |
19367 | { | |
19368 | wxVisualAttributes * resultptr; | |
19369 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
19370 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
19371 | } | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
c32bde28 | 19378 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19379 | PyObject *obj; |
19380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19381 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
19382 | Py_INCREF(obj); | |
19383 | return Py_BuildValue((char *)""); | |
19384 | } | |
c32bde28 | 19385 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
19386 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
19387 | return 1; | |
19388 | } | |
19389 | ||
19390 | ||
19391 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
19392 | PyObject *pyobj; | |
19393 | ||
19394 | { | |
19395 | #if wxUSE_UNICODE | |
19396 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19397 | #else | |
19398 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19399 | #endif | |
19400 | } | |
19401 | return pyobj; | |
19402 | } | |
19403 | ||
19404 | ||
c32bde28 | 19405 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19406 | PyObject *resultobj; |
19407 | wxColour const &arg1_defvalue = wxNullColour ; | |
19408 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
19409 | wxColour const &arg2_defvalue = wxNullColour ; | |
19410 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
19411 | wxFont const &arg3_defvalue = wxNullFont ; | |
19412 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
19413 | wxListItemAttr *result; | |
19414 | wxColour temp1 ; | |
19415 | wxColour temp2 ; | |
19416 | PyObject * obj0 = 0 ; | |
19417 | PyObject * obj1 = 0 ; | |
19418 | PyObject * obj2 = 0 ; | |
19419 | char *kwnames[] = { | |
19420 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19424 | if (obj0) { | |
19425 | { | |
19426 | arg1 = &temp1; | |
19427 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
19428 | } | |
19429 | } | |
19430 | if (obj1) { | |
19431 | { | |
19432 | arg2 = &temp2; | |
19433 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19434 | } | |
19435 | } | |
19436 | if (obj2) { | |
15afbcd0 RD |
19437 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
19438 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19439 | SWIG_fail; | |
d14a1e28 | 19440 | if (arg3 == NULL) { |
15afbcd0 RD |
19441 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19442 | SWIG_fail; | |
d14a1e28 RD |
19443 | } |
19444 | } | |
19445 | { | |
19446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19447 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
19448 | ||
19449 | wxPyEndAllowThreads(__tstate); | |
19450 | if (PyErr_Occurred()) SWIG_fail; | |
19451 | } | |
15afbcd0 | 19452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
19453 | return resultobj; |
19454 | fail: | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
c32bde28 | 19459 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19460 | PyObject *resultobj; |
19461 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19462 | wxColour *arg2 = 0 ; | |
19463 | wxColour temp2 ; | |
19464 | PyObject * obj0 = 0 ; | |
19465 | PyObject * obj1 = 0 ; | |
19466 | char *kwnames[] = { | |
19467 | (char *) "self",(char *) "colText", NULL | |
19468 | }; | |
19469 | ||
19470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19473 | { |
19474 | arg2 = &temp2; | |
19475 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19476 | } | |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | Py_INCREF(Py_None); resultobj = Py_None; | |
19485 | return resultobj; | |
19486 | fail: | |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
c32bde28 | 19491 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19492 | PyObject *resultobj; |
19493 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19494 | wxColour *arg2 = 0 ; | |
19495 | wxColour temp2 ; | |
19496 | PyObject * obj0 = 0 ; | |
19497 | PyObject * obj1 = 0 ; | |
19498 | char *kwnames[] = { | |
19499 | (char *) "self",(char *) "colBack", NULL | |
19500 | }; | |
19501 | ||
19502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19505 | { |
19506 | arg2 = &temp2; | |
19507 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19508 | } | |
19509 | { | |
19510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19511 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19512 | ||
19513 | wxPyEndAllowThreads(__tstate); | |
19514 | if (PyErr_Occurred()) SWIG_fail; | |
19515 | } | |
19516 | Py_INCREF(Py_None); resultobj = Py_None; | |
19517 | return resultobj; | |
19518 | fail: | |
19519 | return NULL; | |
19520 | } | |
19521 | ||
19522 | ||
c32bde28 | 19523 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19524 | PyObject *resultobj; |
19525 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19526 | wxFont *arg2 = 0 ; | |
19527 | PyObject * obj0 = 0 ; | |
19528 | PyObject * obj1 = 0 ; | |
19529 | char *kwnames[] = { | |
19530 | (char *) "self",(char *) "font", NULL | |
19531 | }; | |
19532 | ||
19533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19537 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19538 | SWIG_fail; | |
d14a1e28 | 19539 | if (arg2 == NULL) { |
15afbcd0 RD |
19540 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19541 | SWIG_fail; | |
d14a1e28 RD |
19542 | } |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | (arg1)->SetFont((wxFont const &)*arg2); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | Py_INCREF(Py_None); resultobj = Py_None; | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
c32bde28 | 19557 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19558 | PyObject *resultobj; |
19559 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19560 | bool result; | |
19561 | PyObject * obj0 = 0 ; | |
19562 | char *kwnames[] = { | |
19563 | (char *) "self", NULL | |
19564 | }; | |
19565 | ||
19566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19569 | { |
19570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19571 | result = (bool)(arg1)->HasTextColour(); | |
19572 | ||
19573 | wxPyEndAllowThreads(__tstate); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
4f89f6a3 RD |
19576 | { |
19577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19578 | } | |
d14a1e28 RD |
19579 | return resultobj; |
19580 | fail: | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
c32bde28 | 19585 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19586 | PyObject *resultobj; |
19587 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19588 | bool result; | |
19589 | PyObject * obj0 = 0 ; | |
19590 | char *kwnames[] = { | |
19591 | (char *) "self", NULL | |
19592 | }; | |
19593 | ||
19594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19597 | { |
19598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19599 | result = (bool)(arg1)->HasBackgroundColour(); | |
19600 | ||
19601 | wxPyEndAllowThreads(__tstate); | |
19602 | if (PyErr_Occurred()) SWIG_fail; | |
19603 | } | |
4f89f6a3 RD |
19604 | { |
19605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19606 | } | |
d14a1e28 RD |
19607 | return resultobj; |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
c32bde28 | 19613 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19614 | PyObject *resultobj; |
19615 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19616 | bool result; | |
19617 | PyObject * obj0 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19625 | { |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | result = (bool)(arg1)->HasFont(); | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
4f89f6a3 RD |
19632 | { |
19633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19634 | } | |
d14a1e28 RD |
19635 | return resultobj; |
19636 | fail: | |
19637 | return NULL; | |
19638 | } | |
19639 | ||
19640 | ||
c32bde28 | 19641 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19642 | PyObject *resultobj; |
19643 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19644 | wxColour result; | |
19645 | PyObject * obj0 = 0 ; | |
19646 | char *kwnames[] = { | |
19647 | (char *) "self", NULL | |
19648 | }; | |
19649 | ||
19650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19653 | { |
19654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19655 | result = (arg1)->GetTextColour(); | |
19656 | ||
19657 | wxPyEndAllowThreads(__tstate); | |
19658 | if (PyErr_Occurred()) SWIG_fail; | |
19659 | } | |
19660 | { | |
19661 | wxColour * resultptr; | |
19662 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19664 | } |
19665 | return resultobj; | |
19666 | fail: | |
19667 | return NULL; | |
19668 | } | |
19669 | ||
19670 | ||
c32bde28 | 19671 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19672 | PyObject *resultobj; |
19673 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19674 | wxColour result; | |
19675 | PyObject * obj0 = 0 ; | |
19676 | char *kwnames[] = { | |
19677 | (char *) "self", NULL | |
19678 | }; | |
19679 | ||
19680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19683 | { |
19684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19685 | result = (arg1)->GetBackgroundColour(); | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | { | |
19691 | wxColour * resultptr; | |
19692 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19694 | } |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
c32bde28 | 19701 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19702 | PyObject *resultobj; |
19703 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19704 | wxFont result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19713 | { |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | result = (arg1)->GetFont(); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | { | |
19721 | wxFont * resultptr; | |
19722 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19724 | } |
19725 | return resultobj; | |
19726 | fail: | |
19727 | return NULL; | |
19728 | } | |
19729 | ||
19730 | ||
c32bde28 | 19731 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19732 | PyObject *resultobj; |
19733 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19734 | PyObject * obj0 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "self", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19742 | { |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | wxListItemAttr_Destroy(arg1); | |
19745 | ||
19746 | wxPyEndAllowThreads(__tstate); | |
19747 | if (PyErr_Occurred()) SWIG_fail; | |
19748 | } | |
19749 | Py_INCREF(Py_None); resultobj = Py_None; | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | return NULL; | |
19753 | } | |
19754 | ||
19755 | ||
c32bde28 | 19756 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19757 | PyObject *obj; |
19758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19759 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19760 | Py_INCREF(obj); | |
19761 | return Py_BuildValue((char *)""); | |
19762 | } | |
c32bde28 | 19763 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19764 | PyObject *resultobj; |
19765 | wxListItem *result; | |
19766 | char *kwnames[] = { | |
19767 | NULL | |
19768 | }; | |
19769 | ||
19770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19771 | { | |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | result = (wxListItem *)new wxListItem(); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | { | |
412d302d | 19779 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
19780 | } |
19781 | return resultobj; | |
19782 | fail: | |
19783 | return NULL; | |
19784 | } | |
19785 | ||
19786 | ||
c32bde28 | 19787 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19788 | PyObject *resultobj; |
19789 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19790 | PyObject * obj0 = 0 ; | |
19791 | char *kwnames[] = { | |
19792 | (char *) "self", NULL | |
19793 | }; | |
19794 | ||
19795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19798 | { |
19799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19800 | delete arg1; | |
19801 | ||
19802 | wxPyEndAllowThreads(__tstate); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | } | |
19805 | Py_INCREF(Py_None); resultobj = Py_None; | |
19806 | return resultobj; | |
19807 | fail: | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
c32bde28 | 19812 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19813 | PyObject *resultobj; |
19814 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19815 | PyObject * obj0 = 0 ; | |
19816 | char *kwnames[] = { | |
19817 | (char *) "self", NULL | |
19818 | }; | |
19819 | ||
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19823 | { |
19824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19825 | (arg1)->Clear(); | |
19826 | ||
19827 | wxPyEndAllowThreads(__tstate); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | Py_INCREF(Py_None); resultobj = Py_None; | |
19831 | return resultobj; | |
19832 | fail: | |
19833 | return NULL; | |
19834 | } | |
19835 | ||
19836 | ||
c32bde28 | 19837 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19838 | PyObject *resultobj; |
19839 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19840 | PyObject * obj0 = 0 ; | |
19841 | char *kwnames[] = { | |
19842 | (char *) "self", NULL | |
19843 | }; | |
19844 | ||
19845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19848 | { |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->ClearAttributes(); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | Py_INCREF(Py_None); resultobj = Py_None; | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
c32bde28 | 19862 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19863 | PyObject *resultobj; |
19864 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19865 | long arg2 ; | |
19866 | PyObject * obj0 = 0 ; | |
994141e6 | 19867 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19868 | char *kwnames[] = { |
19869 | (char *) "self",(char *) "mask", NULL | |
19870 | }; | |
19871 | ||
994141e6 | 19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19875 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19876 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19877 | { |
19878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19879 | (arg1)->SetMask(arg2); | |
19880 | ||
19881 | wxPyEndAllowThreads(__tstate); | |
19882 | if (PyErr_Occurred()) SWIG_fail; | |
19883 | } | |
19884 | Py_INCREF(Py_None); resultobj = Py_None; | |
19885 | return resultobj; | |
19886 | fail: | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
c32bde28 | 19891 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19892 | PyObject *resultobj; |
19893 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19894 | long arg2 ; | |
19895 | PyObject * obj0 = 0 ; | |
994141e6 | 19896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19897 | char *kwnames[] = { |
19898 | (char *) "self",(char *) "id", NULL | |
19899 | }; | |
19900 | ||
994141e6 | 19901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19904 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19905 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19906 | { |
19907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19908 | (arg1)->SetId(arg2); | |
19909 | ||
19910 | wxPyEndAllowThreads(__tstate); | |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
19913 | Py_INCREF(Py_None); resultobj = Py_None; | |
19914 | return resultobj; | |
19915 | fail: | |
19916 | return NULL; | |
19917 | } | |
19918 | ||
19919 | ||
c32bde28 | 19920 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19921 | PyObject *resultobj; |
19922 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19923 | int arg2 ; | |
19924 | PyObject * obj0 = 0 ; | |
994141e6 | 19925 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19926 | char *kwnames[] = { |
19927 | (char *) "self",(char *) "col", NULL | |
19928 | }; | |
19929 | ||
994141e6 | 19930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19933 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19934 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19935 | { |
19936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19937 | (arg1)->SetColumn(arg2); | |
19938 | ||
19939 | wxPyEndAllowThreads(__tstate); | |
19940 | if (PyErr_Occurred()) SWIG_fail; | |
19941 | } | |
19942 | Py_INCREF(Py_None); resultobj = Py_None; | |
19943 | return resultobj; | |
19944 | fail: | |
19945 | return NULL; | |
19946 | } | |
19947 | ||
19948 | ||
c32bde28 | 19949 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19950 | PyObject *resultobj; |
19951 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19952 | long arg2 ; | |
19953 | PyObject * obj0 = 0 ; | |
994141e6 | 19954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19955 | char *kwnames[] = { |
19956 | (char *) "self",(char *) "state", NULL | |
19957 | }; | |
19958 | ||
994141e6 | 19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19962 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19963 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19964 | { |
19965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19966 | (arg1)->SetState(arg2); | |
19967 | ||
19968 | wxPyEndAllowThreads(__tstate); | |
19969 | if (PyErr_Occurred()) SWIG_fail; | |
19970 | } | |
19971 | Py_INCREF(Py_None); resultobj = Py_None; | |
19972 | return resultobj; | |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
c32bde28 | 19978 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19979 | PyObject *resultobj; |
19980 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19981 | long arg2 ; | |
19982 | PyObject * obj0 = 0 ; | |
994141e6 | 19983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19984 | char *kwnames[] = { |
19985 | (char *) "self",(char *) "stateMask", NULL | |
19986 | }; | |
19987 | ||
994141e6 | 19988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19991 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19992 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19993 | { |
19994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19995 | (arg1)->SetStateMask(arg2); | |
19996 | ||
19997 | wxPyEndAllowThreads(__tstate); | |
19998 | if (PyErr_Occurred()) SWIG_fail; | |
19999 | } | |
20000 | Py_INCREF(Py_None); resultobj = Py_None; | |
20001 | return resultobj; | |
20002 | fail: | |
20003 | return NULL; | |
20004 | } | |
20005 | ||
20006 | ||
c32bde28 | 20007 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20008 | PyObject *resultobj; |
20009 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20010 | wxString *arg2 = 0 ; | |
ae8162c8 | 20011 | bool temp2 = false ; |
d14a1e28 RD |
20012 | PyObject * obj0 = 0 ; |
20013 | PyObject * obj1 = 0 ; | |
20014 | char *kwnames[] = { | |
20015 | (char *) "self",(char *) "text", NULL | |
20016 | }; | |
20017 | ||
20018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20021 | { |
20022 | arg2 = wxString_in_helper(obj1); | |
20023 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20024 | temp2 = true; |
d14a1e28 RD |
20025 | } |
20026 | { | |
20027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20028 | (arg1)->SetText((wxString const &)*arg2); | |
20029 | ||
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | Py_INCREF(Py_None); resultobj = Py_None; | |
20034 | { | |
20035 | if (temp2) | |
20036 | delete arg2; | |
20037 | } | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | { | |
20041 | if (temp2) | |
20042 | delete arg2; | |
20043 | } | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
c32bde28 | 20048 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20049 | PyObject *resultobj; |
20050 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20051 | int arg2 ; | |
20052 | PyObject * obj0 = 0 ; | |
994141e6 | 20053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20054 | char *kwnames[] = { |
20055 | (char *) "self",(char *) "image", NULL | |
20056 | }; | |
20057 | ||
994141e6 | 20058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20061 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20062 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20063 | { |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | (arg1)->SetImage(arg2); | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
20070 | Py_INCREF(Py_None); resultobj = Py_None; | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
c32bde28 | 20077 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20078 | PyObject *resultobj; |
20079 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20080 | long arg2 ; | |
20081 | PyObject * obj0 = 0 ; | |
994141e6 | 20082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20083 | char *kwnames[] = { |
20084 | (char *) "self",(char *) "data", NULL | |
20085 | }; | |
20086 | ||
994141e6 | 20087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20090 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20091 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20092 | { |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | (arg1)->SetData(arg2); | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | Py_INCREF(Py_None); resultobj = Py_None; | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
c32bde28 | 20106 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20107 | PyObject *resultobj; |
20108 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20109 | int arg2 ; | |
20110 | PyObject * obj0 = 0 ; | |
994141e6 | 20111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20112 | char *kwnames[] = { |
20113 | (char *) "self",(char *) "width", NULL | |
20114 | }; | |
20115 | ||
994141e6 | 20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20119 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20120 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20121 | { |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20123 | (arg1)->SetWidth(arg2); | |
20124 | ||
20125 | wxPyEndAllowThreads(__tstate); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
20128 | Py_INCREF(Py_None); resultobj = Py_None; | |
20129 | return resultobj; | |
20130 | fail: | |
20131 | return NULL; | |
20132 | } | |
20133 | ||
20134 | ||
c32bde28 | 20135 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20136 | PyObject *resultobj; |
20137 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20138 | int arg2 ; | |
20139 | PyObject * obj0 = 0 ; | |
994141e6 | 20140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20141 | char *kwnames[] = { |
20142 | (char *) "self",(char *) "align", NULL | |
20143 | }; | |
20144 | ||
994141e6 | 20145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20148 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20149 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20150 | { |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
20153 | ||
20154 | wxPyEndAllowThreads(__tstate); | |
20155 | if (PyErr_Occurred()) SWIG_fail; | |
20156 | } | |
20157 | Py_INCREF(Py_None); resultobj = Py_None; | |
20158 | return resultobj; | |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
c32bde28 | 20164 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20165 | PyObject *resultobj; |
20166 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20167 | wxColour *arg2 = 0 ; | |
20168 | wxColour temp2 ; | |
20169 | PyObject * obj0 = 0 ; | |
20170 | PyObject * obj1 = 0 ; | |
20171 | char *kwnames[] = { | |
20172 | (char *) "self",(char *) "colText", NULL | |
20173 | }; | |
20174 | ||
20175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20178 | { |
20179 | arg2 = &temp2; | |
20180 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20181 | } | |
20182 | { | |
20183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20184 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20185 | ||
20186 | wxPyEndAllowThreads(__tstate); | |
20187 | if (PyErr_Occurred()) SWIG_fail; | |
20188 | } | |
20189 | Py_INCREF(Py_None); resultobj = Py_None; | |
20190 | return resultobj; | |
20191 | fail: | |
20192 | return NULL; | |
20193 | } | |
20194 | ||
20195 | ||
c32bde28 | 20196 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20197 | PyObject *resultobj; |
20198 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20199 | wxColour *arg2 = 0 ; | |
20200 | wxColour temp2 ; | |
20201 | PyObject * obj0 = 0 ; | |
20202 | PyObject * obj1 = 0 ; | |
20203 | char *kwnames[] = { | |
20204 | (char *) "self",(char *) "colBack", NULL | |
20205 | }; | |
20206 | ||
20207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20210 | { |
20211 | arg2 = &temp2; | |
20212 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20213 | } | |
20214 | { | |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20217 | ||
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | Py_INCREF(Py_None); resultobj = Py_None; | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | return NULL; | |
20225 | } | |
20226 | ||
20227 | ||
c32bde28 | 20228 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20229 | PyObject *resultobj; |
20230 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20231 | wxFont *arg2 = 0 ; | |
20232 | PyObject * obj0 = 0 ; | |
20233 | PyObject * obj1 = 0 ; | |
20234 | char *kwnames[] = { | |
20235 | (char *) "self",(char *) "font", NULL | |
20236 | }; | |
20237 | ||
20238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
20242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20243 | SWIG_fail; | |
d14a1e28 | 20244 | if (arg2 == NULL) { |
15afbcd0 RD |
20245 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20246 | SWIG_fail; | |
d14a1e28 RD |
20247 | } |
20248 | { | |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | (arg1)->SetFont((wxFont const &)*arg2); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
20255 | Py_INCREF(Py_None); resultobj = Py_None; | |
20256 | return resultobj; | |
20257 | fail: | |
20258 | return NULL; | |
20259 | } | |
20260 | ||
20261 | ||
c32bde28 | 20262 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20263 | PyObject *resultobj; |
20264 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20265 | long result; | |
20266 | PyObject * obj0 = 0 ; | |
20267 | char *kwnames[] = { | |
20268 | (char *) "self", NULL | |
20269 | }; | |
20270 | ||
20271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20274 | { |
20275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20276 | result = (long)(arg1)->GetMask(); | |
20277 | ||
20278 | wxPyEndAllowThreads(__tstate); | |
20279 | if (PyErr_Occurred()) SWIG_fail; | |
20280 | } | |
c32bde28 | 20281 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20282 | return resultobj; |
20283 | fail: | |
20284 | return NULL; | |
20285 | } | |
20286 | ||
20287 | ||
c32bde28 | 20288 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20289 | PyObject *resultobj; |
20290 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20291 | long result; | |
20292 | PyObject * obj0 = 0 ; | |
20293 | char *kwnames[] = { | |
20294 | (char *) "self", NULL | |
20295 | }; | |
20296 | ||
20297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20300 | { |
20301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20302 | result = (long)(arg1)->GetId(); | |
20303 | ||
20304 | wxPyEndAllowThreads(__tstate); | |
20305 | if (PyErr_Occurred()) SWIG_fail; | |
20306 | } | |
c32bde28 | 20307 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20308 | return resultobj; |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
c32bde28 | 20314 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20315 | PyObject *resultobj; |
20316 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20317 | int result; | |
20318 | PyObject * obj0 = 0 ; | |
20319 | char *kwnames[] = { | |
20320 | (char *) "self", NULL | |
20321 | }; | |
20322 | ||
20323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20326 | { |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | result = (int)(arg1)->GetColumn(); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
c32bde28 | 20333 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20334 | return resultobj; |
20335 | fail: | |
20336 | return NULL; | |
20337 | } | |
20338 | ||
20339 | ||
c32bde28 | 20340 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20341 | PyObject *resultobj; |
20342 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20343 | long result; | |
20344 | PyObject * obj0 = 0 ; | |
20345 | char *kwnames[] = { | |
20346 | (char *) "self", NULL | |
20347 | }; | |
20348 | ||
20349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20352 | { |
20353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20354 | result = (long)(arg1)->GetState(); | |
20355 | ||
20356 | wxPyEndAllowThreads(__tstate); | |
20357 | if (PyErr_Occurred()) SWIG_fail; | |
20358 | } | |
c32bde28 | 20359 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20360 | return resultobj; |
20361 | fail: | |
20362 | return NULL; | |
20363 | } | |
20364 | ||
20365 | ||
c32bde28 | 20366 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20367 | PyObject *resultobj; |
20368 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20369 | wxString *result; | |
20370 | PyObject * obj0 = 0 ; | |
20371 | char *kwnames[] = { | |
20372 | (char *) "self", NULL | |
20373 | }; | |
20374 | ||
20375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20378 | { |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20380 | { | |
20381 | wxString const &_result_ref = (arg1)->GetText(); | |
20382 | result = (wxString *) &_result_ref; | |
20383 | } | |
20384 | ||
20385 | wxPyEndAllowThreads(__tstate); | |
20386 | if (PyErr_Occurred()) SWIG_fail; | |
20387 | } | |
cc6dd355 RD |
20388 | { |
20389 | #if wxUSE_UNICODE | |
20390 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20391 | #else | |
20392 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20393 | #endif | |
20394 | } | |
d14a1e28 RD |
20395 | return resultobj; |
20396 | fail: | |
20397 | return NULL; | |
20398 | } | |
20399 | ||
20400 | ||
c32bde28 | 20401 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20402 | PyObject *resultobj; |
20403 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20404 | int result; | |
20405 | PyObject * obj0 = 0 ; | |
20406 | char *kwnames[] = { | |
20407 | (char *) "self", NULL | |
20408 | }; | |
20409 | ||
20410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20413 | { |
20414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20415 | result = (int)(arg1)->GetImage(); | |
20416 | ||
20417 | wxPyEndAllowThreads(__tstate); | |
20418 | if (PyErr_Occurred()) SWIG_fail; | |
20419 | } | |
c32bde28 | 20420 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20421 | return resultobj; |
20422 | fail: | |
20423 | return NULL; | |
20424 | } | |
20425 | ||
20426 | ||
c32bde28 | 20427 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20428 | PyObject *resultobj; |
20429 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20430 | long result; | |
20431 | PyObject * obj0 = 0 ; | |
20432 | char *kwnames[] = { | |
20433 | (char *) "self", NULL | |
20434 | }; | |
20435 | ||
20436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20439 | { |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | result = (long)(arg1)->GetData(); | |
20442 | ||
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
c32bde28 | 20446 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20447 | return resultobj; |
20448 | fail: | |
20449 | return NULL; | |
20450 | } | |
20451 | ||
20452 | ||
c32bde28 | 20453 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20454 | PyObject *resultobj; |
20455 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20456 | int result; | |
20457 | PyObject * obj0 = 0 ; | |
20458 | char *kwnames[] = { | |
20459 | (char *) "self", NULL | |
20460 | }; | |
20461 | ||
20462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20465 | { |
20466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20467 | result = (int)(arg1)->GetWidth(); | |
20468 | ||
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
c32bde28 | 20472 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20473 | return resultobj; |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
c32bde28 | 20479 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20480 | PyObject *resultobj; |
20481 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20482 | int result; | |
20483 | PyObject * obj0 = 0 ; | |
20484 | char *kwnames[] = { | |
20485 | (char *) "self", NULL | |
20486 | }; | |
20487 | ||
20488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20491 | { |
20492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20493 | result = (int)(arg1)->GetAlign(); | |
20494 | ||
20495 | wxPyEndAllowThreads(__tstate); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
c32bde28 | 20498 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20499 | return resultobj; |
20500 | fail: | |
20501 | return NULL; | |
20502 | } | |
20503 | ||
20504 | ||
c32bde28 | 20505 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20506 | PyObject *resultobj; |
20507 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20508 | wxListItemAttr *result; | |
20509 | PyObject * obj0 = 0 ; | |
20510 | char *kwnames[] = { | |
20511 | (char *) "self", NULL | |
20512 | }; | |
20513 | ||
20514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20517 | { |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
15afbcd0 | 20524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
20525 | return resultobj; |
20526 | fail: | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
c32bde28 | 20531 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20532 | PyObject *resultobj; |
20533 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20534 | bool result; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | char *kwnames[] = { | |
20537 | (char *) "self", NULL | |
20538 | }; | |
20539 | ||
20540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20543 | { |
20544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20545 | result = (bool)(arg1)->HasAttributes(); | |
20546 | ||
20547 | wxPyEndAllowThreads(__tstate); | |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
20549 | } | |
4f89f6a3 RD |
20550 | { |
20551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20552 | } | |
d14a1e28 RD |
20553 | return resultobj; |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
c32bde28 | 20559 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20560 | PyObject *resultobj; |
20561 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20562 | wxColour result; | |
20563 | PyObject * obj0 = 0 ; | |
20564 | char *kwnames[] = { | |
20565 | (char *) "self", NULL | |
20566 | }; | |
20567 | ||
20568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20571 | { |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
20574 | ||
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | { | |
20579 | wxColour * resultptr; | |
20580 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 20581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20582 | } |
20583 | return resultobj; | |
20584 | fail: | |
20585 | return NULL; | |
20586 | } | |
20587 | ||
20588 | ||
c32bde28 | 20589 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20590 | PyObject *resultobj; |
20591 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20592 | wxColour result; | |
20593 | PyObject * obj0 = 0 ; | |
20594 | char *kwnames[] = { | |
20595 | (char *) "self", NULL | |
20596 | }; | |
20597 | ||
20598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20601 | { |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | { | |
20609 | wxColour * resultptr; | |
20610 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 20611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20612 | } |
20613 | return resultobj; | |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
c32bde28 | 20619 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20620 | PyObject *resultobj; |
20621 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20622 | wxFont result; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "self", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20631 | { |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | result = ((wxListItem const *)arg1)->GetFont(); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | { | |
20639 | wxFont * resultptr; | |
20640 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 20641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
20642 | } |
20643 | return resultobj; | |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
c32bde28 | 20649 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20650 | PyObject *resultobj; |
20651 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20652 | long arg2 ; | |
20653 | PyObject * obj0 = 0 ; | |
994141e6 | 20654 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20655 | char *kwnames[] = { |
20656 | (char *) "self",(char *) "m_mask", NULL | |
20657 | }; | |
20658 | ||
994141e6 | 20659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20662 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20663 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20664 | if (arg1) (arg1)->m_mask = arg2; |
20665 | ||
20666 | Py_INCREF(Py_None); resultobj = Py_None; | |
20667 | return resultobj; | |
20668 | fail: | |
20669 | return NULL; | |
20670 | } | |
20671 | ||
20672 | ||
c32bde28 | 20673 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20674 | PyObject *resultobj; |
20675 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20676 | long result; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | char *kwnames[] = { | |
20679 | (char *) "self", NULL | |
20680 | }; | |
20681 | ||
20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20685 | result = (long) ((arg1)->m_mask); |
20686 | ||
c32bde28 | 20687 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20688 | return resultobj; |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
c32bde28 | 20694 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20695 | PyObject *resultobj; |
20696 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20697 | long arg2 ; | |
20698 | PyObject * obj0 = 0 ; | |
994141e6 | 20699 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20700 | char *kwnames[] = { |
20701 | (char *) "self",(char *) "m_itemId", NULL | |
20702 | }; | |
20703 | ||
994141e6 | 20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20707 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20708 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20709 | if (arg1) (arg1)->m_itemId = arg2; |
20710 | ||
20711 | Py_INCREF(Py_None); resultobj = Py_None; | |
20712 | return resultobj; | |
20713 | fail: | |
20714 | return NULL; | |
20715 | } | |
20716 | ||
20717 | ||
c32bde28 | 20718 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20719 | PyObject *resultobj; |
20720 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20721 | long result; | |
20722 | PyObject * obj0 = 0 ; | |
20723 | char *kwnames[] = { | |
20724 | (char *) "self", NULL | |
20725 | }; | |
20726 | ||
20727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20730 | result = (long) ((arg1)->m_itemId); |
20731 | ||
c32bde28 | 20732 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20733 | return resultobj; |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
c32bde28 | 20739 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20740 | PyObject *resultobj; |
20741 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20742 | int arg2 ; | |
20743 | PyObject * obj0 = 0 ; | |
994141e6 | 20744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20745 | char *kwnames[] = { |
20746 | (char *) "self",(char *) "m_col", NULL | |
20747 | }; | |
20748 | ||
994141e6 | 20749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20752 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20753 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20754 | if (arg1) (arg1)->m_col = arg2; |
20755 | ||
20756 | Py_INCREF(Py_None); resultobj = Py_None; | |
20757 | return resultobj; | |
20758 | fail: | |
20759 | return NULL; | |
20760 | } | |
20761 | ||
20762 | ||
c32bde28 | 20763 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20764 | PyObject *resultobj; |
20765 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20766 | int result; | |
20767 | PyObject * obj0 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "self", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20775 | result = (int) ((arg1)->m_col); |
20776 | ||
c32bde28 | 20777 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20778 | return resultobj; |
20779 | fail: | |
20780 | return NULL; | |
20781 | } | |
20782 | ||
20783 | ||
c32bde28 | 20784 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20785 | PyObject *resultobj; |
20786 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20787 | long arg2 ; | |
20788 | PyObject * obj0 = 0 ; | |
994141e6 | 20789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20790 | char *kwnames[] = { |
20791 | (char *) "self",(char *) "m_state", NULL | |
20792 | }; | |
20793 | ||
994141e6 | 20794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20797 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20798 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20799 | if (arg1) (arg1)->m_state = arg2; |
20800 | ||
20801 | Py_INCREF(Py_None); resultobj = Py_None; | |
20802 | return resultobj; | |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
c32bde28 | 20808 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20809 | PyObject *resultobj; |
20810 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20811 | long result; | |
20812 | PyObject * obj0 = 0 ; | |
20813 | char *kwnames[] = { | |
20814 | (char *) "self", NULL | |
20815 | }; | |
20816 | ||
20817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20820 | result = (long) ((arg1)->m_state); |
20821 | ||
c32bde28 | 20822 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20823 | return resultobj; |
20824 | fail: | |
20825 | return NULL; | |
20826 | } | |
20827 | ||
20828 | ||
c32bde28 | 20829 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20830 | PyObject *resultobj; |
20831 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20832 | long arg2 ; | |
20833 | PyObject * obj0 = 0 ; | |
994141e6 | 20834 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20835 | char *kwnames[] = { |
20836 | (char *) "self",(char *) "m_stateMask", NULL | |
20837 | }; | |
20838 | ||
994141e6 | 20839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20842 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20843 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20844 | if (arg1) (arg1)->m_stateMask = arg2; |
20845 | ||
20846 | Py_INCREF(Py_None); resultobj = Py_None; | |
20847 | return resultobj; | |
20848 | fail: | |
20849 | return NULL; | |
20850 | } | |
20851 | ||
20852 | ||
c32bde28 | 20853 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20854 | PyObject *resultobj; |
20855 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20856 | long result; | |
20857 | PyObject * obj0 = 0 ; | |
20858 | char *kwnames[] = { | |
20859 | (char *) "self", NULL | |
20860 | }; | |
20861 | ||
20862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20865 | result = (long) ((arg1)->m_stateMask); |
20866 | ||
c32bde28 | 20867 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20868 | return resultobj; |
20869 | fail: | |
20870 | return NULL; | |
20871 | } | |
20872 | ||
20873 | ||
c32bde28 | 20874 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20875 | PyObject *resultobj; |
20876 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20877 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 20878 | bool temp2 = false ; |
d14a1e28 RD |
20879 | PyObject * obj0 = 0 ; |
20880 | PyObject * obj1 = 0 ; | |
20881 | char *kwnames[] = { | |
20882 | (char *) "self",(char *) "m_text", NULL | |
20883 | }; | |
20884 | ||
20885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
20888 | { |
20889 | arg2 = wxString_in_helper(obj1); | |
20890 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20891 | temp2 = true; |
7eae615b | 20892 | } |
196addbf | 20893 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20894 | |
20895 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20896 | { |
20897 | if (temp2) | |
20898 | delete arg2; | |
20899 | } | |
d14a1e28 RD |
20900 | return resultobj; |
20901 | fail: | |
7eae615b RD |
20902 | { |
20903 | if (temp2) | |
20904 | delete arg2; | |
20905 | } | |
d14a1e28 RD |
20906 | return NULL; |
20907 | } | |
20908 | ||
20909 | ||
c32bde28 | 20910 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20911 | PyObject *resultobj; |
20912 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20913 | wxString *result; |
d14a1e28 RD |
20914 | PyObject * obj0 = 0 ; |
20915 | char *kwnames[] = { | |
20916 | (char *) "self", NULL | |
20917 | }; | |
20918 | ||
20919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20922 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20923 | |
20924 | { | |
20925 | #if wxUSE_UNICODE | |
196addbf | 20926 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20927 | #else |
196addbf | 20928 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20929 | #endif |
20930 | } | |
20931 | return resultobj; | |
20932 | fail: | |
20933 | return NULL; | |
20934 | } | |
20935 | ||
20936 | ||
c32bde28 | 20937 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20938 | PyObject *resultobj; |
20939 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20940 | int arg2 ; | |
20941 | PyObject * obj0 = 0 ; | |
994141e6 | 20942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20943 | char *kwnames[] = { |
20944 | (char *) "self",(char *) "m_image", NULL | |
20945 | }; | |
20946 | ||
994141e6 | 20947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20950 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20951 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20952 | if (arg1) (arg1)->m_image = arg2; |
20953 | ||
20954 | Py_INCREF(Py_None); resultobj = Py_None; | |
20955 | return resultobj; | |
20956 | fail: | |
20957 | return NULL; | |
20958 | } | |
20959 | ||
20960 | ||
c32bde28 | 20961 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20962 | PyObject *resultobj; |
20963 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20964 | int result; | |
20965 | PyObject * obj0 = 0 ; | |
20966 | char *kwnames[] = { | |
20967 | (char *) "self", NULL | |
20968 | }; | |
20969 | ||
20970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20973 | result = (int) ((arg1)->m_image); |
20974 | ||
c32bde28 | 20975 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20976 | return resultobj; |
20977 | fail: | |
20978 | return NULL; | |
20979 | } | |
20980 | ||
20981 | ||
c32bde28 | 20982 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20983 | PyObject *resultobj; |
20984 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20985 | long arg2 ; | |
20986 | PyObject * obj0 = 0 ; | |
994141e6 | 20987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20988 | char *kwnames[] = { |
20989 | (char *) "self",(char *) "m_data", NULL | |
20990 | }; | |
20991 | ||
994141e6 | 20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20995 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20996 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20997 | if (arg1) (arg1)->m_data = arg2; |
20998 | ||
20999 | Py_INCREF(Py_None); resultobj = Py_None; | |
21000 | return resultobj; | |
21001 | fail: | |
21002 | return NULL; | |
21003 | } | |
21004 | ||
21005 | ||
c32bde28 | 21006 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21007 | PyObject *resultobj; |
21008 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21009 | long result; | |
21010 | PyObject * obj0 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
21017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21018 | result = (long) ((arg1)->m_data); |
21019 | ||
c32bde28 | 21020 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21021 | return resultobj; |
21022 | fail: | |
21023 | return NULL; | |
21024 | } | |
21025 | ||
21026 | ||
c32bde28 | 21027 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21028 | PyObject *resultobj; |
21029 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21030 | int arg2 ; | |
21031 | PyObject * obj0 = 0 ; | |
994141e6 | 21032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21033 | char *kwnames[] = { |
21034 | (char *) "self",(char *) "m_format", NULL | |
21035 | }; | |
21036 | ||
994141e6 | 21037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
21039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21040 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21042 | if (arg1) (arg1)->m_format = arg2; |
21043 | ||
21044 | Py_INCREF(Py_None); resultobj = Py_None; | |
21045 | return resultobj; | |
21046 | fail: | |
21047 | return NULL; | |
21048 | } | |
21049 | ||
21050 | ||
c32bde28 | 21051 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21052 | PyObject *resultobj; |
21053 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21054 | int result; | |
21055 | PyObject * obj0 = 0 ; | |
21056 | char *kwnames[] = { | |
21057 | (char *) "self", NULL | |
21058 | }; | |
21059 | ||
21060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
21062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21063 | result = (int) ((arg1)->m_format); |
21064 | ||
c32bde28 | 21065 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21066 | return resultobj; |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
c32bde28 | 21072 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21073 | PyObject *resultobj; |
21074 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21075 | int arg2 ; | |
21076 | PyObject * obj0 = 0 ; | |
994141e6 | 21077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21078 | char *kwnames[] = { |
21079 | (char *) "self",(char *) "m_width", NULL | |
21080 | }; | |
21081 | ||
994141e6 | 21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
21084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21085 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21086 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21087 | if (arg1) (arg1)->m_width = arg2; |
21088 | ||
21089 | Py_INCREF(Py_None); resultobj = Py_None; | |
21090 | return resultobj; | |
21091 | fail: | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
c32bde28 | 21096 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21097 | PyObject *resultobj; |
21098 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21099 | int result; | |
21100 | PyObject * obj0 = 0 ; | |
21101 | char *kwnames[] = { | |
21102 | (char *) "self", NULL | |
21103 | }; | |
21104 | ||
21105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
21107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21108 | result = (int) ((arg1)->m_width); |
21109 | ||
c32bde28 | 21110 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21111 | return resultobj; |
21112 | fail: | |
21113 | return NULL; | |
21114 | } | |
21115 | ||
21116 | ||
c32bde28 | 21117 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21118 | PyObject *obj; |
21119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21120 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
21121 | Py_INCREF(obj); | |
21122 | return Py_BuildValue((char *)""); | |
21123 | } | |
c32bde28 | 21124 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21125 | PyObject *resultobj; |
21126 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21127 | int arg2 = (int) 0 ; | |
21128 | wxListEvent *result; | |
994141e6 RD |
21129 | PyObject * obj0 = 0 ; |
21130 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
21131 | char *kwnames[] = { |
21132 | (char *) "commandType",(char *) "id", NULL | |
21133 | }; | |
21134 | ||
994141e6 RD |
21135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
21136 | if (obj0) { | |
c32bde28 | 21137 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 21138 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
21139 | } |
21140 | if (obj1) { | |
c32bde28 | 21141 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21142 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21143 | } |
d14a1e28 RD |
21144 | { |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
15afbcd0 | 21151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
21152 | return resultobj; |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
c32bde28 | 21158 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21159 | PyObject *resultobj; |
21160 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21161 | int arg2 ; | |
21162 | PyObject * obj0 = 0 ; | |
994141e6 | 21163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21164 | char *kwnames[] = { |
21165 | (char *) "self",(char *) "m_code", NULL | |
21166 | }; | |
21167 | ||
994141e6 | 21168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21171 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21172 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21173 | if (arg1) (arg1)->m_code = arg2; |
21174 | ||
21175 | Py_INCREF(Py_None); resultobj = Py_None; | |
21176 | return resultobj; | |
21177 | fail: | |
21178 | return NULL; | |
21179 | } | |
21180 | ||
21181 | ||
c32bde28 | 21182 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21183 | PyObject *resultobj; |
21184 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21185 | int result; | |
21186 | PyObject * obj0 = 0 ; | |
21187 | char *kwnames[] = { | |
21188 | (char *) "self", NULL | |
21189 | }; | |
21190 | ||
21191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21194 | result = (int) ((arg1)->m_code); |
21195 | ||
c32bde28 | 21196 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21197 | return resultobj; |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
c32bde28 | 21203 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21204 | PyObject *resultobj; |
21205 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21206 | long arg2 ; | |
21207 | PyObject * obj0 = 0 ; | |
994141e6 | 21208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21209 | char *kwnames[] = { |
21210 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
21211 | }; | |
21212 | ||
994141e6 | 21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21216 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21217 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21218 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
21219 | ||
21220 | Py_INCREF(Py_None); resultobj = Py_None; | |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
c32bde28 | 21227 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21228 | PyObject *resultobj; |
21229 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21230 | long result; | |
21231 | PyObject * obj0 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self", NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21239 | result = (long) ((arg1)->m_oldItemIndex); |
21240 | ||
c32bde28 | 21241 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21242 | return resultobj; |
21243 | fail: | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
c32bde28 | 21248 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21249 | PyObject *resultobj; |
21250 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21251 | long arg2 ; | |
21252 | PyObject * obj0 = 0 ; | |
994141e6 | 21253 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21254 | char *kwnames[] = { |
21255 | (char *) "self",(char *) "m_itemIndex", NULL | |
21256 | }; | |
21257 | ||
994141e6 | 21258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21261 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 21262 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21263 | if (arg1) (arg1)->m_itemIndex = arg2; |
21264 | ||
21265 | Py_INCREF(Py_None); resultobj = Py_None; | |
21266 | return resultobj; | |
21267 | fail: | |
21268 | return NULL; | |
21269 | } | |
21270 | ||
21271 | ||
c32bde28 | 21272 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21273 | PyObject *resultobj; |
21274 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21275 | long result; | |
21276 | PyObject * obj0 = 0 ; | |
21277 | char *kwnames[] = { | |
21278 | (char *) "self", NULL | |
21279 | }; | |
21280 | ||
21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21284 | result = (long) ((arg1)->m_itemIndex); |
21285 | ||
c32bde28 | 21286 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21287 | return resultobj; |
21288 | fail: | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
c32bde28 | 21293 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21294 | PyObject *resultobj; |
21295 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21296 | int arg2 ; | |
21297 | PyObject * obj0 = 0 ; | |
994141e6 | 21298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21299 | char *kwnames[] = { |
21300 | (char *) "self",(char *) "m_col", NULL | |
21301 | }; | |
21302 | ||
994141e6 | 21303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21306 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21307 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21308 | if (arg1) (arg1)->m_col = arg2; |
21309 | ||
21310 | Py_INCREF(Py_None); resultobj = Py_None; | |
21311 | return resultobj; | |
21312 | fail: | |
21313 | return NULL; | |
21314 | } | |
21315 | ||
21316 | ||
c32bde28 | 21317 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21318 | PyObject *resultobj; |
21319 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21320 | int result; | |
21321 | PyObject * obj0 = 0 ; | |
21322 | char *kwnames[] = { | |
21323 | (char *) "self", NULL | |
21324 | }; | |
21325 | ||
21326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21329 | result = (int) ((arg1)->m_col); |
21330 | ||
c32bde28 | 21331 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21332 | return resultobj; |
21333 | fail: | |
21334 | return NULL; | |
21335 | } | |
21336 | ||
21337 | ||
c32bde28 | 21338 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21339 | PyObject *resultobj; |
21340 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21341 | wxPoint *arg2 = (wxPoint *) 0 ; | |
21342 | PyObject * obj0 = 0 ; | |
21343 | PyObject * obj1 = 0 ; | |
21344 | char *kwnames[] = { | |
21345 | (char *) "self",(char *) "m_pointDrag", NULL | |
21346 | }; | |
21347 | ||
21348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
21352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21353 | if (arg1) (arg1)->m_pointDrag = *arg2; |
21354 | ||
21355 | Py_INCREF(Py_None); resultobj = Py_None; | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
c32bde28 | 21362 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21363 | PyObject *resultobj; |
21364 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21365 | wxPoint *result; | |
21366 | PyObject * obj0 = 0 ; | |
21367 | char *kwnames[] = { | |
21368 | (char *) "self", NULL | |
21369 | }; | |
21370 | ||
21371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21374 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
21375 | ||
15afbcd0 | 21376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
21377 | return resultobj; |
21378 | fail: | |
21379 | return NULL; | |
21380 | } | |
21381 | ||
21382 | ||
c32bde28 | 21383 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21384 | PyObject *resultobj; |
21385 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21386 | wxListItem *result; | |
21387 | PyObject * obj0 = 0 ; | |
21388 | char *kwnames[] = { | |
21389 | (char *) "self", NULL | |
21390 | }; | |
21391 | ||
21392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21395 | result = (wxListItem *)& ((arg1)->m_item); |
21396 | ||
21397 | { | |
412d302d | 21398 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21399 | } |
21400 | return resultobj; | |
21401 | fail: | |
21402 | return NULL; | |
21403 | } | |
21404 | ||
21405 | ||
c32bde28 | 21406 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21407 | PyObject *resultobj; |
21408 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21409 | int result; | |
21410 | PyObject * obj0 = 0 ; | |
21411 | char *kwnames[] = { | |
21412 | (char *) "self", NULL | |
21413 | }; | |
21414 | ||
21415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21418 | { |
21419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21420 | result = (int)(arg1)->GetKeyCode(); | |
21421 | ||
21422 | wxPyEndAllowThreads(__tstate); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | } | |
c32bde28 | 21425 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21426 | return resultobj; |
21427 | fail: | |
21428 | return NULL; | |
21429 | } | |
21430 | ||
21431 | ||
c32bde28 | 21432 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21433 | PyObject *resultobj; |
21434 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21435 | long result; | |
21436 | PyObject * obj0 = 0 ; | |
21437 | char *kwnames[] = { | |
21438 | (char *) "self", NULL | |
21439 | }; | |
21440 | ||
21441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21444 | { |
21445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21446 | result = (long)(arg1)->GetIndex(); | |
21447 | ||
21448 | wxPyEndAllowThreads(__tstate); | |
21449 | if (PyErr_Occurred()) SWIG_fail; | |
21450 | } | |
c32bde28 | 21451 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21452 | return resultobj; |
21453 | fail: | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
c32bde28 | 21458 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21459 | PyObject *resultobj; |
21460 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21461 | int result; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self", NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21470 | { |
21471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21472 | result = (int)(arg1)->GetColumn(); | |
21473 | ||
21474 | wxPyEndAllowThreads(__tstate); | |
21475 | if (PyErr_Occurred()) SWIG_fail; | |
21476 | } | |
c32bde28 | 21477 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21478 | return resultobj; |
21479 | fail: | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
c32bde28 | 21484 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21485 | PyObject *resultobj; |
21486 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21487 | wxPoint result; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | char *kwnames[] = { | |
21490 | (char *) "self", NULL | |
21491 | }; | |
21492 | ||
21493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21496 | { |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (arg1)->GetPoint(); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | { | |
21504 | wxPoint * resultptr; | |
21505 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 21506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21507 | } |
21508 | return resultobj; | |
21509 | fail: | |
21510 | return NULL; | |
21511 | } | |
21512 | ||
21513 | ||
c32bde28 | 21514 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21515 | PyObject *resultobj; |
21516 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21517 | wxString *result; | |
21518 | PyObject * obj0 = 0 ; | |
21519 | char *kwnames[] = { | |
21520 | (char *) "self", NULL | |
21521 | }; | |
21522 | ||
21523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21526 | { |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21528 | { | |
21529 | wxString const &_result_ref = (arg1)->GetLabel(); | |
21530 | result = (wxString *) &_result_ref; | |
21531 | } | |
21532 | ||
21533 | wxPyEndAllowThreads(__tstate); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
cc6dd355 RD |
21536 | { |
21537 | #if wxUSE_UNICODE | |
21538 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21539 | #else | |
21540 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21541 | #endif | |
21542 | } | |
d14a1e28 RD |
21543 | return resultobj; |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
c32bde28 | 21549 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21550 | PyObject *resultobj; |
21551 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21552 | wxString *result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | char *kwnames[] = { | |
21555 | (char *) "self", NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21561 | { |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | { | |
21564 | wxString const &_result_ref = (arg1)->GetText(); | |
21565 | result = (wxString *) &_result_ref; | |
21566 | } | |
21567 | ||
21568 | wxPyEndAllowThreads(__tstate); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | } | |
cc6dd355 RD |
21571 | { |
21572 | #if wxUSE_UNICODE | |
21573 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21574 | #else | |
21575 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21576 | #endif | |
21577 | } | |
d14a1e28 RD |
21578 | return resultobj; |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
c32bde28 | 21584 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21585 | PyObject *resultobj; |
21586 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21587 | int result; | |
21588 | PyObject * obj0 = 0 ; | |
21589 | char *kwnames[] = { | |
21590 | (char *) "self", NULL | |
21591 | }; | |
21592 | ||
21593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21596 | { |
21597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21598 | result = (int)(arg1)->GetImage(); | |
21599 | ||
21600 | wxPyEndAllowThreads(__tstate); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
21602 | } | |
c32bde28 | 21603 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21604 | return resultobj; |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
c32bde28 | 21610 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21611 | PyObject *resultobj; |
21612 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21613 | long result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21622 | { |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (long)(arg1)->GetData(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
c32bde28 | 21629 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21630 | return resultobj; |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
c32bde28 | 21636 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21637 | PyObject *resultobj; |
21638 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21639 | long result; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21648 | { |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | result = (long)(arg1)->GetMask(); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
c32bde28 | 21655 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21656 | return resultobj; |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
c32bde28 | 21662 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21663 | PyObject *resultobj; |
21664 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21665 | wxListItem *result; | |
21666 | PyObject * obj0 = 0 ; | |
21667 | char *kwnames[] = { | |
21668 | (char *) "self", NULL | |
21669 | }; | |
21670 | ||
21671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21674 | { |
21675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21676 | { | |
21677 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21678 | result = (wxListItem *) &_result_ref; | |
21679 | } | |
21680 | ||
21681 | wxPyEndAllowThreads(__tstate); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
15afbcd0 | 21684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
21685 | return resultobj; |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
c32bde28 | 21691 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21692 | PyObject *resultobj; |
21693 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21694 | long result; | |
21695 | PyObject * obj0 = 0 ; | |
21696 | char *kwnames[] = { | |
21697 | (char *) "self", NULL | |
21698 | }; | |
21699 | ||
21700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21703 | { |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | result = (long)(arg1)->GetCacheFrom(); | |
21706 | ||
21707 | wxPyEndAllowThreads(__tstate); | |
21708 | if (PyErr_Occurred()) SWIG_fail; | |
21709 | } | |
c32bde28 | 21710 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21711 | return resultobj; |
21712 | fail: | |
21713 | return NULL; | |
21714 | } | |
21715 | ||
21716 | ||
c32bde28 | 21717 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21718 | PyObject *resultobj; |
21719 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21720 | long result; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "self", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21729 | { |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | result = (long)(arg1)->GetCacheTo(); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
c32bde28 | 21736 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21737 | return resultobj; |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
c32bde28 | 21743 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21744 | PyObject *resultobj; |
21745 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21746 | bool result; | |
21747 | PyObject * obj0 = 0 ; | |
21748 | char *kwnames[] = { | |
21749 | (char *) "self", NULL | |
21750 | }; | |
21751 | ||
21752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21755 | { |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21758 | ||
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
4f89f6a3 RD |
21762 | { |
21763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21764 | } | |
d14a1e28 RD |
21765 | return resultobj; |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
c32bde28 | 21771 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21772 | PyObject *resultobj; |
21773 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21774 | bool arg2 ; | |
21775 | PyObject * obj0 = 0 ; | |
21776 | PyObject * obj1 = 0 ; | |
21777 | char *kwnames[] = { | |
21778 | (char *) "self",(char *) "editCancelled", NULL | |
21779 | }; | |
21780 | ||
21781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21784 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 21785 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21786 | { |
21787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21788 | (arg1)->SetEditCanceled(arg2); | |
21789 | ||
21790 | wxPyEndAllowThreads(__tstate); | |
21791 | if (PyErr_Occurred()) SWIG_fail; | |
21792 | } | |
21793 | Py_INCREF(Py_None); resultobj = Py_None; | |
21794 | return resultobj; | |
21795 | fail: | |
21796 | return NULL; | |
21797 | } | |
21798 | ||
21799 | ||
c32bde28 | 21800 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21801 | PyObject *obj; |
21802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21803 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21804 | Py_INCREF(obj); | |
21805 | return Py_BuildValue((char *)""); | |
21806 | } | |
c32bde28 | 21807 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21808 | PyObject *resultobj; |
21809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21810 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21811 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21812 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21813 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21814 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21815 | long arg5 = (long) wxLC_ICON ; | |
21816 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21817 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21818 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21819 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21820 | wxPyListCtrl *result; | |
21821 | wxPoint temp3 ; | |
21822 | wxSize temp4 ; | |
ae8162c8 | 21823 | bool temp7 = false ; |
d14a1e28 | 21824 | PyObject * obj0 = 0 ; |
994141e6 | 21825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21826 | PyObject * obj2 = 0 ; |
21827 | PyObject * obj3 = 0 ; | |
994141e6 | 21828 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21829 | PyObject * obj5 = 0 ; |
21830 | PyObject * obj6 = 0 ; | |
21831 | char *kwnames[] = { | |
21832 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21833 | }; | |
21834 | ||
994141e6 | 21835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21838 | if (obj1) { |
c32bde28 | 21839 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21840 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21841 | } |
d14a1e28 RD |
21842 | if (obj2) { |
21843 | { | |
21844 | arg3 = &temp3; | |
21845 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21846 | } | |
21847 | } | |
21848 | if (obj3) { | |
21849 | { | |
21850 | arg4 = &temp4; | |
21851 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21852 | } | |
21853 | } | |
994141e6 | 21854 | if (obj4) { |
c32bde28 | 21855 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 21856 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21857 | } |
d14a1e28 | 21858 | if (obj5) { |
15afbcd0 RD |
21859 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
21860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21861 | SWIG_fail; | |
d14a1e28 | 21862 | if (arg6 == NULL) { |
15afbcd0 RD |
21863 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21864 | SWIG_fail; | |
d14a1e28 RD |
21865 | } |
21866 | } | |
21867 | if (obj6) { | |
21868 | { | |
21869 | arg7 = wxString_in_helper(obj6); | |
21870 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21871 | temp7 = true; |
d14a1e28 RD |
21872 | } |
21873 | } | |
21874 | { | |
e3b71cb8 | 21875 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21877 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21878 | ||
21879 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21881 | } |
15afbcd0 | 21882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21883 | { |
21884 | if (temp7) | |
21885 | delete arg7; | |
21886 | } | |
21887 | return resultobj; | |
21888 | fail: | |
21889 | { | |
21890 | if (temp7) | |
21891 | delete arg7; | |
21892 | } | |
21893 | return NULL; | |
21894 | } | |
21895 | ||
21896 | ||
c32bde28 | 21897 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21898 | PyObject *resultobj; |
21899 | wxPyListCtrl *result; | |
21900 | char *kwnames[] = { | |
21901 | NULL | |
21902 | }; | |
21903 | ||
21904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21905 | { | |
e3b71cb8 | 21906 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21908 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21909 | ||
21910 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21911 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21912 | } |
15afbcd0 | 21913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21914 | return resultobj; |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
c32bde28 | 21920 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21921 | PyObject *resultobj; |
21922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21923 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21924 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21925 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21926 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21927 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21928 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21929 | long arg6 = (long) wxLC_ICON ; | |
21930 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21931 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21932 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21933 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21934 | bool result; | |
21935 | wxPoint temp4 ; | |
21936 | wxSize temp5 ; | |
ae8162c8 | 21937 | bool temp8 = false ; |
d14a1e28 RD |
21938 | PyObject * obj0 = 0 ; |
21939 | PyObject * obj1 = 0 ; | |
994141e6 | 21940 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21941 | PyObject * obj3 = 0 ; |
21942 | PyObject * obj4 = 0 ; | |
994141e6 | 21943 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21944 | PyObject * obj6 = 0 ; |
21945 | PyObject * obj7 = 0 ; | |
21946 | char *kwnames[] = { | |
21947 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21948 | }; | |
21949 | ||
994141e6 | 21950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21955 | if (obj2) { |
c32bde28 | 21956 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21957 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21958 | } |
d14a1e28 RD |
21959 | if (obj3) { |
21960 | { | |
21961 | arg4 = &temp4; | |
21962 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21963 | } | |
21964 | } | |
21965 | if (obj4) { | |
21966 | { | |
21967 | arg5 = &temp5; | |
21968 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21969 | } | |
21970 | } | |
994141e6 | 21971 | if (obj5) { |
c32bde28 | 21972 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 21973 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21974 | } |
d14a1e28 | 21975 | if (obj6) { |
15afbcd0 RD |
21976 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21977 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21978 | SWIG_fail; | |
d14a1e28 | 21979 | if (arg7 == NULL) { |
15afbcd0 RD |
21980 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21981 | SWIG_fail; | |
d14a1e28 RD |
21982 | } |
21983 | } | |
21984 | if (obj7) { | |
21985 | { | |
21986 | arg8 = wxString_in_helper(obj7); | |
21987 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 21988 | temp8 = true; |
d14a1e28 RD |
21989 | } |
21990 | } | |
21991 | { | |
21992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21993 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21994 | ||
21995 | wxPyEndAllowThreads(__tstate); | |
21996 | if (PyErr_Occurred()) SWIG_fail; | |
21997 | } | |
4f89f6a3 RD |
21998 | { |
21999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22000 | } | |
d14a1e28 RD |
22001 | { |
22002 | if (temp8) | |
22003 | delete arg8; | |
22004 | } | |
22005 | return resultobj; | |
22006 | fail: | |
22007 | { | |
22008 | if (temp8) | |
22009 | delete arg8; | |
22010 | } | |
22011 | return NULL; | |
22012 | } | |
22013 | ||
22014 | ||
c32bde28 | 22015 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22016 | PyObject *resultobj; |
22017 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22018 | PyObject *arg2 = (PyObject *) 0 ; | |
22019 | PyObject *arg3 = (PyObject *) 0 ; | |
22020 | PyObject * obj0 = 0 ; | |
22021 | PyObject * obj1 = 0 ; | |
22022 | PyObject * obj2 = 0 ; | |
22023 | char *kwnames[] = { | |
22024 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22025 | }; | |
22026 | ||
22027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
22028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22030 | arg2 = obj1; |
22031 | arg3 = obj2; | |
22032 | { | |
22033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22034 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22035 | ||
22036 | wxPyEndAllowThreads(__tstate); | |
22037 | if (PyErr_Occurred()) SWIG_fail; | |
22038 | } | |
22039 | Py_INCREF(Py_None); resultobj = Py_None; | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
c32bde28 | 22046 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22047 | PyObject *resultobj; |
22048 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22049 | wxColour *arg2 = 0 ; | |
22050 | bool result; | |
22051 | wxColour temp2 ; | |
22052 | PyObject * obj0 = 0 ; | |
22053 | PyObject * obj1 = 0 ; | |
22054 | char *kwnames[] = { | |
22055 | (char *) "self",(char *) "col", NULL | |
22056 | }; | |
22057 | ||
22058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22061 | { |
22062 | arg2 = &temp2; | |
22063 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22064 | } | |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
4f89f6a3 RD |
22072 | { |
22073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22074 | } | |
d14a1e28 RD |
22075 | return resultobj; |
22076 | fail: | |
22077 | return NULL; | |
22078 | } | |
22079 | ||
22080 | ||
c32bde28 | 22081 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22082 | PyObject *resultobj; |
22083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22084 | wxColour *arg2 = 0 ; | |
22085 | bool result; | |
22086 | wxColour temp2 ; | |
22087 | PyObject * obj0 = 0 ; | |
22088 | PyObject * obj1 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self",(char *) "col", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22096 | { |
22097 | arg2 = &temp2; | |
22098 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22099 | } | |
22100 | { | |
22101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22102 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22103 | ||
22104 | wxPyEndAllowThreads(__tstate); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | } | |
4f89f6a3 RD |
22107 | { |
22108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22109 | } | |
d14a1e28 RD |
22110 | return resultobj; |
22111 | fail: | |
22112 | return NULL; | |
22113 | } | |
22114 | ||
22115 | ||
c32bde28 | 22116 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22117 | PyObject *resultobj; |
22118 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22119 | int arg2 ; | |
22120 | wxListItem *result; | |
22121 | PyObject * obj0 = 0 ; | |
994141e6 | 22122 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22123 | char *kwnames[] = { |
22124 | (char *) "self",(char *) "col", NULL | |
22125 | }; | |
22126 | ||
994141e6 | 22127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22130 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22131 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22132 | { |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
22135 | ||
22136 | wxPyEndAllowThreads(__tstate); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
22138 | } | |
22139 | { | |
412d302d | 22140 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22141 | } |
22142 | return resultobj; | |
22143 | fail: | |
22144 | return NULL; | |
22145 | } | |
22146 | ||
22147 | ||
c32bde28 | 22148 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22149 | PyObject *resultobj; |
22150 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22151 | int arg2 ; | |
22152 | wxListItem *arg3 = 0 ; | |
22153 | bool result; | |
22154 | PyObject * obj0 = 0 ; | |
994141e6 | 22155 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22156 | PyObject * obj2 = 0 ; |
22157 | char *kwnames[] = { | |
22158 | (char *) "self",(char *) "col",(char *) "item", NULL | |
22159 | }; | |
22160 | ||
994141e6 | 22161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22164 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
22165 | if (PyErr_Occurred()) SWIG_fail; |
22166 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22167 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22168 | SWIG_fail; | |
d14a1e28 | 22169 | if (arg3 == NULL) { |
15afbcd0 RD |
22170 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22171 | SWIG_fail; | |
d14a1e28 RD |
22172 | } |
22173 | { | |
22174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22175 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
22176 | ||
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
4f89f6a3 RD |
22180 | { |
22181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22182 | } | |
d14a1e28 RD |
22183 | return resultobj; |
22184 | fail: | |
22185 | return NULL; | |
22186 | } | |
22187 | ||
22188 | ||
c32bde28 | 22189 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22190 | PyObject *resultobj; |
22191 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22192 | int arg2 ; | |
22193 | int result; | |
22194 | PyObject * obj0 = 0 ; | |
994141e6 | 22195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22196 | char *kwnames[] = { |
22197 | (char *) "self",(char *) "col", NULL | |
22198 | }; | |
22199 | ||
994141e6 | 22200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22203 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22204 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22205 | { |
22206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22207 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
22208 | ||
22209 | wxPyEndAllowThreads(__tstate); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
c32bde28 | 22212 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22213 | return resultobj; |
22214 | fail: | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
c32bde28 | 22219 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22220 | PyObject *resultobj; |
22221 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22222 | int arg2 ; | |
22223 | int arg3 ; | |
22224 | bool result; | |
22225 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22226 | PyObject * obj1 = 0 ; |
22227 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22228 | char *kwnames[] = { |
22229 | (char *) "self",(char *) "col",(char *) "width", NULL | |
22230 | }; | |
22231 | ||
994141e6 | 22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22235 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22236 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22237 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22238 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22239 | { |
22240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22241 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
22242 | ||
22243 | wxPyEndAllowThreads(__tstate); | |
22244 | if (PyErr_Occurred()) SWIG_fail; | |
22245 | } | |
4f89f6a3 RD |
22246 | { |
22247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22248 | } | |
d14a1e28 RD |
22249 | return resultobj; |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
c32bde28 | 22255 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22256 | PyObject *resultobj; |
22257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22258 | int result; | |
22259 | PyObject * obj0 = 0 ; | |
22260 | char *kwnames[] = { | |
22261 | (char *) "self", NULL | |
22262 | }; | |
22263 | ||
22264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22267 | { |
22268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22269 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
22270 | ||
22271 | wxPyEndAllowThreads(__tstate); | |
22272 | if (PyErr_Occurred()) SWIG_fail; | |
22273 | } | |
c32bde28 | 22274 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22275 | return resultobj; |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
c32bde28 | 22281 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22282 | PyObject *resultobj; |
22283 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22284 | wxRect result; | |
22285 | PyObject * obj0 = 0 ; | |
22286 | char *kwnames[] = { | |
22287 | (char *) "self", NULL | |
22288 | }; | |
22289 | ||
22290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22293 | { |
22294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22295 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
22296 | ||
22297 | wxPyEndAllowThreads(__tstate); | |
22298 | if (PyErr_Occurred()) SWIG_fail; | |
22299 | } | |
22300 | { | |
22301 | wxRect * resultptr; | |
22302 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22303 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22304 | } |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
c32bde28 | 22311 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22312 | PyObject *resultobj; |
22313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22314 | long arg2 ; | |
22315 | int arg3 = (int) 0 ; | |
22316 | wxListItem *result; | |
22317 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22318 | PyObject * obj1 = 0 ; |
22319 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22320 | char *kwnames[] = { |
22321 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
22322 | }; | |
22323 | ||
994141e6 | 22324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22327 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22328 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22329 | if (obj2) { |
c32bde28 | 22330 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22331 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22332 | } |
d14a1e28 RD |
22333 | { |
22334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22335 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
22336 | ||
22337 | wxPyEndAllowThreads(__tstate); | |
22338 | if (PyErr_Occurred()) SWIG_fail; | |
22339 | } | |
22340 | { | |
412d302d | 22341 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22342 | } |
22343 | return resultobj; | |
22344 | fail: | |
22345 | return NULL; | |
22346 | } | |
22347 | ||
22348 | ||
c32bde28 | 22349 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22350 | PyObject *resultobj; |
22351 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22352 | wxListItem *arg2 = 0 ; | |
22353 | bool result; | |
22354 | PyObject * obj0 = 0 ; | |
22355 | PyObject * obj1 = 0 ; | |
22356 | char *kwnames[] = { | |
22357 | (char *) "self",(char *) "info", NULL | |
22358 | }; | |
22359 | ||
22360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22363 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22364 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22365 | SWIG_fail; | |
d14a1e28 | 22366 | if (arg2 == NULL) { |
15afbcd0 RD |
22367 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22368 | SWIG_fail; | |
d14a1e28 RD |
22369 | } |
22370 | { | |
22371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22372 | result = (bool)(arg1)->SetItem(*arg2); | |
22373 | ||
22374 | wxPyEndAllowThreads(__tstate); | |
22375 | if (PyErr_Occurred()) SWIG_fail; | |
22376 | } | |
4f89f6a3 RD |
22377 | { |
22378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22379 | } | |
d14a1e28 RD |
22380 | return resultobj; |
22381 | fail: | |
22382 | return NULL; | |
22383 | } | |
22384 | ||
22385 | ||
c32bde28 | 22386 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22387 | PyObject *resultobj; |
22388 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22389 | long arg2 ; | |
22390 | int arg3 ; | |
22391 | wxString *arg4 = 0 ; | |
22392 | int arg5 = (int) -1 ; | |
22393 | long result; | |
ae8162c8 | 22394 | bool temp4 = false ; |
d14a1e28 | 22395 | PyObject * obj0 = 0 ; |
994141e6 RD |
22396 | PyObject * obj1 = 0 ; |
22397 | PyObject * obj2 = 0 ; | |
d14a1e28 | 22398 | PyObject * obj3 = 0 ; |
994141e6 | 22399 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22400 | char *kwnames[] = { |
22401 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
22402 | }; | |
22403 | ||
994141e6 | 22404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
22405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22407 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22408 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22409 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22410 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22411 | { |
22412 | arg4 = wxString_in_helper(obj3); | |
22413 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 22414 | temp4 = true; |
d14a1e28 | 22415 | } |
994141e6 | 22416 | if (obj4) { |
c32bde28 | 22417 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 22418 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22419 | } |
d14a1e28 RD |
22420 | { |
22421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22422 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
22423 | ||
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
c32bde28 | 22427 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22428 | { |
22429 | if (temp4) | |
22430 | delete arg4; | |
22431 | } | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | { | |
22435 | if (temp4) | |
22436 | delete arg4; | |
22437 | } | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
c32bde28 | 22442 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22443 | PyObject *resultobj; |
22444 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22445 | long arg2 ; | |
22446 | long arg3 ; | |
22447 | int result; | |
22448 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22449 | PyObject * obj1 = 0 ; |
22450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22451 | char *kwnames[] = { |
22452 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
22453 | }; | |
22454 | ||
994141e6 | 22455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22458 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22459 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22460 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22461 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22462 | { |
22463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22464 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
22465 | ||
22466 | wxPyEndAllowThreads(__tstate); | |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
22468 | } | |
c32bde28 | 22469 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22470 | return resultobj; |
22471 | fail: | |
22472 | return NULL; | |
22473 | } | |
22474 | ||
22475 | ||
c32bde28 | 22476 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22477 | PyObject *resultobj; |
22478 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22479 | long arg2 ; | |
22480 | long arg3 ; | |
22481 | long arg4 ; | |
22482 | bool result; | |
22483 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22484 | PyObject * obj1 = 0 ; |
22485 | PyObject * obj2 = 0 ; | |
22486 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22487 | char *kwnames[] = { |
22488 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
22489 | }; | |
22490 | ||
994141e6 | 22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22494 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22495 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22496 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22497 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22498 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 22499 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22500 | { |
22501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22502 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
22503 | ||
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
4f89f6a3 RD |
22507 | { |
22508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22509 | } | |
d14a1e28 RD |
22510 | return resultobj; |
22511 | fail: | |
22512 | return NULL; | |
22513 | } | |
22514 | ||
22515 | ||
c32bde28 | 22516 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22517 | PyObject *resultobj; |
22518 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22519 | long arg2 ; | |
22520 | int arg3 ; | |
1fc3b23a | 22521 | int arg4 = (int) -1 ; |
d14a1e28 RD |
22522 | bool result; |
22523 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22524 | PyObject * obj1 = 0 ; |
22525 | PyObject * obj2 = 0 ; | |
22526 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22527 | char *kwnames[] = { |
22528 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
22529 | }; | |
22530 | ||
1fc3b23a | 22531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22534 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22535 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22536 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22537 | if (PyErr_Occurred()) SWIG_fail; |
1fc3b23a RD |
22538 | if (obj3) { |
22539 | arg4 = (int)SWIG_As_int(obj3); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
d14a1e28 RD |
22542 | { |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22544 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
22545 | ||
22546 | wxPyEndAllowThreads(__tstate); | |
22547 | if (PyErr_Occurred()) SWIG_fail; | |
22548 | } | |
4f89f6a3 RD |
22549 | { |
22550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22551 | } | |
d14a1e28 RD |
22552 | return resultobj; |
22553 | fail: | |
22554 | return NULL; | |
22555 | } | |
22556 | ||
22557 | ||
c32bde28 | 22558 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22559 | PyObject *resultobj; |
22560 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22561 | long arg2 ; | |
22562 | wxString result; | |
22563 | PyObject * obj0 = 0 ; | |
994141e6 | 22564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22565 | char *kwnames[] = { |
22566 | (char *) "self",(char *) "item", NULL | |
22567 | }; | |
22568 | ||
994141e6 | 22569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22572 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22573 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22574 | { |
22575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22576 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
22577 | ||
22578 | wxPyEndAllowThreads(__tstate); | |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
22580 | } | |
22581 | { | |
22582 | #if wxUSE_UNICODE | |
22583 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22584 | #else | |
22585 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22586 | #endif | |
22587 | } | |
22588 | return resultobj; | |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
c32bde28 | 22594 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22595 | PyObject *resultobj; |
22596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22597 | long arg2 ; | |
22598 | wxString *arg3 = 0 ; | |
ae8162c8 | 22599 | bool temp3 = false ; |
d14a1e28 | 22600 | PyObject * obj0 = 0 ; |
994141e6 | 22601 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22602 | PyObject * obj2 = 0 ; |
22603 | char *kwnames[] = { | |
22604 | (char *) "self",(char *) "item",(char *) "str", NULL | |
22605 | }; | |
22606 | ||
994141e6 | 22607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22610 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22611 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22612 | { |
22613 | arg3 = wxString_in_helper(obj2); | |
22614 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 22615 | temp3 = true; |
d14a1e28 RD |
22616 | } |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
22624 | Py_INCREF(Py_None); resultobj = Py_None; | |
22625 | { | |
22626 | if (temp3) | |
22627 | delete arg3; | |
22628 | } | |
22629 | return resultobj; | |
22630 | fail: | |
22631 | { | |
22632 | if (temp3) | |
22633 | delete arg3; | |
22634 | } | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
c32bde28 | 22639 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22640 | PyObject *resultobj; |
22641 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22642 | long arg2 ; | |
22643 | long result; | |
22644 | PyObject * obj0 = 0 ; | |
994141e6 | 22645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22646 | char *kwnames[] = { |
22647 | (char *) "self",(char *) "item", NULL | |
22648 | }; | |
22649 | ||
994141e6 | 22650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22653 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22655 | { |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22658 | ||
22659 | wxPyEndAllowThreads(__tstate); | |
22660 | if (PyErr_Occurred()) SWIG_fail; | |
22661 | } | |
c32bde28 | 22662 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22663 | return resultobj; |
22664 | fail: | |
22665 | return NULL; | |
22666 | } | |
22667 | ||
22668 | ||
c32bde28 | 22669 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22670 | PyObject *resultobj; |
22671 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22672 | long arg2 ; | |
22673 | long arg3 ; | |
22674 | bool result; | |
22675 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22676 | PyObject * obj1 = 0 ; |
22677 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22678 | char *kwnames[] = { |
22679 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22680 | }; | |
22681 | ||
994141e6 | 22682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22685 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22686 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22687 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22688 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22689 | { |
22690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22691 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22692 | ||
22693 | wxPyEndAllowThreads(__tstate); | |
22694 | if (PyErr_Occurred()) SWIG_fail; | |
22695 | } | |
4f89f6a3 RD |
22696 | { |
22697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22698 | } | |
d14a1e28 RD |
22699 | return resultobj; |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
c32bde28 | 22705 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22706 | PyObject *resultobj; |
22707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22708 | long arg2 ; | |
22709 | wxPoint result; | |
22710 | PyObject * obj0 = 0 ; | |
994141e6 | 22711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22712 | char *kwnames[] = { |
22713 | (char *) "self",(char *) "item", NULL | |
22714 | }; | |
22715 | ||
994141e6 | 22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22719 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22720 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22721 | { |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | { | |
22729 | wxPoint * resultptr; | |
22730 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22732 | } |
22733 | return resultobj; | |
22734 | fail: | |
22735 | return NULL; | |
22736 | } | |
22737 | ||
22738 | ||
c32bde28 | 22739 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22740 | PyObject *resultobj; |
22741 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22742 | long arg2 ; | |
22743 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22744 | wxRect result; | |
22745 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22746 | PyObject * obj1 = 0 ; |
22747 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22748 | char *kwnames[] = { |
22749 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22750 | }; | |
22751 | ||
994141e6 | 22752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22755 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22756 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22757 | if (obj2) { |
c32bde28 | 22758 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22759 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22760 | } |
d14a1e28 RD |
22761 | { |
22762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22763 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22764 | ||
22765 | wxPyEndAllowThreads(__tstate); | |
22766 | if (PyErr_Occurred()) SWIG_fail; | |
22767 | } | |
22768 | { | |
22769 | wxRect * resultptr; | |
22770 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22772 | } |
22773 | return resultobj; | |
22774 | fail: | |
22775 | return NULL; | |
22776 | } | |
22777 | ||
22778 | ||
c32bde28 | 22779 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22780 | PyObject *resultobj; |
22781 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22782 | long arg2 ; | |
22783 | wxPoint *arg3 = 0 ; | |
22784 | bool result; | |
22785 | wxPoint temp3 ; | |
22786 | PyObject * obj0 = 0 ; | |
994141e6 | 22787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22788 | PyObject * obj2 = 0 ; |
22789 | char *kwnames[] = { | |
22790 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22791 | }; | |
22792 | ||
994141e6 | 22793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22796 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22797 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22798 | { |
22799 | arg3 = &temp3; | |
22800 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22801 | } | |
22802 | { | |
22803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22804 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22805 | ||
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
4f89f6a3 RD |
22809 | { |
22810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22811 | } | |
d14a1e28 RD |
22812 | return resultobj; |
22813 | fail: | |
22814 | return NULL; | |
22815 | } | |
22816 | ||
22817 | ||
c32bde28 | 22818 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22819 | PyObject *resultobj; |
22820 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22821 | int result; | |
22822 | PyObject * obj0 = 0 ; | |
22823 | char *kwnames[] = { | |
22824 | (char *) "self", NULL | |
22825 | }; | |
22826 | ||
22827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22830 | { |
22831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22832 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22833 | ||
22834 | wxPyEndAllowThreads(__tstate); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
22836 | } | |
c32bde28 | 22837 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22838 | return resultobj; |
22839 | fail: | |
22840 | return NULL; | |
22841 | } | |
22842 | ||
22843 | ||
c32bde28 | 22844 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22845 | PyObject *resultobj; |
22846 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22847 | int result; | |
22848 | PyObject * obj0 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22856 | { |
22857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22858 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22859 | ||
22860 | wxPyEndAllowThreads(__tstate); | |
22861 | if (PyErr_Occurred()) SWIG_fail; | |
22862 | } | |
c32bde28 | 22863 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22864 | return resultobj; |
22865 | fail: | |
22866 | return NULL; | |
22867 | } | |
22868 | ||
22869 | ||
c32bde28 | 22870 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22871 | PyObject *resultobj; |
22872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22873 | wxSize result; | |
22874 | PyObject * obj0 = 0 ; | |
22875 | char *kwnames[] = { | |
22876 | (char *) "self", NULL | |
22877 | }; | |
22878 | ||
22879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22882 | { |
22883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22884 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22885 | ||
22886 | wxPyEndAllowThreads(__tstate); | |
22887 | if (PyErr_Occurred()) SWIG_fail; | |
22888 | } | |
22889 | { | |
22890 | wxSize * resultptr; | |
22891 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22893 | } |
22894 | return resultobj; | |
22895 | fail: | |
22896 | return NULL; | |
22897 | } | |
22898 | ||
22899 | ||
c32bde28 | 22900 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22901 | PyObject *resultobj; |
22902 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22903 | int arg2 ; | |
ae8162c8 | 22904 | bool arg3 = (bool) false ; |
d14a1e28 | 22905 | PyObject * obj0 = 0 ; |
994141e6 | 22906 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22907 | PyObject * obj2 = 0 ; |
22908 | char *kwnames[] = { | |
22909 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22910 | }; | |
22911 | ||
994141e6 | 22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22915 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22916 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22917 | if (obj2) { |
c32bde28 | 22918 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 22919 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22920 | } |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | (arg1)->SetItemSpacing(arg2,arg3); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | Py_INCREF(Py_None); resultobj = Py_None; | |
22929 | return resultobj; | |
22930 | fail: | |
22931 | return NULL; | |
22932 | } | |
22933 | ||
22934 | ||
c32bde28 | 22935 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22936 | PyObject *resultobj; |
22937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22938 | int result; | |
22939 | PyObject * obj0 = 0 ; | |
22940 | char *kwnames[] = { | |
22941 | (char *) "self", NULL | |
22942 | }; | |
22943 | ||
22944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22947 | { |
22948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22949 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22950 | ||
22951 | wxPyEndAllowThreads(__tstate); | |
22952 | if (PyErr_Occurred()) SWIG_fail; | |
22953 | } | |
c32bde28 | 22954 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22955 | return resultobj; |
22956 | fail: | |
22957 | return NULL; | |
22958 | } | |
22959 | ||
22960 | ||
c32bde28 | 22961 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22962 | PyObject *resultobj; |
22963 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22964 | wxColour result; | |
22965 | PyObject * obj0 = 0 ; | |
22966 | char *kwnames[] = { | |
22967 | (char *) "self", NULL | |
22968 | }; | |
22969 | ||
22970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22973 | { |
22974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22975 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | { | |
22981 | wxColour * resultptr; | |
22982 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22984 | } |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
c32bde28 | 22991 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22992 | PyObject *resultobj; |
22993 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22994 | wxColour *arg2 = 0 ; | |
22995 | wxColour temp2 ; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | PyObject * obj1 = 0 ; | |
22998 | char *kwnames[] = { | |
22999 | (char *) "self",(char *) "col", NULL | |
23000 | }; | |
23001 | ||
23002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23005 | { |
23006 | arg2 = &temp2; | |
23007 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23008 | } | |
23009 | { | |
23010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23011 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
23012 | ||
23013 | wxPyEndAllowThreads(__tstate); | |
23014 | if (PyErr_Occurred()) SWIG_fail; | |
23015 | } | |
23016 | Py_INCREF(Py_None); resultobj = Py_None; | |
23017 | return resultobj; | |
23018 | fail: | |
23019 | return NULL; | |
23020 | } | |
23021 | ||
23022 | ||
c32bde28 | 23023 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23024 | PyObject *resultobj; |
23025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23026 | long result; | |
23027 | PyObject * obj0 = 0 ; | |
23028 | char *kwnames[] = { | |
23029 | (char *) "self", NULL | |
23030 | }; | |
23031 | ||
23032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23035 | { |
23036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23037 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
23038 | ||
23039 | wxPyEndAllowThreads(__tstate); | |
23040 | if (PyErr_Occurred()) SWIG_fail; | |
23041 | } | |
c32bde28 | 23042 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23043 | return resultobj; |
23044 | fail: | |
23045 | return NULL; | |
23046 | } | |
23047 | ||
23048 | ||
c32bde28 | 23049 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23050 | PyObject *resultobj; |
23051 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23052 | long arg2 ; | |
ae8162c8 | 23053 | bool arg3 = (bool) true ; |
d14a1e28 | 23054 | PyObject * obj0 = 0 ; |
994141e6 | 23055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23056 | PyObject * obj2 = 0 ; |
23057 | char *kwnames[] = { | |
23058 | (char *) "self",(char *) "style",(char *) "add", NULL | |
23059 | }; | |
23060 | ||
994141e6 | 23061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23064 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23065 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23066 | if (obj2) { |
c32bde28 | 23067 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 23068 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23069 | } |
23070 | { | |
23071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23072 | (arg1)->SetSingleStyle(arg2,arg3); | |
23073 | ||
23074 | wxPyEndAllowThreads(__tstate); | |
23075 | if (PyErr_Occurred()) SWIG_fail; | |
23076 | } | |
23077 | Py_INCREF(Py_None); resultobj = Py_None; | |
23078 | return resultobj; | |
23079 | fail: | |
23080 | return NULL; | |
23081 | } | |
23082 | ||
23083 | ||
c32bde28 | 23084 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23085 | PyObject *resultobj; |
23086 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23087 | long arg2 ; | |
23088 | PyObject * obj0 = 0 ; | |
994141e6 | 23089 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23090 | char *kwnames[] = { |
23091 | (char *) "self",(char *) "style", NULL | |
23092 | }; | |
23093 | ||
994141e6 | 23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23097 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23099 | { |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | (arg1)->SetWindowStyleFlag(arg2); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
23106 | Py_INCREF(Py_None); resultobj = Py_None; | |
23107 | return resultobj; | |
23108 | fail: | |
23109 | return NULL; | |
23110 | } | |
23111 | ||
23112 | ||
c32bde28 | 23113 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23114 | PyObject *resultobj; |
23115 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23116 | long arg2 ; | |
23117 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
23118 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
23119 | long result; | |
23120 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23121 | PyObject * obj1 = 0 ; |
23122 | PyObject * obj2 = 0 ; | |
23123 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23124 | char *kwnames[] = { |
23125 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
23126 | }; | |
23127 | ||
994141e6 | 23128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23131 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23132 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23133 | if (obj2) { |
c32bde28 | 23134 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23135 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23136 | } |
23137 | if (obj3) { | |
c32bde28 | 23138 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23139 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23140 | } |
d14a1e28 RD |
23141 | { |
23142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23143 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
23144 | ||
23145 | wxPyEndAllowThreads(__tstate); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
c32bde28 | 23148 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23149 | return resultobj; |
23150 | fail: | |
23151 | return NULL; | |
23152 | } | |
23153 | ||
23154 | ||
c32bde28 | 23155 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23156 | PyObject *resultobj; |
23157 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23158 | int arg2 ; | |
23159 | wxImageList *result; | |
23160 | PyObject * obj0 = 0 ; | |
994141e6 | 23161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23162 | char *kwnames[] = { |
23163 | (char *) "self",(char *) "which", NULL | |
23164 | }; | |
23165 | ||
994141e6 | 23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23169 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23170 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23171 | { |
23172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23173 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
23174 | ||
23175 | wxPyEndAllowThreads(__tstate); | |
23176 | if (PyErr_Occurred()) SWIG_fail; | |
23177 | } | |
23178 | { | |
412d302d | 23179 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23180 | } |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
c32bde28 | 23187 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23188 | PyObject *resultobj; |
23189 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23190 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23191 | int arg3 ; | |
23192 | PyObject * obj0 = 0 ; | |
23193 | PyObject * obj1 = 0 ; | |
994141e6 | 23194 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23195 | char *kwnames[] = { |
23196 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
23197 | }; | |
23198 | ||
994141e6 | 23199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
23203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23204 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23205 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23206 | { |
23207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23208 | (arg1)->SetImageList(arg2,arg3); | |
23209 | ||
23210 | wxPyEndAllowThreads(__tstate); | |
23211 | if (PyErr_Occurred()) SWIG_fail; | |
23212 | } | |
23213 | Py_INCREF(Py_None); resultobj = Py_None; | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
c32bde28 | 23220 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23221 | PyObject *resultobj; |
23222 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23223 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23224 | int arg3 ; | |
23225 | PyObject * obj0 = 0 ; | |
23226 | PyObject * obj1 = 0 ; | |
994141e6 | 23227 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23228 | char *kwnames[] = { |
23229 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
23230 | }; | |
23231 | ||
994141e6 | 23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
23236 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
c32bde28 | 23237 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23238 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23239 | { |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | (arg1)->AssignImageList(arg2,arg3); | |
23242 | ||
23243 | wxPyEndAllowThreads(__tstate); | |
23244 | if (PyErr_Occurred()) SWIG_fail; | |
23245 | } | |
23246 | Py_INCREF(Py_None); resultobj = Py_None; | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | return NULL; | |
23250 | } | |
23251 | ||
23252 | ||
c32bde28 | 23253 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
23254 | PyObject *resultobj; |
23255 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23256 | bool result; | |
23257 | PyObject * obj0 = 0 ; | |
23258 | char *kwnames[] = { | |
23259 | (char *) "self", NULL | |
23260 | }; | |
23261 | ||
23262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
23263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23265 | { | |
23266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23267 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
23268 | ||
23269 | wxPyEndAllowThreads(__tstate); | |
23270 | if (PyErr_Occurred()) SWIG_fail; | |
23271 | } | |
4f89f6a3 RD |
23272 | { |
23273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23274 | } | |
4276dc52 RD |
23275 | return resultobj; |
23276 | fail: | |
23277 | return NULL; | |
23278 | } | |
23279 | ||
23280 | ||
c32bde28 | 23281 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23282 | PyObject *resultobj; |
23283 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23284 | bool result; | |
23285 | PyObject * obj0 = 0 ; | |
23286 | char *kwnames[] = { | |
23287 | (char *) "self", NULL | |
23288 | }; | |
23289 | ||
23290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23293 | { |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
4f89f6a3 RD |
23300 | { |
23301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23302 | } | |
d14a1e28 RD |
23303 | return resultobj; |
23304 | fail: | |
23305 | return NULL; | |
23306 | } | |
23307 | ||
23308 | ||
c32bde28 | 23309 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23310 | PyObject *resultobj; |
23311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23312 | long arg2 ; | |
23313 | PyObject * obj0 = 0 ; | |
994141e6 | 23314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23315 | char *kwnames[] = { |
23316 | (char *) "self",(char *) "item", NULL | |
23317 | }; | |
23318 | ||
994141e6 | 23319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23322 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23323 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23324 | { |
23325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23326 | (arg1)->RefreshItem(arg2); | |
23327 | ||
23328 | wxPyEndAllowThreads(__tstate); | |
23329 | if (PyErr_Occurred()) SWIG_fail; | |
23330 | } | |
23331 | Py_INCREF(Py_None); resultobj = Py_None; | |
23332 | return resultobj; | |
23333 | fail: | |
23334 | return NULL; | |
23335 | } | |
23336 | ||
23337 | ||
c32bde28 | 23338 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23339 | PyObject *resultobj; |
23340 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23341 | long arg2 ; | |
23342 | long arg3 ; | |
23343 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23344 | PyObject * obj1 = 0 ; |
23345 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23346 | char *kwnames[] = { |
23347 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
23348 | }; | |
23349 | ||
994141e6 | 23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23353 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23354 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23355 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 23356 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23357 | { |
23358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23359 | (arg1)->RefreshItems(arg2,arg3); | |
23360 | ||
23361 | wxPyEndAllowThreads(__tstate); | |
23362 | if (PyErr_Occurred()) SWIG_fail; | |
23363 | } | |
23364 | Py_INCREF(Py_None); resultobj = Py_None; | |
23365 | return resultobj; | |
23366 | fail: | |
23367 | return NULL; | |
23368 | } | |
23369 | ||
23370 | ||
c32bde28 | 23371 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23372 | PyObject *resultobj; |
23373 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23374 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
23375 | bool result; | |
23376 | PyObject * obj0 = 0 ; | |
994141e6 | 23377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23378 | char *kwnames[] = { |
23379 | (char *) "self",(char *) "flag", NULL | |
23380 | }; | |
23381 | ||
994141e6 | 23382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23385 | if (obj1) { |
c32bde28 | 23386 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23387 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23388 | } |
d14a1e28 RD |
23389 | { |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | result = (bool)(arg1)->Arrange(arg2); | |
23392 | ||
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
4f89f6a3 RD |
23396 | { |
23397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23398 | } | |
d14a1e28 RD |
23399 | return resultobj; |
23400 | fail: | |
23401 | return NULL; | |
23402 | } | |
23403 | ||
23404 | ||
c32bde28 | 23405 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23406 | PyObject *resultobj; |
23407 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23408 | long arg2 ; | |
23409 | bool result; | |
23410 | PyObject * obj0 = 0 ; | |
994141e6 | 23411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23412 | char *kwnames[] = { |
23413 | (char *) "self",(char *) "item", NULL | |
23414 | }; | |
23415 | ||
994141e6 | 23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23419 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23420 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23421 | { |
23422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23423 | result = (bool)(arg1)->DeleteItem(arg2); | |
23424 | ||
23425 | wxPyEndAllowThreads(__tstate); | |
23426 | if (PyErr_Occurred()) SWIG_fail; | |
23427 | } | |
4f89f6a3 RD |
23428 | { |
23429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23430 | } | |
d14a1e28 RD |
23431 | return resultobj; |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
c32bde28 | 23437 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23438 | PyObject *resultobj; |
23439 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23440 | bool result; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23449 | { |
23450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23451 | result = (bool)(arg1)->DeleteAllItems(); | |
23452 | ||
23453 | wxPyEndAllowThreads(__tstate); | |
23454 | if (PyErr_Occurred()) SWIG_fail; | |
23455 | } | |
4f89f6a3 RD |
23456 | { |
23457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23458 | } | |
d14a1e28 RD |
23459 | return resultobj; |
23460 | fail: | |
23461 | return NULL; | |
23462 | } | |
23463 | ||
23464 | ||
c32bde28 | 23465 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23466 | PyObject *resultobj; |
23467 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23468 | int arg2 ; | |
23469 | bool result; | |
23470 | PyObject * obj0 = 0 ; | |
994141e6 | 23471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23472 | char *kwnames[] = { |
23473 | (char *) "self",(char *) "col", NULL | |
23474 | }; | |
23475 | ||
994141e6 | 23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23479 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23480 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23481 | { |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | result = (bool)(arg1)->DeleteColumn(arg2); | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
23486 | if (PyErr_Occurred()) SWIG_fail; | |
23487 | } | |
4f89f6a3 RD |
23488 | { |
23489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23490 | } | |
d14a1e28 RD |
23491 | return resultobj; |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
c32bde28 | 23497 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23498 | PyObject *resultobj; |
23499 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23500 | bool result; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23509 | { |
23510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23511 | result = (bool)(arg1)->DeleteAllColumns(); | |
23512 | ||
23513 | wxPyEndAllowThreads(__tstate); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | } | |
4f89f6a3 RD |
23516 | { |
23517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23518 | } | |
d14a1e28 RD |
23519 | return resultobj; |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
c32bde28 | 23525 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23526 | PyObject *resultobj; |
23527 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23528 | PyObject * obj0 = 0 ; | |
23529 | char *kwnames[] = { | |
23530 | (char *) "self", NULL | |
23531 | }; | |
23532 | ||
23533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23536 | { |
23537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23538 | (arg1)->ClearAll(); | |
23539 | ||
23540 | wxPyEndAllowThreads(__tstate); | |
23541 | if (PyErr_Occurred()) SWIG_fail; | |
23542 | } | |
23543 | Py_INCREF(Py_None); resultobj = Py_None; | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | return NULL; | |
23547 | } | |
23548 | ||
23549 | ||
c32bde28 | 23550 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23551 | PyObject *resultobj; |
23552 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23553 | long arg2 ; | |
23554 | PyObject * obj0 = 0 ; | |
994141e6 | 23555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23556 | char *kwnames[] = { |
23557 | (char *) "self",(char *) "item", NULL | |
23558 | }; | |
23559 | ||
994141e6 | 23560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23563 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23564 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23565 | { |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | (arg1)->EditLabel(arg2); | |
23568 | ||
23569 | wxPyEndAllowThreads(__tstate); | |
23570 | if (PyErr_Occurred()) SWIG_fail; | |
23571 | } | |
23572 | Py_INCREF(Py_None); resultobj = Py_None; | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
c32bde28 | 23579 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23580 | PyObject *resultobj; |
23581 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23582 | long arg2 ; | |
23583 | bool result; | |
23584 | PyObject * obj0 = 0 ; | |
994141e6 | 23585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23586 | char *kwnames[] = { |
23587 | (char *) "self",(char *) "item", NULL | |
23588 | }; | |
23589 | ||
994141e6 | 23590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23593 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23594 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23595 | { |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | result = (bool)(arg1)->EnsureVisible(arg2); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
4f89f6a3 RD |
23602 | { |
23603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23604 | } | |
d14a1e28 RD |
23605 | return resultobj; |
23606 | fail: | |
23607 | return NULL; | |
23608 | } | |
23609 | ||
23610 | ||
c32bde28 | 23611 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23612 | PyObject *resultobj; |
23613 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23614 | long arg2 ; | |
23615 | wxString *arg3 = 0 ; | |
ae8162c8 | 23616 | bool arg4 = (bool) false ; |
d14a1e28 | 23617 | long result; |
ae8162c8 | 23618 | bool temp3 = false ; |
d14a1e28 | 23619 | PyObject * obj0 = 0 ; |
994141e6 | 23620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23621 | PyObject * obj2 = 0 ; |
23622 | PyObject * obj3 = 0 ; | |
23623 | char *kwnames[] = { | |
23624 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
23625 | }; | |
23626 | ||
994141e6 | 23627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23630 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23631 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23632 | { |
23633 | arg3 = wxString_in_helper(obj2); | |
23634 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23635 | temp3 = true; |
d14a1e28 RD |
23636 | } |
23637 | if (obj3) { | |
c32bde28 | 23638 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 23639 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23640 | } |
23641 | { | |
23642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23643 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23644 | ||
23645 | wxPyEndAllowThreads(__tstate); | |
23646 | if (PyErr_Occurred()) SWIG_fail; | |
23647 | } | |
c32bde28 | 23648 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23649 | { |
23650 | if (temp3) | |
23651 | delete arg3; | |
23652 | } | |
23653 | return resultobj; | |
23654 | fail: | |
23655 | { | |
23656 | if (temp3) | |
23657 | delete arg3; | |
23658 | } | |
23659 | return NULL; | |
23660 | } | |
23661 | ||
23662 | ||
c32bde28 | 23663 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23664 | PyObject *resultobj; |
23665 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23666 | long arg2 ; | |
23667 | long arg3 ; | |
23668 | long result; | |
23669 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23670 | PyObject * obj1 = 0 ; |
23671 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23672 | char *kwnames[] = { |
23673 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23674 | }; | |
23675 | ||
994141e6 | 23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23679 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23680 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23681 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 23682 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23683 | { |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23685 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23686 | ||
23687 | wxPyEndAllowThreads(__tstate); | |
23688 | if (PyErr_Occurred()) SWIG_fail; | |
23689 | } | |
c32bde28 | 23690 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23691 | return resultobj; |
23692 | fail: | |
23693 | return NULL; | |
23694 | } | |
23695 | ||
23696 | ||
c32bde28 | 23697 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23698 | PyObject *resultobj; |
23699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23700 | long arg2 ; | |
23701 | wxPoint *arg3 = 0 ; | |
23702 | int arg4 ; | |
23703 | long result; | |
23704 | wxPoint temp3 ; | |
23705 | PyObject * obj0 = 0 ; | |
994141e6 | 23706 | PyObject * obj1 = 0 ; |
d14a1e28 | 23707 | PyObject * obj2 = 0 ; |
994141e6 | 23708 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23709 | char *kwnames[] = { |
23710 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23711 | }; | |
23712 | ||
994141e6 | 23713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23716 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23717 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23718 | { |
23719 | arg3 = &temp3; | |
23720 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23721 | } | |
c32bde28 | 23722 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23723 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23724 | { |
23725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23726 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23727 | ||
23728 | wxPyEndAllowThreads(__tstate); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
c32bde28 | 23731 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23732 | return resultobj; |
23733 | fail: | |
23734 | return NULL; | |
23735 | } | |
23736 | ||
23737 | ||
c32bde28 | 23738 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23739 | PyObject *resultobj; |
23740 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23741 | wxPoint *arg2 = 0 ; | |
23742 | int *arg3 = 0 ; | |
23743 | long result; | |
23744 | wxPoint temp2 ; | |
23745 | int temp3 ; | |
c32bde28 | 23746 | int res3 = 0 ; |
d14a1e28 RD |
23747 | PyObject * obj0 = 0 ; |
23748 | PyObject * obj1 = 0 ; | |
23749 | char *kwnames[] = { | |
23750 | (char *) "self",(char *) "point", NULL | |
23751 | }; | |
23752 | ||
c32bde28 | 23753 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23757 | { |
23758 | arg2 = &temp2; | |
23759 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23760 | } | |
23761 | { | |
23762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23763 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23764 | ||
23765 | wxPyEndAllowThreads(__tstate); | |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
23767 | } | |
c32bde28 RD |
23768 | resultobj = SWIG_From_long((long)result); |
23769 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23770 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23771 | return resultobj; |
23772 | fail: | |
23773 | return NULL; | |
23774 | } | |
23775 | ||
23776 | ||
c32bde28 | 23777 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23778 | PyObject *resultobj; |
23779 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23780 | wxListItem *arg2 = 0 ; | |
23781 | long result; | |
23782 | PyObject * obj0 = 0 ; | |
23783 | PyObject * obj1 = 0 ; | |
23784 | char *kwnames[] = { | |
23785 | (char *) "self",(char *) "info", NULL | |
23786 | }; | |
23787 | ||
23788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23793 | SWIG_fail; | |
d14a1e28 | 23794 | if (arg2 == NULL) { |
15afbcd0 RD |
23795 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23796 | SWIG_fail; | |
d14a1e28 RD |
23797 | } |
23798 | { | |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | result = (long)(arg1)->InsertItem(*arg2); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
c32bde28 | 23805 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23806 | return resultobj; |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
c32bde28 | 23812 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23813 | PyObject *resultobj; |
23814 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23815 | long arg2 ; | |
23816 | wxString *arg3 = 0 ; | |
23817 | long result; | |
ae8162c8 | 23818 | bool temp3 = false ; |
d14a1e28 | 23819 | PyObject * obj0 = 0 ; |
994141e6 | 23820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23821 | PyObject * obj2 = 0 ; |
23822 | char *kwnames[] = { | |
23823 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23824 | }; | |
23825 | ||
994141e6 | 23826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23829 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23830 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23831 | { |
23832 | arg3 = wxString_in_helper(obj2); | |
23833 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23834 | temp3 = true; |
d14a1e28 RD |
23835 | } |
23836 | { | |
23837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23838 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23839 | ||
23840 | wxPyEndAllowThreads(__tstate); | |
23841 | if (PyErr_Occurred()) SWIG_fail; | |
23842 | } | |
c32bde28 | 23843 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23844 | { |
23845 | if (temp3) | |
23846 | delete arg3; | |
23847 | } | |
23848 | return resultobj; | |
23849 | fail: | |
23850 | { | |
23851 | if (temp3) | |
23852 | delete arg3; | |
23853 | } | |
23854 | return NULL; | |
23855 | } | |
23856 | ||
23857 | ||
c32bde28 | 23858 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23859 | PyObject *resultobj; |
23860 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23861 | long arg2 ; | |
23862 | int arg3 ; | |
23863 | long result; | |
23864 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23865 | PyObject * obj1 = 0 ; |
23866 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23867 | char *kwnames[] = { |
23868 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23869 | }; | |
23870 | ||
994141e6 | 23871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23874 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23875 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23876 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23877 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23878 | { |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23881 | ||
23882 | wxPyEndAllowThreads(__tstate); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
23884 | } | |
c32bde28 | 23885 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23886 | return resultobj; |
23887 | fail: | |
23888 | return NULL; | |
23889 | } | |
23890 | ||
23891 | ||
c32bde28 | 23892 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23893 | PyObject *resultobj; |
23894 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23895 | long arg2 ; | |
23896 | wxString *arg3 = 0 ; | |
23897 | int arg4 ; | |
23898 | long result; | |
ae8162c8 | 23899 | bool temp3 = false ; |
d14a1e28 | 23900 | PyObject * obj0 = 0 ; |
994141e6 | 23901 | PyObject * obj1 = 0 ; |
d14a1e28 | 23902 | PyObject * obj2 = 0 ; |
994141e6 | 23903 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23904 | char *kwnames[] = { |
23905 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23906 | }; | |
23907 | ||
994141e6 | 23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23911 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23912 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23913 | { |
23914 | arg3 = wxString_in_helper(obj2); | |
23915 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23916 | temp3 = true; |
d14a1e28 | 23917 | } |
c32bde28 | 23918 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23919 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23920 | { |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
c32bde28 | 23927 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23928 | { |
23929 | if (temp3) | |
23930 | delete arg3; | |
23931 | } | |
23932 | return resultobj; | |
23933 | fail: | |
23934 | { | |
23935 | if (temp3) | |
23936 | delete arg3; | |
23937 | } | |
23938 | return NULL; | |
23939 | } | |
23940 | ||
23941 | ||
c32bde28 | 23942 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23943 | PyObject *resultobj; |
23944 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23945 | long arg2 ; | |
23946 | wxListItem *arg3 = 0 ; | |
23947 | long result; | |
23948 | PyObject * obj0 = 0 ; | |
994141e6 | 23949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23950 | PyObject * obj2 = 0 ; |
23951 | char *kwnames[] = { | |
23952 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23953 | }; | |
23954 | ||
994141e6 | 23955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23958 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
23959 | if (PyErr_Occurred()) SWIG_fail; |
23960 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23962 | SWIG_fail; | |
d14a1e28 | 23963 | if (arg3 == NULL) { |
15afbcd0 RD |
23964 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23965 | SWIG_fail; | |
d14a1e28 RD |
23966 | } |
23967 | { | |
23968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23969 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23970 | ||
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
c32bde28 | 23974 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23975 | return resultobj; |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
c32bde28 | 23981 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23982 | PyObject *resultobj; |
23983 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23984 | long arg2 ; | |
23985 | wxString *arg3 = 0 ; | |
23986 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23987 | int arg5 = (int) -1 ; | |
23988 | long result; | |
ae8162c8 | 23989 | bool temp3 = false ; |
d14a1e28 | 23990 | PyObject * obj0 = 0 ; |
994141e6 | 23991 | PyObject * obj1 = 0 ; |
d14a1e28 | 23992 | PyObject * obj2 = 0 ; |
994141e6 RD |
23993 | PyObject * obj3 = 0 ; |
23994 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23995 | char *kwnames[] = { |
23996 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23997 | }; | |
23998 | ||
994141e6 | 23999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
24000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24002 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24003 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24004 | { |
24005 | arg3 = wxString_in_helper(obj2); | |
24006 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24007 | temp3 = true; |
d14a1e28 | 24008 | } |
994141e6 | 24009 | if (obj3) { |
c32bde28 | 24010 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 24011 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
24012 | } |
24013 | if (obj4) { | |
c32bde28 | 24014 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 24015 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24016 | } |
d14a1e28 RD |
24017 | { |
24018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24019 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
24020 | ||
24021 | wxPyEndAllowThreads(__tstate); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | } | |
c32bde28 | 24024 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24025 | { |
24026 | if (temp3) | |
24027 | delete arg3; | |
24028 | } | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | { | |
24032 | if (temp3) | |
24033 | delete arg3; | |
24034 | } | |
24035 | return NULL; | |
24036 | } | |
24037 | ||
24038 | ||
c32bde28 | 24039 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24040 | PyObject *resultobj; |
24041 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24042 | long arg2 ; | |
24043 | PyObject * obj0 = 0 ; | |
994141e6 | 24044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24045 | char *kwnames[] = { |
24046 | (char *) "self",(char *) "count", NULL | |
24047 | }; | |
24048 | ||
994141e6 | 24049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24052 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24053 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24054 | { |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | (arg1)->SetItemCount(arg2); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
24061 | Py_INCREF(Py_None); resultobj = Py_None; | |
24062 | return resultobj; | |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
c32bde28 | 24068 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24069 | PyObject *resultobj; |
24070 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24071 | int arg2 ; | |
24072 | int arg3 ; | |
24073 | bool result; | |
24074 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24075 | PyObject * obj1 = 0 ; |
24076 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24077 | char *kwnames[] = { |
24078 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
24079 | }; | |
24080 | ||
994141e6 | 24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24084 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24085 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24086 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24087 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24088 | { |
24089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24090 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
24091 | ||
24092 | wxPyEndAllowThreads(__tstate); | |
24093 | if (PyErr_Occurred()) SWIG_fail; | |
24094 | } | |
4f89f6a3 RD |
24095 | { |
24096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24097 | } | |
d14a1e28 RD |
24098 | return resultobj; |
24099 | fail: | |
24100 | return NULL; | |
24101 | } | |
24102 | ||
24103 | ||
c32bde28 | 24104 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24105 | PyObject *resultobj; |
24106 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24107 | long arg2 ; | |
24108 | wxColour *arg3 = 0 ; | |
24109 | wxColour temp3 ; | |
24110 | PyObject * obj0 = 0 ; | |
994141e6 | 24111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24112 | PyObject * obj2 = 0 ; |
24113 | char *kwnames[] = { | |
24114 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24115 | }; | |
24116 | ||
994141e6 | 24117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24120 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24121 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24122 | { |
24123 | arg3 = &temp3; | |
24124 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24125 | } | |
24126 | { | |
24127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24128 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
24129 | ||
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | Py_INCREF(Py_None); resultobj = Py_None; | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
24137 | } | |
24138 | ||
24139 | ||
c32bde28 | 24140 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24141 | PyObject *resultobj; |
24142 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24143 | long arg2 ; | |
24144 | wxColour result; | |
24145 | PyObject * obj0 = 0 ; | |
994141e6 | 24146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24147 | char *kwnames[] = { |
24148 | (char *) "self",(char *) "item", NULL | |
24149 | }; | |
24150 | ||
994141e6 | 24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24154 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24155 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24156 | { |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
24159 | ||
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
24163 | { | |
24164 | wxColour * resultptr; | |
24165 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 24166 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24167 | } |
24168 | return resultobj; | |
24169 | fail: | |
24170 | return NULL; | |
24171 | } | |
24172 | ||
24173 | ||
c32bde28 | 24174 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24175 | PyObject *resultobj; |
24176 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24177 | long arg2 ; | |
24178 | wxColour *arg3 = 0 ; | |
24179 | wxColour temp3 ; | |
24180 | PyObject * obj0 = 0 ; | |
994141e6 | 24181 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24182 | PyObject * obj2 = 0 ; |
24183 | char *kwnames[] = { | |
24184 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24185 | }; | |
24186 | ||
994141e6 | 24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24190 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24191 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24192 | { |
24193 | arg3 = &temp3; | |
24194 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24195 | } | |
24196 | { | |
24197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24198 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
24199 | ||
24200 | wxPyEndAllowThreads(__tstate); | |
24201 | if (PyErr_Occurred()) SWIG_fail; | |
24202 | } | |
24203 | Py_INCREF(Py_None); resultobj = Py_None; | |
24204 | return resultobj; | |
24205 | fail: | |
24206 | return NULL; | |
24207 | } | |
24208 | ||
24209 | ||
c32bde28 | 24210 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24211 | PyObject *resultobj; |
24212 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24213 | long arg2 ; | |
24214 | wxColour result; | |
24215 | PyObject * obj0 = 0 ; | |
994141e6 | 24216 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24217 | char *kwnames[] = { |
24218 | (char *) "self",(char *) "item", NULL | |
24219 | }; | |
24220 | ||
994141e6 | 24221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24224 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24226 | { |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | { | |
24234 | wxColour * resultptr; | |
24235 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 24236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24237 | } |
24238 | return resultobj; | |
24239 | fail: | |
24240 | return NULL; | |
24241 | } | |
24242 | ||
24243 | ||
c32bde28 | 24244 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24245 | PyObject *resultobj; |
24246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24247 | PyObject *arg2 = (PyObject *) 0 ; | |
24248 | bool result; | |
24249 | PyObject * obj0 = 0 ; | |
24250 | PyObject * obj1 = 0 ; | |
24251 | char *kwnames[] = { | |
24252 | (char *) "self",(char *) "func", NULL | |
24253 | }; | |
24254 | ||
24255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24258 | arg2 = obj1; |
24259 | { | |
24260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24261 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
24262 | ||
24263 | wxPyEndAllowThreads(__tstate); | |
24264 | if (PyErr_Occurred()) SWIG_fail; | |
24265 | } | |
4f89f6a3 RD |
24266 | { |
24267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24268 | } | |
d14a1e28 RD |
24269 | return resultobj; |
24270 | fail: | |
24271 | return NULL; | |
24272 | } | |
24273 | ||
24274 | ||
c32bde28 | 24275 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24276 | PyObject *resultobj; |
24277 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24278 | wxWindow *result; | |
24279 | PyObject * obj0 = 0 ; | |
24280 | char *kwnames[] = { | |
24281 | (char *) "self", NULL | |
24282 | }; | |
24283 | ||
24284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24287 | { |
24288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24289 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
24290 | ||
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
24294 | { | |
412d302d | 24295 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24296 | } |
24297 | return resultobj; | |
24298 | fail: | |
24299 | return NULL; | |
24300 | } | |
24301 | ||
24302 | ||
c32bde28 | 24303 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24304 | PyObject *resultobj; |
24305 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
24306 | wxVisualAttributes result; | |
24307 | PyObject * obj0 = 0 ; | |
24308 | char *kwnames[] = { | |
24309 | (char *) "variant", NULL | |
24310 | }; | |
24311 | ||
24312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
24313 | if (obj0) { | |
c32bde28 | 24314 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
24315 | if (PyErr_Occurred()) SWIG_fail; |
24316 | } | |
24317 | { | |
110da5b0 | 24318 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
24319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24320 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
24321 | ||
24322 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 24323 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
24324 | } |
24325 | { | |
24326 | wxVisualAttributes * resultptr; | |
24327 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
24328 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
24329 | } | |
24330 | return resultobj; | |
24331 | fail: | |
24332 | return NULL; | |
24333 | } | |
24334 | ||
24335 | ||
c32bde28 | 24336 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24337 | PyObject *obj; |
24338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24339 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
24340 | Py_INCREF(obj); | |
24341 | return Py_BuildValue((char *)""); | |
24342 | } | |
c32bde28 | 24343 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24344 | PyObject *resultobj; |
24345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24346 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24347 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24348 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24349 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24350 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24351 | long arg5 = (long) wxLC_REPORT ; | |
24352 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24353 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24354 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
24355 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24356 | wxListView *result; | |
24357 | wxPoint temp3 ; | |
24358 | wxSize temp4 ; | |
ae8162c8 | 24359 | bool temp7 = false ; |
d14a1e28 | 24360 | PyObject * obj0 = 0 ; |
994141e6 | 24361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24362 | PyObject * obj2 = 0 ; |
24363 | PyObject * obj3 = 0 ; | |
994141e6 | 24364 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24365 | PyObject * obj5 = 0 ; |
24366 | PyObject * obj6 = 0 ; | |
24367 | char *kwnames[] = { | |
24368 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24369 | }; | |
24370 | ||
994141e6 | 24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24374 | if (obj1) { |
c32bde28 | 24375 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24376 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24377 | } |
d14a1e28 RD |
24378 | if (obj2) { |
24379 | { | |
24380 | arg3 = &temp3; | |
24381 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24382 | } | |
24383 | } | |
24384 | if (obj3) { | |
24385 | { | |
24386 | arg4 = &temp4; | |
24387 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24388 | } | |
24389 | } | |
994141e6 | 24390 | if (obj4) { |
c32bde28 | 24391 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 24392 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24393 | } |
d14a1e28 | 24394 | if (obj5) { |
15afbcd0 RD |
24395 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24397 | SWIG_fail; | |
d14a1e28 | 24398 | if (arg6 == NULL) { |
15afbcd0 RD |
24399 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24400 | SWIG_fail; | |
d14a1e28 RD |
24401 | } |
24402 | } | |
24403 | if (obj6) { | |
24404 | { | |
24405 | arg7 = wxString_in_helper(obj6); | |
24406 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 24407 | temp7 = true; |
d14a1e28 RD |
24408 | } |
24409 | } | |
24410 | { | |
e3b71cb8 | 24411 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24413 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24416 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24417 | } |
15afbcd0 | 24418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
24419 | { |
24420 | if (temp7) | |
24421 | delete arg7; | |
24422 | } | |
24423 | return resultobj; | |
24424 | fail: | |
24425 | { | |
24426 | if (temp7) | |
24427 | delete arg7; | |
24428 | } | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
c32bde28 | 24433 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24434 | PyObject *resultobj; |
24435 | wxListView *result; | |
24436 | char *kwnames[] = { | |
24437 | NULL | |
24438 | }; | |
24439 | ||
24440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
24441 | { | |
e3b71cb8 | 24442 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24444 | result = (wxListView *)new wxListView(); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24447 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24448 | } |
15afbcd0 | 24449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
24450 | return resultobj; |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
c32bde28 | 24456 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24457 | PyObject *resultobj; |
24458 | wxListView *arg1 = (wxListView *) 0 ; | |
24459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 24460 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24461 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24462 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24463 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24464 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24465 | long arg6 = (long) wxLC_REPORT ; | |
24466 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24467 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
24468 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
24469 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24470 | bool result; | |
24471 | wxPoint temp4 ; | |
24472 | wxSize temp5 ; | |
ae8162c8 | 24473 | bool temp8 = false ; |
d14a1e28 RD |
24474 | PyObject * obj0 = 0 ; |
24475 | PyObject * obj1 = 0 ; | |
994141e6 | 24476 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24477 | PyObject * obj3 = 0 ; |
24478 | PyObject * obj4 = 0 ; | |
994141e6 | 24479 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24480 | PyObject * obj6 = 0 ; |
24481 | PyObject * obj7 = 0 ; | |
24482 | char *kwnames[] = { | |
24483 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24484 | }; | |
24485 | ||
994141e6 | 24486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
24487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24491 | if (obj2) { |
c32bde28 | 24492 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24493 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24494 | } |
d14a1e28 RD |
24495 | if (obj3) { |
24496 | { | |
24497 | arg4 = &temp4; | |
24498 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24499 | } | |
24500 | } | |
24501 | if (obj4) { | |
24502 | { | |
24503 | arg5 = &temp5; | |
24504 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24505 | } | |
24506 | } | |
994141e6 | 24507 | if (obj5) { |
c32bde28 | 24508 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 24509 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24510 | } |
d14a1e28 | 24511 | if (obj6) { |
15afbcd0 RD |
24512 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24514 | SWIG_fail; | |
d14a1e28 | 24515 | if (arg7 == NULL) { |
15afbcd0 RD |
24516 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24517 | SWIG_fail; | |
d14a1e28 RD |
24518 | } |
24519 | } | |
24520 | if (obj7) { | |
24521 | { | |
24522 | arg8 = wxString_in_helper(obj7); | |
24523 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 24524 | temp8 = true; |
d14a1e28 RD |
24525 | } |
24526 | } | |
24527 | { | |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24529 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24530 | ||
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
4f89f6a3 RD |
24534 | { |
24535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24536 | } | |
d14a1e28 RD |
24537 | { |
24538 | if (temp8) | |
24539 | delete arg8; | |
24540 | } | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | { | |
24544 | if (temp8) | |
24545 | delete arg8; | |
24546 | } | |
24547 | return NULL; | |
24548 | } | |
24549 | ||
24550 | ||
c32bde28 | 24551 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24552 | PyObject *resultobj; |
24553 | wxListView *arg1 = (wxListView *) 0 ; | |
24554 | long arg2 ; | |
ae8162c8 | 24555 | bool arg3 = (bool) true ; |
d14a1e28 | 24556 | PyObject * obj0 = 0 ; |
994141e6 | 24557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24558 | PyObject * obj2 = 0 ; |
24559 | char *kwnames[] = { | |
24560 | (char *) "self",(char *) "n",(char *) "on", NULL | |
24561 | }; | |
24562 | ||
15afbcd0 RD |
24563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24566 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24567 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24568 | if (obj2) { |
c32bde28 | 24569 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 24570 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24571 | } |
24572 | { | |
24573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24574 | (arg1)->Select(arg2,arg3); | |
24575 | ||
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | Py_INCREF(Py_None); resultobj = Py_None; | |
24580 | return resultobj; | |
24581 | fail: | |
24582 | return NULL; | |
24583 | } | |
24584 | ||
24585 | ||
c32bde28 | 24586 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24587 | PyObject *resultobj; |
24588 | wxListView *arg1 = (wxListView *) 0 ; | |
24589 | long arg2 ; | |
24590 | PyObject * obj0 = 0 ; | |
994141e6 | 24591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24592 | char *kwnames[] = { |
24593 | (char *) "self",(char *) "index", NULL | |
24594 | }; | |
24595 | ||
994141e6 | 24596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24599 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24601 | { |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | (arg1)->Focus(arg2); | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
24608 | Py_INCREF(Py_None); resultobj = Py_None; | |
24609 | return resultobj; | |
24610 | fail: | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
c32bde28 | 24615 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24616 | PyObject *resultobj; |
24617 | wxListView *arg1 = (wxListView *) 0 ; | |
24618 | long result; | |
24619 | PyObject * obj0 = 0 ; | |
24620 | char *kwnames[] = { | |
24621 | (char *) "self", NULL | |
24622 | }; | |
24623 | ||
24624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24627 | { |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
c32bde28 | 24634 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24635 | return resultobj; |
24636 | fail: | |
24637 | return NULL; | |
24638 | } | |
24639 | ||
24640 | ||
c32bde28 | 24641 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24642 | PyObject *resultobj; |
24643 | wxListView *arg1 = (wxListView *) 0 ; | |
24644 | long arg2 ; | |
24645 | long result; | |
24646 | PyObject * obj0 = 0 ; | |
994141e6 | 24647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24648 | char *kwnames[] = { |
24649 | (char *) "self",(char *) "item", NULL | |
24650 | }; | |
24651 | ||
994141e6 | 24652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24655 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24656 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24657 | { |
24658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24659 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24660 | ||
24661 | wxPyEndAllowThreads(__tstate); | |
24662 | if (PyErr_Occurred()) SWIG_fail; | |
24663 | } | |
c32bde28 | 24664 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24665 | return resultobj; |
24666 | fail: | |
24667 | return NULL; | |
24668 | } | |
24669 | ||
24670 | ||
c32bde28 | 24671 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24672 | PyObject *resultobj; |
24673 | wxListView *arg1 = (wxListView *) 0 ; | |
24674 | long result; | |
24675 | PyObject * obj0 = 0 ; | |
24676 | char *kwnames[] = { | |
24677 | (char *) "self", NULL | |
24678 | }; | |
24679 | ||
24680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24683 | { |
24684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24685 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24686 | ||
24687 | wxPyEndAllowThreads(__tstate); | |
24688 | if (PyErr_Occurred()) SWIG_fail; | |
24689 | } | |
c32bde28 | 24690 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24691 | return resultobj; |
24692 | fail: | |
24693 | return NULL; | |
24694 | } | |
24695 | ||
24696 | ||
c32bde28 | 24697 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24698 | PyObject *resultobj; |
24699 | wxListView *arg1 = (wxListView *) 0 ; | |
24700 | long arg2 ; | |
24701 | bool result; | |
24702 | PyObject * obj0 = 0 ; | |
994141e6 | 24703 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24704 | char *kwnames[] = { |
24705 | (char *) "self",(char *) "index", NULL | |
24706 | }; | |
24707 | ||
994141e6 | 24708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24711 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24713 | { |
24714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24715 | result = (bool)(arg1)->IsSelected(arg2); | |
24716 | ||
24717 | wxPyEndAllowThreads(__tstate); | |
24718 | if (PyErr_Occurred()) SWIG_fail; | |
24719 | } | |
4f89f6a3 RD |
24720 | { |
24721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24722 | } | |
d14a1e28 RD |
24723 | return resultobj; |
24724 | fail: | |
24725 | return NULL; | |
24726 | } | |
24727 | ||
24728 | ||
c32bde28 | 24729 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24730 | PyObject *resultobj; |
24731 | wxListView *arg1 = (wxListView *) 0 ; | |
24732 | int arg2 ; | |
24733 | int arg3 ; | |
24734 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24735 | PyObject * obj1 = 0 ; |
24736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24737 | char *kwnames[] = { |
24738 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24739 | }; | |
24740 | ||
994141e6 | 24741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24744 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24745 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24746 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24747 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24748 | { |
24749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24750 | (arg1)->SetColumnImage(arg2,arg3); | |
24751 | ||
24752 | wxPyEndAllowThreads(__tstate); | |
24753 | if (PyErr_Occurred()) SWIG_fail; | |
24754 | } | |
24755 | Py_INCREF(Py_None); resultobj = Py_None; | |
24756 | return resultobj; | |
24757 | fail: | |
24758 | return NULL; | |
24759 | } | |
24760 | ||
24761 | ||
c32bde28 | 24762 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24763 | PyObject *resultobj; |
24764 | wxListView *arg1 = (wxListView *) 0 ; | |
24765 | int arg2 ; | |
24766 | PyObject * obj0 = 0 ; | |
994141e6 | 24767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24768 | char *kwnames[] = { |
24769 | (char *) "self",(char *) "col", NULL | |
24770 | }; | |
24771 | ||
994141e6 | 24772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24775 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24776 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24777 | { |
24778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24779 | (arg1)->ClearColumnImage(arg2); | |
24780 | ||
24781 | wxPyEndAllowThreads(__tstate); | |
24782 | if (PyErr_Occurred()) SWIG_fail; | |
24783 | } | |
24784 | Py_INCREF(Py_None); resultobj = Py_None; | |
24785 | return resultobj; | |
24786 | fail: | |
24787 | return NULL; | |
24788 | } | |
24789 | ||
24790 | ||
c32bde28 | 24791 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24792 | PyObject *obj; |
24793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24794 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24795 | Py_INCREF(obj); | |
24796 | return Py_BuildValue((char *)""); | |
24797 | } | |
c32bde28 | 24798 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
24799 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
24800 | return 1; | |
24801 | } | |
24802 | ||
24803 | ||
24804 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24805 | PyObject *pyobj; | |
24806 | ||
24807 | { | |
24808 | #if wxUSE_UNICODE | |
24809 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24810 | #else | |
24811 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24812 | #endif | |
24813 | } | |
24814 | return pyobj; | |
24815 | } | |
24816 | ||
24817 | ||
c32bde28 | 24818 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24819 | PyObject *resultobj; |
24820 | wxTreeItemId *result; | |
24821 | char *kwnames[] = { | |
24822 | NULL | |
24823 | }; | |
24824 | ||
24825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24826 | { | |
24827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24828 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24829 | ||
24830 | wxPyEndAllowThreads(__tstate); | |
24831 | if (PyErr_Occurred()) SWIG_fail; | |
24832 | } | |
15afbcd0 | 24833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24834 | return resultobj; |
24835 | fail: | |
24836 | return NULL; | |
24837 | } | |
24838 | ||
24839 | ||
c32bde28 | 24840 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24841 | PyObject *resultobj; |
24842 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24843 | PyObject * obj0 = 0 ; | |
24844 | char *kwnames[] = { | |
24845 | (char *) "self", NULL | |
24846 | }; | |
24847 | ||
24848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24851 | { |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | delete arg1; | |
24854 | ||
24855 | wxPyEndAllowThreads(__tstate); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
24858 | Py_INCREF(Py_None); resultobj = Py_None; | |
24859 | return resultobj; | |
24860 | fail: | |
24861 | return NULL; | |
24862 | } | |
24863 | ||
24864 | ||
c32bde28 | 24865 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24866 | PyObject *resultobj; |
24867 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24868 | bool result; | |
24869 | PyObject * obj0 = 0 ; | |
24870 | char *kwnames[] = { | |
24871 | (char *) "self", NULL | |
24872 | }; | |
24873 | ||
24874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24877 | { |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
4f89f6a3 RD |
24884 | { |
24885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24886 | } | |
d14a1e28 RD |
24887 | return resultobj; |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
c32bde28 | 24893 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24894 | PyObject *resultobj; |
24895 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24896 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24897 | bool result; | |
24898 | PyObject * obj0 = 0 ; | |
24899 | PyObject * obj1 = 0 ; | |
24900 | char *kwnames[] = { | |
24901 | (char *) "self",(char *) "other", NULL | |
24902 | }; | |
24903 | ||
24904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24909 | { |
24910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24911 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24912 | |
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
4f89f6a3 RD |
24916 | { |
24917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24918 | } | |
d14a1e28 RD |
24919 | return resultobj; |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
c32bde28 | 24925 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24926 | PyObject *resultobj; |
24927 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24928 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24929 | bool result; | |
24930 | PyObject * obj0 = 0 ; | |
24931 | PyObject * obj1 = 0 ; | |
24932 | char *kwnames[] = { | |
24933 | (char *) "self",(char *) "other", NULL | |
24934 | }; | |
24935 | ||
24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24941 | { |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24943 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24944 | |
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
4f89f6a3 RD |
24948 | { |
24949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24950 | } | |
d14a1e28 RD |
24951 | return resultobj; |
24952 | fail: | |
24953 | return NULL; | |
24954 | } | |
24955 | ||
24956 | ||
c32bde28 | 24957 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24958 | PyObject *resultobj; |
24959 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24960 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24961 | PyObject * obj0 = 0 ; |
24962 | PyObject * obj1 = 0 ; | |
24963 | char *kwnames[] = { | |
24964 | (char *) "self",(char *) "m_pItem", NULL | |
24965 | }; | |
24966 | ||
24967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24970 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24971 | if (arg1) (arg1)->m_pItem = arg2; |
24972 | ||
24973 | Py_INCREF(Py_None); resultobj = Py_None; | |
24974 | return resultobj; | |
24975 | fail: | |
24976 | return NULL; | |
24977 | } | |
24978 | ||
24979 | ||
c32bde28 | 24980 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24981 | PyObject *resultobj; |
24982 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24983 | void *result; |
d14a1e28 RD |
24984 | PyObject * obj0 = 0 ; |
24985 | char *kwnames[] = { | |
24986 | (char *) "self", NULL | |
24987 | }; | |
24988 | ||
24989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24992 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24993 | |
15afbcd0 | 24994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24995 | return resultobj; |
24996 | fail: | |
24997 | return NULL; | |
24998 | } | |
24999 | ||
25000 | ||
c32bde28 | 25001 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25002 | PyObject *obj; |
25003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25004 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
25005 | Py_INCREF(obj); | |
25006 | return Py_BuildValue((char *)""); | |
25007 | } | |
c32bde28 | 25008 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25009 | PyObject *resultobj; |
25010 | PyObject *arg1 = (PyObject *) NULL ; | |
25011 | wxPyTreeItemData *result; | |
25012 | PyObject * obj0 = 0 ; | |
25013 | char *kwnames[] = { | |
25014 | (char *) "obj", NULL | |
25015 | }; | |
25016 | ||
25017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
25018 | if (obj0) { | |
25019 | arg1 = obj0; | |
25020 | } | |
25021 | { | |
25022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25023 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
25024 | ||
25025 | wxPyEndAllowThreads(__tstate); | |
25026 | if (PyErr_Occurred()) SWIG_fail; | |
25027 | } | |
15afbcd0 | 25028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
25029 | return resultobj; |
25030 | fail: | |
25031 | return NULL; | |
25032 | } | |
25033 | ||
25034 | ||
c32bde28 | 25035 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25036 | PyObject *resultobj; |
25037 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25038 | PyObject *result; | |
25039 | PyObject * obj0 = 0 ; | |
25040 | char *kwnames[] = { | |
25041 | (char *) "self", NULL | |
25042 | }; | |
25043 | ||
25044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
25046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25047 | { |
25048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25049 | result = (PyObject *)(arg1)->GetData(); | |
25050 | ||
25051 | wxPyEndAllowThreads(__tstate); | |
25052 | if (PyErr_Occurred()) SWIG_fail; | |
25053 | } | |
25054 | resultobj = result; | |
25055 | return resultobj; | |
25056 | fail: | |
25057 | return NULL; | |
25058 | } | |
25059 | ||
25060 | ||
c32bde28 | 25061 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25062 | PyObject *resultobj; |
25063 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25064 | PyObject *arg2 = (PyObject *) 0 ; | |
25065 | PyObject * obj0 = 0 ; | |
25066 | PyObject * obj1 = 0 ; | |
25067 | char *kwnames[] = { | |
25068 | (char *) "self",(char *) "obj", NULL | |
25069 | }; | |
25070 | ||
25071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
25073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25074 | arg2 = obj1; |
25075 | { | |
25076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25077 | (arg1)->SetData(arg2); | |
25078 | ||
25079 | wxPyEndAllowThreads(__tstate); | |
25080 | if (PyErr_Occurred()) SWIG_fail; | |
25081 | } | |
25082 | Py_INCREF(Py_None); resultobj = Py_None; | |
25083 | return resultobj; | |
25084 | fail: | |
25085 | return NULL; | |
25086 | } | |
25087 | ||
25088 | ||
c32bde28 | 25089 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25090 | PyObject *resultobj; |
25091 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25092 | wxTreeItemId *result; | |
25093 | PyObject * obj0 = 0 ; | |
25094 | char *kwnames[] = { | |
25095 | (char *) "self", NULL | |
25096 | }; | |
25097 | ||
25098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
25100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25101 | { |
25102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25103 | { | |
25104 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
25105 | result = (wxTreeItemId *) &_result_ref; | |
25106 | } | |
25107 | ||
25108 | wxPyEndAllowThreads(__tstate); | |
25109 | if (PyErr_Occurred()) SWIG_fail; | |
25110 | } | |
15afbcd0 | 25111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
25112 | return resultobj; |
25113 | fail: | |
25114 | return NULL; | |
25115 | } | |
25116 | ||
25117 | ||
c32bde28 | 25118 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25119 | PyObject *resultobj; |
25120 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25121 | wxTreeItemId *arg2 = 0 ; | |
25122 | PyObject * obj0 = 0 ; | |
25123 | PyObject * obj1 = 0 ; | |
25124 | char *kwnames[] = { | |
25125 | (char *) "self",(char *) "id", NULL | |
25126 | }; | |
25127 | ||
25128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
25130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25133 | SWIG_fail; | |
d14a1e28 | 25134 | if (arg2 == NULL) { |
15afbcd0 RD |
25135 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25136 | SWIG_fail; | |
d14a1e28 RD |
25137 | } |
25138 | { | |
25139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25140 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
25141 | ||
25142 | wxPyEndAllowThreads(__tstate); | |
25143 | if (PyErr_Occurred()) SWIG_fail; | |
25144 | } | |
25145 | Py_INCREF(Py_None); resultobj = Py_None; | |
25146 | return resultobj; | |
25147 | fail: | |
25148 | return NULL; | |
25149 | } | |
25150 | ||
25151 | ||
c32bde28 | 25152 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25153 | PyObject *resultobj; |
25154 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
25155 | PyObject * obj0 = 0 ; | |
25156 | char *kwnames[] = { | |
25157 | (char *) "self", NULL | |
25158 | }; | |
25159 | ||
25160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
25162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25163 | { |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | wxPyTreeItemData_Destroy(arg1); | |
25166 | ||
25167 | wxPyEndAllowThreads(__tstate); | |
25168 | if (PyErr_Occurred()) SWIG_fail; | |
25169 | } | |
25170 | Py_INCREF(Py_None); resultobj = Py_None; | |
25171 | return resultobj; | |
25172 | fail: | |
25173 | return NULL; | |
25174 | } | |
25175 | ||
25176 | ||
c32bde28 | 25177 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25178 | PyObject *obj; |
25179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25180 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
25181 | Py_INCREF(obj); | |
25182 | return Py_BuildValue((char *)""); | |
25183 | } | |
c32bde28 | 25184 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25185 | PyObject *resultobj; |
25186 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
25187 | int arg2 = (int) 0 ; | |
25188 | wxTreeEvent *result; | |
994141e6 RD |
25189 | PyObject * obj0 = 0 ; |
25190 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
25191 | char *kwnames[] = { |
25192 | (char *) "commandType",(char *) "id", NULL | |
25193 | }; | |
25194 | ||
994141e6 RD |
25195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
25196 | if (obj0) { | |
c32bde28 | 25197 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 25198 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
25199 | } |
25200 | if (obj1) { | |
c32bde28 | 25201 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25202 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25203 | } |
d14a1e28 RD |
25204 | { |
25205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25206 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
25207 | ||
25208 | wxPyEndAllowThreads(__tstate); | |
25209 | if (PyErr_Occurred()) SWIG_fail; | |
25210 | } | |
15afbcd0 | 25211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
25212 | return resultobj; |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
c32bde28 | 25218 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25219 | PyObject *resultobj; |
25220 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25221 | wxTreeItemId result; | |
25222 | PyObject * obj0 = 0 ; | |
25223 | char *kwnames[] = { | |
25224 | (char *) "self", NULL | |
25225 | }; | |
25226 | ||
25227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25230 | { |
25231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25232 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
25233 | ||
25234 | wxPyEndAllowThreads(__tstate); | |
25235 | if (PyErr_Occurred()) SWIG_fail; | |
25236 | } | |
25237 | { | |
25238 | wxTreeItemId * resultptr; | |
25239 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 25240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25241 | } |
25242 | return resultobj; | |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
c32bde28 | 25248 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25249 | PyObject *resultobj; |
25250 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25251 | wxTreeItemId *arg2 = 0 ; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | PyObject * obj1 = 0 ; | |
25254 | char *kwnames[] = { | |
25255 | (char *) "self",(char *) "item", NULL | |
25256 | }; | |
25257 | ||
25258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25262 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25263 | SWIG_fail; | |
d14a1e28 | 25264 | if (arg2 == NULL) { |
15afbcd0 RD |
25265 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25266 | SWIG_fail; | |
d14a1e28 RD |
25267 | } |
25268 | { | |
25269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25270 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
25271 | ||
25272 | wxPyEndAllowThreads(__tstate); | |
25273 | if (PyErr_Occurred()) SWIG_fail; | |
25274 | } | |
25275 | Py_INCREF(Py_None); resultobj = Py_None; | |
25276 | return resultobj; | |
25277 | fail: | |
25278 | return NULL; | |
25279 | } | |
25280 | ||
25281 | ||
c32bde28 | 25282 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25283 | PyObject *resultobj; |
25284 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25285 | wxTreeItemId result; | |
25286 | PyObject * obj0 = 0 ; | |
25287 | char *kwnames[] = { | |
25288 | (char *) "self", NULL | |
25289 | }; | |
25290 | ||
25291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25294 | { |
25295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25296 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
25297 | ||
25298 | wxPyEndAllowThreads(__tstate); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
25300 | } | |
25301 | { | |
25302 | wxTreeItemId * resultptr; | |
25303 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 25304 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25305 | } |
25306 | return resultobj; | |
25307 | fail: | |
25308 | return NULL; | |
25309 | } | |
25310 | ||
25311 | ||
c32bde28 | 25312 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25313 | PyObject *resultobj; |
25314 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25315 | wxTreeItemId *arg2 = 0 ; | |
25316 | PyObject * obj0 = 0 ; | |
25317 | PyObject * obj1 = 0 ; | |
25318 | char *kwnames[] = { | |
25319 | (char *) "self",(char *) "item", NULL | |
25320 | }; | |
25321 | ||
25322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25327 | SWIG_fail; | |
d14a1e28 | 25328 | if (arg2 == NULL) { |
15afbcd0 RD |
25329 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25330 | SWIG_fail; | |
d14a1e28 RD |
25331 | } |
25332 | { | |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
25335 | ||
25336 | wxPyEndAllowThreads(__tstate); | |
25337 | if (PyErr_Occurred()) SWIG_fail; | |
25338 | } | |
25339 | Py_INCREF(Py_None); resultobj = Py_None; | |
25340 | return resultobj; | |
25341 | fail: | |
25342 | return NULL; | |
25343 | } | |
25344 | ||
25345 | ||
c32bde28 | 25346 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25347 | PyObject *resultobj; |
25348 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25349 | wxPoint result; | |
25350 | PyObject * obj0 = 0 ; | |
25351 | char *kwnames[] = { | |
25352 | (char *) "self", NULL | |
25353 | }; | |
25354 | ||
25355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25358 | { |
25359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25360 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
25361 | ||
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
25365 | { | |
25366 | wxPoint * resultptr; | |
25367 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25369 | } |
25370 | return resultobj; | |
25371 | fail: | |
25372 | return NULL; | |
25373 | } | |
25374 | ||
25375 | ||
c32bde28 | 25376 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25377 | PyObject *resultobj; |
25378 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25379 | wxPoint *arg2 = 0 ; | |
25380 | wxPoint temp2 ; | |
25381 | PyObject * obj0 = 0 ; | |
25382 | PyObject * obj1 = 0 ; | |
25383 | char *kwnames[] = { | |
25384 | (char *) "self",(char *) "pt", NULL | |
25385 | }; | |
25386 | ||
25387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25390 | { |
25391 | arg2 = &temp2; | |
25392 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25393 | } | |
25394 | { | |
25395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25396 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
25397 | ||
25398 | wxPyEndAllowThreads(__tstate); | |
25399 | if (PyErr_Occurred()) SWIG_fail; | |
25400 | } | |
25401 | Py_INCREF(Py_None); resultobj = Py_None; | |
25402 | return resultobj; | |
25403 | fail: | |
25404 | return NULL; | |
25405 | } | |
25406 | ||
25407 | ||
c32bde28 | 25408 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25409 | PyObject *resultobj; |
25410 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25411 | wxKeyEvent *result; | |
25412 | PyObject * obj0 = 0 ; | |
25413 | char *kwnames[] = { | |
25414 | (char *) "self", NULL | |
25415 | }; | |
25416 | ||
25417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25420 | { |
25421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25422 | { | |
25423 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
25424 | result = (wxKeyEvent *) &_result_ref; | |
25425 | } | |
25426 | ||
25427 | wxPyEndAllowThreads(__tstate); | |
25428 | if (PyErr_Occurred()) SWIG_fail; | |
25429 | } | |
15afbcd0 | 25430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
25431 | return resultobj; |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
c32bde28 | 25437 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25438 | PyObject *resultobj; |
25439 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25440 | int result; | |
25441 | PyObject * obj0 = 0 ; | |
25442 | char *kwnames[] = { | |
25443 | (char *) "self", NULL | |
25444 | }; | |
25445 | ||
25446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25449 | { |
25450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25451 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
25452 | ||
25453 | wxPyEndAllowThreads(__tstate); | |
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
c32bde28 | 25456 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
25457 | return resultobj; |
25458 | fail: | |
25459 | return NULL; | |
25460 | } | |
25461 | ||
25462 | ||
c32bde28 | 25463 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25464 | PyObject *resultobj; |
25465 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25466 | wxKeyEvent *arg2 = 0 ; | |
25467 | PyObject * obj0 = 0 ; | |
25468 | PyObject * obj1 = 0 ; | |
25469 | char *kwnames[] = { | |
25470 | (char *) "self",(char *) "evt", NULL | |
25471 | }; | |
25472 | ||
25473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
25477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25478 | SWIG_fail; | |
d14a1e28 | 25479 | if (arg2 == NULL) { |
15afbcd0 RD |
25480 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25481 | SWIG_fail; | |
d14a1e28 RD |
25482 | } |
25483 | { | |
25484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25485 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
25486 | ||
25487 | wxPyEndAllowThreads(__tstate); | |
25488 | if (PyErr_Occurred()) SWIG_fail; | |
25489 | } | |
25490 | Py_INCREF(Py_None); resultobj = Py_None; | |
25491 | return resultobj; | |
25492 | fail: | |
25493 | return NULL; | |
25494 | } | |
25495 | ||
25496 | ||
c32bde28 | 25497 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25498 | PyObject *resultobj; |
25499 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25500 | wxString *result; | |
25501 | PyObject * obj0 = 0 ; | |
25502 | char *kwnames[] = { | |
25503 | (char *) "self", NULL | |
25504 | }; | |
25505 | ||
25506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25509 | { |
25510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25511 | { | |
25512 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
25513 | result = (wxString *) &_result_ref; | |
25514 | } | |
25515 | ||
25516 | wxPyEndAllowThreads(__tstate); | |
25517 | if (PyErr_Occurred()) SWIG_fail; | |
25518 | } | |
cc6dd355 RD |
25519 | { |
25520 | #if wxUSE_UNICODE | |
25521 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25522 | #else | |
25523 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25524 | #endif | |
25525 | } | |
d14a1e28 RD |
25526 | return resultobj; |
25527 | fail: | |
25528 | return NULL; | |
25529 | } | |
25530 | ||
25531 | ||
c32bde28 | 25532 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25533 | PyObject *resultobj; |
25534 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25535 | wxString *arg2 = 0 ; | |
ae8162c8 | 25536 | bool temp2 = false ; |
d14a1e28 RD |
25537 | PyObject * obj0 = 0 ; |
25538 | PyObject * obj1 = 0 ; | |
25539 | char *kwnames[] = { | |
25540 | (char *) "self",(char *) "label", NULL | |
25541 | }; | |
25542 | ||
25543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25546 | { |
25547 | arg2 = wxString_in_helper(obj1); | |
25548 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25549 | temp2 = true; |
d14a1e28 RD |
25550 | } |
25551 | { | |
25552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25553 | (arg1)->SetLabel((wxString const &)*arg2); | |
25554 | ||
25555 | wxPyEndAllowThreads(__tstate); | |
25556 | if (PyErr_Occurred()) SWIG_fail; | |
25557 | } | |
25558 | Py_INCREF(Py_None); resultobj = Py_None; | |
25559 | { | |
25560 | if (temp2) | |
25561 | delete arg2; | |
25562 | } | |
25563 | return resultobj; | |
25564 | fail: | |
25565 | { | |
25566 | if (temp2) | |
25567 | delete arg2; | |
25568 | } | |
25569 | return NULL; | |
25570 | } | |
25571 | ||
25572 | ||
c32bde28 | 25573 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25574 | PyObject *resultobj; |
25575 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25576 | bool result; | |
25577 | PyObject * obj0 = 0 ; | |
25578 | char *kwnames[] = { | |
25579 | (char *) "self", NULL | |
25580 | }; | |
25581 | ||
25582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25585 | { |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
4f89f6a3 RD |
25592 | { |
25593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25594 | } | |
d14a1e28 RD |
25595 | return resultobj; |
25596 | fail: | |
25597 | return NULL; | |
25598 | } | |
25599 | ||
25600 | ||
c32bde28 | 25601 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25602 | PyObject *resultobj; |
25603 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25604 | bool arg2 ; | |
25605 | PyObject * obj0 = 0 ; | |
25606 | PyObject * obj1 = 0 ; | |
25607 | char *kwnames[] = { | |
25608 | (char *) "self",(char *) "editCancelled", NULL | |
25609 | }; | |
25610 | ||
25611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25614 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 25615 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25616 | { |
25617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25618 | (arg1)->SetEditCanceled(arg2); | |
25619 | ||
25620 | wxPyEndAllowThreads(__tstate); | |
25621 | if (PyErr_Occurred()) SWIG_fail; | |
25622 | } | |
25623 | Py_INCREF(Py_None); resultobj = Py_None; | |
25624 | return resultobj; | |
25625 | fail: | |
25626 | return NULL; | |
25627 | } | |
25628 | ||
25629 | ||
c32bde28 | 25630 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
25631 | PyObject *resultobj; |
25632 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25633 | wxString *arg2 = 0 ; | |
ae8162c8 | 25634 | bool temp2 = false ; |
c9c7117a RD |
25635 | PyObject * obj0 = 0 ; |
25636 | PyObject * obj1 = 0 ; | |
25637 | char *kwnames[] = { | |
25638 | (char *) "self",(char *) "toolTip", NULL | |
25639 | }; | |
25640 | ||
25641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
25644 | { |
25645 | arg2 = wxString_in_helper(obj1); | |
25646 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25647 | temp2 = true; |
c9c7117a RD |
25648 | } |
25649 | { | |
25650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25651 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25652 | ||
25653 | wxPyEndAllowThreads(__tstate); | |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
25655 | } | |
25656 | Py_INCREF(Py_None); resultobj = Py_None; | |
25657 | { | |
25658 | if (temp2) | |
25659 | delete arg2; | |
25660 | } | |
25661 | return resultobj; | |
25662 | fail: | |
25663 | { | |
25664 | if (temp2) | |
25665 | delete arg2; | |
25666 | } | |
25667 | return NULL; | |
25668 | } | |
25669 | ||
25670 | ||
c32bde28 | 25671 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25672 | PyObject *obj; |
25673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25674 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25675 | Py_INCREF(obj); | |
25676 | return Py_BuildValue((char *)""); | |
25677 | } | |
c32bde28 | 25678 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25679 | PyObject *resultobj; |
25680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25681 | int arg2 = (int) -1 ; |
d14a1e28 RD |
25682 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25683 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25684 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25685 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25686 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25687 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25688 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 25689 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25690 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
25691 | wxPyTreeCtrl *result; | |
25692 | wxPoint temp3 ; | |
25693 | wxSize temp4 ; | |
ae8162c8 | 25694 | bool temp7 = false ; |
d14a1e28 | 25695 | PyObject * obj0 = 0 ; |
994141e6 | 25696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25697 | PyObject * obj2 = 0 ; |
25698 | PyObject * obj3 = 0 ; | |
994141e6 | 25699 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
25700 | PyObject * obj5 = 0 ; |
25701 | PyObject * obj6 = 0 ; | |
25702 | char *kwnames[] = { | |
25703 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25704 | }; | |
25705 | ||
994141e6 | 25706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
25707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25709 | if (obj1) { |
c32bde28 | 25710 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25711 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25712 | } |
d14a1e28 RD |
25713 | if (obj2) { |
25714 | { | |
25715 | arg3 = &temp3; | |
25716 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25717 | } | |
25718 | } | |
25719 | if (obj3) { | |
25720 | { | |
994141e6 RD |
25721 | arg4 = &temp4; |
25722 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25723 | } | |
25724 | } | |
25725 | if (obj4) { | |
c32bde28 | 25726 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 25727 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25728 | } |
25729 | if (obj5) { | |
15afbcd0 RD |
25730 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
25731 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25732 | SWIG_fail; | |
d14a1e28 | 25733 | if (arg6 == NULL) { |
15afbcd0 RD |
25734 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25735 | SWIG_fail; | |
d14a1e28 RD |
25736 | } |
25737 | } | |
25738 | if (obj6) { | |
25739 | { | |
25740 | arg7 = wxString_in_helper(obj6); | |
25741 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25742 | temp7 = true; |
d14a1e28 RD |
25743 | } |
25744 | } | |
25745 | { | |
e3b71cb8 | 25746 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25748 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25749 | ||
25750 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25751 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25752 | } |
b0f7404b | 25753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25754 | { |
25755 | if (temp7) | |
25756 | delete arg7; | |
25757 | } | |
25758 | return resultobj; | |
25759 | fail: | |
25760 | { | |
25761 | if (temp7) | |
25762 | delete arg7; | |
25763 | } | |
25764 | return NULL; | |
25765 | } | |
25766 | ||
25767 | ||
c32bde28 | 25768 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25769 | PyObject *resultobj; |
25770 | wxPyTreeCtrl *result; | |
25771 | char *kwnames[] = { | |
25772 | NULL | |
25773 | }; | |
25774 | ||
25775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25776 | { | |
e3b71cb8 | 25777 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25779 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25780 | ||
25781 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25782 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25783 | } |
b0f7404b | 25784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25785 | return resultobj; |
25786 | fail: | |
25787 | return NULL; | |
25788 | } | |
25789 | ||
25790 | ||
c32bde28 | 25791 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25792 | PyObject *resultobj; |
25793 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25795 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25796 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25797 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25798 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25799 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25800 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25801 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25802 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 25803 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25804 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
25805 | bool result; | |
25806 | wxPoint temp4 ; | |
25807 | wxSize temp5 ; | |
ae8162c8 | 25808 | bool temp8 = false ; |
d14a1e28 RD |
25809 | PyObject * obj0 = 0 ; |
25810 | PyObject * obj1 = 0 ; | |
994141e6 | 25811 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25812 | PyObject * obj3 = 0 ; |
25813 | PyObject * obj4 = 0 ; | |
994141e6 | 25814 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25815 | PyObject * obj6 = 0 ; |
25816 | PyObject * obj7 = 0 ; | |
25817 | char *kwnames[] = { | |
25818 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25819 | }; | |
25820 | ||
994141e6 | 25821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
25822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25826 | if (obj2) { |
c32bde28 | 25827 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25828 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25829 | } |
d14a1e28 RD |
25830 | if (obj3) { |
25831 | { | |
25832 | arg4 = &temp4; | |
25833 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25834 | } | |
25835 | } | |
25836 | if (obj4) { | |
25837 | { | |
25838 | arg5 = &temp5; | |
25839 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25840 | } | |
25841 | } | |
994141e6 | 25842 | if (obj5) { |
c32bde28 | 25843 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 25844 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25845 | } |
d14a1e28 | 25846 | if (obj6) { |
15afbcd0 RD |
25847 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
25848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25849 | SWIG_fail; | |
d14a1e28 | 25850 | if (arg7 == NULL) { |
15afbcd0 RD |
25851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25852 | SWIG_fail; | |
d14a1e28 RD |
25853 | } |
25854 | } | |
25855 | if (obj7) { | |
25856 | { | |
25857 | arg8 = wxString_in_helper(obj7); | |
25858 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 25859 | temp8 = true; |
d14a1e28 RD |
25860 | } |
25861 | } | |
25862 | { | |
25863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25864 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25865 | ||
25866 | wxPyEndAllowThreads(__tstate); | |
25867 | if (PyErr_Occurred()) SWIG_fail; | |
25868 | } | |
4f89f6a3 RD |
25869 | { |
25870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25871 | } | |
d14a1e28 RD |
25872 | { |
25873 | if (temp8) | |
25874 | delete arg8; | |
25875 | } | |
25876 | return resultobj; | |
25877 | fail: | |
25878 | { | |
25879 | if (temp8) | |
25880 | delete arg8; | |
25881 | } | |
25882 | return NULL; | |
25883 | } | |
25884 | ||
25885 | ||
c32bde28 | 25886 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25887 | PyObject *resultobj; |
25888 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25889 | PyObject *arg2 = (PyObject *) 0 ; | |
25890 | PyObject *arg3 = (PyObject *) 0 ; | |
25891 | PyObject * obj0 = 0 ; | |
25892 | PyObject * obj1 = 0 ; | |
25893 | PyObject * obj2 = 0 ; | |
25894 | char *kwnames[] = { | |
25895 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25896 | }; | |
25897 | ||
25898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25901 | arg2 = obj1; |
25902 | arg3 = obj2; | |
25903 | { | |
25904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25905 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25906 | ||
25907 | wxPyEndAllowThreads(__tstate); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
25909 | } | |
25910 | Py_INCREF(Py_None); resultobj = Py_None; | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
c32bde28 | 25917 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25918 | PyObject *resultobj; |
25919 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25920 | size_t result; | |
25921 | PyObject * obj0 = 0 ; | |
25922 | char *kwnames[] = { | |
25923 | (char *) "self", NULL | |
25924 | }; | |
25925 | ||
25926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25929 | { |
25930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25931 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25932 | ||
25933 | wxPyEndAllowThreads(__tstate); | |
25934 | if (PyErr_Occurred()) SWIG_fail; | |
25935 | } | |
c32bde28 | 25936 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
25937 | return resultobj; |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
c32bde28 | 25943 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25944 | PyObject *resultobj; |
25945 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25946 | unsigned int result; | |
25947 | PyObject * obj0 = 0 ; | |
25948 | char *kwnames[] = { | |
25949 | (char *) "self", NULL | |
25950 | }; | |
25951 | ||
25952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25955 | { |
25956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25957 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25958 | ||
25959 | wxPyEndAllowThreads(__tstate); | |
25960 | if (PyErr_Occurred()) SWIG_fail; | |
25961 | } | |
c32bde28 | 25962 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
25963 | return resultobj; |
25964 | fail: | |
25965 | return NULL; | |
25966 | } | |
25967 | ||
25968 | ||
c32bde28 | 25969 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25970 | PyObject *resultobj; |
25971 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25972 | unsigned int arg2 ; | |
25973 | PyObject * obj0 = 0 ; | |
25974 | PyObject * obj1 = 0 ; | |
25975 | char *kwnames[] = { | |
25976 | (char *) "self",(char *) "indent", NULL | |
25977 | }; | |
25978 | ||
25979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25982 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 25983 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25984 | { |
25985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25986 | (arg1)->SetIndent(arg2); | |
25987 | ||
25988 | wxPyEndAllowThreads(__tstate); | |
25989 | if (PyErr_Occurred()) SWIG_fail; | |
25990 | } | |
25991 | Py_INCREF(Py_None); resultobj = Py_None; | |
25992 | return resultobj; | |
25993 | fail: | |
25994 | return NULL; | |
25995 | } | |
25996 | ||
25997 | ||
c32bde28 | 25998 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25999 | PyObject *resultobj; |
26000 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26001 | unsigned int result; | |
26002 | PyObject * obj0 = 0 ; | |
26003 | char *kwnames[] = { | |
26004 | (char *) "self", NULL | |
26005 | }; | |
26006 | ||
26007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26010 | { |
26011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26012 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
26013 | ||
26014 | wxPyEndAllowThreads(__tstate); | |
26015 | if (PyErr_Occurred()) SWIG_fail; | |
26016 | } | |
c32bde28 | 26017 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
26018 | return resultobj; |
26019 | fail: | |
26020 | return NULL; | |
26021 | } | |
26022 | ||
26023 | ||
c32bde28 | 26024 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26025 | PyObject *resultobj; |
26026 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26027 | unsigned int arg2 ; | |
26028 | PyObject * obj0 = 0 ; | |
26029 | PyObject * obj1 = 0 ; | |
26030 | char *kwnames[] = { | |
26031 | (char *) "self",(char *) "spacing", NULL | |
26032 | }; | |
26033 | ||
26034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",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; | |
c32bde28 | 26037 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 26038 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26039 | { |
26040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26041 | (arg1)->SetSpacing(arg2); | |
26042 | ||
26043 | wxPyEndAllowThreads(__tstate); | |
26044 | if (PyErr_Occurred()) SWIG_fail; | |
26045 | } | |
26046 | Py_INCREF(Py_None); resultobj = Py_None; | |
26047 | return resultobj; | |
26048 | fail: | |
26049 | return NULL; | |
26050 | } | |
26051 | ||
26052 | ||
c32bde28 | 26053 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26054 | PyObject *resultobj; |
26055 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26056 | wxImageList *result; | |
26057 | PyObject * obj0 = 0 ; | |
26058 | char *kwnames[] = { | |
26059 | (char *) "self", NULL | |
26060 | }; | |
26061 | ||
26062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26065 | { |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
26068 | ||
26069 | wxPyEndAllowThreads(__tstate); | |
26070 | if (PyErr_Occurred()) SWIG_fail; | |
26071 | } | |
26072 | { | |
412d302d | 26073 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26074 | } |
26075 | return resultobj; | |
26076 | fail: | |
26077 | return NULL; | |
26078 | } | |
26079 | ||
26080 | ||
c32bde28 | 26081 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26082 | PyObject *resultobj; |
26083 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26084 | wxImageList *result; | |
26085 | PyObject * obj0 = 0 ; | |
26086 | char *kwnames[] = { | |
26087 | (char *) "self", NULL | |
26088 | }; | |
26089 | ||
26090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26093 | { |
26094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26095 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
26096 | ||
26097 | wxPyEndAllowThreads(__tstate); | |
26098 | if (PyErr_Occurred()) SWIG_fail; | |
26099 | } | |
26100 | { | |
412d302d | 26101 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26102 | } |
26103 | return resultobj; | |
26104 | fail: | |
26105 | return NULL; | |
26106 | } | |
26107 | ||
26108 | ||
c32bde28 | 26109 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26110 | PyObject *resultobj; |
26111 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26112 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26113 | PyObject * obj0 = 0 ; | |
26114 | PyObject * obj1 = 0 ; | |
26115 | char *kwnames[] = { | |
26116 | (char *) "self",(char *) "imageList", NULL | |
26117 | }; | |
26118 | ||
26119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26124 | { |
26125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26126 | (arg1)->SetImageList(arg2); | |
26127 | ||
26128 | wxPyEndAllowThreads(__tstate); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
26131 | Py_INCREF(Py_None); resultobj = Py_None; | |
26132 | return resultobj; | |
26133 | fail: | |
26134 | return NULL; | |
26135 | } | |
26136 | ||
26137 | ||
c32bde28 | 26138 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26139 | PyObject *resultobj; |
26140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26141 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26142 | PyObject * obj0 = 0 ; | |
26143 | PyObject * obj1 = 0 ; | |
26144 | char *kwnames[] = { | |
26145 | (char *) "self",(char *) "imageList", NULL | |
26146 | }; | |
26147 | ||
26148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26153 | { |
26154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26155 | (arg1)->SetStateImageList(arg2); | |
26156 | ||
26157 | wxPyEndAllowThreads(__tstate); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
26160 | Py_INCREF(Py_None); resultobj = Py_None; | |
26161 | return resultobj; | |
26162 | fail: | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
c32bde28 | 26167 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26168 | PyObject *resultobj; |
26169 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26170 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26171 | PyObject * obj0 = 0 ; | |
26172 | PyObject * obj1 = 0 ; | |
26173 | char *kwnames[] = { | |
26174 | (char *) "self",(char *) "imageList", NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26181 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26182 | { |
26183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26184 | (arg1)->AssignImageList(arg2); | |
26185 | ||
26186 | wxPyEndAllowThreads(__tstate); | |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
26188 | } | |
26189 | Py_INCREF(Py_None); resultobj = Py_None; | |
26190 | return resultobj; | |
26191 | fail: | |
26192 | return NULL; | |
26193 | } | |
26194 | ||
26195 | ||
c32bde28 | 26196 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26197 | PyObject *resultobj; |
26198 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26199 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26200 | PyObject * obj0 = 0 ; | |
26201 | PyObject * obj1 = 0 ; | |
26202 | char *kwnames[] = { | |
26203 | (char *) "self",(char *) "imageList", NULL | |
26204 | }; | |
26205 | ||
26206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
26210 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26211 | { |
26212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26213 | (arg1)->AssignStateImageList(arg2); | |
26214 | ||
26215 | wxPyEndAllowThreads(__tstate); | |
26216 | if (PyErr_Occurred()) SWIG_fail; | |
26217 | } | |
26218 | Py_INCREF(Py_None); resultobj = Py_None; | |
26219 | return resultobj; | |
26220 | fail: | |
26221 | return NULL; | |
26222 | } | |
26223 | ||
26224 | ||
c32bde28 | 26225 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26226 | PyObject *resultobj; |
26227 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26228 | wxTreeItemId *arg2 = 0 ; | |
26229 | wxString result; | |
26230 | PyObject * obj0 = 0 ; | |
26231 | PyObject * obj1 = 0 ; | |
26232 | char *kwnames[] = { | |
26233 | (char *) "self",(char *) "item", NULL | |
26234 | }; | |
26235 | ||
26236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26241 | SWIG_fail; | |
d14a1e28 | 26242 | if (arg2 == NULL) { |
15afbcd0 RD |
26243 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26244 | SWIG_fail; | |
d14a1e28 RD |
26245 | } |
26246 | { | |
26247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26248 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
26249 | ||
26250 | wxPyEndAllowThreads(__tstate); | |
26251 | if (PyErr_Occurred()) SWIG_fail; | |
26252 | } | |
26253 | { | |
26254 | #if wxUSE_UNICODE | |
26255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26256 | #else | |
26257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26258 | #endif | |
26259 | } | |
26260 | return resultobj; | |
26261 | fail: | |
26262 | return NULL; | |
26263 | } | |
26264 | ||
26265 | ||
c32bde28 | 26266 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26267 | PyObject *resultobj; |
26268 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26269 | wxTreeItemId *arg2 = 0 ; | |
26270 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
26271 | int result; | |
26272 | PyObject * obj0 = 0 ; | |
26273 | PyObject * obj1 = 0 ; | |
994141e6 | 26274 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26275 | char *kwnames[] = { |
26276 | (char *) "self",(char *) "item",(char *) "which", NULL | |
26277 | }; | |
26278 | ||
994141e6 | 26279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26283 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26284 | SWIG_fail; | |
d14a1e28 | 26285 | if (arg2 == NULL) { |
15afbcd0 RD |
26286 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26287 | SWIG_fail; | |
d14a1e28 | 26288 | } |
994141e6 | 26289 | if (obj2) { |
c32bde28 | 26290 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26291 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26292 | } |
d14a1e28 RD |
26293 | { |
26294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26295 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
26296 | ||
26297 | wxPyEndAllowThreads(__tstate); | |
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | } | |
c32bde28 | 26300 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
26301 | return resultobj; |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
c32bde28 | 26307 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26308 | PyObject *resultobj; |
26309 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26310 | wxTreeItemId *arg2 = 0 ; | |
26311 | wxPyTreeItemData *result; | |
26312 | PyObject * obj0 = 0 ; | |
26313 | PyObject * obj1 = 0 ; | |
26314 | char *kwnames[] = { | |
26315 | (char *) "self",(char *) "item", NULL | |
26316 | }; | |
26317 | ||
26318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26323 | SWIG_fail; | |
d14a1e28 | 26324 | if (arg2 == NULL) { |
15afbcd0 RD |
26325 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26326 | SWIG_fail; | |
d14a1e28 RD |
26327 | } |
26328 | { | |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
26331 | ||
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
15afbcd0 | 26335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
26336 | return resultobj; |
26337 | fail: | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
c32bde28 | 26342 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26343 | PyObject *resultobj; |
26344 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26345 | wxTreeItemId *arg2 = 0 ; | |
26346 | PyObject *result; | |
26347 | PyObject * obj0 = 0 ; | |
26348 | PyObject * obj1 = 0 ; | |
26349 | char *kwnames[] = { | |
26350 | (char *) "self",(char *) "item", NULL | |
26351 | }; | |
26352 | ||
26353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26356 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26357 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26358 | SWIG_fail; | |
d14a1e28 | 26359 | if (arg2 == NULL) { |
15afbcd0 RD |
26360 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26361 | SWIG_fail; | |
d14a1e28 RD |
26362 | } |
26363 | { | |
26364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26365 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
26366 | ||
26367 | wxPyEndAllowThreads(__tstate); | |
26368 | if (PyErr_Occurred()) SWIG_fail; | |
26369 | } | |
26370 | resultobj = result; | |
26371 | return resultobj; | |
26372 | fail: | |
26373 | return NULL; | |
26374 | } | |
26375 | ||
26376 | ||
c32bde28 | 26377 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26378 | PyObject *resultobj; |
26379 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26380 | wxTreeItemId *arg2 = 0 ; | |
26381 | wxColour result; | |
26382 | PyObject * obj0 = 0 ; | |
26383 | PyObject * obj1 = 0 ; | |
26384 | char *kwnames[] = { | |
26385 | (char *) "self",(char *) "item", NULL | |
26386 | }; | |
26387 | ||
26388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26393 | SWIG_fail; | |
d14a1e28 | 26394 | if (arg2 == NULL) { |
15afbcd0 RD |
26395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26396 | SWIG_fail; | |
d14a1e28 RD |
26397 | } |
26398 | { | |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
26401 | ||
26402 | wxPyEndAllowThreads(__tstate); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | } | |
26405 | { | |
26406 | wxColour * resultptr; | |
26407 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26409 | } |
26410 | return resultobj; | |
26411 | fail: | |
26412 | return NULL; | |
26413 | } | |
26414 | ||
26415 | ||
c32bde28 | 26416 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26417 | PyObject *resultobj; |
26418 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26419 | wxTreeItemId *arg2 = 0 ; | |
26420 | wxColour result; | |
26421 | PyObject * obj0 = 0 ; | |
26422 | PyObject * obj1 = 0 ; | |
26423 | char *kwnames[] = { | |
26424 | (char *) "self",(char *) "item", NULL | |
26425 | }; | |
26426 | ||
26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26431 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26432 | SWIG_fail; | |
d14a1e28 | 26433 | if (arg2 == NULL) { |
15afbcd0 RD |
26434 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26435 | SWIG_fail; | |
d14a1e28 RD |
26436 | } |
26437 | { | |
26438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26439 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
26440 | ||
26441 | wxPyEndAllowThreads(__tstate); | |
26442 | if (PyErr_Occurred()) SWIG_fail; | |
26443 | } | |
26444 | { | |
26445 | wxColour * resultptr; | |
26446 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26448 | } |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
c32bde28 | 26455 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26456 | PyObject *resultobj; |
26457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26458 | wxTreeItemId *arg2 = 0 ; | |
26459 | wxFont result; | |
26460 | PyObject * obj0 = 0 ; | |
26461 | PyObject * obj1 = 0 ; | |
26462 | char *kwnames[] = { | |
26463 | (char *) "self",(char *) "item", NULL | |
26464 | }; | |
26465 | ||
26466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26471 | SWIG_fail; | |
d14a1e28 | 26472 | if (arg2 == NULL) { |
15afbcd0 RD |
26473 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26474 | SWIG_fail; | |
d14a1e28 RD |
26475 | } |
26476 | { | |
26477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26478 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
26479 | ||
26480 | wxPyEndAllowThreads(__tstate); | |
26481 | if (PyErr_Occurred()) SWIG_fail; | |
26482 | } | |
26483 | { | |
26484 | wxFont * resultptr; | |
26485 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 26486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
26487 | } |
26488 | return resultobj; | |
26489 | fail: | |
26490 | return NULL; | |
26491 | } | |
26492 | ||
26493 | ||
c32bde28 | 26494 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26495 | PyObject *resultobj; |
26496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26497 | wxTreeItemId *arg2 = 0 ; | |
26498 | wxString *arg3 = 0 ; | |
ae8162c8 | 26499 | bool temp3 = false ; |
d14a1e28 RD |
26500 | PyObject * obj0 = 0 ; |
26501 | PyObject * obj1 = 0 ; | |
26502 | PyObject * obj2 = 0 ; | |
26503 | char *kwnames[] = { | |
26504 | (char *) "self",(char *) "item",(char *) "text", NULL | |
26505 | }; | |
26506 | ||
26507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26511 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26512 | SWIG_fail; | |
d14a1e28 | 26513 | if (arg2 == NULL) { |
15afbcd0 RD |
26514 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26515 | SWIG_fail; | |
d14a1e28 RD |
26516 | } |
26517 | { | |
26518 | arg3 = wxString_in_helper(obj2); | |
26519 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26520 | temp3 = true; |
d14a1e28 RD |
26521 | } |
26522 | { | |
26523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26524 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
26525 | ||
26526 | wxPyEndAllowThreads(__tstate); | |
26527 | if (PyErr_Occurred()) SWIG_fail; | |
26528 | } | |
26529 | Py_INCREF(Py_None); resultobj = Py_None; | |
26530 | { | |
26531 | if (temp3) | |
26532 | delete arg3; | |
26533 | } | |
26534 | return resultobj; | |
26535 | fail: | |
26536 | { | |
26537 | if (temp3) | |
26538 | delete arg3; | |
26539 | } | |
26540 | return NULL; | |
26541 | } | |
26542 | ||
26543 | ||
c32bde28 | 26544 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26545 | PyObject *resultobj; |
26546 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26547 | wxTreeItemId *arg2 = 0 ; | |
26548 | int arg3 ; | |
26549 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
26550 | PyObject * obj0 = 0 ; | |
26551 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26552 | PyObject * obj2 = 0 ; |
26553 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26554 | char *kwnames[] = { |
26555 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
26556 | }; | |
26557 | ||
994141e6 | 26558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26563 | SWIG_fail; | |
d14a1e28 | 26564 | if (arg2 == NULL) { |
15afbcd0 RD |
26565 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26566 | SWIG_fail; | |
994141e6 | 26567 | } |
c32bde28 | 26568 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26569 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26570 | if (obj3) { |
c32bde28 | 26571 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 26572 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26573 | } |
d14a1e28 RD |
26574 | { |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | Py_INCREF(Py_None); resultobj = Py_None; | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
c32bde28 | 26588 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26589 | PyObject *resultobj; |
26590 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26591 | wxTreeItemId *arg2 = 0 ; | |
26592 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
26593 | PyObject * obj0 = 0 ; | |
26594 | PyObject * obj1 = 0 ; | |
26595 | PyObject * obj2 = 0 ; | |
26596 | char *kwnames[] = { | |
26597 | (char *) "self",(char *) "item",(char *) "data", NULL | |
26598 | }; | |
26599 | ||
26600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26603 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26604 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26605 | SWIG_fail; | |
d14a1e28 | 26606 | if (arg2 == NULL) { |
15afbcd0 RD |
26607 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26608 | SWIG_fail; | |
d14a1e28 | 26609 | } |
15afbcd0 RD |
26610 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
26611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26612 | { |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
26619 | Py_INCREF(Py_None); resultobj = Py_None; | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
c32bde28 | 26626 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26627 | PyObject *resultobj; |
26628 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26629 | wxTreeItemId *arg2 = 0 ; | |
26630 | PyObject *arg3 = (PyObject *) 0 ; | |
26631 | PyObject * obj0 = 0 ; | |
26632 | PyObject * obj1 = 0 ; | |
26633 | PyObject * obj2 = 0 ; | |
26634 | char *kwnames[] = { | |
26635 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
26636 | }; | |
26637 | ||
26638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26643 | SWIG_fail; | |
d14a1e28 | 26644 | if (arg2 == NULL) { |
15afbcd0 RD |
26645 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26646 | SWIG_fail; | |
d14a1e28 RD |
26647 | } |
26648 | arg3 = obj2; | |
26649 | { | |
26650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26651 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26652 | ||
26653 | wxPyEndAllowThreads(__tstate); | |
26654 | if (PyErr_Occurred()) SWIG_fail; | |
26655 | } | |
26656 | Py_INCREF(Py_None); resultobj = Py_None; | |
26657 | return resultobj; | |
26658 | fail: | |
26659 | return NULL; | |
26660 | } | |
26661 | ||
26662 | ||
c32bde28 | 26663 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26664 | PyObject *resultobj; |
26665 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26666 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26667 | bool arg3 = (bool) true ; |
d14a1e28 RD |
26668 | PyObject * obj0 = 0 ; |
26669 | PyObject * obj1 = 0 ; | |
26670 | PyObject * obj2 = 0 ; | |
26671 | char *kwnames[] = { | |
26672 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26673 | }; | |
26674 | ||
26675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26678 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26680 | SWIG_fail; | |
d14a1e28 | 26681 | if (arg2 == NULL) { |
15afbcd0 RD |
26682 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26683 | SWIG_fail; | |
d14a1e28 RD |
26684 | } |
26685 | if (obj2) { | |
c32bde28 | 26686 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26687 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26688 | } |
26689 | { | |
26690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26691 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26692 | ||
26693 | wxPyEndAllowThreads(__tstate); | |
26694 | if (PyErr_Occurred()) SWIG_fail; | |
26695 | } | |
26696 | Py_INCREF(Py_None); resultobj = Py_None; | |
26697 | return resultobj; | |
26698 | fail: | |
26699 | return NULL; | |
26700 | } | |
26701 | ||
26702 | ||
c32bde28 | 26703 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26704 | PyObject *resultobj; |
26705 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26706 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26707 | bool arg3 = (bool) true ; |
d14a1e28 RD |
26708 | PyObject * obj0 = 0 ; |
26709 | PyObject * obj1 = 0 ; | |
26710 | PyObject * obj2 = 0 ; | |
26711 | char *kwnames[] = { | |
26712 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26713 | }; | |
26714 | ||
26715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26720 | SWIG_fail; | |
d14a1e28 | 26721 | if (arg2 == NULL) { |
15afbcd0 RD |
26722 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26723 | SWIG_fail; | |
d14a1e28 RD |
26724 | } |
26725 | if (obj2) { | |
c32bde28 | 26726 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26727 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26728 | } |
26729 | { | |
26730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26731 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26732 | ||
26733 | wxPyEndAllowThreads(__tstate); | |
26734 | if (PyErr_Occurred()) SWIG_fail; | |
26735 | } | |
26736 | Py_INCREF(Py_None); resultobj = Py_None; | |
26737 | return resultobj; | |
26738 | fail: | |
26739 | return NULL; | |
26740 | } | |
26741 | ||
26742 | ||
c32bde28 | 26743 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26744 | PyObject *resultobj; |
26745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26746 | wxTreeItemId *arg2 = 0 ; | |
26747 | wxColour *arg3 = 0 ; | |
26748 | wxColour temp3 ; | |
26749 | PyObject * obj0 = 0 ; | |
26750 | PyObject * obj1 = 0 ; | |
26751 | PyObject * obj2 = 0 ; | |
26752 | char *kwnames[] = { | |
26753 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26754 | }; | |
26755 | ||
26756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26761 | SWIG_fail; | |
d14a1e28 | 26762 | if (arg2 == NULL) { |
15afbcd0 RD |
26763 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26764 | SWIG_fail; | |
d14a1e28 RD |
26765 | } |
26766 | { | |
26767 | arg3 = &temp3; | |
26768 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26769 | } | |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
26777 | Py_INCREF(Py_None); resultobj = Py_None; | |
26778 | return resultobj; | |
26779 | fail: | |
26780 | return NULL; | |
26781 | } | |
26782 | ||
26783 | ||
c32bde28 | 26784 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26785 | PyObject *resultobj; |
26786 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26787 | wxTreeItemId *arg2 = 0 ; | |
26788 | wxColour *arg3 = 0 ; | |
26789 | wxColour temp3 ; | |
26790 | PyObject * obj0 = 0 ; | |
26791 | PyObject * obj1 = 0 ; | |
26792 | PyObject * obj2 = 0 ; | |
26793 | char *kwnames[] = { | |
26794 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26795 | }; | |
26796 | ||
26797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26801 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26802 | SWIG_fail; | |
d14a1e28 | 26803 | if (arg2 == NULL) { |
15afbcd0 RD |
26804 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26805 | SWIG_fail; | |
d14a1e28 RD |
26806 | } |
26807 | { | |
26808 | arg3 = &temp3; | |
26809 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26810 | } | |
26811 | { | |
26812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26813 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26814 | ||
26815 | wxPyEndAllowThreads(__tstate); | |
26816 | if (PyErr_Occurred()) SWIG_fail; | |
26817 | } | |
26818 | Py_INCREF(Py_None); resultobj = Py_None; | |
26819 | return resultobj; | |
26820 | fail: | |
26821 | return NULL; | |
26822 | } | |
26823 | ||
26824 | ||
c32bde28 | 26825 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26826 | PyObject *resultobj; |
26827 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26828 | wxTreeItemId *arg2 = 0 ; | |
26829 | wxFont *arg3 = 0 ; | |
26830 | PyObject * obj0 = 0 ; | |
26831 | PyObject * obj1 = 0 ; | |
26832 | PyObject * obj2 = 0 ; | |
26833 | char *kwnames[] = { | |
26834 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26835 | }; | |
26836 | ||
26837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26840 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26842 | SWIG_fail; | |
d14a1e28 | 26843 | if (arg2 == NULL) { |
15afbcd0 RD |
26844 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26845 | SWIG_fail; | |
d14a1e28 | 26846 | } |
15afbcd0 RD |
26847 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
26848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26849 | SWIG_fail; | |
d14a1e28 | 26850 | if (arg3 == NULL) { |
15afbcd0 RD |
26851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26852 | SWIG_fail; | |
d14a1e28 RD |
26853 | } |
26854 | { | |
26855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26856 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26857 | ||
26858 | wxPyEndAllowThreads(__tstate); | |
26859 | if (PyErr_Occurred()) SWIG_fail; | |
26860 | } | |
26861 | Py_INCREF(Py_None); resultobj = Py_None; | |
26862 | return resultobj; | |
26863 | fail: | |
26864 | return NULL; | |
26865 | } | |
26866 | ||
26867 | ||
c32bde28 | 26868 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26869 | PyObject *resultobj; |
26870 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26871 | wxTreeItemId *arg2 = 0 ; | |
26872 | bool result; | |
26873 | PyObject * obj0 = 0 ; | |
26874 | PyObject * obj1 = 0 ; | |
26875 | char *kwnames[] = { | |
26876 | (char *) "self",(char *) "item", NULL | |
26877 | }; | |
26878 | ||
26879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26884 | SWIG_fail; | |
d14a1e28 | 26885 | if (arg2 == NULL) { |
15afbcd0 RD |
26886 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26887 | SWIG_fail; | |
d14a1e28 RD |
26888 | } |
26889 | { | |
26890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26891 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26892 | ||
26893 | wxPyEndAllowThreads(__tstate); | |
26894 | if (PyErr_Occurred()) SWIG_fail; | |
26895 | } | |
4f89f6a3 RD |
26896 | { |
26897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26898 | } | |
d14a1e28 RD |
26899 | return resultobj; |
26900 | fail: | |
26901 | return NULL; | |
26902 | } | |
26903 | ||
26904 | ||
c32bde28 | 26905 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26906 | PyObject *resultobj; |
26907 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26908 | wxTreeItemId *arg2 = 0 ; | |
26909 | bool result; | |
26910 | PyObject * obj0 = 0 ; | |
26911 | PyObject * obj1 = 0 ; | |
26912 | char *kwnames[] = { | |
26913 | (char *) "self",(char *) "item", NULL | |
26914 | }; | |
26915 | ||
26916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26920 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26921 | SWIG_fail; | |
d14a1e28 | 26922 | if (arg2 == NULL) { |
15afbcd0 RD |
26923 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26924 | SWIG_fail; | |
d14a1e28 RD |
26925 | } |
26926 | { | |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26929 | ||
26930 | wxPyEndAllowThreads(__tstate); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
26932 | } | |
4f89f6a3 RD |
26933 | { |
26934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26935 | } | |
d14a1e28 RD |
26936 | return resultobj; |
26937 | fail: | |
26938 | return NULL; | |
26939 | } | |
26940 | ||
26941 | ||
c32bde28 | 26942 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26943 | PyObject *resultobj; |
26944 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26945 | wxTreeItemId *arg2 = 0 ; | |
26946 | bool result; | |
26947 | PyObject * obj0 = 0 ; | |
26948 | PyObject * obj1 = 0 ; | |
26949 | char *kwnames[] = { | |
26950 | (char *) "self",(char *) "item", NULL | |
26951 | }; | |
26952 | ||
26953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26958 | SWIG_fail; | |
d14a1e28 | 26959 | if (arg2 == NULL) { |
15afbcd0 RD |
26960 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26961 | SWIG_fail; | |
d14a1e28 RD |
26962 | } |
26963 | { | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
4f89f6a3 RD |
26970 | { |
26971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26972 | } | |
d14a1e28 RD |
26973 | return resultobj; |
26974 | fail: | |
26975 | return NULL; | |
26976 | } | |
26977 | ||
26978 | ||
c32bde28 | 26979 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26980 | PyObject *resultobj; |
26981 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26982 | wxTreeItemId *arg2 = 0 ; | |
26983 | bool result; | |
26984 | PyObject * obj0 = 0 ; | |
26985 | PyObject * obj1 = 0 ; | |
26986 | char *kwnames[] = { | |
26987 | (char *) "self",(char *) "item", NULL | |
26988 | }; | |
26989 | ||
26990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26994 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26995 | SWIG_fail; | |
d14a1e28 | 26996 | if (arg2 == NULL) { |
15afbcd0 RD |
26997 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26998 | SWIG_fail; | |
d14a1e28 RD |
26999 | } |
27000 | { | |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
27003 | ||
27004 | wxPyEndAllowThreads(__tstate); | |
27005 | if (PyErr_Occurred()) SWIG_fail; | |
27006 | } | |
4f89f6a3 RD |
27007 | { |
27008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27009 | } | |
d14a1e28 RD |
27010 | return resultobj; |
27011 | fail: | |
27012 | return NULL; | |
27013 | } | |
27014 | ||
27015 | ||
c32bde28 | 27016 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27017 | PyObject *resultobj; |
27018 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27019 | wxTreeItemId *arg2 = 0 ; | |
27020 | bool result; | |
27021 | PyObject * obj0 = 0 ; | |
27022 | PyObject * obj1 = 0 ; | |
27023 | char *kwnames[] = { | |
27024 | (char *) "self",(char *) "item", NULL | |
27025 | }; | |
27026 | ||
27027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27032 | SWIG_fail; | |
d14a1e28 | 27033 | if (arg2 == NULL) { |
15afbcd0 RD |
27034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27035 | SWIG_fail; | |
d14a1e28 RD |
27036 | } |
27037 | { | |
27038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27039 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
27040 | ||
27041 | wxPyEndAllowThreads(__tstate); | |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
27043 | } | |
4f89f6a3 RD |
27044 | { |
27045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27046 | } | |
d14a1e28 RD |
27047 | return resultobj; |
27048 | fail: | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
c32bde28 | 27053 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27054 | PyObject *resultobj; |
27055 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27056 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 27057 | bool arg3 = (bool) true ; |
d14a1e28 RD |
27058 | size_t result; |
27059 | PyObject * obj0 = 0 ; | |
27060 | PyObject * obj1 = 0 ; | |
27061 | PyObject * obj2 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27070 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27071 | SWIG_fail; | |
d14a1e28 | 27072 | if (arg2 == NULL) { |
15afbcd0 RD |
27073 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27074 | SWIG_fail; | |
d14a1e28 RD |
27075 | } |
27076 | if (obj2) { | |
c32bde28 | 27077 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 27078 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27079 | } |
27080 | { | |
27081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27082 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
27083 | ||
27084 | wxPyEndAllowThreads(__tstate); | |
27085 | if (PyErr_Occurred()) SWIG_fail; | |
27086 | } | |
c32bde28 | 27087 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
27088 | return resultobj; |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
c32bde28 | 27094 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27095 | PyObject *resultobj; |
27096 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27097 | wxTreeItemId result; | |
27098 | PyObject * obj0 = 0 ; | |
27099 | char *kwnames[] = { | |
27100 | (char *) "self", NULL | |
27101 | }; | |
27102 | ||
27103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27106 | { |
27107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27108 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
27109 | ||
27110 | wxPyEndAllowThreads(__tstate); | |
27111 | if (PyErr_Occurred()) SWIG_fail; | |
27112 | } | |
27113 | { | |
27114 | wxTreeItemId * resultptr; | |
27115 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27116 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27117 | } |
27118 | return resultobj; | |
27119 | fail: | |
27120 | return NULL; | |
27121 | } | |
27122 | ||
27123 | ||
c32bde28 | 27124 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27125 | PyObject *resultobj; |
27126 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27127 | wxTreeItemId result; | |
27128 | PyObject * obj0 = 0 ; | |
27129 | char *kwnames[] = { | |
27130 | (char *) "self", NULL | |
27131 | }; | |
27132 | ||
27133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27136 | { |
27137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27138 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
27139 | ||
27140 | wxPyEndAllowThreads(__tstate); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
27143 | { | |
27144 | wxTreeItemId * resultptr; | |
27145 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27146 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27147 | } |
27148 | return resultobj; | |
27149 | fail: | |
27150 | return NULL; | |
27151 | } | |
27152 | ||
27153 | ||
c32bde28 | 27154 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27155 | PyObject *resultobj; |
27156 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27157 | PyObject *result; | |
27158 | PyObject * obj0 = 0 ; | |
27159 | char *kwnames[] = { | |
27160 | (char *) "self", NULL | |
27161 | }; | |
27162 | ||
27163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27166 | { |
27167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27168 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
27169 | ||
27170 | wxPyEndAllowThreads(__tstate); | |
27171 | if (PyErr_Occurred()) SWIG_fail; | |
27172 | } | |
27173 | resultobj = result; | |
27174 | return resultobj; | |
27175 | fail: | |
27176 | return NULL; | |
27177 | } | |
27178 | ||
27179 | ||
c32bde28 | 27180 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27181 | PyObject *resultobj; |
27182 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27183 | wxTreeItemId *arg2 = 0 ; | |
27184 | wxTreeItemId result; | |
27185 | PyObject * obj0 = 0 ; | |
27186 | PyObject * obj1 = 0 ; | |
27187 | char *kwnames[] = { | |
27188 | (char *) "self",(char *) "item", NULL | |
27189 | }; | |
27190 | ||
27191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27196 | SWIG_fail; | |
d14a1e28 | 27197 | if (arg2 == NULL) { |
15afbcd0 RD |
27198 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27199 | SWIG_fail; | |
d14a1e28 RD |
27200 | } |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | { | |
27209 | wxTreeItemId * resultptr; | |
27210 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27211 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27212 | } |
27213 | return resultobj; | |
27214 | fail: | |
27215 | return NULL; | |
27216 | } | |
27217 | ||
27218 | ||
c32bde28 | 27219 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27220 | PyObject *resultobj; |
27221 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27222 | wxTreeItemId *arg2 = 0 ; | |
27223 | PyObject *result; | |
27224 | PyObject * obj0 = 0 ; | |
27225 | PyObject * obj1 = 0 ; | |
27226 | char *kwnames[] = { | |
27227 | (char *) "self",(char *) "item", NULL | |
27228 | }; | |
27229 | ||
27230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27235 | SWIG_fail; | |
d14a1e28 | 27236 | if (arg2 == NULL) { |
15afbcd0 RD |
27237 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27238 | SWIG_fail; | |
d14a1e28 RD |
27239 | } |
27240 | { | |
27241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27242 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
27243 | ||
27244 | wxPyEndAllowThreads(__tstate); | |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
27246 | } | |
27247 | resultobj = result; | |
27248 | return resultobj; | |
27249 | fail: | |
27250 | return NULL; | |
27251 | } | |
27252 | ||
27253 | ||
c32bde28 | 27254 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27255 | PyObject *resultobj; |
27256 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27257 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 27258 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
27259 | PyObject *result; |
27260 | PyObject * obj0 = 0 ; | |
27261 | PyObject * obj1 = 0 ; | |
27262 | PyObject * obj2 = 0 ; | |
27263 | char *kwnames[] = { | |
27264 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
27265 | }; | |
27266 | ||
27267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27271 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27272 | SWIG_fail; | |
d14a1e28 | 27273 | if (arg2 == NULL) { |
15afbcd0 RD |
27274 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27275 | SWIG_fail; | |
d14a1e28 | 27276 | } |
15afbcd0 | 27277 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
27278 | { |
27279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 27280 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
27281 | |
27282 | wxPyEndAllowThreads(__tstate); | |
27283 | if (PyErr_Occurred()) SWIG_fail; | |
27284 | } | |
27285 | resultobj = result; | |
27286 | return resultobj; | |
27287 | fail: | |
27288 | return NULL; | |
27289 | } | |
27290 | ||
27291 | ||
c32bde28 | 27292 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27293 | PyObject *resultobj; |
27294 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27295 | wxTreeItemId *arg2 = 0 ; | |
27296 | wxTreeItemId result; | |
27297 | PyObject * obj0 = 0 ; | |
27298 | PyObject * obj1 = 0 ; | |
27299 | char *kwnames[] = { | |
27300 | (char *) "self",(char *) "item", NULL | |
27301 | }; | |
27302 | ||
27303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27307 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27308 | SWIG_fail; | |
d14a1e28 | 27309 | if (arg2 == NULL) { |
15afbcd0 RD |
27310 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27311 | SWIG_fail; | |
d14a1e28 RD |
27312 | } |
27313 | { | |
27314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27315 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
27316 | ||
27317 | wxPyEndAllowThreads(__tstate); | |
27318 | if (PyErr_Occurred()) SWIG_fail; | |
27319 | } | |
27320 | { | |
27321 | wxTreeItemId * resultptr; | |
27322 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27324 | } |
27325 | return resultobj; | |
27326 | fail: | |
27327 | return NULL; | |
27328 | } | |
27329 | ||
27330 | ||
c32bde28 | 27331 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27332 | PyObject *resultobj; |
27333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27334 | wxTreeItemId *arg2 = 0 ; | |
27335 | wxTreeItemId result; | |
27336 | PyObject * obj0 = 0 ; | |
27337 | PyObject * obj1 = 0 ; | |
27338 | char *kwnames[] = { | |
27339 | (char *) "self",(char *) "item", NULL | |
27340 | }; | |
27341 | ||
27342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27346 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27347 | SWIG_fail; | |
d14a1e28 | 27348 | if (arg2 == NULL) { |
15afbcd0 RD |
27349 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27350 | SWIG_fail; | |
d14a1e28 RD |
27351 | } |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | { | |
27360 | wxTreeItemId * resultptr; | |
27361 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27362 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27363 | } |
27364 | return resultobj; | |
27365 | fail: | |
27366 | return NULL; | |
27367 | } | |
27368 | ||
27369 | ||
c32bde28 | 27370 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27371 | PyObject *resultobj; |
27372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27373 | wxTreeItemId *arg2 = 0 ; | |
27374 | wxTreeItemId result; | |
27375 | PyObject * obj0 = 0 ; | |
27376 | PyObject * obj1 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self",(char *) "item", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27385 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27386 | SWIG_fail; | |
d14a1e28 | 27387 | if (arg2 == NULL) { |
15afbcd0 RD |
27388 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27389 | SWIG_fail; | |
d14a1e28 RD |
27390 | } |
27391 | { | |
27392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27393 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
27394 | ||
27395 | wxPyEndAllowThreads(__tstate); | |
27396 | if (PyErr_Occurred()) SWIG_fail; | |
27397 | } | |
27398 | { | |
27399 | wxTreeItemId * resultptr; | |
27400 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27402 | } |
27403 | return resultobj; | |
27404 | fail: | |
27405 | return NULL; | |
27406 | } | |
27407 | ||
27408 | ||
c32bde28 | 27409 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27410 | PyObject *resultobj; |
27411 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27412 | wxTreeItemId result; | |
27413 | PyObject * obj0 = 0 ; | |
27414 | char *kwnames[] = { | |
27415 | (char *) "self", NULL | |
27416 | }; | |
27417 | ||
27418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27421 | { |
27422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27423 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
27424 | ||
27425 | wxPyEndAllowThreads(__tstate); | |
27426 | if (PyErr_Occurred()) SWIG_fail; | |
27427 | } | |
27428 | { | |
27429 | wxTreeItemId * resultptr; | |
27430 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27432 | } |
27433 | return resultobj; | |
27434 | fail: | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
c32bde28 | 27439 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27440 | PyObject *resultobj; |
27441 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27442 | wxTreeItemId *arg2 = 0 ; | |
27443 | wxTreeItemId result; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | PyObject * obj1 = 0 ; | |
27446 | char *kwnames[] = { | |
27447 | (char *) "self",(char *) "item", NULL | |
27448 | }; | |
27449 | ||
27450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27454 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27455 | SWIG_fail; | |
d14a1e28 | 27456 | if (arg2 == NULL) { |
15afbcd0 RD |
27457 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27458 | SWIG_fail; | |
d14a1e28 RD |
27459 | } |
27460 | { | |
27461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27462 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
27463 | ||
27464 | wxPyEndAllowThreads(__tstate); | |
27465 | if (PyErr_Occurred()) SWIG_fail; | |
27466 | } | |
27467 | { | |
27468 | wxTreeItemId * resultptr; | |
27469 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27471 | } |
27472 | return resultobj; | |
27473 | fail: | |
27474 | return NULL; | |
27475 | } | |
27476 | ||
27477 | ||
c32bde28 | 27478 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27479 | PyObject *resultobj; |
27480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27481 | wxTreeItemId *arg2 = 0 ; | |
27482 | wxTreeItemId result; | |
27483 | PyObject * obj0 = 0 ; | |
27484 | PyObject * obj1 = 0 ; | |
27485 | char *kwnames[] = { | |
27486 | (char *) "self",(char *) "item", NULL | |
27487 | }; | |
27488 | ||
27489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27493 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27494 | SWIG_fail; | |
d14a1e28 | 27495 | if (arg2 == NULL) { |
15afbcd0 RD |
27496 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27497 | SWIG_fail; | |
d14a1e28 RD |
27498 | } |
27499 | { | |
27500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27501 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
27502 | ||
27503 | wxPyEndAllowThreads(__tstate); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | { | |
27507 | wxTreeItemId * resultptr; | |
27508 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27510 | } |
27511 | return resultobj; | |
27512 | fail: | |
27513 | return NULL; | |
27514 | } | |
27515 | ||
27516 | ||
c32bde28 | 27517 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27518 | PyObject *resultobj; |
27519 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27520 | wxString *arg2 = 0 ; | |
27521 | int arg3 = (int) -1 ; | |
27522 | int arg4 = (int) -1 ; | |
27523 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
27524 | wxTreeItemId result; | |
ae8162c8 | 27525 | bool temp2 = false ; |
d14a1e28 RD |
27526 | PyObject * obj0 = 0 ; |
27527 | PyObject * obj1 = 0 ; | |
994141e6 RD |
27528 | PyObject * obj2 = 0 ; |
27529 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
27530 | PyObject * obj4 = 0 ; |
27531 | char *kwnames[] = { | |
27532 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27533 | }; | |
27534 | ||
994141e6 | 27535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
27536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27538 | { |
27539 | arg2 = wxString_in_helper(obj1); | |
27540 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27541 | temp2 = true; |
d14a1e28 | 27542 | } |
994141e6 | 27543 | if (obj2) { |
c32bde28 | 27544 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 27545 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27546 | } |
27547 | if (obj3) { | |
c32bde28 | 27548 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27549 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27550 | } |
d14a1e28 | 27551 | if (obj4) { |
15afbcd0 RD |
27552 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27554 | } |
27555 | { | |
27556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27557 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
27558 | ||
27559 | wxPyEndAllowThreads(__tstate); | |
27560 | if (PyErr_Occurred()) SWIG_fail; | |
27561 | } | |
27562 | { | |
27563 | wxTreeItemId * resultptr; | |
27564 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27566 | } |
27567 | { | |
27568 | if (temp2) | |
27569 | delete arg2; | |
27570 | } | |
27571 | return resultobj; | |
27572 | fail: | |
27573 | { | |
27574 | if (temp2) | |
27575 | delete arg2; | |
27576 | } | |
27577 | return NULL; | |
27578 | } | |
27579 | ||
27580 | ||
c32bde28 | 27581 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27582 | PyObject *resultobj; |
27583 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27584 | wxTreeItemId *arg2 = 0 ; | |
27585 | wxString *arg3 = 0 ; | |
27586 | int arg4 = (int) -1 ; | |
27587 | int arg5 = (int) -1 ; | |
27588 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27589 | wxTreeItemId result; | |
ae8162c8 | 27590 | bool temp3 = false ; |
d14a1e28 RD |
27591 | PyObject * obj0 = 0 ; |
27592 | PyObject * obj1 = 0 ; | |
27593 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27594 | PyObject * obj3 = 0 ; |
27595 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27596 | PyObject * obj5 = 0 ; |
27597 | char *kwnames[] = { | |
27598 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27599 | }; | |
27600 | ||
994141e6 | 27601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27604 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27606 | SWIG_fail; | |
d14a1e28 | 27607 | if (arg2 == NULL) { |
15afbcd0 RD |
27608 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27609 | SWIG_fail; | |
d14a1e28 RD |
27610 | } |
27611 | { | |
27612 | arg3 = wxString_in_helper(obj2); | |
27613 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27614 | temp3 = true; |
d14a1e28 | 27615 | } |
994141e6 | 27616 | if (obj3) { |
c32bde28 | 27617 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27618 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27619 | } |
27620 | if (obj4) { | |
c32bde28 | 27621 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27622 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27623 | } |
d14a1e28 | 27624 | if (obj5) { |
15afbcd0 RD |
27625 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27627 | } |
27628 | { | |
27629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27630 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27631 | ||
27632 | wxPyEndAllowThreads(__tstate); | |
27633 | if (PyErr_Occurred()) SWIG_fail; | |
27634 | } | |
27635 | { | |
27636 | wxTreeItemId * resultptr; | |
27637 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27639 | } |
27640 | { | |
27641 | if (temp3) | |
27642 | delete arg3; | |
27643 | } | |
27644 | return resultobj; | |
27645 | fail: | |
27646 | { | |
27647 | if (temp3) | |
27648 | delete arg3; | |
27649 | } | |
27650 | return NULL; | |
27651 | } | |
27652 | ||
27653 | ||
c32bde28 | 27654 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27655 | PyObject *resultobj; |
27656 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27657 | wxTreeItemId *arg2 = 0 ; | |
27658 | wxTreeItemId *arg3 = 0 ; | |
27659 | wxString *arg4 = 0 ; | |
27660 | int arg5 = (int) -1 ; | |
27661 | int arg6 = (int) -1 ; | |
27662 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27663 | wxTreeItemId result; | |
ae8162c8 | 27664 | bool temp4 = false ; |
d14a1e28 RD |
27665 | PyObject * obj0 = 0 ; |
27666 | PyObject * obj1 = 0 ; | |
27667 | PyObject * obj2 = 0 ; | |
27668 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27669 | PyObject * obj4 = 0 ; |
27670 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27671 | PyObject * obj6 = 0 ; |
27672 | char *kwnames[] = { | |
27673 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27674 | }; | |
27675 | ||
994141e6 | 27676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27681 | SWIG_fail; | |
d14a1e28 | 27682 | if (arg2 == NULL) { |
15afbcd0 RD |
27683 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27684 | SWIG_fail; | |
d14a1e28 | 27685 | } |
15afbcd0 RD |
27686 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
27687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27688 | SWIG_fail; | |
d14a1e28 | 27689 | if (arg3 == NULL) { |
15afbcd0 RD |
27690 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27691 | SWIG_fail; | |
d14a1e28 RD |
27692 | } |
27693 | { | |
27694 | arg4 = wxString_in_helper(obj3); | |
27695 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27696 | temp4 = true; |
d14a1e28 | 27697 | } |
994141e6 | 27698 | if (obj4) { |
c32bde28 | 27699 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27700 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27701 | } |
27702 | if (obj5) { | |
c32bde28 | 27703 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27704 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27705 | } |
d14a1e28 | 27706 | if (obj6) { |
15afbcd0 RD |
27707 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27709 | } |
27710 | { | |
27711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27712 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27713 | ||
27714 | wxPyEndAllowThreads(__tstate); | |
27715 | if (PyErr_Occurred()) SWIG_fail; | |
27716 | } | |
27717 | { | |
27718 | wxTreeItemId * resultptr; | |
27719 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27720 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27721 | } |
27722 | { | |
27723 | if (temp4) | |
27724 | delete arg4; | |
27725 | } | |
27726 | return resultobj; | |
27727 | fail: | |
27728 | { | |
27729 | if (temp4) | |
27730 | delete arg4; | |
27731 | } | |
27732 | return NULL; | |
27733 | } | |
27734 | ||
27735 | ||
c32bde28 | 27736 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27737 | PyObject *resultobj; |
27738 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27739 | wxTreeItemId *arg2 = 0 ; | |
27740 | size_t arg3 ; | |
27741 | wxString *arg4 = 0 ; | |
27742 | int arg5 = (int) -1 ; | |
27743 | int arg6 = (int) -1 ; | |
27744 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27745 | wxTreeItemId result; | |
ae8162c8 | 27746 | bool temp4 = false ; |
d14a1e28 RD |
27747 | PyObject * obj0 = 0 ; |
27748 | PyObject * obj1 = 0 ; | |
27749 | PyObject * obj2 = 0 ; | |
27750 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27751 | PyObject * obj4 = 0 ; |
27752 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27753 | PyObject * obj6 = 0 ; |
27754 | char *kwnames[] = { | |
27755 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27756 | }; | |
27757 | ||
994141e6 | 27758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27762 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27763 | SWIG_fail; | |
d14a1e28 | 27764 | if (arg2 == NULL) { |
15afbcd0 RD |
27765 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27766 | SWIG_fail; | |
a41e16b6 | 27767 | } |
c32bde28 | 27768 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
15afbcd0 | 27769 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27770 | { |
27771 | arg4 = wxString_in_helper(obj3); | |
27772 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27773 | temp4 = true; |
d14a1e28 | 27774 | } |
994141e6 | 27775 | if (obj4) { |
c32bde28 | 27776 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27777 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27778 | } |
27779 | if (obj5) { | |
c32bde28 | 27780 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27781 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27782 | } |
d14a1e28 | 27783 | if (obj6) { |
15afbcd0 RD |
27784 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27786 | } |
27787 | { | |
27788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27789 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27790 | ||
27791 | wxPyEndAllowThreads(__tstate); | |
27792 | if (PyErr_Occurred()) SWIG_fail; | |
27793 | } | |
27794 | { | |
27795 | wxTreeItemId * resultptr; | |
27796 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27798 | } |
27799 | { | |
27800 | if (temp4) | |
27801 | delete arg4; | |
27802 | } | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | { | |
27806 | if (temp4) | |
27807 | delete arg4; | |
27808 | } | |
27809 | return NULL; | |
27810 | } | |
27811 | ||
27812 | ||
c32bde28 | 27813 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27814 | PyObject *resultobj; |
27815 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27816 | wxTreeItemId *arg2 = 0 ; | |
27817 | wxString *arg3 = 0 ; | |
27818 | int arg4 = (int) -1 ; | |
27819 | int arg5 = (int) -1 ; | |
27820 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27821 | wxTreeItemId result; | |
ae8162c8 | 27822 | bool temp3 = false ; |
d14a1e28 RD |
27823 | PyObject * obj0 = 0 ; |
27824 | PyObject * obj1 = 0 ; | |
27825 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27826 | PyObject * obj3 = 0 ; |
27827 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27828 | PyObject * obj5 = 0 ; |
27829 | char *kwnames[] = { | |
27830 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27831 | }; | |
27832 | ||
994141e6 | 27833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27838 | SWIG_fail; | |
d14a1e28 | 27839 | if (arg2 == NULL) { |
15afbcd0 RD |
27840 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27841 | SWIG_fail; | |
d14a1e28 RD |
27842 | } |
27843 | { | |
27844 | arg3 = wxString_in_helper(obj2); | |
27845 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27846 | temp3 = true; |
d14a1e28 | 27847 | } |
994141e6 | 27848 | if (obj3) { |
c32bde28 | 27849 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27850 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27851 | } |
27852 | if (obj4) { | |
c32bde28 | 27853 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27854 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27855 | } |
d14a1e28 | 27856 | if (obj5) { |
15afbcd0 RD |
27857 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27859 | } |
27860 | { | |
27861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27862 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27863 | ||
27864 | wxPyEndAllowThreads(__tstate); | |
27865 | if (PyErr_Occurred()) SWIG_fail; | |
27866 | } | |
27867 | { | |
27868 | wxTreeItemId * resultptr; | |
27869 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27871 | } |
27872 | { | |
27873 | if (temp3) | |
27874 | delete arg3; | |
27875 | } | |
27876 | return resultobj; | |
27877 | fail: | |
27878 | { | |
27879 | if (temp3) | |
27880 | delete arg3; | |
27881 | } | |
27882 | return NULL; | |
27883 | } | |
27884 | ||
27885 | ||
c32bde28 | 27886 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27887 | PyObject *resultobj; |
27888 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27889 | wxTreeItemId *arg2 = 0 ; | |
27890 | PyObject * obj0 = 0 ; | |
27891 | PyObject * obj1 = 0 ; | |
27892 | char *kwnames[] = { | |
27893 | (char *) "self",(char *) "item", NULL | |
27894 | }; | |
27895 | ||
27896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27901 | SWIG_fail; | |
d14a1e28 | 27902 | if (arg2 == NULL) { |
15afbcd0 RD |
27903 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27904 | SWIG_fail; | |
d14a1e28 RD |
27905 | } |
27906 | { | |
27907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27908 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27909 | ||
27910 | wxPyEndAllowThreads(__tstate); | |
27911 | if (PyErr_Occurred()) SWIG_fail; | |
27912 | } | |
27913 | Py_INCREF(Py_None); resultobj = Py_None; | |
27914 | return resultobj; | |
27915 | fail: | |
27916 | return NULL; | |
27917 | } | |
27918 | ||
27919 | ||
c32bde28 | 27920 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27921 | PyObject *resultobj; |
27922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27923 | wxTreeItemId *arg2 = 0 ; | |
27924 | PyObject * obj0 = 0 ; | |
27925 | PyObject * obj1 = 0 ; | |
27926 | char *kwnames[] = { | |
27927 | (char *) "self",(char *) "item", NULL | |
27928 | }; | |
27929 | ||
27930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27935 | SWIG_fail; | |
d14a1e28 | 27936 | if (arg2 == NULL) { |
15afbcd0 RD |
27937 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27938 | SWIG_fail; | |
d14a1e28 RD |
27939 | } |
27940 | { | |
27941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27942 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27943 | ||
27944 | wxPyEndAllowThreads(__tstate); | |
27945 | if (PyErr_Occurred()) SWIG_fail; | |
27946 | } | |
27947 | Py_INCREF(Py_None); resultobj = Py_None; | |
27948 | return resultobj; | |
27949 | fail: | |
27950 | return NULL; | |
27951 | } | |
27952 | ||
27953 | ||
c32bde28 | 27954 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27955 | PyObject *resultobj; |
27956 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27957 | PyObject * obj0 = 0 ; | |
27958 | char *kwnames[] = { | |
27959 | (char *) "self", NULL | |
27960 | }; | |
27961 | ||
27962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27965 | { |
27966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27967 | (arg1)->DeleteAllItems(); | |
27968 | ||
27969 | wxPyEndAllowThreads(__tstate); | |
27970 | if (PyErr_Occurred()) SWIG_fail; | |
27971 | } | |
27972 | Py_INCREF(Py_None); resultobj = Py_None; | |
27973 | return resultobj; | |
27974 | fail: | |
27975 | return NULL; | |
27976 | } | |
27977 | ||
27978 | ||
c32bde28 | 27979 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27980 | PyObject *resultobj; |
27981 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27982 | wxTreeItemId *arg2 = 0 ; | |
27983 | PyObject * obj0 = 0 ; | |
27984 | PyObject * obj1 = 0 ; | |
27985 | char *kwnames[] = { | |
27986 | (char *) "self",(char *) "item", NULL | |
27987 | }; | |
27988 | ||
27989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27992 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27994 | SWIG_fail; | |
d14a1e28 | 27995 | if (arg2 == NULL) { |
15afbcd0 RD |
27996 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27997 | SWIG_fail; | |
d14a1e28 RD |
27998 | } |
27999 | { | |
28000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28001 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
28002 | ||
28003 | wxPyEndAllowThreads(__tstate); | |
28004 | if (PyErr_Occurred()) SWIG_fail; | |
28005 | } | |
28006 | Py_INCREF(Py_None); resultobj = Py_None; | |
28007 | return resultobj; | |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
c32bde28 | 28013 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28014 | PyObject *resultobj; |
28015 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28016 | wxTreeItemId *arg2 = 0 ; | |
28017 | PyObject * obj0 = 0 ; | |
28018 | PyObject * obj1 = 0 ; | |
28019 | char *kwnames[] = { | |
28020 | (char *) "self",(char *) "item", NULL | |
28021 | }; | |
28022 | ||
28023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28028 | SWIG_fail; | |
d14a1e28 | 28029 | if (arg2 == NULL) { |
15afbcd0 RD |
28030 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28031 | SWIG_fail; | |
d14a1e28 RD |
28032 | } |
28033 | { | |
28034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28035 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
28036 | ||
28037 | wxPyEndAllowThreads(__tstate); | |
28038 | if (PyErr_Occurred()) SWIG_fail; | |
28039 | } | |
28040 | Py_INCREF(Py_None); resultobj = Py_None; | |
28041 | return resultobj; | |
28042 | fail: | |
28043 | return NULL; | |
28044 | } | |
28045 | ||
28046 | ||
c32bde28 | 28047 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28048 | PyObject *resultobj; |
28049 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28050 | wxTreeItemId *arg2 = 0 ; | |
28051 | PyObject * obj0 = 0 ; | |
28052 | PyObject * obj1 = 0 ; | |
28053 | char *kwnames[] = { | |
28054 | (char *) "self",(char *) "item", NULL | |
28055 | }; | |
28056 | ||
28057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28062 | SWIG_fail; | |
d14a1e28 | 28063 | if (arg2 == NULL) { |
15afbcd0 RD |
28064 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28065 | SWIG_fail; | |
d14a1e28 RD |
28066 | } |
28067 | { | |
28068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28069 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
28070 | ||
28071 | wxPyEndAllowThreads(__tstate); | |
28072 | if (PyErr_Occurred()) SWIG_fail; | |
28073 | } | |
28074 | Py_INCREF(Py_None); resultobj = Py_None; | |
28075 | return resultobj; | |
28076 | fail: | |
28077 | return NULL; | |
28078 | } | |
28079 | ||
28080 | ||
c32bde28 | 28081 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28082 | PyObject *resultobj; |
28083 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28084 | wxTreeItemId *arg2 = 0 ; | |
28085 | PyObject * obj0 = 0 ; | |
28086 | PyObject * obj1 = 0 ; | |
28087 | char *kwnames[] = { | |
28088 | (char *) "self",(char *) "item", NULL | |
28089 | }; | |
28090 | ||
28091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28096 | SWIG_fail; | |
d14a1e28 | 28097 | if (arg2 == NULL) { |
15afbcd0 RD |
28098 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28099 | SWIG_fail; | |
d14a1e28 RD |
28100 | } |
28101 | { | |
28102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28103 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
28104 | ||
28105 | wxPyEndAllowThreads(__tstate); | |
28106 | if (PyErr_Occurred()) SWIG_fail; | |
28107 | } | |
28108 | Py_INCREF(Py_None); resultobj = Py_None; | |
28109 | return resultobj; | |
28110 | fail: | |
28111 | return NULL; | |
28112 | } | |
28113 | ||
28114 | ||
c32bde28 | 28115 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28116 | PyObject *resultobj; |
28117 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28118 | PyObject * obj0 = 0 ; | |
28119 | char *kwnames[] = { | |
28120 | (char *) "self", NULL | |
28121 | }; | |
28122 | ||
28123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28126 | { |
28127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28128 | (arg1)->Unselect(); | |
28129 | ||
28130 | wxPyEndAllowThreads(__tstate); | |
28131 | if (PyErr_Occurred()) SWIG_fail; | |
28132 | } | |
28133 | Py_INCREF(Py_None); resultobj = Py_None; | |
28134 | return resultobj; | |
28135 | fail: | |
28136 | return NULL; | |
28137 | } | |
28138 | ||
28139 | ||
c32bde28 | 28140 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
28141 | PyObject *resultobj; |
28142 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28143 | wxTreeItemId *arg2 = 0 ; | |
28144 | PyObject * obj0 = 0 ; | |
28145 | PyObject * obj1 = 0 ; | |
28146 | char *kwnames[] = { | |
28147 | (char *) "self",(char *) "item", NULL | |
28148 | }; | |
28149 | ||
28150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28154 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28155 | SWIG_fail; | |
3adfb63b | 28156 | if (arg2 == NULL) { |
15afbcd0 RD |
28157 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28158 | SWIG_fail; | |
3adfb63b RD |
28159 | } |
28160 | { | |
28161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28162 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
28163 | ||
28164 | wxPyEndAllowThreads(__tstate); | |
28165 | if (PyErr_Occurred()) SWIG_fail; | |
28166 | } | |
28167 | Py_INCREF(Py_None); resultobj = Py_None; | |
28168 | return resultobj; | |
28169 | fail: | |
28170 | return NULL; | |
28171 | } | |
28172 | ||
28173 | ||
c32bde28 | 28174 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28175 | PyObject *resultobj; |
28176 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28177 | PyObject * obj0 = 0 ; | |
28178 | char *kwnames[] = { | |
28179 | (char *) "self", NULL | |
28180 | }; | |
28181 | ||
28182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28185 | { |
28186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28187 | (arg1)->UnselectAll(); | |
28188 | ||
28189 | wxPyEndAllowThreads(__tstate); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | Py_INCREF(Py_None); resultobj = Py_None; | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | return NULL; | |
28196 | } | |
28197 | ||
28198 | ||
c32bde28 | 28199 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
28200 | PyObject *resultobj; |
28201 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28202 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28203 | bool arg3 = (bool) true ; |
3adfb63b RD |
28204 | PyObject * obj0 = 0 ; |
28205 | PyObject * obj1 = 0 ; | |
28206 | PyObject * obj2 = 0 ; | |
28207 | char *kwnames[] = { | |
28208 | (char *) "self",(char *) "item",(char *) "select", NULL | |
28209 | }; | |
28210 | ||
28211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28215 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28216 | SWIG_fail; | |
3adfb63b | 28217 | if (arg2 == NULL) { |
15afbcd0 RD |
28218 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28219 | SWIG_fail; | |
3adfb63b RD |
28220 | } |
28221 | if (obj2) { | |
c32bde28 | 28222 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 28223 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b RD |
28224 | } |
28225 | { | |
28226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28227 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
28228 | ||
28229 | wxPyEndAllowThreads(__tstate); | |
28230 | if (PyErr_Occurred()) SWIG_fail; | |
28231 | } | |
28232 | Py_INCREF(Py_None); resultobj = Py_None; | |
28233 | return resultobj; | |
28234 | fail: | |
28235 | return NULL; | |
28236 | } | |
28237 | ||
28238 | ||
c32bde28 | 28239 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28240 | PyObject *resultobj; |
28241 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28242 | wxTreeItemId *arg2 = 0 ; | |
28243 | PyObject * obj0 = 0 ; | |
28244 | PyObject * obj1 = 0 ; | |
28245 | char *kwnames[] = { | |
28246 | (char *) "self",(char *) "item", NULL | |
28247 | }; | |
28248 | ||
3adfb63b | 28249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28253 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28254 | SWIG_fail; | |
d14a1e28 | 28255 | if (arg2 == NULL) { |
15afbcd0 RD |
28256 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28257 | SWIG_fail; | |
d14a1e28 RD |
28258 | } |
28259 | { | |
28260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 28261 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
28262 | |
28263 | wxPyEndAllowThreads(__tstate); | |
28264 | if (PyErr_Occurred()) SWIG_fail; | |
28265 | } | |
28266 | Py_INCREF(Py_None); resultobj = Py_None; | |
28267 | return resultobj; | |
28268 | fail: | |
28269 | return NULL; | |
28270 | } | |
28271 | ||
28272 | ||
c32bde28 | 28273 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28274 | PyObject *resultobj; |
28275 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28276 | wxTreeItemId *arg2 = 0 ; | |
28277 | PyObject * obj0 = 0 ; | |
28278 | PyObject * obj1 = 0 ; | |
28279 | char *kwnames[] = { | |
28280 | (char *) "self",(char *) "item", NULL | |
28281 | }; | |
28282 | ||
28283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28286 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28287 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28288 | SWIG_fail; | |
d14a1e28 | 28289 | if (arg2 == NULL) { |
15afbcd0 RD |
28290 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28291 | SWIG_fail; | |
d14a1e28 RD |
28292 | } |
28293 | { | |
28294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28295 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
28296 | ||
28297 | wxPyEndAllowThreads(__tstate); | |
28298 | if (PyErr_Occurred()) SWIG_fail; | |
28299 | } | |
28300 | Py_INCREF(Py_None); resultobj = Py_None; | |
28301 | return resultobj; | |
28302 | fail: | |
28303 | return NULL; | |
28304 | } | |
28305 | ||
28306 | ||
c32bde28 | 28307 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28308 | PyObject *resultobj; |
28309 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28310 | wxTreeItemId *arg2 = 0 ; | |
28311 | PyObject * obj0 = 0 ; | |
28312 | PyObject * obj1 = 0 ; | |
28313 | char *kwnames[] = { | |
28314 | (char *) "self",(char *) "item", NULL | |
28315 | }; | |
28316 | ||
28317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28321 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28322 | SWIG_fail; | |
d14a1e28 | 28323 | if (arg2 == NULL) { |
15afbcd0 RD |
28324 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28325 | SWIG_fail; | |
d14a1e28 RD |
28326 | } |
28327 | { | |
28328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28329 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
28330 | ||
28331 | wxPyEndAllowThreads(__tstate); | |
28332 | if (PyErr_Occurred()) SWIG_fail; | |
28333 | } | |
28334 | Py_INCREF(Py_None); resultobj = Py_None; | |
28335 | return resultobj; | |
28336 | fail: | |
28337 | return NULL; | |
28338 | } | |
28339 | ||
28340 | ||
c32bde28 | 28341 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28342 | PyObject *resultobj; |
28343 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28344 | wxTreeItemId *arg2 = 0 ; | |
28345 | PyObject * obj0 = 0 ; | |
28346 | PyObject * obj1 = 0 ; | |
28347 | char *kwnames[] = { | |
28348 | (char *) "self",(char *) "item", NULL | |
28349 | }; | |
28350 | ||
28351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28355 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28356 | SWIG_fail; | |
d14a1e28 | 28357 | if (arg2 == NULL) { |
15afbcd0 RD |
28358 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28359 | SWIG_fail; | |
d14a1e28 RD |
28360 | } |
28361 | { | |
28362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28363 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
28364 | ||
28365 | wxPyEndAllowThreads(__tstate); | |
28366 | if (PyErr_Occurred()) SWIG_fail; | |
28367 | } | |
28368 | Py_INCREF(Py_None); resultobj = Py_None; | |
28369 | return resultobj; | |
28370 | fail: | |
28371 | return NULL; | |
28372 | } | |
28373 | ||
28374 | ||
c32bde28 | 28375 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28376 | PyObject *resultobj; |
28377 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28378 | wxTextCtrl *result; | |
28379 | PyObject * obj0 = 0 ; | |
28380 | char *kwnames[] = { | |
28381 | (char *) "self", NULL | |
28382 | }; | |
28383 | ||
28384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28387 | { |
28388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28389 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
28390 | ||
28391 | wxPyEndAllowThreads(__tstate); | |
28392 | if (PyErr_Occurred()) SWIG_fail; | |
28393 | } | |
28394 | { | |
412d302d | 28395 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28396 | } |
28397 | return resultobj; | |
28398 | fail: | |
28399 | return NULL; | |
28400 | } | |
28401 | ||
28402 | ||
c32bde28 | 28403 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28404 | PyObject *resultobj; |
28405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28406 | wxTreeItemId *arg2 = 0 ; | |
28407 | PyObject * obj0 = 0 ; | |
28408 | PyObject * obj1 = 0 ; | |
28409 | char *kwnames[] = { | |
28410 | (char *) "self",(char *) "item", NULL | |
28411 | }; | |
28412 | ||
28413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28417 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28418 | SWIG_fail; | |
d14a1e28 | 28419 | if (arg2 == NULL) { |
15afbcd0 RD |
28420 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28421 | SWIG_fail; | |
d14a1e28 RD |
28422 | } |
28423 | { | |
28424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28425 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
28426 | ||
28427 | wxPyEndAllowThreads(__tstate); | |
28428 | if (PyErr_Occurred()) SWIG_fail; | |
28429 | } | |
28430 | Py_INCREF(Py_None); resultobj = Py_None; | |
28431 | return resultobj; | |
28432 | fail: | |
28433 | return NULL; | |
28434 | } | |
28435 | ||
28436 | ||
c32bde28 | 28437 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28438 | PyObject *resultobj; |
28439 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28440 | wxPoint *arg2 = 0 ; | |
28441 | int *arg3 = 0 ; | |
28442 | wxTreeItemId result; | |
28443 | wxPoint temp2 ; | |
28444 | int temp3 ; | |
c32bde28 | 28445 | int res3 = 0 ; |
d14a1e28 RD |
28446 | PyObject * obj0 = 0 ; |
28447 | PyObject * obj1 = 0 ; | |
28448 | char *kwnames[] = { | |
28449 | (char *) "self",(char *) "point", NULL | |
28450 | }; | |
28451 | ||
c32bde28 | 28452 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28456 | { |
28457 | arg2 = &temp2; | |
28458 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28459 | } | |
28460 | { | |
28461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28462 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
28463 | ||
28464 | wxPyEndAllowThreads(__tstate); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | } | |
28467 | { | |
28468 | wxTreeItemId * resultptr; | |
28469 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 28471 | } |
c32bde28 RD |
28472 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
28473 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
28474 | return resultobj; |
28475 | fail: | |
28476 | return NULL; | |
28477 | } | |
28478 | ||
28479 | ||
c32bde28 | 28480 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28481 | PyObject *resultobj; |
28482 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28483 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28484 | bool arg3 = (bool) false ; |
d14a1e28 RD |
28485 | PyObject *result; |
28486 | PyObject * obj0 = 0 ; | |
28487 | PyObject * obj1 = 0 ; | |
28488 | PyObject * obj2 = 0 ; | |
28489 | char *kwnames[] = { | |
28490 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
28491 | }; | |
28492 | ||
28493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28496 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28497 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28498 | SWIG_fail; | |
d14a1e28 | 28499 | if (arg2 == NULL) { |
15afbcd0 RD |
28500 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28501 | SWIG_fail; | |
d14a1e28 RD |
28502 | } |
28503 | if (obj2) { | |
c32bde28 | 28504 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 28505 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28506 | } |
28507 | { | |
28508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28509 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28510 | ||
28511 | wxPyEndAllowThreads(__tstate); | |
28512 | if (PyErr_Occurred()) SWIG_fail; | |
28513 | } | |
28514 | resultobj = result; | |
28515 | return resultobj; | |
28516 | fail: | |
28517 | return NULL; | |
28518 | } | |
28519 | ||
28520 | ||
c32bde28 | 28521 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28522 | PyObject *resultobj; |
28523 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
28524 | wxVisualAttributes result; | |
28525 | PyObject * obj0 = 0 ; | |
28526 | char *kwnames[] = { | |
28527 | (char *) "variant", NULL | |
28528 | }; | |
28529 | ||
28530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
28531 | if (obj0) { | |
c32bde28 | 28532 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
28533 | if (PyErr_Occurred()) SWIG_fail; |
28534 | } | |
28535 | { | |
110da5b0 | 28536 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
28537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28538 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
28539 | ||
28540 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 28541 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
28542 | } |
28543 | { | |
28544 | wxVisualAttributes * resultptr; | |
28545 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
28546 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
28547 | } | |
28548 | return resultobj; | |
28549 | fail: | |
28550 | return NULL; | |
28551 | } | |
28552 | ||
28553 | ||
c32bde28 | 28554 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28555 | PyObject *obj; |
28556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28557 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
28558 | Py_INCREF(obj); | |
28559 | return Py_BuildValue((char *)""); | |
28560 | } | |
c32bde28 | 28561 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
28562 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
28563 | return 1; | |
28564 | } | |
28565 | ||
28566 | ||
28567 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
28568 | PyObject *pyobj; | |
28569 | ||
28570 | { | |
28571 | #if wxUSE_UNICODE | |
28572 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28573 | #else | |
28574 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28575 | #endif | |
28576 | } | |
28577 | return pyobj; | |
28578 | } | |
28579 | ||
28580 | ||
c32bde28 | 28581 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28582 | PyObject *resultobj; |
28583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 28584 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28585 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
28586 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28587 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28588 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28589 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28590 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28591 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28592 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
28593 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28594 | int arg8 = (int) 0 ; | |
b2dc1044 | 28595 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28596 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
28597 | wxGenericDirCtrl *result; | |
ae8162c8 | 28598 | bool temp3 = false ; |
d14a1e28 RD |
28599 | wxPoint temp4 ; |
28600 | wxSize temp5 ; | |
ae8162c8 RD |
28601 | bool temp7 = false ; |
28602 | bool temp9 = false ; | |
d14a1e28 | 28603 | PyObject * obj0 = 0 ; |
994141e6 | 28604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28605 | PyObject * obj2 = 0 ; |
28606 | PyObject * obj3 = 0 ; | |
28607 | PyObject * obj4 = 0 ; | |
994141e6 | 28608 | PyObject * obj5 = 0 ; |
d14a1e28 | 28609 | PyObject * obj6 = 0 ; |
994141e6 | 28610 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
28611 | PyObject * obj8 = 0 ; |
28612 | char *kwnames[] = { | |
28613 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28614 | }; | |
28615 | ||
994141e6 | 28616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
28617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28619 | if (obj1) { |
c32bde28 | 28620 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28621 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28622 | } |
d14a1e28 RD |
28623 | if (obj2) { |
28624 | { | |
28625 | arg3 = wxString_in_helper(obj2); | |
28626 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28627 | temp3 = true; |
d14a1e28 RD |
28628 | } |
28629 | } | |
28630 | if (obj3) { | |
28631 | { | |
28632 | arg4 = &temp4; | |
28633 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28634 | } | |
28635 | } | |
28636 | if (obj4) { | |
28637 | { | |
28638 | arg5 = &temp5; | |
28639 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28640 | } | |
28641 | } | |
994141e6 | 28642 | if (obj5) { |
c32bde28 | 28643 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 28644 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28645 | } |
d14a1e28 RD |
28646 | if (obj6) { |
28647 | { | |
28648 | arg7 = wxString_in_helper(obj6); | |
28649 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28650 | temp7 = true; |
d14a1e28 RD |
28651 | } |
28652 | } | |
994141e6 | 28653 | if (obj7) { |
c32bde28 | 28654 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 28655 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28656 | } |
d14a1e28 RD |
28657 | if (obj8) { |
28658 | { | |
28659 | arg9 = wxString_in_helper(obj8); | |
28660 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 28661 | temp9 = true; |
d14a1e28 RD |
28662 | } |
28663 | } | |
28664 | { | |
e3b71cb8 | 28665 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28667 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28668 | ||
28669 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28670 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28671 | } |
15afbcd0 | 28672 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28673 | { |
28674 | if (temp3) | |
28675 | delete arg3; | |
28676 | } | |
28677 | { | |
28678 | if (temp7) | |
28679 | delete arg7; | |
28680 | } | |
28681 | { | |
28682 | if (temp9) | |
28683 | delete arg9; | |
28684 | } | |
28685 | return resultobj; | |
28686 | fail: | |
28687 | { | |
28688 | if (temp3) | |
28689 | delete arg3; | |
28690 | } | |
28691 | { | |
28692 | if (temp7) | |
28693 | delete arg7; | |
28694 | } | |
28695 | { | |
28696 | if (temp9) | |
28697 | delete arg9; | |
28698 | } | |
28699 | return NULL; | |
28700 | } | |
28701 | ||
28702 | ||
c32bde28 | 28703 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28704 | PyObject *resultobj; |
28705 | wxGenericDirCtrl *result; | |
28706 | char *kwnames[] = { | |
28707 | NULL | |
28708 | }; | |
28709 | ||
28710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28711 | { | |
e3b71cb8 | 28712 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28714 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28715 | ||
28716 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28717 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28718 | } |
15afbcd0 | 28719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28720 | return resultobj; |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
c32bde28 | 28726 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28727 | PyObject *resultobj; |
28728 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28729 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28730 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28731 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
28732 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28733 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28734 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28735 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28736 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28737 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28738 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28739 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28740 | int arg9 = (int) 0 ; | |
b2dc1044 | 28741 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28742 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
28743 | bool result; | |
ae8162c8 | 28744 | bool temp4 = false ; |
d14a1e28 RD |
28745 | wxPoint temp5 ; |
28746 | wxSize temp6 ; | |
ae8162c8 RD |
28747 | bool temp8 = false ; |
28748 | bool temp10 = false ; | |
d14a1e28 RD |
28749 | PyObject * obj0 = 0 ; |
28750 | PyObject * obj1 = 0 ; | |
994141e6 | 28751 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28752 | PyObject * obj3 = 0 ; |
28753 | PyObject * obj4 = 0 ; | |
28754 | PyObject * obj5 = 0 ; | |
994141e6 | 28755 | PyObject * obj6 = 0 ; |
d14a1e28 | 28756 | PyObject * obj7 = 0 ; |
994141e6 | 28757 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
28758 | PyObject * obj9 = 0 ; |
28759 | char *kwnames[] = { | |
28760 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28761 | }; | |
28762 | ||
994141e6 | 28763 | 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 |
28764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28768 | if (obj2) { |
c32bde28 | 28769 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28770 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28771 | } |
d14a1e28 RD |
28772 | if (obj3) { |
28773 | { | |
28774 | arg4 = wxString_in_helper(obj3); | |
28775 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 28776 | temp4 = true; |
d14a1e28 RD |
28777 | } |
28778 | } | |
28779 | if (obj4) { | |
28780 | { | |
28781 | arg5 = &temp5; | |
28782 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28783 | } | |
28784 | } | |
28785 | if (obj5) { | |
28786 | { | |
28787 | arg6 = &temp6; | |
28788 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28789 | } | |
28790 | } | |
994141e6 | 28791 | if (obj6) { |
c32bde28 | 28792 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 28793 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28794 | } |
d14a1e28 RD |
28795 | if (obj7) { |
28796 | { | |
28797 | arg8 = wxString_in_helper(obj7); | |
28798 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28799 | temp8 = true; |
d14a1e28 RD |
28800 | } |
28801 | } | |
994141e6 | 28802 | if (obj8) { |
c32bde28 | 28803 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 28804 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28805 | } |
d14a1e28 RD |
28806 | if (obj9) { |
28807 | { | |
28808 | arg10 = wxString_in_helper(obj9); | |
28809 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 28810 | temp10 = true; |
d14a1e28 RD |
28811 | } |
28812 | } | |
28813 | { | |
28814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28815 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28816 | ||
28817 | wxPyEndAllowThreads(__tstate); | |
28818 | if (PyErr_Occurred()) SWIG_fail; | |
28819 | } | |
4f89f6a3 RD |
28820 | { |
28821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28822 | } | |
d14a1e28 RD |
28823 | { |
28824 | if (temp4) | |
28825 | delete arg4; | |
28826 | } | |
28827 | { | |
28828 | if (temp8) | |
28829 | delete arg8; | |
28830 | } | |
28831 | { | |
28832 | if (temp10) | |
28833 | delete arg10; | |
28834 | } | |
28835 | return resultobj; | |
28836 | fail: | |
28837 | { | |
28838 | if (temp4) | |
28839 | delete arg4; | |
28840 | } | |
28841 | { | |
28842 | if (temp8) | |
28843 | delete arg8; | |
28844 | } | |
28845 | { | |
28846 | if (temp10) | |
28847 | delete arg10; | |
28848 | } | |
28849 | return NULL; | |
28850 | } | |
28851 | ||
28852 | ||
c32bde28 | 28853 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28854 | PyObject *resultobj; |
28855 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28856 | wxString *arg2 = 0 ; | |
28857 | bool result; | |
ae8162c8 | 28858 | bool temp2 = false ; |
d14a1e28 RD |
28859 | PyObject * obj0 = 0 ; |
28860 | PyObject * obj1 = 0 ; | |
28861 | char *kwnames[] = { | |
28862 | (char *) "self",(char *) "path", NULL | |
28863 | }; | |
28864 | ||
28865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28868 | { |
28869 | arg2 = wxString_in_helper(obj1); | |
28870 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28871 | temp2 = true; |
d14a1e28 RD |
28872 | } |
28873 | { | |
28874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28875 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28876 | ||
28877 | wxPyEndAllowThreads(__tstate); | |
28878 | if (PyErr_Occurred()) SWIG_fail; | |
28879 | } | |
4f89f6a3 RD |
28880 | { |
28881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28882 | } | |
d14a1e28 RD |
28883 | { |
28884 | if (temp2) | |
28885 | delete arg2; | |
28886 | } | |
28887 | return resultobj; | |
28888 | fail: | |
28889 | { | |
28890 | if (temp2) | |
28891 | delete arg2; | |
28892 | } | |
28893 | return NULL; | |
28894 | } | |
28895 | ||
28896 | ||
c32bde28 | 28897 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28898 | PyObject *resultobj; |
28899 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28900 | wxString result; | |
28901 | PyObject * obj0 = 0 ; | |
28902 | char *kwnames[] = { | |
28903 | (char *) "self", NULL | |
28904 | }; | |
28905 | ||
28906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28909 | { |
28910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28911 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28912 | ||
28913 | wxPyEndAllowThreads(__tstate); | |
28914 | if (PyErr_Occurred()) SWIG_fail; | |
28915 | } | |
28916 | { | |
28917 | #if wxUSE_UNICODE | |
28918 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28919 | #else | |
28920 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28921 | #endif | |
28922 | } | |
28923 | return resultobj; | |
28924 | fail: | |
28925 | return NULL; | |
28926 | } | |
28927 | ||
28928 | ||
c32bde28 | 28929 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28930 | PyObject *resultobj; |
28931 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28932 | wxString *arg2 = 0 ; | |
ae8162c8 | 28933 | bool temp2 = false ; |
d14a1e28 RD |
28934 | PyObject * obj0 = 0 ; |
28935 | PyObject * obj1 = 0 ; | |
28936 | char *kwnames[] = { | |
28937 | (char *) "self",(char *) "path", NULL | |
28938 | }; | |
28939 | ||
28940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28943 | { |
28944 | arg2 = wxString_in_helper(obj1); | |
28945 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28946 | temp2 = true; |
d14a1e28 RD |
28947 | } |
28948 | { | |
28949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28950 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28951 | ||
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
28955 | Py_INCREF(Py_None); resultobj = Py_None; | |
28956 | { | |
28957 | if (temp2) | |
28958 | delete arg2; | |
28959 | } | |
28960 | return resultobj; | |
28961 | fail: | |
28962 | { | |
28963 | if (temp2) | |
28964 | delete arg2; | |
28965 | } | |
28966 | return NULL; | |
28967 | } | |
28968 | ||
28969 | ||
c32bde28 | 28970 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28971 | PyObject *resultobj; |
28972 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28973 | wxString result; | |
28974 | PyObject * obj0 = 0 ; | |
28975 | char *kwnames[] = { | |
28976 | (char *) "self", NULL | |
28977 | }; | |
28978 | ||
28979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28982 | { |
28983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28984 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28985 | ||
28986 | wxPyEndAllowThreads(__tstate); | |
28987 | if (PyErr_Occurred()) SWIG_fail; | |
28988 | } | |
28989 | { | |
28990 | #if wxUSE_UNICODE | |
28991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28992 | #else | |
28993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28994 | #endif | |
28995 | } | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
c32bde28 | 29002 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29003 | PyObject *resultobj; |
29004 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29005 | wxString result; | |
29006 | PyObject * obj0 = 0 ; | |
29007 | char *kwnames[] = { | |
29008 | (char *) "self", NULL | |
29009 | }; | |
29010 | ||
29011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29014 | { |
29015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29016 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
29017 | ||
29018 | wxPyEndAllowThreads(__tstate); | |
29019 | if (PyErr_Occurred()) SWIG_fail; | |
29020 | } | |
29021 | { | |
29022 | #if wxUSE_UNICODE | |
29023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29024 | #else | |
29025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29026 | #endif | |
29027 | } | |
29028 | return resultobj; | |
29029 | fail: | |
29030 | return NULL; | |
29031 | } | |
29032 | ||
29033 | ||
c32bde28 | 29034 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29035 | PyObject *resultobj; |
29036 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29037 | wxString *arg2 = 0 ; | |
ae8162c8 | 29038 | bool temp2 = false ; |
d14a1e28 RD |
29039 | PyObject * obj0 = 0 ; |
29040 | PyObject * obj1 = 0 ; | |
29041 | char *kwnames[] = { | |
29042 | (char *) "self",(char *) "path", NULL | |
29043 | }; | |
29044 | ||
29045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29048 | { |
29049 | arg2 = wxString_in_helper(obj1); | |
29050 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29051 | temp2 = true; |
d14a1e28 RD |
29052 | } |
29053 | { | |
29054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29055 | (arg1)->SetPath((wxString const &)*arg2); | |
29056 | ||
29057 | wxPyEndAllowThreads(__tstate); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | } | |
29060 | Py_INCREF(Py_None); resultobj = Py_None; | |
29061 | { | |
29062 | if (temp2) | |
29063 | delete arg2; | |
29064 | } | |
29065 | return resultobj; | |
29066 | fail: | |
29067 | { | |
29068 | if (temp2) | |
29069 | delete arg2; | |
29070 | } | |
29071 | return NULL; | |
29072 | } | |
29073 | ||
29074 | ||
c32bde28 | 29075 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29076 | PyObject *resultobj; |
29077 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29078 | bool arg2 ; | |
29079 | PyObject * obj0 = 0 ; | |
29080 | PyObject * obj1 = 0 ; | |
29081 | char *kwnames[] = { | |
29082 | (char *) "self",(char *) "show", NULL | |
29083 | }; | |
29084 | ||
29085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29088 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 29089 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29090 | { |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29092 | (arg1)->ShowHidden(arg2); | |
29093 | ||
29094 | wxPyEndAllowThreads(__tstate); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
29096 | } | |
29097 | Py_INCREF(Py_None); resultobj = Py_None; | |
29098 | return resultobj; | |
29099 | fail: | |
29100 | return NULL; | |
29101 | } | |
29102 | ||
29103 | ||
c32bde28 | 29104 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29105 | PyObject *resultobj; |
29106 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29107 | bool result; | |
29108 | PyObject * obj0 = 0 ; | |
29109 | char *kwnames[] = { | |
29110 | (char *) "self", NULL | |
29111 | }; | |
29112 | ||
29113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29116 | { |
29117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29118 | result = (bool)(arg1)->GetShowHidden(); | |
29119 | ||
29120 | wxPyEndAllowThreads(__tstate); | |
29121 | if (PyErr_Occurred()) SWIG_fail; | |
29122 | } | |
4f89f6a3 RD |
29123 | { |
29124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29125 | } | |
d14a1e28 RD |
29126 | return resultobj; |
29127 | fail: | |
29128 | return NULL; | |
29129 | } | |
29130 | ||
29131 | ||
c32bde28 | 29132 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29133 | PyObject *resultobj; |
29134 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29135 | wxString result; | |
29136 | PyObject * obj0 = 0 ; | |
29137 | char *kwnames[] = { | |
29138 | (char *) "self", NULL | |
29139 | }; | |
29140 | ||
29141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29144 | { |
29145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29146 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
29147 | ||
29148 | wxPyEndAllowThreads(__tstate); | |
29149 | if (PyErr_Occurred()) SWIG_fail; | |
29150 | } | |
29151 | { | |
29152 | #if wxUSE_UNICODE | |
29153 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29154 | #else | |
29155 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29156 | #endif | |
29157 | } | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | return NULL; | |
29161 | } | |
29162 | ||
29163 | ||
c32bde28 | 29164 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29165 | PyObject *resultobj; |
29166 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29167 | wxString *arg2 = 0 ; | |
ae8162c8 | 29168 | bool temp2 = false ; |
d14a1e28 RD |
29169 | PyObject * obj0 = 0 ; |
29170 | PyObject * obj1 = 0 ; | |
29171 | char *kwnames[] = { | |
29172 | (char *) "self",(char *) "filter", NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29178 | { |
29179 | arg2 = wxString_in_helper(obj1); | |
29180 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29181 | temp2 = true; |
d14a1e28 RD |
29182 | } |
29183 | { | |
29184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29185 | (arg1)->SetFilter((wxString const &)*arg2); | |
29186 | ||
29187 | wxPyEndAllowThreads(__tstate); | |
29188 | if (PyErr_Occurred()) SWIG_fail; | |
29189 | } | |
29190 | Py_INCREF(Py_None); resultobj = Py_None; | |
29191 | { | |
29192 | if (temp2) | |
29193 | delete arg2; | |
29194 | } | |
29195 | return resultobj; | |
29196 | fail: | |
29197 | { | |
29198 | if (temp2) | |
29199 | delete arg2; | |
29200 | } | |
29201 | return NULL; | |
29202 | } | |
29203 | ||
29204 | ||
c32bde28 | 29205 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29206 | PyObject *resultobj; |
29207 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29208 | int result; | |
29209 | PyObject * obj0 = 0 ; | |
29210 | char *kwnames[] = { | |
29211 | (char *) "self", NULL | |
29212 | }; | |
29213 | ||
29214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29217 | { |
29218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29219 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
29220 | ||
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
c32bde28 | 29224 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
29225 | return resultobj; |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
c32bde28 | 29231 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29232 | PyObject *resultobj; |
29233 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29234 | int arg2 ; | |
29235 | PyObject * obj0 = 0 ; | |
994141e6 | 29236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29237 | char *kwnames[] = { |
29238 | (char *) "self",(char *) "n", NULL | |
29239 | }; | |
29240 | ||
994141e6 | 29241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29244 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29245 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29246 | { |
29247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29248 | (arg1)->SetFilterIndex(arg2); | |
29249 | ||
29250 | wxPyEndAllowThreads(__tstate); | |
29251 | if (PyErr_Occurred()) SWIG_fail; | |
29252 | } | |
29253 | Py_INCREF(Py_None); resultobj = Py_None; | |
29254 | return resultobj; | |
29255 | fail: | |
29256 | return NULL; | |
29257 | } | |
29258 | ||
29259 | ||
c32bde28 | 29260 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29261 | PyObject *resultobj; |
29262 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29263 | wxTreeItemId result; | |
29264 | PyObject * obj0 = 0 ; | |
29265 | char *kwnames[] = { | |
29266 | (char *) "self", NULL | |
29267 | }; | |
29268 | ||
29269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29272 | { |
29273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29274 | result = (arg1)->GetRootId(); | |
29275 | ||
29276 | wxPyEndAllowThreads(__tstate); | |
29277 | if (PyErr_Occurred()) SWIG_fail; | |
29278 | } | |
29279 | { | |
29280 | wxTreeItemId * resultptr; | |
29281 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 29282 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29283 | } |
29284 | return resultobj; | |
29285 | fail: | |
29286 | return NULL; | |
29287 | } | |
29288 | ||
29289 | ||
c32bde28 | 29290 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29291 | PyObject *resultobj; |
29292 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 29293 | wxPyTreeCtrl *result; |
d14a1e28 RD |
29294 | PyObject * obj0 = 0 ; |
29295 | char *kwnames[] = { | |
29296 | (char *) "self", NULL | |
29297 | }; | |
29298 | ||
29299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29302 | { |
29303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 29304 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
29305 | |
29306 | wxPyEndAllowThreads(__tstate); | |
29307 | if (PyErr_Occurred()) SWIG_fail; | |
29308 | } | |
29309 | { | |
412d302d | 29310 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29311 | } |
29312 | return resultobj; | |
29313 | fail: | |
29314 | return NULL; | |
29315 | } | |
29316 | ||
29317 | ||
c32bde28 | 29318 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29319 | PyObject *resultobj; |
29320 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29321 | wxDirFilterListCtrl *result; | |
29322 | PyObject * obj0 = 0 ; | |
29323 | char *kwnames[] = { | |
29324 | (char *) "self", NULL | |
29325 | }; | |
29326 | ||
29327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29330 | { |
29331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29332 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
29333 | ||
29334 | wxPyEndAllowThreads(__tstate); | |
29335 | if (PyErr_Occurred()) SWIG_fail; | |
29336 | } | |
15afbcd0 | 29337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
29338 | return resultobj; |
29339 | fail: | |
29340 | return NULL; | |
29341 | } | |
29342 | ||
29343 | ||
c32bde28 | 29344 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29345 | PyObject *resultobj; |
29346 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29347 | wxTreeItemId arg2 ; | |
29348 | wxString *arg3 = 0 ; | |
29349 | bool *arg4 = 0 ; | |
29350 | wxTreeItemId result; | |
29351 | wxTreeItemId *argp2 ; | |
ae8162c8 | 29352 | bool temp3 = false ; |
d14a1e28 | 29353 | bool temp4 ; |
c32bde28 | 29354 | int res4 = 0 ; |
d14a1e28 RD |
29355 | PyObject * obj0 = 0 ; |
29356 | PyObject * obj1 = 0 ; | |
29357 | PyObject * obj2 = 0 ; | |
29358 | char *kwnames[] = { | |
29359 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
29360 | }; | |
29361 | ||
c32bde28 | 29362 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 29363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29366 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
29367 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29368 | arg2 = *argp2; | |
d14a1e28 RD |
29369 | { |
29370 | arg3 = wxString_in_helper(obj2); | |
29371 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29372 | temp3 = true; |
d14a1e28 RD |
29373 | } |
29374 | { | |
29375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29376 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
29377 | ||
29378 | wxPyEndAllowThreads(__tstate); | |
29379 | if (PyErr_Occurred()) SWIG_fail; | |
29380 | } | |
29381 | { | |
29382 | wxTreeItemId * resultptr; | |
29383 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 29384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 29385 | } |
c32bde28 RD |
29386 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
29387 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
29388 | { |
29389 | if (temp3) | |
29390 | delete arg3; | |
29391 | } | |
29392 | return resultobj; | |
29393 | fail: | |
29394 | { | |
29395 | if (temp3) | |
29396 | delete arg3; | |
29397 | } | |
29398 | return NULL; | |
29399 | } | |
29400 | ||
29401 | ||
c32bde28 | 29402 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29403 | PyObject *resultobj; |
29404 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29405 | PyObject * obj0 = 0 ; | |
29406 | char *kwnames[] = { | |
29407 | (char *) "self", NULL | |
29408 | }; | |
29409 | ||
29410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29413 | { |
29414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29415 | (arg1)->DoResize(); | |
29416 | ||
29417 | wxPyEndAllowThreads(__tstate); | |
29418 | if (PyErr_Occurred()) SWIG_fail; | |
29419 | } | |
29420 | Py_INCREF(Py_None); resultobj = Py_None; | |
29421 | return resultobj; | |
29422 | fail: | |
29423 | return NULL; | |
29424 | } | |
29425 | ||
29426 | ||
c32bde28 | 29427 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29428 | PyObject *resultobj; |
29429 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29430 | PyObject * obj0 = 0 ; | |
29431 | char *kwnames[] = { | |
29432 | (char *) "self", NULL | |
29433 | }; | |
29434 | ||
29435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29438 | { |
29439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29440 | (arg1)->ReCreateTree(); | |
29441 | ||
29442 | wxPyEndAllowThreads(__tstate); | |
29443 | if (PyErr_Occurred()) SWIG_fail; | |
29444 | } | |
29445 | Py_INCREF(Py_None); resultobj = Py_None; | |
29446 | return resultobj; | |
29447 | fail: | |
29448 | return NULL; | |
29449 | } | |
29450 | ||
29451 | ||
c32bde28 | 29452 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29453 | PyObject *obj; |
29454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29455 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
29456 | Py_INCREF(obj); | |
29457 | return Py_BuildValue((char *)""); | |
29458 | } | |
c32bde28 | 29459 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29460 | PyObject *resultobj; |
29461 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 29462 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
29463 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29464 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29465 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29466 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29467 | long arg5 = (long) 0 ; | |
29468 | wxDirFilterListCtrl *result; | |
29469 | wxPoint temp3 ; | |
29470 | wxSize temp4 ; | |
29471 | PyObject * obj0 = 0 ; | |
994141e6 | 29472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29473 | PyObject * obj2 = 0 ; |
29474 | PyObject * obj3 = 0 ; | |
994141e6 | 29475 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29476 | char *kwnames[] = { |
29477 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29478 | }; | |
29479 | ||
994141e6 | 29480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 29483 | if (obj1) { |
c32bde28 | 29484 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29485 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29486 | } |
d14a1e28 RD |
29487 | if (obj2) { |
29488 | { | |
29489 | arg3 = &temp3; | |
29490 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29491 | } | |
29492 | } | |
29493 | if (obj3) { | |
29494 | { | |
29495 | arg4 = &temp4; | |
29496 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29497 | } | |
29498 | } | |
994141e6 | 29499 | if (obj4) { |
c32bde28 | 29500 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 29501 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29502 | } |
d14a1e28 | 29503 | { |
e3b71cb8 | 29504 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29506 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29507 | ||
29508 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29509 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29510 | } |
15afbcd0 | 29511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
29512 | return resultobj; |
29513 | fail: | |
29514 | return NULL; | |
29515 | } | |
29516 | ||
29517 | ||
c32bde28 | 29518 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29519 | PyObject *resultobj; |
29520 | wxDirFilterListCtrl *result; | |
29521 | char *kwnames[] = { | |
29522 | NULL | |
29523 | }; | |
29524 | ||
29525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
29526 | { | |
e3b71cb8 | 29527 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29529 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
29530 | ||
29531 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29532 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29533 | } |
15afbcd0 | 29534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
29535 | return resultobj; |
29536 | fail: | |
29537 | return NULL; | |
29538 | } | |
29539 | ||
29540 | ||
c32bde28 | 29541 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29542 | PyObject *resultobj; |
29543 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29544 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 29545 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
29546 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
29547 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29548 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29549 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29550 | long arg6 = (long) 0 ; | |
29551 | bool result; | |
29552 | wxPoint temp4 ; | |
29553 | wxSize temp5 ; | |
29554 | PyObject * obj0 = 0 ; | |
29555 | PyObject * obj1 = 0 ; | |
994141e6 | 29556 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29557 | PyObject * obj3 = 0 ; |
29558 | PyObject * obj4 = 0 ; | |
994141e6 | 29559 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
29560 | char *kwnames[] = { |
29561 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29562 | }; | |
29563 | ||
994141e6 | 29564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
29566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
29568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 29569 | if (obj2) { |
c32bde28 | 29570 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29571 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29572 | } |
d14a1e28 RD |
29573 | if (obj3) { |
29574 | { | |
29575 | arg4 = &temp4; | |
29576 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29577 | } | |
29578 | } | |
29579 | if (obj4) { | |
29580 | { | |
29581 | arg5 = &temp5; | |
29582 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29583 | } | |
29584 | } | |
994141e6 | 29585 | if (obj5) { |
c32bde28 | 29586 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 29587 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29588 | } |
d14a1e28 RD |
29589 | { |
29590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29591 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
29592 | ||
29593 | wxPyEndAllowThreads(__tstate); | |
29594 | if (PyErr_Occurred()) SWIG_fail; | |
29595 | } | |
4f89f6a3 RD |
29596 | { |
29597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29598 | } | |
d14a1e28 RD |
29599 | return resultobj; |
29600 | fail: | |
29601 | return NULL; | |
29602 | } | |
29603 | ||
29604 | ||
c32bde28 | 29605 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29606 | PyObject *resultobj; |
29607 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29608 | wxString *arg2 = 0 ; | |
29609 | int arg3 ; | |
ae8162c8 | 29610 | bool temp2 = false ; |
d14a1e28 RD |
29611 | PyObject * obj0 = 0 ; |
29612 | PyObject * obj1 = 0 ; | |
994141e6 | 29613 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29614 | char *kwnames[] = { |
29615 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29616 | }; | |
29617 | ||
994141e6 | 29618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
29620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29621 | { |
29622 | arg2 = wxString_in_helper(obj1); | |
29623 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29624 | temp2 = true; |
d14a1e28 | 29625 | } |
c32bde28 | 29626 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29627 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29628 | { |
29629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29630 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29631 | ||
29632 | wxPyEndAllowThreads(__tstate); | |
29633 | if (PyErr_Occurred()) SWIG_fail; | |
29634 | } | |
29635 | Py_INCREF(Py_None); resultobj = Py_None; | |
29636 | { | |
29637 | if (temp2) | |
29638 | delete arg2; | |
29639 | } | |
29640 | return resultobj; | |
29641 | fail: | |
29642 | { | |
29643 | if (temp2) | |
29644 | delete arg2; | |
29645 | } | |
29646 | return NULL; | |
29647 | } | |
29648 | ||
29649 | ||
c32bde28 | 29650 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29651 | PyObject *obj; |
29652 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29653 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29654 | Py_INCREF(obj); | |
29655 | return Py_BuildValue((char *)""); | |
29656 | } | |
c32bde28 | 29657 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29658 | PyObject *resultobj; |
29659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29660 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
29661 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29662 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29663 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29664 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29665 | long arg5 = (long) 0 ; | |
29666 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29667 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29668 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29669 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29670 | wxPyControl *result; | |
29671 | wxPoint temp3 ; | |
29672 | wxSize temp4 ; | |
ae8162c8 | 29673 | bool temp7 = false ; |
d14a1e28 | 29674 | PyObject * obj0 = 0 ; |
994141e6 | 29675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29676 | PyObject * obj2 = 0 ; |
29677 | PyObject * obj3 = 0 ; | |
994141e6 | 29678 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29679 | PyObject * obj5 = 0 ; |
29680 | PyObject * obj6 = 0 ; | |
29681 | char *kwnames[] = { | |
29682 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29683 | }; | |
29684 | ||
248ed943 | 29685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
29686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 29688 | if (obj1) { |
c32bde28 | 29689 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
29690 | if (PyErr_Occurred()) SWIG_fail; |
29691 | } | |
d14a1e28 RD |
29692 | if (obj2) { |
29693 | { | |
29694 | arg3 = &temp3; | |
29695 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29696 | } | |
29697 | } | |
29698 | if (obj3) { | |
29699 | { | |
29700 | arg4 = &temp4; | |
29701 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29702 | } | |
29703 | } | |
994141e6 | 29704 | if (obj4) { |
c32bde28 | 29705 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 29706 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29707 | } |
d14a1e28 | 29708 | if (obj5) { |
15afbcd0 RD |
29709 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
29710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29711 | SWIG_fail; | |
d14a1e28 | 29712 | if (arg6 == NULL) { |
15afbcd0 RD |
29713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29714 | SWIG_fail; | |
d14a1e28 RD |
29715 | } |
29716 | } | |
29717 | if (obj6) { | |
29718 | { | |
29719 | arg7 = wxString_in_helper(obj6); | |
29720 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 29721 | temp7 = true; |
d14a1e28 RD |
29722 | } |
29723 | } | |
29724 | { | |
e3b71cb8 | 29725 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29727 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29728 | ||
29729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29730 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29731 | } |
15afbcd0 | 29732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
29733 | { |
29734 | if (temp7) | |
29735 | delete arg7; | |
29736 | } | |
29737 | return resultobj; | |
29738 | fail: | |
29739 | { | |
29740 | if (temp7) | |
29741 | delete arg7; | |
29742 | } | |
29743 | return NULL; | |
29744 | } | |
29745 | ||
29746 | ||
c32bde28 | 29747 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
29748 | PyObject *resultobj; |
29749 | wxPyControl *result; | |
29750 | char *kwnames[] = { | |
29751 | NULL | |
29752 | }; | |
29753 | ||
29754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29755 | { | |
e3b71cb8 | 29756 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
29757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29758 | result = (wxPyControl *)new wxPyControl(); | |
29759 | ||
29760 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29761 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
29762 | } |
29763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29764 | return resultobj; | |
29765 | fail: | |
29766 | return NULL; | |
29767 | } | |
29768 | ||
29769 | ||
c32bde28 | 29770 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29771 | PyObject *resultobj; |
29772 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29773 | PyObject *arg2 = (PyObject *) 0 ; | |
29774 | PyObject *arg3 = (PyObject *) 0 ; | |
29775 | PyObject * obj0 = 0 ; | |
29776 | PyObject * obj1 = 0 ; | |
29777 | PyObject * obj2 = 0 ; | |
29778 | char *kwnames[] = { | |
29779 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29780 | }; | |
29781 | ||
29782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29785 | arg2 = obj1; |
29786 | arg3 = obj2; | |
29787 | { | |
29788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29789 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29790 | ||
29791 | wxPyEndAllowThreads(__tstate); | |
29792 | if (PyErr_Occurred()) SWIG_fail; | |
29793 | } | |
29794 | Py_INCREF(Py_None); resultobj = Py_None; | |
29795 | return resultobj; | |
29796 | fail: | |
29797 | return NULL; | |
29798 | } | |
29799 | ||
29800 | ||
c32bde28 | 29801 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
29802 | PyObject *resultobj; |
29803 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29804 | wxSize *arg2 = 0 ; | |
29805 | wxSize temp2 ; | |
29806 | PyObject * obj0 = 0 ; | |
29807 | PyObject * obj1 = 0 ; | |
29808 | char *kwnames[] = { | |
29809 | (char *) "self",(char *) "size", NULL | |
29810 | }; | |
29811 | ||
29812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29815 | { | |
29816 | arg2 = &temp2; | |
29817 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29818 | } | |
29819 | { | |
29820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29821 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29822 | ||
29823 | wxPyEndAllowThreads(__tstate); | |
29824 | if (PyErr_Occurred()) SWIG_fail; | |
29825 | } | |
29826 | Py_INCREF(Py_None); resultobj = Py_None; | |
29827 | return resultobj; | |
29828 | fail: | |
29829 | return NULL; | |
29830 | } | |
29831 | ||
29832 | ||
c32bde28 | 29833 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29834 | PyObject *resultobj; |
29835 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29836 | int arg2 ; | |
29837 | int arg3 ; | |
29838 | int arg4 ; | |
29839 | int arg5 ; | |
29840 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29841 | PyObject * obj1 = 0 ; |
29842 | PyObject * obj2 = 0 ; | |
29843 | PyObject * obj3 = 0 ; | |
29844 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29845 | char *kwnames[] = { |
29846 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29847 | }; | |
29848 | ||
994141e6 | 29849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29852 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29853 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29854 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29855 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29856 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29857 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29858 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29859 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29860 | { |
29861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29862 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29863 | ||
29864 | wxPyEndAllowThreads(__tstate); | |
29865 | if (PyErr_Occurred()) SWIG_fail; | |
29866 | } | |
29867 | Py_INCREF(Py_None); resultobj = Py_None; | |
29868 | return resultobj; | |
29869 | fail: | |
29870 | return NULL; | |
29871 | } | |
29872 | ||
29873 | ||
c32bde28 | 29874 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29875 | PyObject *resultobj; |
29876 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29877 | int arg2 ; | |
29878 | int arg3 ; | |
29879 | int arg4 ; | |
29880 | int arg5 ; | |
29881 | int arg6 = (int) wxSIZE_AUTO ; | |
29882 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29883 | PyObject * obj1 = 0 ; |
29884 | PyObject * obj2 = 0 ; | |
29885 | PyObject * obj3 = 0 ; | |
29886 | PyObject * obj4 = 0 ; | |
29887 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
29888 | char *kwnames[] = { |
29889 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29890 | }; | |
29891 | ||
994141e6 | 29892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29895 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29896 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29897 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29898 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29899 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29900 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29901 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29902 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29903 | if (obj5) { |
c32bde28 | 29904 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 29905 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29906 | } |
d14a1e28 RD |
29907 | { |
29908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29909 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29910 | ||
29911 | wxPyEndAllowThreads(__tstate); | |
29912 | if (PyErr_Occurred()) SWIG_fail; | |
29913 | } | |
29914 | Py_INCREF(Py_None); resultobj = Py_None; | |
29915 | return resultobj; | |
29916 | fail: | |
29917 | return NULL; | |
29918 | } | |
29919 | ||
29920 | ||
c32bde28 | 29921 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29922 | PyObject *resultobj; |
29923 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29924 | int arg2 ; | |
29925 | int arg3 ; | |
29926 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29927 | PyObject * obj1 = 0 ; |
29928 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29929 | char *kwnames[] = { |
29930 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29931 | }; | |
29932 | ||
994141e6 | 29933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29936 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29937 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29938 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29939 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29940 | { |
29941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29942 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29943 | ||
29944 | wxPyEndAllowThreads(__tstate); | |
29945 | if (PyErr_Occurred()) SWIG_fail; | |
29946 | } | |
29947 | Py_INCREF(Py_None); resultobj = Py_None; | |
29948 | return resultobj; | |
29949 | fail: | |
29950 | return NULL; | |
29951 | } | |
29952 | ||
29953 | ||
c32bde28 | 29954 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29955 | PyObject *resultobj; |
29956 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29957 | int arg2 ; | |
29958 | int arg3 ; | |
29959 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29960 | PyObject * obj1 = 0 ; |
29961 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29962 | char *kwnames[] = { |
29963 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29964 | }; | |
29965 | ||
994141e6 | 29966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29969 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29970 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29971 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29972 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29973 | { |
29974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29975 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29976 | ||
29977 | wxPyEndAllowThreads(__tstate); | |
29978 | if (PyErr_Occurred()) SWIG_fail; | |
29979 | } | |
29980 | Py_INCREF(Py_None); resultobj = Py_None; | |
29981 | return resultobj; | |
29982 | fail: | |
29983 | return NULL; | |
29984 | } | |
29985 | ||
29986 | ||
c32bde28 | 29987 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29988 | PyObject *resultobj; |
29989 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29990 | int *arg2 = (int *) 0 ; | |
29991 | int *arg3 = (int *) 0 ; | |
29992 | int temp2 ; | |
c32bde28 | 29993 | int res2 = 0 ; |
d14a1e28 | 29994 | int temp3 ; |
c32bde28 | 29995 | int res3 = 0 ; |
d14a1e28 RD |
29996 | PyObject * obj0 = 0 ; |
29997 | char *kwnames[] = { | |
29998 | (char *) "self", NULL | |
29999 | }; | |
30000 | ||
c32bde28 RD |
30001 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30002 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 30003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
30004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30006 | { |
30007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30008 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
30009 | ||
30010 | wxPyEndAllowThreads(__tstate); | |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
30012 | } | |
30013 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30014 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30015 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30016 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30017 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30018 | return resultobj; |
30019 | fail: | |
30020 | return NULL; | |
30021 | } | |
30022 | ||
30023 | ||
c32bde28 | 30024 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30025 | PyObject *resultobj; |
30026 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30027 | int *arg2 = (int *) 0 ; | |
30028 | int *arg3 = (int *) 0 ; | |
30029 | int temp2 ; | |
c32bde28 | 30030 | int res2 = 0 ; |
d14a1e28 | 30031 | int temp3 ; |
c32bde28 | 30032 | int res3 = 0 ; |
d14a1e28 RD |
30033 | PyObject * obj0 = 0 ; |
30034 | char *kwnames[] = { | |
30035 | (char *) "self", NULL | |
30036 | }; | |
30037 | ||
c32bde28 RD |
30038 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30039 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 30040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
30041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30043 | { |
30044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30045 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
30046 | ||
30047 | wxPyEndAllowThreads(__tstate); | |
30048 | if (PyErr_Occurred()) SWIG_fail; | |
30049 | } | |
30050 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30051 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30052 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30053 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30054 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30055 | return resultobj; |
30056 | fail: | |
30057 | return NULL; | |
30058 | } | |
30059 | ||
30060 | ||
c32bde28 | 30061 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30062 | PyObject *resultobj; |
30063 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30064 | int *arg2 = (int *) 0 ; | |
30065 | int *arg3 = (int *) 0 ; | |
30066 | int temp2 ; | |
c32bde28 | 30067 | int res2 = 0 ; |
d14a1e28 | 30068 | int temp3 ; |
c32bde28 | 30069 | int res3 = 0 ; |
d14a1e28 RD |
30070 | PyObject * obj0 = 0 ; |
30071 | char *kwnames[] = { | |
30072 | (char *) "self", NULL | |
30073 | }; | |
30074 | ||
c32bde28 RD |
30075 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
30076 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 30077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
30078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30080 | { |
30081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30082 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
30083 | ||
30084 | wxPyEndAllowThreads(__tstate); | |
30085 | if (PyErr_Occurred()) SWIG_fail; | |
30086 | } | |
30087 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30088 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30089 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30090 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30091 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30092 | return resultobj; |
30093 | fail: | |
30094 | return NULL; | |
30095 | } | |
30096 | ||
30097 | ||
c32bde28 | 30098 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30099 | PyObject *resultobj; |
30100 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30101 | wxSize result; | |
30102 | PyObject * obj0 = 0 ; | |
30103 | char *kwnames[] = { | |
30104 | (char *) "self", NULL | |
30105 | }; | |
30106 | ||
30107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30110 | { |
30111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30112 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
30113 | ||
30114 | wxPyEndAllowThreads(__tstate); | |
30115 | if (PyErr_Occurred()) SWIG_fail; | |
30116 | } | |
30117 | { | |
30118 | wxSize * resultptr; | |
30119 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 30120 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
30121 | } |
30122 | return resultobj; | |
30123 | fail: | |
30124 | return NULL; | |
30125 | } | |
30126 | ||
30127 | ||
c32bde28 | 30128 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30129 | PyObject *resultobj; |
30130 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30131 | wxSize result; | |
30132 | PyObject * obj0 = 0 ; | |
30133 | char *kwnames[] = { | |
30134 | (char *) "self", NULL | |
30135 | }; | |
30136 | ||
30137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30140 | { |
30141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30142 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
30143 | ||
30144 | wxPyEndAllowThreads(__tstate); | |
30145 | if (PyErr_Occurred()) SWIG_fail; | |
30146 | } | |
30147 | { | |
30148 | wxSize * resultptr; | |
30149 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 30150 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
30151 | } |
30152 | return resultobj; | |
30153 | fail: | |
30154 | return NULL; | |
30155 | } | |
30156 | ||
30157 | ||
c32bde28 | 30158 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30159 | PyObject *resultobj; |
30160 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30161 | PyObject * obj0 = 0 ; | |
30162 | char *kwnames[] = { | |
30163 | (char *) "self", NULL | |
30164 | }; | |
30165 | ||
30166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30169 | { |
30170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30171 | (arg1)->base_InitDialog(); | |
30172 | ||
30173 | wxPyEndAllowThreads(__tstate); | |
30174 | if (PyErr_Occurred()) SWIG_fail; | |
30175 | } | |
30176 | Py_INCREF(Py_None); resultobj = Py_None; | |
30177 | return resultobj; | |
30178 | fail: | |
30179 | return NULL; | |
30180 | } | |
30181 | ||
30182 | ||
c32bde28 | 30183 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30184 | PyObject *resultobj; |
30185 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30186 | bool result; | |
30187 | PyObject * obj0 = 0 ; | |
30188 | char *kwnames[] = { | |
30189 | (char *) "self", NULL | |
30190 | }; | |
30191 | ||
30192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30195 | { |
30196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30197 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
30198 | ||
30199 | wxPyEndAllowThreads(__tstate); | |
30200 | if (PyErr_Occurred()) SWIG_fail; | |
30201 | } | |
4f89f6a3 RD |
30202 | { |
30203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30204 | } | |
d14a1e28 RD |
30205 | return resultobj; |
30206 | fail: | |
30207 | return NULL; | |
30208 | } | |
30209 | ||
30210 | ||
c32bde28 | 30211 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30212 | PyObject *resultobj; |
30213 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30214 | bool result; | |
30215 | PyObject * obj0 = 0 ; | |
30216 | char *kwnames[] = { | |
30217 | (char *) "self", NULL | |
30218 | }; | |
30219 | ||
30220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30223 | { |
30224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30225 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
30226 | ||
30227 | wxPyEndAllowThreads(__tstate); | |
30228 | if (PyErr_Occurred()) SWIG_fail; | |
30229 | } | |
4f89f6a3 RD |
30230 | { |
30231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30232 | } | |
d14a1e28 RD |
30233 | return resultobj; |
30234 | fail: | |
30235 | return NULL; | |
30236 | } | |
30237 | ||
30238 | ||
c32bde28 | 30239 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30240 | PyObject *resultobj; |
30241 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30242 | bool result; | |
30243 | PyObject * obj0 = 0 ; | |
30244 | char *kwnames[] = { | |
30245 | (char *) "self", NULL | |
30246 | }; | |
30247 | ||
30248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30251 | { |
30252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30253 | result = (bool)(arg1)->base_Validate(); | |
30254 | ||
30255 | wxPyEndAllowThreads(__tstate); | |
30256 | if (PyErr_Occurred()) SWIG_fail; | |
30257 | } | |
4f89f6a3 RD |
30258 | { |
30259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30260 | } | |
d14a1e28 RD |
30261 | return resultobj; |
30262 | fail: | |
30263 | return NULL; | |
30264 | } | |
30265 | ||
30266 | ||
c32bde28 | 30267 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30268 | PyObject *resultobj; |
30269 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30270 | bool result; | |
30271 | PyObject * obj0 = 0 ; | |
30272 | char *kwnames[] = { | |
30273 | (char *) "self", NULL | |
30274 | }; | |
30275 | ||
30276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30279 | { |
30280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30281 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
30282 | ||
30283 | wxPyEndAllowThreads(__tstate); | |
30284 | if (PyErr_Occurred()) SWIG_fail; | |
30285 | } | |
4f89f6a3 RD |
30286 | { |
30287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30288 | } | |
d14a1e28 RD |
30289 | return resultobj; |
30290 | fail: | |
30291 | return NULL; | |
30292 | } | |
30293 | ||
30294 | ||
c32bde28 | 30295 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30296 | PyObject *resultobj; |
30297 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30298 | bool result; | |
30299 | PyObject * obj0 = 0 ; | |
30300 | char *kwnames[] = { | |
30301 | (char *) "self", NULL | |
30302 | }; | |
30303 | ||
30304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30307 | { |
30308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30309 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
30310 | ||
30311 | wxPyEndAllowThreads(__tstate); | |
30312 | if (PyErr_Occurred()) SWIG_fail; | |
30313 | } | |
4f89f6a3 RD |
30314 | { |
30315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30316 | } | |
d14a1e28 RD |
30317 | return resultobj; |
30318 | fail: | |
30319 | return NULL; | |
30320 | } | |
30321 | ||
30322 | ||
c32bde28 | 30323 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30324 | PyObject *resultobj; |
30325 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30326 | wxSize result; | |
30327 | PyObject * obj0 = 0 ; | |
30328 | char *kwnames[] = { | |
30329 | (char *) "self", NULL | |
30330 | }; | |
30331 | ||
30332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30335 | { |
30336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30337 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
30338 | ||
30339 | wxPyEndAllowThreads(__tstate); | |
30340 | if (PyErr_Occurred()) SWIG_fail; | |
30341 | } | |
30342 | { | |
30343 | wxSize * resultptr; | |
30344 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 30345 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
30346 | } |
30347 | return resultobj; | |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
c32bde28 | 30353 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30354 | PyObject *resultobj; |
30355 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30357 | PyObject * obj0 = 0 ; | |
30358 | PyObject * obj1 = 0 ; | |
30359 | char *kwnames[] = { | |
30360 | (char *) "self",(char *) "child", NULL | |
30361 | }; | |
30362 | ||
30363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30368 | { |
30369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30370 | (arg1)->base_AddChild(arg2); | |
30371 | ||
30372 | wxPyEndAllowThreads(__tstate); | |
30373 | if (PyErr_Occurred()) SWIG_fail; | |
30374 | } | |
30375 | Py_INCREF(Py_None); resultobj = Py_None; | |
30376 | return resultobj; | |
30377 | fail: | |
30378 | return NULL; | |
30379 | } | |
30380 | ||
30381 | ||
c32bde28 | 30382 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30383 | PyObject *resultobj; |
30384 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30385 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30386 | PyObject * obj0 = 0 ; | |
30387 | PyObject * obj1 = 0 ; | |
30388 | char *kwnames[] = { | |
30389 | (char *) "self",(char *) "child", NULL | |
30390 | }; | |
30391 | ||
30392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30397 | { |
30398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30399 | (arg1)->base_RemoveChild(arg2); | |
30400 | ||
30401 | wxPyEndAllowThreads(__tstate); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
30404 | Py_INCREF(Py_None); resultobj = Py_None; | |
30405 | return resultobj; | |
30406 | fail: | |
30407 | return NULL; | |
30408 | } | |
30409 | ||
30410 | ||
c32bde28 | 30411 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
30412 | PyObject *resultobj; |
30413 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30414 | bool result; | |
30415 | PyObject * obj0 = 0 ; | |
30416 | char *kwnames[] = { | |
30417 | (char *) "self", NULL | |
30418 | }; | |
30419 | ||
30420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
30421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30423 | { | |
30424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 30425 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
30426 | |
30427 | wxPyEndAllowThreads(__tstate); | |
30428 | if (PyErr_Occurred()) SWIG_fail; | |
30429 | } | |
30430 | { | |
30431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30432 | } | |
30433 | return resultobj; | |
30434 | fail: | |
30435 | return NULL; | |
30436 | } | |
30437 | ||
30438 | ||
c32bde28 | 30439 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
30440 | PyObject *resultobj; |
30441 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30442 | wxColour *arg2 = 0 ; | |
30443 | wxColour temp2 ; | |
30444 | PyObject * obj0 = 0 ; | |
30445 | PyObject * obj1 = 0 ; | |
30446 | char *kwnames[] = { | |
30447 | (char *) "self",(char *) "c", NULL | |
30448 | }; | |
30449 | ||
30450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
30451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30453 | { | |
30454 | arg2 = &temp2; | |
30455 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30456 | } | |
30457 | { | |
30458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30459 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
30460 | ||
30461 | wxPyEndAllowThreads(__tstate); | |
30462 | if (PyErr_Occurred()) SWIG_fail; | |
30463 | } | |
30464 | Py_INCREF(Py_None); resultobj = Py_None; | |
30465 | return resultobj; | |
30466 | fail: | |
30467 | return NULL; | |
30468 | } | |
30469 | ||
30470 | ||
c32bde28 | 30471 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
30472 | PyObject *resultobj; |
30473 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30474 | wxVisualAttributes result; | |
30475 | PyObject * obj0 = 0 ; | |
30476 | char *kwnames[] = { | |
30477 | (char *) "self", NULL | |
30478 | }; | |
30479 | ||
30480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
30481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30483 | { | |
30484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30485 | result = (arg1)->base_GetDefaultAttributes(); | |
30486 | ||
30487 | wxPyEndAllowThreads(__tstate); | |
30488 | if (PyErr_Occurred()) SWIG_fail; | |
30489 | } | |
30490 | { | |
30491 | wxVisualAttributes * resultptr; | |
30492 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
30493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
30494 | } | |
30495 | return resultobj; | |
30496 | fail: | |
30497 | return NULL; | |
30498 | } | |
30499 | ||
30500 | ||
c32bde28 | 30501 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30502 | PyObject *obj; |
30503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30504 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
30505 | Py_INCREF(obj); | |
30506 | return Py_BuildValue((char *)""); | |
30507 | } | |
c32bde28 | 30508 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30509 | PyObject *resultobj; |
30510 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 30511 | int arg2 = (int) 0 ; |
d14a1e28 RD |
30512 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30513 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30514 | wxHelpEvent *result; | |
30515 | wxPoint temp3 ; | |
994141e6 RD |
30516 | PyObject * obj0 = 0 ; |
30517 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
30518 | PyObject * obj2 = 0 ; |
30519 | char *kwnames[] = { | |
30520 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
30521 | }; | |
30522 | ||
994141e6 RD |
30523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
30524 | if (obj0) { | |
c32bde28 | 30525 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 30526 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
30527 | } |
30528 | if (obj1) { | |
c32bde28 | 30529 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30530 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30531 | } |
d14a1e28 RD |
30532 | if (obj2) { |
30533 | { | |
30534 | arg3 = &temp3; | |
30535 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30536 | } | |
30537 | } | |
30538 | { | |
30539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30540 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
30541 | ||
30542 | wxPyEndAllowThreads(__tstate); | |
30543 | if (PyErr_Occurred()) SWIG_fail; | |
30544 | } | |
15afbcd0 | 30545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
30546 | return resultobj; |
30547 | fail: | |
30548 | return NULL; | |
30549 | } | |
30550 | ||
30551 | ||
c32bde28 | 30552 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30553 | PyObject *resultobj; |
30554 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 30555 | wxPoint result; |
d14a1e28 RD |
30556 | PyObject * obj0 = 0 ; |
30557 | char *kwnames[] = { | |
30558 | (char *) "self", NULL | |
30559 | }; | |
30560 | ||
30561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30564 | { |
30565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 30566 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
30567 | |
30568 | wxPyEndAllowThreads(__tstate); | |
30569 | if (PyErr_Occurred()) SWIG_fail; | |
30570 | } | |
15afbcd0 RD |
30571 | { |
30572 | wxPoint * resultptr; | |
30573 | resultptr = new wxPoint((wxPoint &) result); | |
30574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
30575 | } | |
d14a1e28 RD |
30576 | return resultobj; |
30577 | fail: | |
30578 | return NULL; | |
30579 | } | |
30580 | ||
30581 | ||
c32bde28 | 30582 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30583 | PyObject *resultobj; |
30584 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30585 | wxPoint *arg2 = 0 ; | |
30586 | wxPoint temp2 ; | |
30587 | PyObject * obj0 = 0 ; | |
30588 | PyObject * obj1 = 0 ; | |
30589 | char *kwnames[] = { | |
30590 | (char *) "self",(char *) "pos", NULL | |
30591 | }; | |
30592 | ||
30593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30596 | { |
30597 | arg2 = &temp2; | |
30598 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30599 | } | |
30600 | { | |
30601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30602 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30603 | ||
30604 | wxPyEndAllowThreads(__tstate); | |
30605 | if (PyErr_Occurred()) SWIG_fail; | |
30606 | } | |
30607 | Py_INCREF(Py_None); resultobj = Py_None; | |
30608 | return resultobj; | |
30609 | fail: | |
30610 | return NULL; | |
30611 | } | |
30612 | ||
30613 | ||
c32bde28 | 30614 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30615 | PyObject *resultobj; |
30616 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30617 | wxString *result; | |
30618 | PyObject * obj0 = 0 ; | |
30619 | char *kwnames[] = { | |
30620 | (char *) "self", NULL | |
30621 | }; | |
30622 | ||
30623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30626 | { |
30627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30628 | { | |
30629 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30630 | result = (wxString *) &_result_ref; | |
30631 | } | |
30632 | ||
30633 | wxPyEndAllowThreads(__tstate); | |
30634 | if (PyErr_Occurred()) SWIG_fail; | |
30635 | } | |
cc6dd355 RD |
30636 | { |
30637 | #if wxUSE_UNICODE | |
30638 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30639 | #else | |
30640 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30641 | #endif | |
30642 | } | |
d14a1e28 RD |
30643 | return resultobj; |
30644 | fail: | |
30645 | return NULL; | |
30646 | } | |
30647 | ||
30648 | ||
c32bde28 | 30649 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30650 | PyObject *resultobj; |
30651 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30652 | wxString *arg2 = 0 ; | |
ae8162c8 | 30653 | bool temp2 = false ; |
d14a1e28 RD |
30654 | PyObject * obj0 = 0 ; |
30655 | PyObject * obj1 = 0 ; | |
30656 | char *kwnames[] = { | |
30657 | (char *) "self",(char *) "link", NULL | |
30658 | }; | |
30659 | ||
30660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30663 | { |
30664 | arg2 = wxString_in_helper(obj1); | |
30665 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30666 | temp2 = true; |
d14a1e28 RD |
30667 | } |
30668 | { | |
30669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30670 | (arg1)->SetLink((wxString const &)*arg2); | |
30671 | ||
30672 | wxPyEndAllowThreads(__tstate); | |
30673 | if (PyErr_Occurred()) SWIG_fail; | |
30674 | } | |
30675 | Py_INCREF(Py_None); resultobj = Py_None; | |
30676 | { | |
30677 | if (temp2) | |
30678 | delete arg2; | |
30679 | } | |
30680 | return resultobj; | |
30681 | fail: | |
30682 | { | |
30683 | if (temp2) | |
30684 | delete arg2; | |
30685 | } | |
30686 | return NULL; | |
30687 | } | |
30688 | ||
30689 | ||
c32bde28 | 30690 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30691 | PyObject *resultobj; |
30692 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30693 | wxString *result; | |
30694 | PyObject * obj0 = 0 ; | |
30695 | char *kwnames[] = { | |
30696 | (char *) "self", NULL | |
30697 | }; | |
30698 | ||
30699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30702 | { |
30703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30704 | { | |
30705 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30706 | result = (wxString *) &_result_ref; | |
30707 | } | |
30708 | ||
30709 | wxPyEndAllowThreads(__tstate); | |
30710 | if (PyErr_Occurred()) SWIG_fail; | |
30711 | } | |
cc6dd355 RD |
30712 | { |
30713 | #if wxUSE_UNICODE | |
30714 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30715 | #else | |
30716 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30717 | #endif | |
30718 | } | |
d14a1e28 RD |
30719 | return resultobj; |
30720 | fail: | |
30721 | return NULL; | |
30722 | } | |
30723 | ||
30724 | ||
c32bde28 | 30725 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30726 | PyObject *resultobj; |
30727 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30728 | wxString *arg2 = 0 ; | |
ae8162c8 | 30729 | bool temp2 = false ; |
d14a1e28 RD |
30730 | PyObject * obj0 = 0 ; |
30731 | PyObject * obj1 = 0 ; | |
30732 | char *kwnames[] = { | |
30733 | (char *) "self",(char *) "target", NULL | |
30734 | }; | |
30735 | ||
30736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30739 | { |
30740 | arg2 = wxString_in_helper(obj1); | |
30741 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30742 | temp2 = true; |
d14a1e28 RD |
30743 | } |
30744 | { | |
30745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30746 | (arg1)->SetTarget((wxString const &)*arg2); | |
30747 | ||
30748 | wxPyEndAllowThreads(__tstate); | |
30749 | if (PyErr_Occurred()) SWIG_fail; | |
30750 | } | |
30751 | Py_INCREF(Py_None); resultobj = Py_None; | |
30752 | { | |
30753 | if (temp2) | |
30754 | delete arg2; | |
30755 | } | |
30756 | return resultobj; | |
30757 | fail: | |
30758 | { | |
30759 | if (temp2) | |
30760 | delete arg2; | |
30761 | } | |
30762 | return NULL; | |
30763 | } | |
30764 | ||
30765 | ||
c32bde28 | 30766 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30767 | PyObject *obj; |
30768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30769 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30770 | Py_INCREF(obj); | |
30771 | return Py_BuildValue((char *)""); | |
30772 | } | |
c32bde28 | 30773 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30774 | PyObject *resultobj; |
30775 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 30776 | bool arg2 = (bool) true ; |
d14a1e28 RD |
30777 | wxContextHelp *result; |
30778 | PyObject * obj0 = 0 ; | |
30779 | PyObject * obj1 = 0 ; | |
30780 | char *kwnames[] = { | |
30781 | (char *) "window",(char *) "doNow", NULL | |
30782 | }; | |
30783 | ||
30784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30785 | if (obj0) { | |
15afbcd0 RD |
30786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30788 | } |
30789 | if (obj1) { | |
c32bde28 | 30790 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 30791 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30792 | } |
30793 | { | |
e3b71cb8 | 30794 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30796 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30797 | ||
30798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30799 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30800 | } |
15afbcd0 | 30801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
30802 | return resultobj; |
30803 | fail: | |
30804 | return NULL; | |
30805 | } | |
30806 | ||
30807 | ||
c32bde28 | 30808 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30809 | PyObject *resultobj; |
30810 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30811 | PyObject * obj0 = 0 ; | |
30812 | char *kwnames[] = { | |
30813 | (char *) "self", NULL | |
30814 | }; | |
30815 | ||
30816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30819 | { |
30820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30821 | delete arg1; | |
30822 | ||
30823 | wxPyEndAllowThreads(__tstate); | |
30824 | if (PyErr_Occurred()) SWIG_fail; | |
30825 | } | |
30826 | Py_INCREF(Py_None); resultobj = Py_None; | |
30827 | return resultobj; | |
30828 | fail: | |
30829 | return NULL; | |
30830 | } | |
30831 | ||
30832 | ||
c32bde28 | 30833 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30834 | PyObject *resultobj; |
30835 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30836 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30837 | bool result; | |
30838 | PyObject * obj0 = 0 ; | |
30839 | PyObject * obj1 = 0 ; | |
30840 | char *kwnames[] = { | |
30841 | (char *) "self",(char *) "window", NULL | |
30842 | }; | |
30843 | ||
30844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30847 | if (obj1) { |
15afbcd0 RD |
30848 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
30849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30850 | } |
30851 | { | |
30852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30853 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30854 | ||
30855 | wxPyEndAllowThreads(__tstate); | |
30856 | if (PyErr_Occurred()) SWIG_fail; | |
30857 | } | |
4f89f6a3 RD |
30858 | { |
30859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30860 | } | |
d14a1e28 RD |
30861 | return resultobj; |
30862 | fail: | |
30863 | return NULL; | |
30864 | } | |
30865 | ||
30866 | ||
c32bde28 | 30867 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30868 | PyObject *resultobj; |
30869 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30870 | bool result; | |
30871 | PyObject * obj0 = 0 ; | |
30872 | char *kwnames[] = { | |
30873 | (char *) "self", NULL | |
30874 | }; | |
30875 | ||
30876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30879 | { |
30880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30881 | result = (bool)(arg1)->EndContextHelp(); | |
30882 | ||
30883 | wxPyEndAllowThreads(__tstate); | |
30884 | if (PyErr_Occurred()) SWIG_fail; | |
30885 | } | |
4f89f6a3 RD |
30886 | { |
30887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30888 | } | |
d14a1e28 RD |
30889 | return resultobj; |
30890 | fail: | |
30891 | return NULL; | |
30892 | } | |
30893 | ||
30894 | ||
c32bde28 | 30895 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30896 | PyObject *obj; |
30897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30898 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30899 | Py_INCREF(obj); | |
30900 | return Py_BuildValue((char *)""); | |
30901 | } | |
c32bde28 | 30902 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30903 | PyObject *resultobj; |
30904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30905 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30906 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30907 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30908 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30909 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30910 | long arg5 = (long) wxBU_AUTODRAW ; | |
30911 | wxContextHelpButton *result; | |
30912 | wxPoint temp3 ; | |
30913 | wxSize temp4 ; | |
30914 | PyObject * obj0 = 0 ; | |
994141e6 | 30915 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30916 | PyObject * obj2 = 0 ; |
30917 | PyObject * obj3 = 0 ; | |
994141e6 | 30918 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30919 | char *kwnames[] = { |
30920 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30921 | }; | |
30922 | ||
994141e6 | 30923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30926 | if (obj1) { |
c32bde28 | 30927 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30928 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30929 | } |
d14a1e28 RD |
30930 | if (obj2) { |
30931 | { | |
30932 | arg3 = &temp3; | |
30933 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30934 | } | |
30935 | } | |
30936 | if (obj3) { | |
30937 | { | |
30938 | arg4 = &temp4; | |
30939 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30940 | } | |
30941 | } | |
994141e6 | 30942 | if (obj4) { |
c32bde28 | 30943 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 30944 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30945 | } |
d14a1e28 | 30946 | { |
e3b71cb8 | 30947 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30949 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30950 | ||
30951 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30952 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30953 | } |
15afbcd0 | 30954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30955 | return resultobj; |
30956 | fail: | |
30957 | return NULL; | |
30958 | } | |
30959 | ||
30960 | ||
c32bde28 | 30961 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30962 | PyObject *obj; |
30963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30964 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30965 | Py_INCREF(obj); | |
30966 | return Py_BuildValue((char *)""); | |
30967 | } | |
c32bde28 | 30968 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30969 | PyObject *resultobj; |
30970 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30971 | wxHelpProvider *result; | |
30972 | PyObject * obj0 = 0 ; | |
30973 | char *kwnames[] = { | |
30974 | (char *) "helpProvider", NULL | |
30975 | }; | |
30976 | ||
30977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30980 | { |
30981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30982 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30983 | ||
30984 | wxPyEndAllowThreads(__tstate); | |
30985 | if (PyErr_Occurred()) SWIG_fail; | |
30986 | } | |
15afbcd0 | 30987 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30988 | return resultobj; |
30989 | fail: | |
30990 | return NULL; | |
30991 | } | |
30992 | ||
30993 | ||
c32bde28 | 30994 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30995 | PyObject *resultobj; |
30996 | wxHelpProvider *result; | |
30997 | char *kwnames[] = { | |
30998 | NULL | |
30999 | }; | |
31000 | ||
31001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
31002 | { | |
31003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31004 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
31005 | ||
31006 | wxPyEndAllowThreads(__tstate); | |
31007 | if (PyErr_Occurred()) SWIG_fail; | |
31008 | } | |
15afbcd0 | 31009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
31010 | return resultobj; |
31011 | fail: | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
c32bde28 | 31016 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31017 | PyObject *resultobj; |
31018 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31019 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31020 | wxString result; | |
31021 | PyObject * obj0 = 0 ; | |
31022 | PyObject * obj1 = 0 ; | |
31023 | char *kwnames[] = { | |
31024 | (char *) "self",(char *) "window", NULL | |
31025 | }; | |
31026 | ||
31027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
31029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31032 | { |
31033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31034 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
31035 | ||
31036 | wxPyEndAllowThreads(__tstate); | |
31037 | if (PyErr_Occurred()) SWIG_fail; | |
31038 | } | |
31039 | { | |
31040 | #if wxUSE_UNICODE | |
31041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31042 | #else | |
31043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31044 | #endif | |
31045 | } | |
31046 | return resultobj; | |
31047 | fail: | |
31048 | return NULL; | |
31049 | } | |
31050 | ||
31051 | ||
c32bde28 | 31052 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31053 | PyObject *resultobj; |
31054 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31056 | bool result; | |
31057 | PyObject * obj0 = 0 ; | |
31058 | PyObject * obj1 = 0 ; | |
31059 | char *kwnames[] = { | |
31060 | (char *) "self",(char *) "window", NULL | |
31061 | }; | |
31062 | ||
31063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
31065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31068 | { |
31069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31070 | result = (bool)(arg1)->ShowHelp(arg2); | |
31071 | ||
31072 | wxPyEndAllowThreads(__tstate); | |
31073 | if (PyErr_Occurred()) SWIG_fail; | |
31074 | } | |
4f89f6a3 RD |
31075 | { |
31076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31077 | } | |
d14a1e28 RD |
31078 | return resultobj; |
31079 | fail: | |
31080 | return NULL; | |
31081 | } | |
31082 | ||
31083 | ||
c32bde28 | 31084 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31085 | PyObject *resultobj; |
31086 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31088 | wxString *arg3 = 0 ; | |
ae8162c8 | 31089 | bool temp3 = false ; |
d14a1e28 RD |
31090 | PyObject * obj0 = 0 ; |
31091 | PyObject * obj1 = 0 ; | |
31092 | PyObject * obj2 = 0 ; | |
31093 | char *kwnames[] = { | |
31094 | (char *) "self",(char *) "window",(char *) "text", NULL | |
31095 | }; | |
31096 | ||
31097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
31099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31102 | { |
31103 | arg3 = wxString_in_helper(obj2); | |
31104 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31105 | temp3 = true; |
d14a1e28 RD |
31106 | } |
31107 | { | |
31108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31109 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
31110 | ||
31111 | wxPyEndAllowThreads(__tstate); | |
31112 | if (PyErr_Occurred()) SWIG_fail; | |
31113 | } | |
31114 | Py_INCREF(Py_None); resultobj = Py_None; | |
31115 | { | |
31116 | if (temp3) | |
31117 | delete arg3; | |
31118 | } | |
31119 | return resultobj; | |
31120 | fail: | |
31121 | { | |
31122 | if (temp3) | |
31123 | delete arg3; | |
31124 | } | |
31125 | return NULL; | |
31126 | } | |
31127 | ||
31128 | ||
c32bde28 | 31129 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31130 | PyObject *resultobj; |
31131 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 31132 | int arg2 ; |
d14a1e28 | 31133 | wxString *arg3 = 0 ; |
ae8162c8 | 31134 | bool temp3 = false ; |
d14a1e28 | 31135 | PyObject * obj0 = 0 ; |
994141e6 | 31136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31137 | PyObject * obj2 = 0 ; |
31138 | char *kwnames[] = { | |
31139 | (char *) "self",(char *) "id",(char *) "text", NULL | |
31140 | }; | |
31141 | ||
994141e6 | 31142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
31144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31145 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 31146 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
31147 | { |
31148 | arg3 = wxString_in_helper(obj2); | |
31149 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31150 | temp3 = true; |
d14a1e28 RD |
31151 | } |
31152 | { | |
31153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31154 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
31155 | ||
31156 | wxPyEndAllowThreads(__tstate); | |
31157 | if (PyErr_Occurred()) SWIG_fail; | |
31158 | } | |
31159 | Py_INCREF(Py_None); resultobj = Py_None; | |
31160 | { | |
31161 | if (temp3) | |
31162 | delete arg3; | |
31163 | } | |
31164 | return resultobj; | |
31165 | fail: | |
31166 | { | |
31167 | if (temp3) | |
31168 | delete arg3; | |
31169 | } | |
31170 | return NULL; | |
31171 | } | |
31172 | ||
31173 | ||
c32bde28 | 31174 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
31175 | PyObject *resultobj; |
31176 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31177 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31178 | PyObject * obj0 = 0 ; | |
31179 | PyObject * obj1 = 0 ; | |
31180 | char *kwnames[] = { | |
31181 | (char *) "self",(char *) "window", NULL | |
31182 | }; | |
31183 | ||
31184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
31185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
31186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31189 | { | |
31190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31191 | (arg1)->RemoveHelp(arg2); | |
31192 | ||
31193 | wxPyEndAllowThreads(__tstate); | |
31194 | if (PyErr_Occurred()) SWIG_fail; | |
31195 | } | |
31196 | Py_INCREF(Py_None); resultobj = Py_None; | |
31197 | return resultobj; | |
31198 | fail: | |
31199 | return NULL; | |
31200 | } | |
31201 | ||
31202 | ||
c32bde28 | 31203 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31204 | PyObject *resultobj; |
31205 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
31206 | PyObject * obj0 = 0 ; | |
31207 | char *kwnames[] = { | |
31208 | (char *) "self", NULL | |
31209 | }; | |
31210 | ||
31211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
31213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31214 | { |
31215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31216 | wxHelpProvider_Destroy(arg1); | |
31217 | ||
31218 | wxPyEndAllowThreads(__tstate); | |
31219 | if (PyErr_Occurred()) SWIG_fail; | |
31220 | } | |
31221 | Py_INCREF(Py_None); resultobj = Py_None; | |
31222 | return resultobj; | |
31223 | fail: | |
31224 | return NULL; | |
31225 | } | |
31226 | ||
31227 | ||
c32bde28 | 31228 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31229 | PyObject *obj; |
31230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31231 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
31232 | Py_INCREF(obj); | |
31233 | return Py_BuildValue((char *)""); | |
31234 | } | |
c32bde28 | 31235 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31236 | PyObject *resultobj; |
31237 | wxSimpleHelpProvider *result; | |
31238 | char *kwnames[] = { | |
31239 | NULL | |
31240 | }; | |
31241 | ||
31242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
31243 | { | |
31244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31245 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
31246 | ||
31247 | wxPyEndAllowThreads(__tstate); | |
31248 | if (PyErr_Occurred()) SWIG_fail; | |
31249 | } | |
15afbcd0 | 31250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
31251 | return resultobj; |
31252 | fail: | |
31253 | return NULL; | |
31254 | } | |
31255 | ||
31256 | ||
c32bde28 | 31257 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31258 | PyObject *obj; |
31259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31260 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
31261 | Py_INCREF(obj); | |
31262 | return Py_BuildValue((char *)""); | |
31263 | } | |
c32bde28 | 31264 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31265 | PyObject *resultobj; |
31266 | wxBitmap *arg1 = 0 ; | |
31267 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31268 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31269 | wxGenericDragImage *result; | |
31270 | PyObject * obj0 = 0 ; | |
31271 | PyObject * obj1 = 0 ; | |
31272 | char *kwnames[] = { | |
31273 | (char *) "image",(char *) "cursor", NULL | |
31274 | }; | |
31275 | ||
31276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
31278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31279 | SWIG_fail; | |
e811c8ce | 31280 | if (arg1 == NULL) { |
15afbcd0 RD |
31281 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31282 | SWIG_fail; | |
e811c8ce RD |
31283 | } |
31284 | if (obj1) { | |
15afbcd0 RD |
31285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31286 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31287 | SWIG_fail; | |
e811c8ce | 31288 | if (arg2 == NULL) { |
15afbcd0 RD |
31289 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31290 | SWIG_fail; | |
e811c8ce RD |
31291 | } |
31292 | } | |
31293 | { | |
e3b71cb8 | 31294 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31296 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
31297 | ||
31298 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31299 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31300 | } |
15afbcd0 | 31301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31302 | return resultobj; |
31303 | fail: | |
31304 | return NULL; | |
31305 | } | |
31306 | ||
31307 | ||
c32bde28 | 31308 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31309 | PyObject *resultobj; |
31310 | wxIcon *arg1 = 0 ; | |
31311 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31312 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31313 | wxGenericDragImage *result; | |
31314 | PyObject * obj0 = 0 ; | |
31315 | PyObject * obj1 = 0 ; | |
31316 | char *kwnames[] = { | |
31317 | (char *) "image",(char *) "cursor", NULL | |
31318 | }; | |
31319 | ||
31320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
31322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31323 | SWIG_fail; | |
e811c8ce | 31324 | if (arg1 == NULL) { |
15afbcd0 RD |
31325 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31326 | SWIG_fail; | |
e811c8ce RD |
31327 | } |
31328 | if (obj1) { | |
15afbcd0 RD |
31329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31330 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31331 | SWIG_fail; | |
e811c8ce | 31332 | if (arg2 == NULL) { |
15afbcd0 RD |
31333 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31334 | SWIG_fail; | |
e811c8ce RD |
31335 | } |
31336 | } | |
31337 | { | |
e3b71cb8 | 31338 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31340 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
31341 | ||
31342 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31343 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31344 | } |
15afbcd0 | 31345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31346 | return resultobj; |
31347 | fail: | |
31348 | return NULL; | |
31349 | } | |
31350 | ||
31351 | ||
c32bde28 | 31352 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31353 | PyObject *resultobj; |
31354 | wxString *arg1 = 0 ; | |
31355 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31356 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31357 | wxGenericDragImage *result; | |
ae8162c8 | 31358 | bool temp1 = false ; |
e811c8ce RD |
31359 | PyObject * obj0 = 0 ; |
31360 | PyObject * obj1 = 0 ; | |
31361 | char *kwnames[] = { | |
31362 | (char *) "str",(char *) "cursor", NULL | |
31363 | }; | |
31364 | ||
31365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
31366 | { | |
31367 | arg1 = wxString_in_helper(obj0); | |
31368 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31369 | temp1 = true; |
e811c8ce RD |
31370 | } |
31371 | if (obj1) { | |
15afbcd0 RD |
31372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31373 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31374 | SWIG_fail; | |
e811c8ce | 31375 | if (arg2 == NULL) { |
15afbcd0 RD |
31376 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31377 | SWIG_fail; | |
e811c8ce RD |
31378 | } |
31379 | } | |
31380 | { | |
e3b71cb8 | 31381 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31383 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
31384 | ||
31385 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31386 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31387 | } |
15afbcd0 | 31388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31389 | { |
31390 | if (temp1) | |
31391 | delete arg1; | |
31392 | } | |
31393 | return resultobj; | |
31394 | fail: | |
31395 | { | |
31396 | if (temp1) | |
31397 | delete arg1; | |
31398 | } | |
31399 | return NULL; | |
31400 | } | |
31401 | ||
31402 | ||
c32bde28 | 31403 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31404 | PyObject *resultobj; |
31405 | wxPyTreeCtrl *arg1 = 0 ; | |
31406 | wxTreeItemId *arg2 = 0 ; | |
31407 | wxGenericDragImage *result; | |
31408 | PyObject * obj0 = 0 ; | |
31409 | PyObject * obj1 = 0 ; | |
31410 | char *kwnames[] = { | |
31411 | (char *) "treeCtrl",(char *) "id", NULL | |
31412 | }; | |
31413 | ||
31414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
31416 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31417 | SWIG_fail; | |
e811c8ce | 31418 | if (arg1 == NULL) { |
15afbcd0 RD |
31419 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31420 | SWIG_fail; | |
e811c8ce | 31421 | } |
15afbcd0 RD |
31422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
31423 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31424 | SWIG_fail; | |
e811c8ce | 31425 | if (arg2 == NULL) { |
15afbcd0 RD |
31426 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31427 | SWIG_fail; | |
e811c8ce RD |
31428 | } |
31429 | { | |
e3b71cb8 | 31430 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31432 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
31433 | ||
31434 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31435 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31436 | } |
15afbcd0 | 31437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31438 | return resultobj; |
31439 | fail: | |
31440 | return NULL; | |
31441 | } | |
31442 | ||
31443 | ||
c32bde28 | 31444 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31445 | PyObject *resultobj; |
31446 | wxPyListCtrl *arg1 = 0 ; | |
31447 | long arg2 ; | |
31448 | wxGenericDragImage *result; | |
31449 | PyObject * obj0 = 0 ; | |
994141e6 | 31450 | PyObject * obj1 = 0 ; |
e811c8ce RD |
31451 | char *kwnames[] = { |
31452 | (char *) "listCtrl",(char *) "id", NULL | |
31453 | }; | |
31454 | ||
994141e6 | 31455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
31457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31458 | SWIG_fail; | |
e811c8ce | 31459 | if (arg1 == NULL) { |
15afbcd0 RD |
31460 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31461 | SWIG_fail; | |
994141e6 | 31462 | } |
c32bde28 | 31463 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 31464 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31465 | { |
e3b71cb8 | 31466 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31468 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
31469 | ||
31470 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31471 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31472 | } |
15afbcd0 | 31473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31474 | return resultobj; |
31475 | fail: | |
31476 | return NULL; | |
31477 | } | |
31478 | ||
31479 | ||
c32bde28 | 31480 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31481 | PyObject *resultobj; |
31482 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31483 | PyObject * obj0 = 0 ; | |
31484 | char *kwnames[] = { | |
31485 | (char *) "self", NULL | |
31486 | }; | |
31487 | ||
31488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31491 | { |
31492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31493 | delete arg1; | |
31494 | ||
31495 | wxPyEndAllowThreads(__tstate); | |
31496 | if (PyErr_Occurred()) SWIG_fail; | |
31497 | } | |
31498 | Py_INCREF(Py_None); resultobj = Py_None; | |
31499 | return resultobj; | |
31500 | fail: | |
31501 | return NULL; | |
31502 | } | |
31503 | ||
31504 | ||
c32bde28 | 31505 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31506 | PyObject *resultobj; |
31507 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31508 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
31509 | PyObject * obj0 = 0 ; | |
31510 | PyObject * obj1 = 0 ; | |
31511 | char *kwnames[] = { | |
31512 | (char *) "self",(char *) "bitmap", NULL | |
31513 | }; | |
31514 | ||
31515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31520 | { |
31521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31522 | (arg1)->SetBackingBitmap(arg2); | |
31523 | ||
31524 | wxPyEndAllowThreads(__tstate); | |
31525 | if (PyErr_Occurred()) SWIG_fail; | |
31526 | } | |
31527 | Py_INCREF(Py_None); resultobj = Py_None; | |
31528 | return resultobj; | |
31529 | fail: | |
31530 | return NULL; | |
31531 | } | |
31532 | ||
31533 | ||
c32bde28 | 31534 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31535 | PyObject *resultobj; |
31536 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31537 | wxPoint *arg2 = 0 ; | |
31538 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 31539 | bool arg4 = (bool) false ; |
e811c8ce RD |
31540 | wxRect *arg5 = (wxRect *) NULL ; |
31541 | bool result; | |
31542 | wxPoint temp2 ; | |
31543 | PyObject * obj0 = 0 ; | |
31544 | PyObject * obj1 = 0 ; | |
31545 | PyObject * obj2 = 0 ; | |
31546 | PyObject * obj3 = 0 ; | |
31547 | PyObject * obj4 = 0 ; | |
31548 | char *kwnames[] = { | |
31549 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
31550 | }; | |
31551 | ||
31552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31555 | { |
31556 | arg2 = &temp2; | |
31557 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31558 | } | |
15afbcd0 RD |
31559 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
31560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 31561 | if (obj3) { |
c32bde28 | 31562 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 31563 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
31564 | } |
31565 | if (obj4) { | |
15afbcd0 RD |
31566 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
31567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31568 | } |
31569 | { | |
31570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31571 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
31572 | ||
31573 | wxPyEndAllowThreads(__tstate); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
4f89f6a3 RD |
31576 | { |
31577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31578 | } | |
e811c8ce RD |
31579 | return resultobj; |
31580 | fail: | |
31581 | return NULL; | |
31582 | } | |
31583 | ||
31584 | ||
c32bde28 | 31585 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31586 | PyObject *resultobj; |
31587 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31588 | wxPoint *arg2 = 0 ; | |
31589 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31590 | wxWindow *arg4 = (wxWindow *) 0 ; | |
31591 | bool result; | |
31592 | wxPoint temp2 ; | |
31593 | PyObject * obj0 = 0 ; | |
31594 | PyObject * obj1 = 0 ; | |
31595 | PyObject * obj2 = 0 ; | |
31596 | PyObject * obj3 = 0 ; | |
31597 | char *kwnames[] = { | |
31598 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
31599 | }; | |
31600 | ||
31601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31604 | { |
31605 | arg2 = &temp2; | |
31606 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31607 | } | |
15afbcd0 RD |
31608 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
31609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31610 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31612 | { |
31613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31614 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31615 | ||
31616 | wxPyEndAllowThreads(__tstate); | |
31617 | if (PyErr_Occurred()) SWIG_fail; | |
31618 | } | |
4f89f6a3 RD |
31619 | { |
31620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31621 | } | |
e811c8ce RD |
31622 | return resultobj; |
31623 | fail: | |
31624 | return NULL; | |
31625 | } | |
31626 | ||
31627 | ||
c32bde28 | 31628 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31629 | PyObject *resultobj; |
31630 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31631 | bool result; | |
31632 | PyObject * obj0 = 0 ; | |
31633 | char *kwnames[] = { | |
31634 | (char *) "self", NULL | |
31635 | }; | |
31636 | ||
31637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31640 | { |
31641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31642 | result = (bool)(arg1)->EndDrag(); | |
31643 | ||
31644 | wxPyEndAllowThreads(__tstate); | |
31645 | if (PyErr_Occurred()) SWIG_fail; | |
31646 | } | |
4f89f6a3 RD |
31647 | { |
31648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31649 | } | |
e811c8ce RD |
31650 | return resultobj; |
31651 | fail: | |
31652 | return NULL; | |
31653 | } | |
31654 | ||
31655 | ||
c32bde28 | 31656 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31657 | PyObject *resultobj; |
31658 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31659 | wxPoint *arg2 = 0 ; | |
31660 | bool result; | |
31661 | wxPoint temp2 ; | |
31662 | PyObject * obj0 = 0 ; | |
31663 | PyObject * obj1 = 0 ; | |
31664 | char *kwnames[] = { | |
31665 | (char *) "self",(char *) "pt", NULL | |
31666 | }; | |
31667 | ||
31668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31671 | { |
31672 | arg2 = &temp2; | |
31673 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31674 | } | |
31675 | { | |
31676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31677 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31678 | ||
31679 | wxPyEndAllowThreads(__tstate); | |
31680 | if (PyErr_Occurred()) SWIG_fail; | |
31681 | } | |
4f89f6a3 RD |
31682 | { |
31683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31684 | } | |
e811c8ce RD |
31685 | return resultobj; |
31686 | fail: | |
31687 | return NULL; | |
31688 | } | |
31689 | ||
31690 | ||
c32bde28 | 31691 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31692 | PyObject *resultobj; |
31693 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31694 | bool result; | |
31695 | PyObject * obj0 = 0 ; | |
31696 | char *kwnames[] = { | |
31697 | (char *) "self", NULL | |
31698 | }; | |
31699 | ||
31700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31703 | { |
31704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31705 | result = (bool)(arg1)->Show(); | |
31706 | ||
31707 | wxPyEndAllowThreads(__tstate); | |
31708 | if (PyErr_Occurred()) SWIG_fail; | |
31709 | } | |
4f89f6a3 RD |
31710 | { |
31711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31712 | } | |
e811c8ce RD |
31713 | return resultobj; |
31714 | fail: | |
31715 | return NULL; | |
31716 | } | |
31717 | ||
31718 | ||
c32bde28 | 31719 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31720 | PyObject *resultobj; |
31721 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31722 | bool result; | |
31723 | PyObject * obj0 = 0 ; | |
31724 | char *kwnames[] = { | |
31725 | (char *) "self", NULL | |
31726 | }; | |
31727 | ||
31728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31731 | { |
31732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31733 | result = (bool)(arg1)->Hide(); | |
31734 | ||
31735 | wxPyEndAllowThreads(__tstate); | |
31736 | if (PyErr_Occurred()) SWIG_fail; | |
31737 | } | |
4f89f6a3 RD |
31738 | { |
31739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31740 | } | |
e811c8ce RD |
31741 | return resultobj; |
31742 | fail: | |
31743 | return NULL; | |
31744 | } | |
31745 | ||
31746 | ||
c32bde28 | 31747 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31748 | PyObject *resultobj; |
31749 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31750 | wxPoint *arg2 = 0 ; | |
31751 | wxRect result; | |
31752 | wxPoint temp2 ; | |
31753 | PyObject * obj0 = 0 ; | |
31754 | PyObject * obj1 = 0 ; | |
31755 | char *kwnames[] = { | |
31756 | (char *) "self",(char *) "pos", NULL | |
31757 | }; | |
31758 | ||
31759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31762 | { |
31763 | arg2 = &temp2; | |
31764 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31765 | } | |
31766 | { | |
31767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31768 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31769 | ||
31770 | wxPyEndAllowThreads(__tstate); | |
31771 | if (PyErr_Occurred()) SWIG_fail; | |
31772 | } | |
31773 | { | |
31774 | wxRect * resultptr; | |
31775 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 31776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
31777 | } |
31778 | return resultobj; | |
31779 | fail: | |
31780 | return NULL; | |
31781 | } | |
31782 | ||
31783 | ||
c32bde28 | 31784 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31785 | PyObject *resultobj; |
31786 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31787 | wxDC *arg2 = 0 ; | |
31788 | wxPoint *arg3 = 0 ; | |
31789 | bool result; | |
31790 | wxPoint temp3 ; | |
31791 | PyObject * obj0 = 0 ; | |
31792 | PyObject * obj1 = 0 ; | |
31793 | PyObject * obj2 = 0 ; | |
31794 | char *kwnames[] = { | |
31795 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31796 | }; | |
31797 | ||
31798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31802 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31803 | SWIG_fail; | |
e811c8ce | 31804 | if (arg2 == NULL) { |
15afbcd0 RD |
31805 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31806 | SWIG_fail; | |
e811c8ce RD |
31807 | } |
31808 | { | |
31809 | arg3 = &temp3; | |
31810 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31811 | } | |
31812 | { | |
31813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31814 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31815 | ||
31816 | wxPyEndAllowThreads(__tstate); | |
31817 | if (PyErr_Occurred()) SWIG_fail; | |
31818 | } | |
4f89f6a3 RD |
31819 | { |
31820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31821 | } | |
e811c8ce RD |
31822 | return resultobj; |
31823 | fail: | |
31824 | return NULL; | |
31825 | } | |
31826 | ||
31827 | ||
c32bde28 | 31828 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31829 | PyObject *resultobj; |
31830 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31831 | wxDC *arg2 = 0 ; | |
31832 | wxMemoryDC *arg3 = 0 ; | |
31833 | wxRect *arg4 = 0 ; | |
31834 | wxRect *arg5 = 0 ; | |
31835 | bool result; | |
31836 | wxRect temp4 ; | |
31837 | wxRect temp5 ; | |
31838 | PyObject * obj0 = 0 ; | |
31839 | PyObject * obj1 = 0 ; | |
31840 | PyObject * obj2 = 0 ; | |
31841 | PyObject * obj3 = 0 ; | |
31842 | PyObject * obj4 = 0 ; | |
31843 | char *kwnames[] = { | |
31844 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31845 | }; | |
31846 | ||
31847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31852 | SWIG_fail; | |
e811c8ce | 31853 | if (arg2 == NULL) { |
15afbcd0 RD |
31854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31855 | SWIG_fail; | |
e811c8ce | 31856 | } |
15afbcd0 RD |
31857 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
31858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31859 | SWIG_fail; | |
e811c8ce | 31860 | if (arg3 == NULL) { |
15afbcd0 RD |
31861 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31862 | SWIG_fail; | |
e811c8ce RD |
31863 | } |
31864 | { | |
31865 | arg4 = &temp4; | |
31866 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31867 | } | |
31868 | { | |
31869 | arg5 = &temp5; | |
31870 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31871 | } | |
31872 | { | |
31873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31874 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31875 | ||
31876 | wxPyEndAllowThreads(__tstate); | |
31877 | if (PyErr_Occurred()) SWIG_fail; | |
31878 | } | |
4f89f6a3 RD |
31879 | { |
31880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31881 | } | |
e811c8ce RD |
31882 | return resultobj; |
31883 | fail: | |
31884 | return NULL; | |
31885 | } | |
31886 | ||
31887 | ||
c32bde28 | 31888 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31889 | PyObject *resultobj; |
31890 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31891 | wxPoint *arg2 = 0 ; | |
31892 | wxPoint *arg3 = 0 ; | |
31893 | bool arg4 ; | |
31894 | bool arg5 ; | |
31895 | bool result; | |
31896 | wxPoint temp2 ; | |
31897 | wxPoint temp3 ; | |
31898 | PyObject * obj0 = 0 ; | |
31899 | PyObject * obj1 = 0 ; | |
31900 | PyObject * obj2 = 0 ; | |
31901 | PyObject * obj3 = 0 ; | |
31902 | PyObject * obj4 = 0 ; | |
31903 | char *kwnames[] = { | |
31904 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31905 | }; | |
31906 | ||
31907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31910 | { |
31911 | arg2 = &temp2; | |
31912 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31913 | } | |
31914 | { | |
31915 | arg3 = &temp3; | |
31916 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31917 | } | |
c32bde28 | 31918 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 31919 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31920 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 31921 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
31922 | { |
31923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31924 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31925 | ||
31926 | wxPyEndAllowThreads(__tstate); | |
31927 | if (PyErr_Occurred()) SWIG_fail; | |
31928 | } | |
4f89f6a3 RD |
31929 | { |
31930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31931 | } | |
e811c8ce RD |
31932 | return resultobj; |
31933 | fail: | |
31934 | return NULL; | |
31935 | } | |
31936 | ||
31937 | ||
c32bde28 | 31938 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
31939 | PyObject *obj; |
31940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31941 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31942 | Py_INCREF(obj); | |
31943 | return Py_BuildValue((char *)""); | |
31944 | } | |
31945 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
31946 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL }, |
31947 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31948 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31949 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31950 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31951 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31952 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL }, | |
31953 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31954 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31955 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31956 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31957 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31958 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31959 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31960 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31961 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31962 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31963 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31964 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31965 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31966 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31967 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL }, | |
31968 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31969 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31970 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31971 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31972 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31973 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31974 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31975 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31976 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31977 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31978 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31979 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL }, | |
31980 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31981 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31982 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31983 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31984 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31985 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31986 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31987 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL }, | |
31988 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31989 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31990 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31991 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31992 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31993 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31994 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31995 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31996 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31997 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31998 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31999 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32000 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32001 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32002 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32003 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32004 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32005 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32006 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d RD |
32007 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, |
32008 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32009 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32010 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32011 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32012 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32013 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32014 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32015 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
32016 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
32017 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL }, | |
32018 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32019 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32020 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32021 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32022 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32023 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32024 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32025 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32026 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32027 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32028 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32029 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32030 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32031 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL }, | |
32032 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32033 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32034 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32035 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32036 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL }, | |
32037 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32038 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32039 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32040 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32041 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32042 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32043 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL }, | |
32044 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32045 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32046 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32047 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32048 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL }, | |
32049 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32050 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32051 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32052 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32053 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32054 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32055 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32056 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL }, | |
32057 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32058 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32059 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32060 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32061 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32062 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32063 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32064 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32065 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32066 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32067 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32068 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32069 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32070 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32071 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32072 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32073 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32074 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32075 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32076 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32077 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32078 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32079 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL }, | |
32080 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32081 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32082 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32083 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32084 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32085 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32086 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32087 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32088 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL }, | |
32089 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32090 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32091 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32092 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32093 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32094 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32095 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32096 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32097 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32098 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32099 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32100 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32101 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32102 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32103 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32104 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32105 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32106 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32107 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32108 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32109 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32110 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32111 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32112 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32113 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32114 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32115 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32116 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32117 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32118 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32119 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL }, | |
32120 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32121 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32122 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32123 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32124 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32125 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32126 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32127 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32128 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32129 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32130 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32131 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32132 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32133 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32134 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32135 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32136 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32137 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32138 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32139 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32140 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32141 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32142 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32143 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32144 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32145 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32146 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32147 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32148 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32149 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32150 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32151 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32152 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32153 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32154 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32155 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32156 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32157 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32158 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32159 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32160 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32161 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32162 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32163 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32164 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32165 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32166 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32167 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32168 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32169 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32170 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32171 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32172 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32173 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32174 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32175 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL }, | |
32176 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32177 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32178 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32179 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32180 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL }, | |
32181 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32182 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32183 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32184 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32185 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32186 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32187 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32188 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32189 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32190 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32191 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32192 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL }, | |
32193 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32194 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32195 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32196 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32197 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32198 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32199 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32200 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32201 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32202 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32203 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32204 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32205 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL }, | |
32206 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32207 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32208 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32209 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32210 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32211 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32212 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32213 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32214 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32215 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32216 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32217 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL }, | |
32218 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32219 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32220 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32221 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL }, | |
32222 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32223 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32224 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32225 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32226 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32227 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32228 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32229 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32230 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32231 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32232 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32233 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32234 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32235 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32236 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32237 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32238 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32239 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL }, | |
32240 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32241 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32242 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32243 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32244 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32245 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32246 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL }, | |
32247 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32248 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32249 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32250 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32251 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32252 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32253 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32254 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32255 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32256 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32257 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32258 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32259 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32260 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32261 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32262 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32263 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32264 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32265 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32266 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32267 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32268 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32269 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32270 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32271 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32272 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL }, | |
32273 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32274 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32275 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32276 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32277 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32278 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32279 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32280 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL }, | |
8ac8dba0 RD |
32281 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL }, |
32282 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32283 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32284 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32285 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32286 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32287 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32288 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32289 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32290 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32291 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32292 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32293 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32294 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32295 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32296 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32297 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32298 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32299 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32300 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32301 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32302 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL }, | |
32303 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32304 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32305 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32306 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32307 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32308 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
32309 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL }, |
32310 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32311 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32312 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32313 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32314 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32315 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32316 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32317 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32318 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL }, | |
32319 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32320 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL }, | |
32321 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32322 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32323 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32324 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1fbf26be | 32325 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
32326 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL }, |
32327 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32328 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL }, | |
2ef75293 RD |
32329 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL }, |
32330 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32331 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32332 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32333 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32334 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL }, | |
32335 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32336 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
32337 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL }, |
32338 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32339 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32340 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32341 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL }, | |
32342 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32343 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32344 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32345 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32346 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL }, | |
32347 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32348 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32349 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32350 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32351 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32352 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32353 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32354 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32355 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32356 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32357 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32358 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32359 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32360 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32361 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32362 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32363 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32364 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32365 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32366 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32367 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32368 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32369 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32370 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32371 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32372 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32373 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32374 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32375 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32376 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL }, | |
32377 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32378 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32379 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32380 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32381 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32382 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32383 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32384 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32385 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32386 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32387 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32388 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32389 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32390 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32391 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32392 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32393 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32394 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32395 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32396 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32397 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32398 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32399 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32400 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32401 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32402 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32403 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32404 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32405 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32406 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32407 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32408 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32409 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32410 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32411 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32412 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32413 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32414 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32415 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32416 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32417 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32418 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32419 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32420 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32421 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL }, | |
32422 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32423 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32424 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32425 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32426 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32427 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL }, | |
32428 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32429 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32430 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32431 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32432 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32433 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32434 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32435 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32436 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32437 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32438 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32439 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL }, | |
32440 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32441 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32442 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32443 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32444 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32445 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32446 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32447 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32448 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32449 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32450 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32451 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32452 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32453 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32454 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32455 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32456 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32457 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32458 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32459 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32460 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32461 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32462 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32463 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32464 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32465 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32466 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32467 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32468 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32469 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32470 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32471 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32472 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32473 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32474 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32475 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32476 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32477 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32478 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32479 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32480 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32481 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32482 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32483 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32484 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32485 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32486 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32487 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32488 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32489 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32490 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32491 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL }, | |
32492 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32493 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32494 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32495 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32496 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32497 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32498 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32499 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32500 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32501 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32502 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32503 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32504 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32505 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32506 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32507 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32508 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32509 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32510 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32511 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32512 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32513 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32514 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32515 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32516 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32517 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32518 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL }, | |
32519 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32520 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32521 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32522 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32523 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32524 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32525 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32526 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32527 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32528 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32529 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32530 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32531 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32532 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32533 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32534 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32535 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32536 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32537 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32538 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32539 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32540 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32541 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32542 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32543 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32544 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32545 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32546 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32547 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32548 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32549 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32550 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32551 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32552 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32553 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32554 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32555 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32556 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32557 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32558 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32559 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32560 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32561 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32562 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32563 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32564 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32565 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32566 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32567 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32568 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32569 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32570 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32571 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32572 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32573 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32574 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32575 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32576 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32577 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32578 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32579 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32580 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32581 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32582 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32583 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32584 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32585 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32586 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32587 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32588 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32589 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL }, | |
32590 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32591 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32592 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32593 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32594 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32595 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32596 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32597 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32598 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32599 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32600 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32601 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL }, | |
32602 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32603 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32604 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32605 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32606 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32607 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32608 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32609 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL }, | |
32610 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32611 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32612 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32613 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32614 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32615 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32616 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL }, | |
32617 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32618 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32619 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32620 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32621 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32622 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32623 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32624 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32625 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32626 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32627 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32628 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32629 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32630 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32631 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32632 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL }, | |
32633 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32634 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32635 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32636 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32637 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32638 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32639 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32640 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32641 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32642 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32643 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32644 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32645 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32646 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32647 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32648 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32649 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32650 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32651 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32652 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32653 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32654 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32655 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32656 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32657 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32658 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32659 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32660 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32661 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32662 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32663 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32664 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32665 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32666 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32667 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32668 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32669 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32670 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32671 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32672 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32673 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32674 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32675 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32676 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32677 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32678 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32679 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32680 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32681 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32682 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32683 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32684 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32685 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32686 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32687 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32688 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32689 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32690 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32691 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32692 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32693 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32694 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32695 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32696 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32697 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32698 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32699 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32700 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32701 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32702 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32703 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32704 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32705 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32706 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32707 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL }, | |
32708 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32709 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32710 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32711 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32712 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32713 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32714 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32715 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32716 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32717 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32718 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32719 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32720 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32721 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32722 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32723 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32724 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32725 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32726 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32727 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32728 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32729 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL }, | |
32730 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32731 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32732 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32733 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32734 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL }, | |
32735 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32736 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32737 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32738 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32739 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32740 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32741 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32742 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32743 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32744 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32745 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32746 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32747 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32748 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32749 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32750 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32751 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32752 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32753 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32754 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32755 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32756 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32757 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32758 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32759 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32760 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL }, | |
32761 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32762 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32763 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32764 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32765 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32766 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32767 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32768 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL }, | |
32769 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32770 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32771 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32772 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32773 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL }, | |
32774 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32775 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL }, | |
32776 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32777 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32778 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32779 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32780 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32781 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32782 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32783 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32784 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL }, | |
32785 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32786 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL }, | |
32787 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32788 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32789 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32790 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32791 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32792 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32793 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32794 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32795 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32796 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32797 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32798 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32799 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32800 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32801 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32802 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32803 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32804 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL }, | |
32805 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
32806 | }; |
32807 | ||
32808 | ||
32809 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32810 | ||
d14a1e28 RD |
32811 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { |
32812 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32813 | } | |
32814 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32815 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32816 | } | |
32817 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32818 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32819 | } | |
32820 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32821 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32822 | } | |
32823 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32824 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32825 | } | |
32826 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32827 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32828 | } | |
32829 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32830 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32831 | } | |
32832 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32833 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32834 | } | |
32835 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32836 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32837 | } | |
32838 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32839 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32840 | } | |
32841 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32842 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32843 | } | |
32844 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32845 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32846 | } | |
32847 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32848 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32849 | } | |
8ac8dba0 RD |
32850 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
32851 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
32852 | } | |
d14a1e28 RD |
32853 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
32854 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32855 | } | |
32856 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32857 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32858 | } | |
32859 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32860 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32861 | } | |
32862 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32863 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32864 | } | |
32865 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32866 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32867 | } | |
d14a1e28 RD |
32868 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
32869 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32870 | } | |
32871 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32872 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32873 | } | |
32874 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32875 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32876 | } | |
32877 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 32878 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
32879 | } |
32880 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 32881 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 32882 | } |
2ef75293 | 32883 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 32884 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 32885 | } |
d14a1e28 RD |
32886 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
32887 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32888 | } | |
32889 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32890 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32891 | } | |
32892 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32893 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32894 | } | |
32895 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32896 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32897 | } | |
32898 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32899 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32900 | } | |
32901 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32902 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32903 | } | |
32904 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32905 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32906 | } | |
32907 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32908 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32909 | } | |
32910 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32911 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32912 | } | |
32913 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32914 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32915 | } | |
32916 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32917 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32918 | } | |
32919 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32920 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32921 | } | |
32922 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32923 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32924 | } | |
32925 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32926 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32927 | } | |
32928 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32929 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32930 | } | |
32931 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32932 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32933 | } | |
32934 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32935 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32936 | } | |
32937 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32938 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32939 | } | |
32940 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32941 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32942 | } | |
32943 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32944 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32945 | } | |
32946 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32947 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32948 | } | |
32949 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32950 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32951 | } | |
32952 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32953 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32954 | } | |
32955 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32956 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32957 | } | |
32958 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32959 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32960 | } | |
32961 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32962 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32963 | } | |
d1e20054 RD |
32964 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32965 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32966 | } | |
d14a1e28 RD |
32967 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32968 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32969 | } | |
32970 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32971 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32972 | } | |
32973 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32974 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32975 | } | |
32976 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32977 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32978 | } | |
32979 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32980 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32981 | } | |
32982 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32983 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32984 | } | |
32985 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32986 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32987 | } | |
8ac8dba0 RD |
32988 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
32989 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d14a1e28 RD |
32990 | } |
32991 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32992 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32993 | } | |
2ef75293 RD |
32994 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
32995 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 32996 | } |
2ef75293 RD |
32997 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
32998 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 32999 | } |
2ef75293 RD |
33000 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
33001 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d14a1e28 | 33002 | } |
2ef75293 RD |
33003 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
33004 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
33005 | } | |
33006 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
33007 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
33008 | } |
33009 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
33010 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
33011 | } | |
2ef75293 RD |
33012 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
33013 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 33014 | } |
2ef75293 RD |
33015 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
33016 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
33017 | } |
33018 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
33019 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
33020 | } | |
2ef75293 RD |
33021 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
33022 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
33023 | } |
33024 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
33025 | return (void *)((wxControl *) ((wxGauge *) x)); | |
33026 | } | |
2ef75293 RD |
33027 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
33028 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 33029 | } |
2ef75293 | 33030 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 33031 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d14a1e28 | 33032 | } |
2ef75293 | 33033 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 33034 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 | 33035 | } |
2ef75293 RD |
33036 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
33037 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 33038 | } |
2ef75293 RD |
33039 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
33040 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
33041 | } |
33042 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
33043 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
33044 | } | |
2ef75293 RD |
33045 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
33046 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
33047 | } | |
33048 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
33049 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
33050 | } | |
33051 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
33052 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33053 | } | |
33054 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
33055 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
33056 | } | |
d14a1e28 | 33057 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 33058 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 | 33059 | } |
2ef75293 RD |
33060 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
33061 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 33062 | } |
2ef75293 RD |
33063 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
33064 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 33065 | } |
2ef75293 RD |
33066 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
33067 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 33068 | } |
2ef75293 RD |
33069 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
33070 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
33071 | } |
33072 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
33073 | return (void *)((wxControl *) ((wxSlider *) x)); | |
33074 | } | |
2ef75293 RD |
33075 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
33076 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d14a1e28 | 33077 | } |
2ef75293 RD |
33078 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
33079 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 33080 | } |
2ef75293 RD |
33081 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
33082 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 33083 | } |
2ef75293 RD |
33084 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
33085 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
33086 | } | |
33087 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
33088 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
33089 | } |
33090 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
33091 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
33092 | } | |
33093 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
33094 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33095 | } | |
8ac8dba0 RD |
33096 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
33097 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33098 | } | |
d14a1e28 RD |
33099 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
33100 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33101 | } | |
d14a1e28 RD |
33102 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
33103 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
33104 | } | |
d1e20054 RD |
33105 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
33106 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33107 | } | |
d14a1e28 | 33108 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 | 33109 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
33110 | } |
33111 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 33112 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 33113 | } |
2ef75293 | 33114 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
33115 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
33116 | } | |
33117 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
33118 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
33119 | } | |
33120 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
33121 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
2ef75293 | 33122 | } |
8ac8dba0 RD |
33123 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
33124 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d14a1e28 RD |
33125 | } |
33126 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
33127 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
33128 | } | |
8ac8dba0 RD |
33129 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
33130 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
33131 | } | |
d14a1e28 RD |
33132 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
33133 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
33134 | } | |
33135 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
33136 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
33137 | } | |
33138 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
33139 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33140 | } | |
33141 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
33142 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
33143 | } | |
33144 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
33145 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
33146 | } | |
33147 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
33148 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
33149 | } | |
33150 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
33151 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
33152 | } | |
33153 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
33154 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
33155 | } | |
33156 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
33157 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
33158 | } | |
d14a1e28 RD |
33159 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
33160 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
33161 | } | |
2ef75293 RD |
33162 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
33163 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
33164 | } | |
d14a1e28 RD |
33165 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
33166 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33167 | } | |
33168 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
33169 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
33170 | } | |
33171 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
33172 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
33173 | } | |
33174 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
33175 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
33176 | } | |
33177 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
33178 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33179 | } | |
33180 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
33181 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33182 | } | |
33183 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
33184 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
33185 | } | |
33186 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
33187 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
33188 | } | |
2ef75293 | 33189 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 33190 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 33191 | } |
d14a1e28 | 33192 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 33193 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
33194 | } |
33195 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
33196 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
33197 | } | |
33198 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
33199 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
33200 | } | |
33201 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
33202 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33203 | } | |
33204 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
33205 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33206 | } | |
33207 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
33208 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33209 | } | |
33210 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
33211 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33212 | } | |
33213 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 33214 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
33215 | } |
33216 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
33217 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
33218 | } | |
33219 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
33220 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33221 | } | |
33222 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
33223 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33224 | } | |
33225 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
33226 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33227 | } | |
33228 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
33229 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
33230 | } | |
33231 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
33232 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
33233 | } | |
33234 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
33235 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
33236 | } | |
33237 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
33238 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
33239 | } | |
33240 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
33241 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33242 | } | |
33243 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
33244 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33245 | } | |
33246 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
33247 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
33248 | } | |
33249 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
33250 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
33251 | } | |
d14a1e28 RD |
33252 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
33253 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
33254 | } | |
33255 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
33256 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33257 | } | |
33258 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
33259 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33260 | } | |
33261 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
33262 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
33263 | } | |
33264 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
33265 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
33266 | } | |
33267 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
33268 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
33269 | } | |
33270 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
33271 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
33272 | } | |
33273 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
33274 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
33275 | } | |
33276 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33277 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33278 | } | |
33279 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
33280 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33281 | } | |
d14a1e28 RD |
33282 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
33283 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33284 | } | |
33285 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33286 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33287 | } | |
33288 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33289 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33290 | } | |
33291 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33292 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33293 | } | |
33294 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
33295 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
33296 | } | |
33297 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
33298 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
33299 | } | |
33300 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33301 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33302 | } | |
33303 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33304 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33305 | } | |
33306 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33307 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33308 | } | |
33309 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33310 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33311 | } | |
33312 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33313 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33314 | } | |
33315 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
33316 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
33317 | } | |
33318 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
33319 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
33320 | } | |
33321 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
33322 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33323 | } | |
33324 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33325 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33326 | } | |
33327 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33328 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33329 | } | |
33330 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33331 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33332 | } | |
33333 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33334 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33335 | } | |
33336 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33337 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33338 | } | |
33339 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33340 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33341 | } | |
33342 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
33343 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
33344 | } | |
33345 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33346 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33347 | } | |
33348 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
33349 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
33350 | } | |
33351 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
33352 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
33353 | } | |
33354 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
33355 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
33356 | } | |
33357 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
33358 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
33359 | } | |
33360 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
33361 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
33362 | } | |
33363 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33364 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33365 | } | |
33366 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
33367 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33368 | } | |
33369 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33370 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33371 | } | |
33372 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33373 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33374 | } | |
33375 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
33376 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33377 | } | |
33378 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
33379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
33380 | } | |
33381 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 33382 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
33383 | } |
33384 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33385 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33386 | } | |
33387 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33388 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33389 | } | |
2ef75293 | 33390 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 33391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 33392 | } |
d14a1e28 | 33393 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 33394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
33395 | } |
33396 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33397 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33398 | } | |
33399 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
33400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
33401 | } | |
33402 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
33403 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
33404 | } | |
33405 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33406 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33407 | } | |
33408 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
33409 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33410 | } | |
33411 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33412 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33413 | } | |
33414 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33415 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33416 | } | |
33417 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33418 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33419 | } | |
33420 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33421 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33422 | } | |
33423 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33424 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33425 | } | |
33426 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33427 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33428 | } | |
33429 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33430 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33431 | } | |
33432 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
33433 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
33434 | } | |
33435 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
33436 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
33437 | } | |
8ac8dba0 RD |
33438 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
33439 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
33440 | } | |
d14a1e28 RD |
33441 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
33442 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33443 | } | |
33444 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
33445 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33446 | } | |
33447 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33448 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33449 | } | |
33450 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33451 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33452 | } | |
33453 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33454 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33455 | } | |
33456 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33457 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33458 | } | |
33459 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33460 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33461 | } | |
33462 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33463 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33464 | } | |
33465 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33466 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33467 | } | |
33468 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33469 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33470 | } | |
33471 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
33472 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33473 | } | |
33474 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
33475 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33476 | } | |
33477 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33478 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33479 | } | |
33480 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
33481 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
33482 | } | |
33483 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
33484 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33485 | } | |
33486 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
33487 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33488 | } | |
d14a1e28 RD |
33489 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
33490 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
33491 | } | |
1e0c8722 RD |
33492 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
33493 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33494 | } | |
d14a1e28 RD |
33495 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
33496 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
33497 | } | |
33498 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
33499 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33500 | } | |
1e0c8722 RD |
33501 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
33502 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33503 | } | |
d14a1e28 RD |
33504 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
33505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33506 | } | |
33507 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
33508 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33509 | } | |
33510 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
33511 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
33512 | } | |
33513 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
33514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
33515 | } | |
33516 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
33517 | return (void *)((wxObject *) ((wxListItem *) x)); | |
33518 | } | |
33519 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33520 | return (void *)((wxObject *) ((wxImage *) x)); | |
33521 | } | |
33522 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
33523 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
33524 | } | |
33525 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33526 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33527 | } | |
d1e20054 RD |
33528 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
33529 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33530 | } | |
e811c8ce RD |
33531 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
33532 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
33533 | } | |
d14a1e28 RD |
33534 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
33535 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33536 | } | |
33537 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 33538 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
33539 | } |
33540 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 33541 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 33542 | } |
2ef75293 | 33543 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 33544 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 33545 | } |
d14a1e28 RD |
33546 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
33547 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33548 | } | |
33549 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33550 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33551 | } | |
33552 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33553 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33554 | } | |
33555 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
33556 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33557 | } | |
33558 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33559 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33560 | } | |
33561 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33563 | } | |
33564 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33565 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33566 | } | |
33567 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33568 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33569 | } | |
33570 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33571 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33572 | } | |
33573 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33574 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33575 | } | |
33576 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33577 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33578 | } | |
33579 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33580 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33581 | } | |
33582 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33583 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33584 | } | |
8ac8dba0 RD |
33585 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
33586 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33587 | } | |
d14a1e28 RD |
33588 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
33589 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33590 | } | |
33591 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33592 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33593 | } | |
33594 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33595 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33596 | } | |
33597 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
33598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33599 | } | |
33600 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33601 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33602 | } | |
33603 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33604 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33605 | } | |
33606 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33607 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33608 | } | |
33609 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33611 | } | |
33612 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
33613 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
33614 | } | |
33615 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
33616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33617 | } | |
33618 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33619 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33620 | } | |
33621 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33622 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33623 | } | |
33624 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
33625 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
33626 | } | |
d14a1e28 RD |
33627 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
33628 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33629 | } | |
8ac8dba0 RD |
33630 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
33631 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
33632 | } | |
d14a1e28 RD |
33633 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
33634 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33635 | } | |
33636 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33637 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33638 | } | |
33639 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33640 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33641 | } | |
d14a1e28 RD |
33642 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33643 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33644 | } | |
33645 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33646 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33647 | } | |
33648 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33649 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33650 | } | |
33651 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33652 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33653 | } | |
33654 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33655 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
33656 | } | |
2ef75293 RD |
33657 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
33658 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33659 | } | |
d14a1e28 RD |
33660 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
33661 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33662 | } | |
33663 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33664 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33665 | } | |
33666 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33667 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33668 | } | |
33669 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33670 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33671 | } | |
33672 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33673 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33674 | } | |
2ef75293 | 33675 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 33676 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 33677 | } |
d14a1e28 | 33678 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 33679 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
33680 | } |
33681 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33682 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33683 | } | |
33684 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33685 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33686 | } | |
33687 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33688 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33689 | } | |
33690 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33691 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33692 | } | |
33693 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33694 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33695 | } | |
33696 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33697 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33698 | } | |
33699 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33700 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33701 | } | |
33702 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 33703 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
33704 | } |
33705 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33706 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33707 | } | |
33708 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33709 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33710 | } | |
33711 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33712 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33713 | } | |
33714 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33715 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33716 | } | |
33717 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33718 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33719 | } | |
33720 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33721 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33722 | } | |
33723 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33724 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33725 | } | |
33726 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33727 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33728 | } | |
33729 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33730 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33731 | } | |
33732 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33733 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33734 | } | |
8ac8dba0 RD |
33735 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
33736 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
33737 | } | |
33738 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
33739 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
33740 | } | |
33741 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
33742 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
33743 | } | |
d14a1e28 RD |
33744 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
33745 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33746 | } | |
d14a1e28 RD |
33747 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
33748 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33749 | } | |
33750 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33751 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33752 | } | |
33753 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33754 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33755 | } | |
33756 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33757 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33758 | } | |
33759 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33760 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33761 | } | |
2ef75293 | 33762 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 33763 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 33764 | } |
d14a1e28 | 33765 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 33766 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 RD |
33767 | } |
33768 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 33769 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 | 33770 | } |
d14a1e28 RD |
33771 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
33772 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33773 | } | |
2ef75293 RD |
33774 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
33775 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33776 | } | |
8ac8dba0 RD |
33777 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
33778 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
33779 | } | |
d14a1e28 RD |
33780 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
33781 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33782 | } | |
d1e20054 RD |
33783 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
33784 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33785 | } | |
d14a1e28 RD |
33786 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
33787 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33788 | } | |
33789 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33790 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33791 | } | |
33792 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33793 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33794 | } | |
33795 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33796 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33797 | } | |
33798 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33799 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33800 | } | |
33801 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33802 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33803 | } | |
33804 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33805 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33806 | } | |
33807 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33808 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33809 | } | |
15afbcd0 | 33810 | 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}}; |
15afbcd0 RD |
33811 | 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}}; |
33812 | 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}}; | |
33813 | 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}}; | |
8ac8dba0 | 33814 | 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_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_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_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_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_wxChoicebookEvent", _p_wxChoicebookEventTo_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_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_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_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}}; |
15afbcd0 RD |
33815 | 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}}; |
33816 | 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}}; | |
33817 | 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}}; | |
33818 | 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 | 33819 | 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 | 33820 | 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 | 33821 | 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}}; |
8ac8dba0 | 33822 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_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_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_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_wxChoicebook", _p_wxChoicebookTo_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_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_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}}; |
15afbcd0 RD |
33823 | 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}}; |
33824 | 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}}; | |
33825 | 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}}; | |
33826 | 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}}; | |
33827 | 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}}; | |
33828 | 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}}; | |
33829 | 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}}; | |
33830 | 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}}; | |
33831 | 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}}; | |
33832 | 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}}; | |
33833 | 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}}; | |
33834 | 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}}; | |
33835 | 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}}; | |
33836 | 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}}; | |
33837 | 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 | 33838 | 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 |
33839 | 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}}; |
33840 | 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}}; | |
2ef75293 | 33841 | static swig_type_info _swigt__p_wxChoicebook[] = {{"_p_wxChoicebook", 0, "wxChoicebook *", 0, 0, 0, 0},{"_p_wxChoicebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
8ac8dba0 | 33842 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_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_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33843 | 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}}; |
33844 | 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}}; | |
33845 | 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}}; | |
33846 | 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}}; | |
33847 | 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}}; | |
33848 | 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}}; | |
33849 | 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}}; | |
33850 | 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}}; | |
8ac8dba0 RD |
33851 | static swig_type_info _swigt__p_wxBookCtrlBase[] = {{"_p_wxBookCtrlBase", 0, "wxBookCtrlBase *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
33852 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_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_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_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_wxChoicebook", _p_wxChoicebookTo_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_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_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}}; | |
15afbcd0 | 33853 | 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 | 33854 | 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 | 33855 | 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 |
33856 | 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}}; |
33857 | 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}}; | |
33858 | 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}}; | |
33859 | 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}}; | |
33860 | 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}}; | |
33861 | 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}}; | |
33862 | 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}}; | |
33863 | 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}}; | |
33864 | 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}}; | |
33865 | 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}}; | |
33866 | 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}}; | |
33867 | 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}}; | |
33868 | 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}}; | |
33869 | 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}}; | |
33870 | 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}}; | |
33871 | 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}}; | |
33872 | 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}}; | |
33873 | 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}}; | |
33874 | 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}}; | |
33875 | 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}}; | |
33876 | 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}}; | |
2ef75293 | 33877 | static swig_type_info _swigt__p_wxChoicebookEvent[] = {{"_p_wxChoicebookEvent", 0, "wxChoicebookEvent *", 0, 0, 0, 0},{"_p_wxChoicebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33878 | 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}}; |
33879 | 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}}; | |
8ac8dba0 | 33880 | 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_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_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_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_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_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_wxChoicebook", _p_wxChoicebookTo_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_wxBookCtrlBase", _p_wxBookCtrlBaseTo_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_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_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_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_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_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_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}}; |
15afbcd0 RD |
33881 | 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}}; |
33882 | 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}}; | |
8ac8dba0 | 33883 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_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_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_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_wxChoicebook", _p_wxChoicebookTo_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_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_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_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33884 | 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}}; |
33885 | 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}}; | |
33886 | 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}}; | |
33887 | 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}}; | |
8ac8dba0 RD |
33888 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent[] = {{"_p_wxBookCtrlBaseEvent", 0, "wxBookCtrlBaseEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
33889 | 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_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_wxChoicebookEvent", _p_wxChoicebookEventTo_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_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_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}}; | |
15afbcd0 RD |
33890 | 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}}; |
33891 | 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}}; | |
33892 | 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}}; | |
33893 | 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}}; | |
33894 | 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}}; | |
33895 | 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}}; | |
33896 | 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 |
33897 | |
33898 | static swig_type_info *swig_types_initial[] = { | |
33899 | _swigt__p_wxTextUrlEvent, | |
d14a1e28 | 33900 | _swigt__p_wxSizer, |
d14a1e28 RD |
33901 | _swigt__p_wxCheckBox, |
33902 | _swigt__p_wxPyTreeCtrl, | |
33903 | _swigt__p_wxEvent, | |
33904 | _swigt__p_wxGenericDirCtrl, | |
33905 | _swigt__p_bool, | |
33906 | _swigt__p_wxPyTreeItemData, | |
33907 | _swigt__p_wxItemContainer, | |
d14a1e28 | 33908 | _swigt__p_wxPyListCtrl, |
74a57fcd | 33909 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
33910 | _swigt__p_wxStaticLine, |
33911 | _swigt__p_wxControl, | |
33912 | _swigt__p_wxPyControl, | |
33913 | _swigt__p_wxGauge, | |
33914 | _swigt__p_wxToolBarBase, | |
33915 | _swigt__p_wxFont, | |
33916 | _swigt__p_wxToggleButton, | |
33917 | _swigt__p_wxRadioButton, | |
33918 | _swigt__p_wxChoice, | |
e811c8ce | 33919 | _swigt__p_wxMemoryDC, |
d14a1e28 | 33920 | _swigt__p_wxListItemAttr, |
58203fa6 | 33921 | _swigt__p_void, |
d14a1e28 RD |
33922 | _swigt__p_int, |
33923 | _swigt__p_wxSize, | |
e811c8ce | 33924 | _swigt__p_wxDC, |
d14a1e28 RD |
33925 | _swigt__p_wxListView, |
33926 | _swigt__p_wxIcon, | |
74a57fcd | 33927 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
33928 | _swigt__p_wxTextCtrl, |
33929 | _swigt__p_wxNotebook, | |
2ef75293 | 33930 | _swigt__p_wxChoicebook, |
d14a1e28 RD |
33931 | _swigt__p_wxNotifyEvent, |
33932 | _swigt__p_wxArrayString, | |
33933 | _swigt__p_wxListbook, | |
33934 | _swigt__p_wxStaticBitmap, | |
33935 | _swigt__p_wxSlider, | |
33936 | _swigt__p_wxStaticBox, | |
33937 | _swigt__p_wxArrayInt, | |
33938 | _swigt__p_wxContextHelp, | |
33939 | _swigt__p_long, | |
8ac8dba0 | 33940 | _swigt__p_wxBookCtrlBase, |
d14a1e28 RD |
33941 | _swigt__p_wxEvtHandler, |
33942 | _swigt__p_wxListEvent, | |
d14a1e28 | 33943 | _swigt__p_wxCheckListBox, |
74a57fcd | 33944 | _swigt__p_wxListBox, |
d14a1e28 RD |
33945 | _swigt__p_wxSpinButton, |
33946 | _swigt__p_wxButton, | |
33947 | _swigt__p_wxBitmapButton, | |
33948 | _swigt__p_wxRect, | |
33949 | _swigt__p_wxContextHelpButton, | |
33950 | _swigt__p_wxRadioBox, | |
33951 | _swigt__p_wxScrollBar, | |
994141e6 | 33952 | _swigt__p_char, |
d14a1e28 RD |
33953 | _swigt__p_wxTreeItemId, |
33954 | _swigt__p_wxComboBox, | |
33955 | _swigt__p_wxHelpEvent, | |
33956 | _swigt__p_wxListItem, | |
33957 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33958 | _swigt__p_wxSpinEvent, |
e811c8ce | 33959 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33960 | _swigt__p_wxSpinCtrl, |
33961 | _swigt__p_wxImageList, | |
33962 | _swigt__p_wxHelpProvider, | |
33963 | _swigt__p_wxTextAttr, | |
33964 | _swigt__p_wxSimpleHelpProvider, | |
33965 | _swigt__p_wxPoint, | |
2ef75293 | 33966 | _swigt__p_wxChoicebookEvent, |
d14a1e28 RD |
33967 | _swigt__p_wxListbookEvent, |
33968 | _swigt__p_wxNotebookEvent, | |
33969 | _swigt__p_wxObject, | |
e811c8ce | 33970 | _swigt__p_wxCursor, |
d14a1e28 RD |
33971 | _swigt__p_wxKeyEvent, |
33972 | _swigt__p_wxWindow, | |
33973 | _swigt__p_wxString, | |
33974 | _swigt__p_wxBitmap, | |
33975 | _swigt__p_wxTreeEvent, | |
33976 | _swigt__p_wxMouseEvent, | |
8ac8dba0 | 33977 | _swigt__p_wxBookCtrlBaseEvent, |
d14a1e28 RD |
33978 | _swigt__p_wxCommandEvent, |
33979 | _swigt__p_wxStaticText, | |
33980 | _swigt__p_wxControlWithItems, | |
33981 | _swigt__p_wxToolBarToolBase, | |
33982 | _swigt__p_wxColour, | |
33983 | _swigt__p_wxToolBar, | |
33984 | _swigt__p_wxBookCtrlSizer, | |
33985 | _swigt__p_wxValidator, | |
33986 | 0 | |
33987 | }; | |
33988 | ||
33989 | ||
33990 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33991 | ||
33992 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 33993 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
33994 | |
33995 | #ifdef __cplusplus | |
33996 | } | |
33997 | #endif | |
33998 | ||
33999 | #ifdef __cplusplus | |
34000 | extern "C" | |
34001 | #endif | |
34002 | SWIGEXPORT(void) SWIG_init(void) { | |
34003 | static PyObject *SWIG_globals = 0; | |
34004 | static int typeinit = 0; | |
34005 | PyObject *m, *d; | |
34006 | int i; | |
34007 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
34008 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34009 | d = PyModule_GetDict(m); | |
34010 | ||
34011 | if (!typeinit) { | |
34012 | for (i = 0; swig_types_initial[i]; i++) { | |
34013 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
34014 | } | |
34015 | typeinit = 1; | |
34016 | } | |
34017 | SWIG_InstallConstants(d,swig_const_table); | |
34018 | ||
b2dc1044 RD |
34019 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
34020 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
c32bde28 RD |
34021 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT)); |
34022 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP)); | |
34023 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT)); | |
34024 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM)); | |
8fb0e70a | 34025 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)wxBU_ALIGN_MASK)); |
c32bde28 RD |
34026 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT)); |
34027 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW)); | |
b2dc1044 | 34028 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
c32bde28 RD |
34029 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE)); |
34030 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE)); | |
34031 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
34032 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED)); | |
34033 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED)); | |
34034 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
34035 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
34036 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
34037 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
c32bde28 RD |
34038 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL)); |
34039 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL)); | |
34040 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH)); | |
34041 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
34042 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
34043 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
34044 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
34045 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
34046 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
c32bde28 RD |
34047 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL)); |
34048 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL)); | |
34049 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY)); | |
34050 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE)); | |
34051 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB)); | |
34052 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT)); | |
34053 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER)); | |
34054 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT)); | |
34055 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE)); | |
34056 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH)); | |
34057 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER)); | |
34058 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD)); | |
34059 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL)); | |
34060 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL)); | |
34061 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP)); | |
34062 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP)); | |
34063 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP)); | |
34064 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2)); | |
34065 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
34066 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT)); | |
34067 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE)); | |
34068 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER)); | |
34069 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT)); | |
34070 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
34071 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
34072 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
34073 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE)); | |
34074 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE)); | |
34075 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
34076 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC)); | |
34077 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
34078 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT)); | |
34079 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT)); | |
34080 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT)); | |
34081 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
34082 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS)); | |
34083 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN)); | |
34084 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE)); | |
34085 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT)); | |
34086 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW)); | |
34087 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
34088 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
34089 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
34090 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
34091 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
34092 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
34093 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
34094 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
c32bde28 RD |
34095 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL)); |
34096 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL)); | |
34097 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS)); | |
34098 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP)); | |
d14a1e28 | 34099 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
34100 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
34101 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
34102 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
34103 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 34104 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 34105 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
c32bde28 RD |
34106 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH)); |
34107 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP)); | |
34108 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT)); | |
34109 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT)); | |
34110 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM)); | |
34111 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE)); | |
34112 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE)); | |
34113 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON)); | |
34114 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL)); | |
34115 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
34116 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
34117 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
34118 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT)); |
34119 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP)); | |
34120 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM)); | |
34121 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT)); | |
34122 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT)); | |
34123 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
34124 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
34125 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
2ef75293 RD |
34126 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT)); |
34127 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP)); | |
34128 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM)); | |
34129 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT)); | |
34130 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT)); | |
34131 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK)); | |
34132 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
34133 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
34134 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON)); |
34135 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR)); | |
34136 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL)); | |
34137 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL)); | |
34138 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL)); | |
34139 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS)); | |
34140 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT)); | |
34141 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE)); | |
34142 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS)); | |
34143 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT)); | |
34144 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER)); | |
34145 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN)); | |
34146 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT)); | |
34147 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 34148 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
c32bde28 RD |
34149 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES)); |
34150 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES)); | |
34151 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON)); | |
34152 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON)); | |
34153 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST)); | |
34154 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT)); | |
34155 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP)); | |
34156 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT)); | |
34157 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE)); | |
34158 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL)); | |
34159 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS)); | |
34160 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER)); | |
34161 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER)); | |
34162 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL)); | |
34163 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING)); | |
34164 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING)); | |
34165 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE)); | |
34166 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN)); | |
34167 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT)); | |
34168 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE)); | |
34169 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT)); | |
34170 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE)); | |
34171 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA)); | |
34172 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM)); | |
34173 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH)); | |
34174 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT)); | |
34175 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE)); | |
34176 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED)); | |
34177 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED)); | |
34178 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED)); | |
34179 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT)); | |
34180 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED)); | |
34181 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED)); | |
34182 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE)); | |
34183 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED)); | |
34184 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE)); | |
34185 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE)); | |
34186 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW)); | |
34187 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE)); | |
34188 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON)); | |
34189 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL)); | |
34190 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
34191 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
34192 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT)); | |
34193 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT)); | |
34194 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM)); | |
34195 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE)); | |
34196 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL)); | |
34197 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW)); | |
34198 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT)); | |
34199 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT)); | |
34200 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT)); | |
34201 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT)); | |
34202 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP)); | |
34203 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
34204 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT)); | |
34205 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT)); | |
34206 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE)); | |
34207 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER)); | |
34208 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE)); | |
34209 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER)); | |
34210 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS)); | |
34211 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON)); | |
34212 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL)); | |
34213 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP)); | |
34214 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN)); | |
34215 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT)); | |
34216 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
34217 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
34218 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
34219 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
34220 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
34221 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
34222 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
34223 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
34224 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
34225 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
34226 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
34227 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
34228 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
34229 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
34230 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
34231 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
34232 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
34233 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
34234 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
34235 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
34236 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
34237 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
34238 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
34239 | ||
34240 | // Map renamed classes back to their common name for OOR | |
34241 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
34242 | ||
b2dc1044 | 34243 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
c32bde28 RD |
34244 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS)); |
34245 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS)); | |
34246 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES)); | |
34247 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT)); | |
34248 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE)); | |
34249 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE)); | |
34250 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED)); | |
34251 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
34252 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS)); | |
34253 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT)); | |
34254 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES)); | |
34255 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
34256 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE)); | |
34257 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS)); | |
34258 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS)); | |
34259 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS)); | |
34260 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal)); | |
34261 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected)); | |
34262 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded)); | |
34263 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded)); | |
34264 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max)); | |
34265 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE)); | |
34266 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW)); | |
34267 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE)); | |
34268 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
34269 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON)); | |
34270 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT)); | |
34271 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL)); | |
34272 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
34273 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
34274 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT)); | |
34275 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT)); | |
34276 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
34277 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
34278 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
34279 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
34280 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
34281 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
34282 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
34283 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
34284 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
34285 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
34286 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
34287 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
34288 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
34289 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
34290 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
34291 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
34292 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
34293 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
34294 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
34295 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
34296 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
34297 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 34298 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
34299 | |
34300 | // Map renamed classes back to their common name for OOR | |
34301 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
34302 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
34303 | ||
b2dc1044 | 34304 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
c32bde28 RD |
34305 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY)); |
34306 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST)); | |
34307 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS)); | |
34308 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL)); | |
34309 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS)); | |
34310 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP)); | |
34311 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
34312 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
34313 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
34314 | |
34315 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
34316 | ||
d14a1e28 RD |
34317 | } |
34318 |