]>
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] | |
212 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
213 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
214 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
215 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
216 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
217 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
218 | #define SWIGTYPE_p_bool swig_types[7] | |
219 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
220 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
74a57fcd RD |
221 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] |
222 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
58203fa6 RD |
223 | #define SWIGTYPE_p_wxStaticLine swig_types[12] |
224 | #define SWIGTYPE_p_wxControl swig_types[13] | |
225 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
226 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
227 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
228 | #define SWIGTYPE_p_wxFont swig_types[17] | |
229 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
230 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
231 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
232 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
233 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
234 | #define SWIGTYPE_p_void swig_types[23] | |
235 | #define SWIGTYPE_p_int swig_types[24] | |
236 | #define SWIGTYPE_p_wxSize swig_types[25] | |
237 | #define SWIGTYPE_p_wxDC swig_types[26] | |
238 | #define SWIGTYPE_p_wxListView swig_types[27] | |
239 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
74a57fcd RD |
240 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] |
241 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
242 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
2ef75293 RD |
243 | #define SWIGTYPE_p_wxChoicebook swig_types[32] |
244 | #define SWIGTYPE_p_wxNotifyEvent swig_types[33] | |
245 | #define SWIGTYPE_p_wxArrayString swig_types[34] | |
246 | #define SWIGTYPE_p_wxListbook swig_types[35] | |
247 | #define SWIGTYPE_p_wxStaticBitmap swig_types[36] | |
248 | #define SWIGTYPE_p_wxSlider swig_types[37] | |
249 | #define SWIGTYPE_p_wxStaticBox swig_types[38] | |
250 | #define SWIGTYPE_p_wxArrayInt swig_types[39] | |
251 | #define SWIGTYPE_p_wxContextHelp swig_types[40] | |
252 | #define SWIGTYPE_p_long swig_types[41] | |
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] | |
257 | #define SWIGTYPE_p_wxBookCtrl swig_types[46] | |
258 | #define SWIGTYPE_p_wxSpinButton swig_types[47] | |
259 | #define SWIGTYPE_p_wxButton swig_types[48] | |
260 | #define SWIGTYPE_p_wxBitmapButton swig_types[49] | |
261 | #define SWIGTYPE_p_wxRect swig_types[50] | |
262 | #define SWIGTYPE_p_wxContextHelpButton swig_types[51] | |
263 | #define SWIGTYPE_p_wxRadioBox swig_types[52] | |
264 | #define SWIGTYPE_p_wxScrollBar swig_types[53] | |
265 | #define SWIGTYPE_p_char swig_types[54] | |
266 | #define SWIGTYPE_p_wxTreeItemId swig_types[55] | |
267 | #define SWIGTYPE_p_wxComboBox swig_types[56] | |
268 | #define SWIGTYPE_p_wxHelpEvent swig_types[57] | |
269 | #define SWIGTYPE_p_wxListItem swig_types[58] | |
270 | #define SWIGTYPE_p_wxNotebookSizer swig_types[59] | |
271 | #define SWIGTYPE_p_wxSpinEvent swig_types[60] | |
272 | #define SWIGTYPE_p_wxGenericDragImage swig_types[61] | |
273 | #define SWIGTYPE_p_wxSpinCtrl swig_types[62] | |
274 | #define SWIGTYPE_p_wxImageList swig_types[63] | |
275 | #define SWIGTYPE_p_wxHelpProvider swig_types[64] | |
276 | #define SWIGTYPE_p_wxTextAttr swig_types[65] | |
277 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[66] | |
278 | #define SWIGTYPE_p_wxPoint swig_types[67] | |
279 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[68] | |
280 | #define SWIGTYPE_p_wxListbookEvent swig_types[69] | |
281 | #define SWIGTYPE_p_wxNotebookEvent swig_types[70] | |
282 | #define SWIGTYPE_p_wxObject swig_types[71] | |
283 | #define SWIGTYPE_p_wxCursor swig_types[72] | |
284 | #define SWIGTYPE_p_wxKeyEvent swig_types[73] | |
285 | #define SWIGTYPE_p_wxWindow swig_types[74] | |
286 | #define SWIGTYPE_p_wxString swig_types[75] | |
287 | #define SWIGTYPE_p_wxBitmap swig_types[76] | |
288 | #define SWIGTYPE_p_wxTreeEvent swig_types[77] | |
289 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
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); | |
796 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
797 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
798 | ||
799 | PYPRIVATE; | |
800 | }; | |
801 | ||
802 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
803 | ||
804 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
805 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
806 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
807 | ||
808 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
809 | wxListItem item; | |
810 | item.SetMask( wxLIST_MASK_STATE | | |
811 | wxLIST_MASK_TEXT | | |
812 | wxLIST_MASK_IMAGE | | |
813 | wxLIST_MASK_DATA | | |
814 | wxLIST_SET_ITEM | | |
815 | wxLIST_MASK_WIDTH | | |
816 | wxLIST_MASK_FORMAT | |
817 | ); | |
818 | if (self->GetColumn(col, item)) | |
819 | return new wxListItem(item); | |
820 | else | |
821 | return NULL; | |
822 | } | |
823 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
824 | wxListItem* info = new wxListItem; | |
825 | info->m_itemId = itemId; | |
826 | info->m_col = col; | |
827 | info->m_mask = 0xFFFF; | |
828 | self->GetItem(*info); | |
829 | return info; | |
830 | } | |
831 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
832 | wxPoint pos; | |
833 | self->GetItemPosition(item, pos); | |
834 | return pos; | |
835 | } | |
836 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
837 | wxRect rect; | |
838 | self->GetItemRect(item, rect, code); | |
839 | return rect; | |
840 | } | |
c32bde28 | 841 | |
d14a1e28 RD |
842 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
843 | if (!PyCallable_Check(func)) | |
ae8162c8 | 844 | return false; |
d14a1e28 RD |
845 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
846 | } | |
847 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
848 | ||
849 | ||
850 | ||
851 | return (wxWindow*)self->m_mainWin; | |
852 | ||
853 | } | |
854 | ||
855 | #include <wx/treectrl.h> | |
856 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 857 | |
33b885b9 | 858 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
ae8162c8 RD |
859 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
860 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 RD |
861 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
862 | // C++ version of Python aware wxTreeCtrl | |
863 | class wxPyTreeCtrl : public wxTreeCtrl { | |
864 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
865 | public: | |
866 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
867 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
868 | const wxPoint& pos, | |
869 | const wxSize& size, | |
870 | long style, | |
871 | const wxValidator& validator, | |
872 | const wxString& name) : | |
873 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
874 | ||
875 | bool Create(wxWindow *parent, wxWindowID id, | |
876 | const wxPoint& pos, | |
877 | const wxSize& size, | |
878 | long style, | |
879 | const wxValidator& validator, | |
880 | const wxString& name) { | |
881 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
882 | } | |
883 | ||
884 | ||
885 | int OnCompareItems(const wxTreeItemId& item1, | |
886 | const wxTreeItemId& item2) { | |
887 | int rval = 0; | |
888 | bool found; | |
4f89f6a3 | 889 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 890 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
891 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
892 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
893 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
894 | Py_DECREF(o1); | |
895 | Py_DECREF(o2); | |
896 | } | |
4f89f6a3 | 897 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
898 | if (! found) |
899 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
900 | return rval; | |
901 | } | |
902 | PYPRIVATE; | |
903 | }; | |
904 | ||
905 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
906 | ||
907 | ||
994141e6 | 908 | |
15afbcd0 | 909 | #if UINT_MAX < LONG_MAX |
c32bde28 RD |
910 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
911 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
912 | /*@@*/ | |
15afbcd0 | 913 | #else |
c32bde28 RD |
914 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
915 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
916 | /*@@*/ | |
15afbcd0 RD |
917 | #endif |
918 | ||
919 | ||
c32bde28 RD |
920 | SWIGSTATICINLINE(int) |
921 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
922 | unsigned long max_value, | |
923 | const char *errmsg) | |
15afbcd0 | 924 | { |
c32bde28 RD |
925 | if (value > max_value) { |
926 | if (errmsg) { | |
927 | PyErr_Format(PyExc_OverflowError, | |
928 | "value %ld is greater than '%s' minimum %ld", | |
929 | value, errmsg, max_value); | |
15afbcd0 | 930 | } |
c32bde28 | 931 | return 0; |
15afbcd0 | 932 | } |
c32bde28 RD |
933 | return 1; |
934 | } | |
994141e6 RD |
935 | |
936 | ||
15afbcd0 | 937 | #if UINT_MAX != ULONG_MAX |
c32bde28 RD |
938 | SWIGSTATICINLINE(int) |
939 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
994141e6 | 940 | { |
c32bde28 RD |
941 | const char* errmsg = val ? "unsigned int" : 0; |
942 | unsigned long v; | |
943 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
944 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
945 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
946 | return 1; | |
947 | } | |
948 | } else { | |
949 | PyErr_Clear(); | |
950 | } | |
951 | if (val) { | |
952 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
953 | } | |
954 | return 0; | |
15afbcd0 RD |
955 | } |
956 | #else | |
c32bde28 RD |
957 | SWIGSTATICINLINE(unsigned int) |
958 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
959 | { | |
960 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
961 | } | |
15afbcd0 RD |
962 | #endif |
963 | ||
964 | ||
c32bde28 RD |
965 | SWIGSTATICINLINE(unsigned int) |
966 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
15afbcd0 | 967 | { |
c32bde28 RD |
968 | unsigned int v; |
969 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
970 | /* | |
971 | this is needed to make valgrind/purify happier. the other | |
972 | solution is throw an exception, but since this code should work | |
973 | with plain C .... | |
974 | */ | |
975 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 976 | } |
c32bde28 RD |
977 | return v; |
978 | } | |
979 | ||
980 | ||
981 | SWIGSTATICINLINE(int) | |
982 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
983 | { | |
984 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
985 | } |
986 | ||
d14a1e28 RD |
987 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
988 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
989 | if (data == NULL) { | |
990 | data = new wxPyTreeItemData(); | |
991 | data->SetId(item); // set the id | |
992 | self->SetItemData(item, data); | |
993 | } | |
994 | return data; | |
995 | } | |
996 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
997 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
998 | if (data == NULL) { | |
999 | data = new wxPyTreeItemData(); | |
1000 | data->SetId(item); // set the id | |
1001 | self->SetItemData(item, data); | |
1002 | } | |
1003 | return data->GetData(); | |
1004 | } | |
1005 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
1006 | data->SetId(item); // set the id | |
1007 | self->SetItemData(item, data); | |
1008 | } | |
1009 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
1010 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
1011 | if (data == NULL) { | |
1012 | data = new wxPyTreeItemData(obj); | |
1013 | data->SetId(item); // set the id | |
1014 | self->SetItemData(item, data); | |
1015 | } else | |
1016 | data->SetData(obj); | |
1017 | } | |
1018 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 1019 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1020 | PyObject* rval = PyList_New(0); |
1021 | wxArrayTreeItemIds array; | |
1022 | size_t num, x; | |
1023 | num = self->GetSelections(array); | |
1024 | for (x=0; x < num; x++) { | |
1025 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 1026 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 1027 | PyList_Append(rval, item); |
1a10c483 | 1028 | Py_DECREF(item); |
d14a1e28 | 1029 | } |
4f89f6a3 | 1030 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1031 | return rval; |
1032 | } | |
1033 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
1034 | void* cookie = 0; |
1035 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 1036 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1037 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 1038 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 1039 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 1040 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1041 | return tup; |
1042 | } | |
58203fa6 RD |
1043 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
1044 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 1045 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1046 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 1047 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 1048 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 1049 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1050 | return tup; |
1051 | } | |
1052 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
1053 | wxRect rect; | |
1054 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 1055 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1056 | wxRect* r = new wxRect(rect); |
ae8162c8 | 1057 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 1058 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1059 | return val; |
1060 | } | |
1061 | else | |
1062 | RETURN_NONE(); | |
1063 | } | |
b2dc1044 | 1064 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 RD |
1065 | |
1066 | SWIGSTATICINLINE(PyObject*) | |
1067 | SWIG_From_bool(bool value) | |
1068 | { | |
1069 | PyObject *obj = value ? Py_True : Py_False; | |
1070 | Py_INCREF(obj); | |
1071 | return obj; | |
1072 | } | |
1073 | ||
1074 | ||
d14a1e28 RD |
1075 | // C++ version of Python aware wxControl |
1076 | class wxPyControl : public wxControl | |
1077 | { | |
1078 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
1079 | public: | |
1080 | wxPyControl() : wxControl() {} | |
1081 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
1082 | const wxPoint& pos = wxDefaultPosition, | |
1083 | const wxSize& size = wxDefaultSize, | |
1084 | long style = 0, | |
1085 | const wxValidator& validator=wxDefaultValidator, | |
1086 | const wxString& name = wxPyControlNameStr) | |
1087 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
1088 | ||
db3e571a | 1089 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
1090 | |
1091 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1092 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1093 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1094 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1095 | ||
1096 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1097 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1098 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1099 | ||
1100 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1101 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1102 | ||
1103 | DEC_PYCALLBACK__(InitDialog); | |
1104 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1105 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1106 | DEC_PYCALLBACK_BOOL_(Validate); | |
1107 | ||
1108 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1109 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1110 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1111 | ||
1112 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1113 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1114 | ||
db3e571a | 1115 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 1116 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 1117 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 1118 | |
d14a1e28 RD |
1119 | PYPRIVATE; |
1120 | }; | |
1121 | ||
1122 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
1123 | ||
1124 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
1125 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
1126 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
1127 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
1128 | ||
1129 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
1130 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
1131 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
1132 | ||
1133 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
1134 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
1135 | ||
1136 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
1137 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1138 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1139 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1140 | ||
1141 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1142 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1143 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1144 | ||
1145 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1146 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1147 | ||
db3e571a | 1148 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1149 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1150 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1151 | |
1152 | ||
1153 | ||
1154 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1155 | |
1156 | #include <wx/generic/dragimgg.h> | |
1157 | ||
d14a1e28 RD |
1158 | #ifdef __cplusplus |
1159 | extern "C" { | |
1160 | #endif | |
c32bde28 | 1161 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
1162 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1163 | return 1; | |
1164 | } | |
1165 | ||
1166 | ||
1167 | static PyObject *_wrap_ButtonNameStr_get() { | |
1168 | PyObject *pyobj; | |
1169 | ||
1170 | { | |
1171 | #if wxUSE_UNICODE | |
1172 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1173 | #else | |
1174 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1175 | #endif | |
1176 | } | |
1177 | return pyobj; | |
1178 | } | |
1179 | ||
1180 | ||
c32bde28 | 1181 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1182 | PyObject *resultobj; |
1183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1184 | int arg2 = (int) -1 ; |
1185 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1186 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1187 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1188 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1189 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1190 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1191 | long arg6 = (long) 0 ; | |
1192 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1193 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1194 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1195 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1196 | wxButton *result; | |
ae8162c8 | 1197 | bool temp3 = false ; |
d14a1e28 RD |
1198 | wxPoint temp4 ; |
1199 | wxSize temp5 ; | |
ae8162c8 | 1200 | bool temp8 = false ; |
d14a1e28 | 1201 | PyObject * obj0 = 0 ; |
994141e6 | 1202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1203 | PyObject * obj2 = 0 ; |
1204 | PyObject * obj3 = 0 ; | |
1205 | PyObject * obj4 = 0 ; | |
994141e6 | 1206 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1207 | PyObject * obj6 = 0 ; |
1208 | PyObject * obj7 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1211 | }; | |
1212 | ||
248ed943 | 1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1216 | if (obj1) { |
c32bde28 | 1217 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1218 | if (PyErr_Occurred()) SWIG_fail; |
1219 | } | |
1220 | if (obj2) { | |
1221 | { | |
1222 | arg3 = wxString_in_helper(obj2); | |
1223 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 1224 | temp3 = true; |
248ed943 | 1225 | } |
d14a1e28 RD |
1226 | } |
1227 | if (obj3) { | |
1228 | { | |
1229 | arg4 = &temp4; | |
1230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1231 | } | |
1232 | } | |
1233 | if (obj4) { | |
1234 | { | |
1235 | arg5 = &temp5; | |
1236 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1237 | } | |
1238 | } | |
994141e6 | 1239 | if (obj5) { |
c32bde28 | 1240 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1241 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1242 | } |
d14a1e28 | 1243 | if (obj6) { |
15afbcd0 RD |
1244 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1246 | SWIG_fail; | |
d14a1e28 | 1247 | if (arg7 == NULL) { |
15afbcd0 RD |
1248 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1249 | SWIG_fail; | |
d14a1e28 RD |
1250 | } |
1251 | } | |
1252 | if (obj7) { | |
1253 | { | |
1254 | arg8 = wxString_in_helper(obj7); | |
1255 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1256 | temp8 = true; |
d14a1e28 RD |
1257 | } |
1258 | } | |
1259 | { | |
e3b71cb8 | 1260 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1262 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1263 | ||
1264 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1265 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1266 | } |
b0f7404b | 1267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1268 | { |
1269 | if (temp3) | |
1270 | delete arg3; | |
1271 | } | |
1272 | { | |
1273 | if (temp8) | |
1274 | delete arg8; | |
1275 | } | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | { | |
1279 | if (temp3) | |
1280 | delete arg3; | |
1281 | } | |
1282 | { | |
1283 | if (temp8) | |
1284 | delete arg8; | |
1285 | } | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
c32bde28 | 1290 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1291 | PyObject *resultobj; |
1292 | wxButton *result; | |
1293 | char *kwnames[] = { | |
1294 | NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1298 | { | |
e3b71cb8 | 1299 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1301 | result = (wxButton *)new wxButton(); | |
1302 | ||
1303 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1304 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1305 | } |
b0f7404b | 1306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1307 | return resultobj; |
1308 | fail: | |
1309 | return NULL; | |
1310 | } | |
1311 | ||
1312 | ||
c32bde28 | 1313 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1314 | PyObject *resultobj; |
1315 | wxButton *arg1 = (wxButton *) 0 ; | |
1316 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1317 | int arg3 = (int) -1 ; |
1318 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1319 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
1320 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1321 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1322 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1323 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1324 | long arg7 = (long) 0 ; | |
1325 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1326 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1327 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1328 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1329 | bool result; | |
ae8162c8 | 1330 | bool temp4 = false ; |
d14a1e28 RD |
1331 | wxPoint temp5 ; |
1332 | wxSize temp6 ; | |
ae8162c8 | 1333 | bool temp9 = false ; |
d14a1e28 RD |
1334 | PyObject * obj0 = 0 ; |
1335 | PyObject * obj1 = 0 ; | |
994141e6 | 1336 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1337 | PyObject * obj3 = 0 ; |
1338 | PyObject * obj4 = 0 ; | |
1339 | PyObject * obj5 = 0 ; | |
994141e6 | 1340 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1341 | PyObject * obj7 = 0 ; |
1342 | PyObject * obj8 = 0 ; | |
1343 | char *kwnames[] = { | |
1344 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1345 | }; | |
1346 | ||
248ed943 | 1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1352 | if (obj2) { |
c32bde28 | 1353 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1354 | if (PyErr_Occurred()) SWIG_fail; |
1355 | } | |
1356 | if (obj3) { | |
1357 | { | |
1358 | arg4 = wxString_in_helper(obj3); | |
1359 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 1360 | temp4 = true; |
248ed943 | 1361 | } |
d14a1e28 RD |
1362 | } |
1363 | if (obj4) { | |
1364 | { | |
1365 | arg5 = &temp5; | |
1366 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1367 | } | |
1368 | } | |
1369 | if (obj5) { | |
1370 | { | |
1371 | arg6 = &temp6; | |
1372 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1373 | } | |
1374 | } | |
994141e6 | 1375 | if (obj6) { |
c32bde28 | 1376 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1377 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1378 | } |
d14a1e28 | 1379 | if (obj7) { |
15afbcd0 RD |
1380 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1382 | SWIG_fail; | |
d14a1e28 | 1383 | if (arg8 == NULL) { |
15afbcd0 RD |
1384 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1385 | SWIG_fail; | |
d14a1e28 RD |
1386 | } |
1387 | } | |
1388 | if (obj8) { | |
1389 | { | |
1390 | arg9 = wxString_in_helper(obj8); | |
1391 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1392 | temp9 = true; |
d14a1e28 RD |
1393 | } |
1394 | } | |
1395 | { | |
1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1397 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1398 | ||
1399 | wxPyEndAllowThreads(__tstate); | |
1400 | if (PyErr_Occurred()) SWIG_fail; | |
1401 | } | |
4f89f6a3 RD |
1402 | { |
1403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1404 | } | |
d14a1e28 RD |
1405 | { |
1406 | if (temp4) | |
1407 | delete arg4; | |
1408 | } | |
1409 | { | |
1410 | if (temp9) | |
1411 | delete arg9; | |
1412 | } | |
1413 | return resultobj; | |
1414 | fail: | |
1415 | { | |
1416 | if (temp4) | |
1417 | delete arg4; | |
1418 | } | |
1419 | { | |
1420 | if (temp9) | |
1421 | delete arg9; | |
1422 | } | |
1423 | return NULL; | |
1424 | } | |
1425 | ||
1426 | ||
c32bde28 | 1427 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1428 | PyObject *resultobj; |
1429 | wxButton *arg1 = (wxButton *) 0 ; | |
1430 | PyObject * obj0 = 0 ; | |
1431 | char *kwnames[] = { | |
1432 | (char *) "self", NULL | |
1433 | }; | |
1434 | ||
1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1438 | { |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | (arg1)->SetDefault(); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | Py_INCREF(Py_None); resultobj = Py_None; | |
1446 | return resultobj; | |
1447 | fail: | |
1448 | return NULL; | |
1449 | } | |
1450 | ||
1451 | ||
c32bde28 | 1452 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1453 | PyObject *resultobj; |
1454 | wxSize result; | |
1455 | char *kwnames[] = { | |
1456 | NULL | |
1457 | }; | |
1458 | ||
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1460 | { | |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1462 | result = wxButton::GetDefaultSize(); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
1465 | if (PyErr_Occurred()) SWIG_fail; | |
1466 | } | |
1467 | { | |
1468 | wxSize * resultptr; | |
1469 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1471 | } |
1472 | return resultobj; | |
1473 | fail: | |
1474 | return NULL; | |
1475 | } | |
1476 | ||
1477 | ||
c32bde28 | 1478 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
1479 | PyObject *resultobj; |
1480 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1481 | wxVisualAttributes result; | |
1482 | PyObject * obj0 = 0 ; | |
1483 | char *kwnames[] = { | |
1484 | (char *) "variant", NULL | |
1485 | }; | |
1486 | ||
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1488 | if (obj0) { | |
c32bde28 | 1489 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
1490 | if (PyErr_Occurred()) SWIG_fail; |
1491 | } | |
1492 | { | |
110da5b0 | 1493 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1495 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1496 | ||
1497 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 1498 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
1499 | } |
1500 | { | |
1501 | wxVisualAttributes * resultptr; | |
1502 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1504 | } | |
1505 | return resultobj; | |
1506 | fail: | |
1507 | return NULL; | |
1508 | } | |
1509 | ||
1510 | ||
c32bde28 | 1511 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1512 | PyObject *obj; |
1513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1514 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1515 | Py_INCREF(obj); | |
1516 | return Py_BuildValue((char *)""); | |
1517 | } | |
c32bde28 | 1518 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1519 | PyObject *resultobj; |
1520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1521 | int arg2 = (int) -1 ; |
1522 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1523 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
1524 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1525 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1526 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1527 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1528 | long arg6 = (long) wxBU_AUTODRAW ; | |
1529 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1530 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1531 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1532 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1533 | wxBitmapButton *result; | |
1534 | wxPoint temp4 ; | |
1535 | wxSize temp5 ; | |
ae8162c8 | 1536 | bool temp8 = false ; |
d14a1e28 | 1537 | PyObject * obj0 = 0 ; |
994141e6 | 1538 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1539 | PyObject * obj2 = 0 ; |
1540 | PyObject * obj3 = 0 ; | |
1541 | PyObject * obj4 = 0 ; | |
994141e6 | 1542 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1543 | PyObject * obj6 = 0 ; |
1544 | PyObject * obj7 = 0 ; | |
1545 | char *kwnames[] = { | |
1546 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1547 | }; | |
1548 | ||
248ed943 | 1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1552 | if (obj1) { |
c32bde28 | 1553 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
1554 | if (PyErr_Occurred()) SWIG_fail; |
1555 | } | |
1556 | if (obj2) { | |
1557 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1559 | SWIG_fail; |
248ed943 RD |
1560 | if (arg3 == NULL) { |
1561 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1562 | SWIG_fail; | |
1563 | } | |
d14a1e28 RD |
1564 | } |
1565 | if (obj3) { | |
1566 | { | |
1567 | arg4 = &temp4; | |
1568 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1569 | } | |
1570 | } | |
1571 | if (obj4) { | |
1572 | { | |
1573 | arg5 = &temp5; | |
1574 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1575 | } | |
1576 | } | |
994141e6 | 1577 | if (obj5) { |
c32bde28 | 1578 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 1579 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1580 | } |
d14a1e28 | 1581 | if (obj6) { |
15afbcd0 RD |
1582 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1584 | SWIG_fail; | |
d14a1e28 | 1585 | if (arg7 == NULL) { |
15afbcd0 RD |
1586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1587 | SWIG_fail; | |
d14a1e28 RD |
1588 | } |
1589 | } | |
1590 | if (obj7) { | |
1591 | { | |
1592 | arg8 = wxString_in_helper(obj7); | |
1593 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 1594 | temp8 = true; |
d14a1e28 RD |
1595 | } |
1596 | } | |
1597 | { | |
e3b71cb8 | 1598 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1600 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1603 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1604 | } |
b0f7404b | 1605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1606 | { |
1607 | if (temp8) | |
1608 | delete arg8; | |
1609 | } | |
1610 | return resultobj; | |
1611 | fail: | |
1612 | { | |
1613 | if (temp8) | |
1614 | delete arg8; | |
1615 | } | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
c32bde28 | 1620 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1621 | PyObject *resultobj; |
1622 | wxBitmapButton *result; | |
1623 | char *kwnames[] = { | |
1624 | NULL | |
1625 | }; | |
1626 | ||
1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1628 | { | |
e3b71cb8 | 1629 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1631 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1634 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1635 | } |
b0f7404b | 1636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1637 | return resultobj; |
1638 | fail: | |
1639 | return NULL; | |
1640 | } | |
1641 | ||
1642 | ||
c32bde28 | 1643 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1644 | PyObject *resultobj; |
1645 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1647 | int arg3 = (int) -1 ; |
1648 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1649 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
1650 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1651 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1652 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1653 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1654 | long arg7 = (long) wxBU_AUTODRAW ; | |
1655 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1656 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1657 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1658 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1659 | bool result; | |
1660 | wxPoint temp5 ; | |
1661 | wxSize temp6 ; | |
ae8162c8 | 1662 | bool temp9 = false ; |
d14a1e28 RD |
1663 | PyObject * obj0 = 0 ; |
1664 | PyObject * obj1 = 0 ; | |
994141e6 | 1665 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1666 | PyObject * obj3 = 0 ; |
1667 | PyObject * obj4 = 0 ; | |
1668 | PyObject * obj5 = 0 ; | |
994141e6 | 1669 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1670 | PyObject * obj7 = 0 ; |
1671 | PyObject * obj8 = 0 ; | |
1672 | char *kwnames[] = { | |
1673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1674 | }; | |
1675 | ||
248ed943 | 1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 1681 | if (obj2) { |
c32bde28 | 1682 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
1683 | if (PyErr_Occurred()) SWIG_fail; |
1684 | } | |
1685 | if (obj3) { | |
1686 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1688 | SWIG_fail; |
248ed943 RD |
1689 | if (arg4 == NULL) { |
1690 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1691 | SWIG_fail; | |
1692 | } | |
d14a1e28 RD |
1693 | } |
1694 | if (obj4) { | |
1695 | { | |
1696 | arg5 = &temp5; | |
1697 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1698 | } | |
1699 | } | |
1700 | if (obj5) { | |
1701 | { | |
1702 | arg6 = &temp6; | |
1703 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1704 | } | |
1705 | } | |
994141e6 | 1706 | if (obj6) { |
c32bde28 | 1707 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 1708 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 1709 | } |
d14a1e28 | 1710 | if (obj7) { |
15afbcd0 RD |
1711 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1713 | SWIG_fail; | |
d14a1e28 | 1714 | if (arg8 == NULL) { |
15afbcd0 RD |
1715 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1716 | SWIG_fail; | |
d14a1e28 RD |
1717 | } |
1718 | } | |
1719 | if (obj8) { | |
1720 | { | |
1721 | arg9 = wxString_in_helper(obj8); | |
1722 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 1723 | temp9 = true; |
d14a1e28 RD |
1724 | } |
1725 | } | |
1726 | { | |
1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1728 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1729 | ||
1730 | wxPyEndAllowThreads(__tstate); | |
1731 | if (PyErr_Occurred()) SWIG_fail; | |
1732 | } | |
4f89f6a3 RD |
1733 | { |
1734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1735 | } | |
d14a1e28 RD |
1736 | { |
1737 | if (temp9) | |
1738 | delete arg9; | |
1739 | } | |
1740 | return resultobj; | |
1741 | fail: | |
1742 | { | |
1743 | if (temp9) | |
1744 | delete arg9; | |
1745 | } | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
c32bde28 | 1750 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1751 | PyObject *resultobj; |
1752 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1753 | wxBitmap result; | |
1754 | PyObject * obj0 = 0 ; | |
1755 | char *kwnames[] = { | |
1756 | (char *) "self", NULL | |
1757 | }; | |
1758 | ||
1759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1762 | { |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | result = (arg1)->GetBitmapLabel(); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | { | |
1770 | wxBitmap * resultptr; | |
1771 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1773 | } |
1774 | return resultobj; | |
1775 | fail: | |
1776 | return NULL; | |
1777 | } | |
1778 | ||
1779 | ||
c32bde28 | 1780 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1781 | PyObject *resultobj; |
1782 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1783 | wxBitmap result; | |
1784 | PyObject * obj0 = 0 ; | |
1785 | char *kwnames[] = { | |
1786 | (char *) "self", NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1792 | { |
1793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1794 | result = (arg1)->GetBitmapDisabled(); | |
1795 | ||
1796 | wxPyEndAllowThreads(__tstate); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
1799 | { | |
1800 | wxBitmap * resultptr; | |
1801 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1802 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1803 | } |
1804 | return resultobj; | |
1805 | fail: | |
1806 | return NULL; | |
1807 | } | |
1808 | ||
1809 | ||
c32bde28 | 1810 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1811 | PyObject *resultobj; |
1812 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1813 | wxBitmap result; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "self", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1822 | { |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | result = (arg1)->GetBitmapFocus(); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | { | |
1830 | wxBitmap * resultptr; | |
1831 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1833 | } |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
c32bde28 | 1840 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1841 | PyObject *resultobj; |
1842 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1843 | wxBitmap result; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self", NULL | |
1847 | }; | |
1848 | ||
1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1852 | { |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | result = (arg1)->GetBitmapSelected(); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
1859 | { | |
1860 | wxBitmap * resultptr; | |
1861 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1863 | } |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
c32bde28 | 1870 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1871 | PyObject *resultobj; |
1872 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1873 | wxBitmap *arg2 = 0 ; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | PyObject * obj1 = 0 ; | |
1876 | char *kwnames[] = { | |
1877 | (char *) "self",(char *) "bitmap", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1885 | SWIG_fail; | |
d14a1e28 | 1886 | if (arg2 == NULL) { |
15afbcd0 RD |
1887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1888 | SWIG_fail; | |
d14a1e28 RD |
1889 | } |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
1896 | } | |
1897 | Py_INCREF(Py_None); resultobj = Py_None; | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
c32bde28 | 1904 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1905 | PyObject *resultobj; |
1906 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1907 | wxBitmap *arg2 = 0 ; | |
1908 | PyObject * obj0 = 0 ; | |
1909 | PyObject * obj1 = 0 ; | |
1910 | char *kwnames[] = { | |
1911 | (char *) "self",(char *) "bitmap", NULL | |
1912 | }; | |
1913 | ||
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1919 | SWIG_fail; | |
d14a1e28 | 1920 | if (arg2 == NULL) { |
15afbcd0 RD |
1921 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1922 | SWIG_fail; | |
d14a1e28 RD |
1923 | } |
1924 | { | |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1926 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
1929 | if (PyErr_Occurred()) SWIG_fail; | |
1930 | } | |
1931 | Py_INCREF(Py_None); resultobj = Py_None; | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
c32bde28 | 1938 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1939 | PyObject *resultobj; |
1940 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1941 | wxBitmap *arg2 = 0 ; | |
1942 | PyObject * obj0 = 0 ; | |
1943 | PyObject * obj1 = 0 ; | |
1944 | char *kwnames[] = { | |
1945 | (char *) "self",(char *) "bitmap", NULL | |
1946 | }; | |
1947 | ||
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1953 | SWIG_fail; | |
d14a1e28 | 1954 | if (arg2 == NULL) { |
15afbcd0 RD |
1955 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1956 | SWIG_fail; | |
d14a1e28 RD |
1957 | } |
1958 | { | |
1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1960 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1961 | ||
1962 | wxPyEndAllowThreads(__tstate); | |
1963 | if (PyErr_Occurred()) SWIG_fail; | |
1964 | } | |
1965 | Py_INCREF(Py_None); resultobj = Py_None; | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
c32bde28 | 1972 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1973 | PyObject *resultobj; |
1974 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1975 | wxBitmap *arg2 = 0 ; | |
1976 | PyObject * obj0 = 0 ; | |
1977 | PyObject * obj1 = 0 ; | |
1978 | char *kwnames[] = { | |
1979 | (char *) "self",(char *) "bitmap", NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1987 | SWIG_fail; | |
d14a1e28 | 1988 | if (arg2 == NULL) { |
15afbcd0 RD |
1989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1990 | SWIG_fail; | |
d14a1e28 RD |
1991 | } |
1992 | { | |
1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1994 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1995 | ||
1996 | wxPyEndAllowThreads(__tstate); | |
1997 | if (PyErr_Occurred()) SWIG_fail; | |
1998 | } | |
1999 | Py_INCREF(Py_None); resultobj = Py_None; | |
2000 | return resultobj; | |
2001 | fail: | |
2002 | return NULL; | |
2003 | } | |
2004 | ||
2005 | ||
c32bde28 | 2006 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2007 | PyObject *resultobj; |
2008 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2009 | int arg2 ; | |
2010 | int arg3 ; | |
2011 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2012 | PyObject * obj1 = 0 ; |
2013 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2014 | char *kwnames[] = { |
2015 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2016 | }; | |
2017 | ||
994141e6 | 2018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2021 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2022 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2023 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 2024 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2025 | { |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | (arg1)->SetMargins(arg2,arg3); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
2032 | Py_INCREF(Py_None); resultobj = Py_None; | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
c32bde28 | 2039 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2040 | PyObject *resultobj; |
2041 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2042 | int result; | |
2043 | PyObject * obj0 = 0 ; | |
2044 | char *kwnames[] = { | |
2045 | (char *) "self", NULL | |
2046 | }; | |
2047 | ||
2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2051 | { |
2052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2053 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
2054 | ||
2055 | wxPyEndAllowThreads(__tstate); | |
2056 | if (PyErr_Occurred()) SWIG_fail; | |
2057 | } | |
c32bde28 | 2058 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2059 | return resultobj; |
2060 | fail: | |
2061 | return NULL; | |
2062 | } | |
2063 | ||
2064 | ||
c32bde28 | 2065 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2066 | PyObject *resultobj; |
2067 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2068 | int result; | |
2069 | PyObject * obj0 = 0 ; | |
2070 | char *kwnames[] = { | |
2071 | (char *) "self", NULL | |
2072 | }; | |
2073 | ||
2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
2076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2077 | { |
2078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2079 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
2080 | ||
2081 | wxPyEndAllowThreads(__tstate); | |
2082 | if (PyErr_Occurred()) SWIG_fail; | |
2083 | } | |
c32bde28 | 2084 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2085 | return resultobj; |
2086 | fail: | |
2087 | return NULL; | |
2088 | } | |
2089 | ||
2090 | ||
c32bde28 | 2091 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2092 | PyObject *obj; |
2093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2094 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
2095 | Py_INCREF(obj); | |
2096 | return Py_BuildValue((char *)""); | |
2097 | } | |
c32bde28 | 2098 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
2099 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
2100 | return 1; | |
2101 | } | |
2102 | ||
2103 | ||
2104 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
2105 | PyObject *pyobj; | |
2106 | ||
2107 | { | |
2108 | #if wxUSE_UNICODE | |
2109 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2110 | #else | |
2111 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
2112 | #endif | |
2113 | } | |
2114 | return pyobj; | |
2115 | } | |
2116 | ||
2117 | ||
c32bde28 | 2118 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2119 | PyObject *resultobj; |
2120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2121 | int arg2 = (int) -1 ; |
2122 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2123 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2124 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2125 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2126 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2127 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2128 | long arg6 = (long) 0 ; | |
2129 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2130 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2131 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
2132 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2133 | wxCheckBox *result; | |
ae8162c8 | 2134 | bool temp3 = false ; |
d14a1e28 RD |
2135 | wxPoint temp4 ; |
2136 | wxSize temp5 ; | |
ae8162c8 | 2137 | bool temp8 = false ; |
d14a1e28 | 2138 | PyObject * obj0 = 0 ; |
994141e6 | 2139 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2140 | PyObject * obj2 = 0 ; |
2141 | PyObject * obj3 = 0 ; | |
2142 | PyObject * obj4 = 0 ; | |
994141e6 | 2143 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2144 | PyObject * obj6 = 0 ; |
2145 | PyObject * obj7 = 0 ; | |
2146 | char *kwnames[] = { | |
2147 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2148 | }; | |
2149 | ||
248ed943 | 2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2153 | if (obj1) { |
c32bde28 | 2154 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
2155 | if (PyErr_Occurred()) SWIG_fail; |
2156 | } | |
2157 | if (obj2) { | |
2158 | { | |
2159 | arg3 = wxString_in_helper(obj2); | |
2160 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2161 | temp3 = true; |
248ed943 | 2162 | } |
d14a1e28 RD |
2163 | } |
2164 | if (obj3) { | |
2165 | { | |
2166 | arg4 = &temp4; | |
2167 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2168 | } | |
2169 | } | |
2170 | if (obj4) { | |
2171 | { | |
2172 | arg5 = &temp5; | |
2173 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2174 | } | |
2175 | } | |
994141e6 | 2176 | if (obj5) { |
c32bde28 | 2177 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2178 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2179 | } |
d14a1e28 | 2180 | if (obj6) { |
15afbcd0 RD |
2181 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2183 | SWIG_fail; | |
d14a1e28 | 2184 | if (arg7 == NULL) { |
15afbcd0 RD |
2185 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2186 | SWIG_fail; | |
d14a1e28 RD |
2187 | } |
2188 | } | |
2189 | if (obj7) { | |
2190 | { | |
2191 | arg8 = wxString_in_helper(obj7); | |
2192 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2193 | temp8 = true; |
d14a1e28 RD |
2194 | } |
2195 | } | |
2196 | { | |
e3b71cb8 | 2197 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2199 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2200 | ||
2201 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2202 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2203 | } |
15afbcd0 | 2204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2205 | { |
2206 | if (temp3) | |
2207 | delete arg3; | |
2208 | } | |
2209 | { | |
2210 | if (temp8) | |
2211 | delete arg8; | |
2212 | } | |
2213 | return resultobj; | |
2214 | fail: | |
2215 | { | |
2216 | if (temp3) | |
2217 | delete arg3; | |
2218 | } | |
2219 | { | |
2220 | if (temp8) | |
2221 | delete arg8; | |
2222 | } | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
c32bde28 | 2227 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2228 | PyObject *resultobj; |
2229 | wxCheckBox *result; | |
2230 | char *kwnames[] = { | |
2231 | NULL | |
2232 | }; | |
2233 | ||
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2235 | { | |
e3b71cb8 | 2236 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2238 | result = (wxCheckBox *)new wxCheckBox(); | |
2239 | ||
2240 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2241 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2242 | } |
15afbcd0 | 2243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2244 | return resultobj; |
2245 | fail: | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
c32bde28 | 2250 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2251 | PyObject *resultobj; |
2252 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2253 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2254 | int arg3 = (int) -1 ; |
2255 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2256 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2257 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2258 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2259 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2260 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2261 | long arg7 = (long) 0 ; | |
2262 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2263 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2264 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2265 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2266 | bool result; | |
ae8162c8 | 2267 | bool temp4 = false ; |
d14a1e28 RD |
2268 | wxPoint temp5 ; |
2269 | wxSize temp6 ; | |
ae8162c8 | 2270 | bool temp9 = false ; |
d14a1e28 RD |
2271 | PyObject * obj0 = 0 ; |
2272 | PyObject * obj1 = 0 ; | |
994141e6 | 2273 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2274 | PyObject * obj3 = 0 ; |
2275 | PyObject * obj4 = 0 ; | |
2276 | PyObject * obj5 = 0 ; | |
994141e6 | 2277 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2278 | PyObject * obj7 = 0 ; |
2279 | PyObject * obj8 = 0 ; | |
2280 | char *kwnames[] = { | |
2281 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2282 | }; | |
2283 | ||
248ed943 | 2284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 2289 | if (obj2) { |
c32bde28 | 2290 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
2291 | if (PyErr_Occurred()) SWIG_fail; |
2292 | } | |
2293 | if (obj3) { | |
2294 | { | |
2295 | arg4 = wxString_in_helper(obj3); | |
2296 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2297 | temp4 = true; |
248ed943 | 2298 | } |
d14a1e28 RD |
2299 | } |
2300 | if (obj4) { | |
2301 | { | |
2302 | arg5 = &temp5; | |
2303 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2304 | } | |
2305 | } | |
2306 | if (obj5) { | |
2307 | { | |
2308 | arg6 = &temp6; | |
2309 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2310 | } | |
2311 | } | |
994141e6 | 2312 | if (obj6) { |
c32bde28 | 2313 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2314 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2315 | } |
d14a1e28 | 2316 | if (obj7) { |
15afbcd0 RD |
2317 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2319 | SWIG_fail; | |
d14a1e28 | 2320 | if (arg8 == NULL) { |
15afbcd0 RD |
2321 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2322 | SWIG_fail; | |
d14a1e28 RD |
2323 | } |
2324 | } | |
2325 | if (obj8) { | |
2326 | { | |
2327 | arg9 = wxString_in_helper(obj8); | |
2328 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2329 | temp9 = true; |
d14a1e28 RD |
2330 | } |
2331 | } | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
4f89f6a3 RD |
2339 | { |
2340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2341 | } | |
d14a1e28 RD |
2342 | { |
2343 | if (temp4) | |
2344 | delete arg4; | |
2345 | } | |
2346 | { | |
2347 | if (temp9) | |
2348 | delete arg9; | |
2349 | } | |
2350 | return resultobj; | |
2351 | fail: | |
2352 | { | |
2353 | if (temp4) | |
2354 | delete arg4; | |
2355 | } | |
2356 | { | |
2357 | if (temp9) | |
2358 | delete arg9; | |
2359 | } | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
c32bde28 | 2364 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2365 | PyObject *resultobj; |
2366 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2367 | bool result; | |
2368 | PyObject * obj0 = 0 ; | |
2369 | char *kwnames[] = { | |
2370 | (char *) "self", NULL | |
2371 | }; | |
2372 | ||
2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2376 | { |
2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2378 | result = (bool)(arg1)->GetValue(); | |
2379 | ||
2380 | wxPyEndAllowThreads(__tstate); | |
2381 | if (PyErr_Occurred()) SWIG_fail; | |
2382 | } | |
4f89f6a3 RD |
2383 | { |
2384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2385 | } | |
d14a1e28 RD |
2386 | return resultobj; |
2387 | fail: | |
2388 | return NULL; | |
2389 | } | |
2390 | ||
2391 | ||
c32bde28 | 2392 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2393 | PyObject *resultobj; |
2394 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2395 | bool result; | |
2396 | PyObject * obj0 = 0 ; | |
2397 | char *kwnames[] = { | |
2398 | (char *) "self", NULL | |
2399 | }; | |
2400 | ||
2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2404 | { |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | result = (bool)(arg1)->IsChecked(); | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
4f89f6a3 RD |
2411 | { |
2412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2413 | } | |
d14a1e28 RD |
2414 | return resultobj; |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
c32bde28 | 2420 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2421 | PyObject *resultobj; |
2422 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2423 | bool arg2 ; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | PyObject * obj1 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "self",(char *) "state", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2433 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 2434 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2435 | { |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | (arg1)->SetValue(arg2); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | Py_INCREF(Py_None); resultobj = Py_None; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
c32bde28 | 2449 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2450 | PyObject *resultobj; |
2451 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2452 | int result; | |
2453 | PyObject * obj0 = 0 ; | |
2454 | char *kwnames[] = { | |
2455 | (char *) "self", NULL | |
2456 | }; | |
2457 | ||
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2461 | { |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
c32bde28 | 2468 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2469 | return resultobj; |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
c32bde28 | 2475 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2476 | PyObject *resultobj; |
2477 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2478 | int arg2 ; | |
2479 | PyObject * obj0 = 0 ; | |
994141e6 | 2480 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2481 | char *kwnames[] = { |
2482 | (char *) "self",(char *) "state", NULL | |
2483 | }; | |
2484 | ||
994141e6 | 2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2488 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2490 | { |
2491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2492 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2493 | ||
2494 | wxPyEndAllowThreads(__tstate); | |
2495 | if (PyErr_Occurred()) SWIG_fail; | |
2496 | } | |
2497 | Py_INCREF(Py_None); resultobj = Py_None; | |
2498 | return resultobj; | |
2499 | fail: | |
2500 | return NULL; | |
2501 | } | |
2502 | ||
2503 | ||
c32bde28 | 2504 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2505 | PyObject *resultobj; |
2506 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2507 | bool result; | |
2508 | PyObject * obj0 = 0 ; | |
2509 | char *kwnames[] = { | |
2510 | (char *) "self", NULL | |
2511 | }; | |
2512 | ||
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2516 | { |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2519 | ||
2520 | wxPyEndAllowThreads(__tstate); | |
2521 | if (PyErr_Occurred()) SWIG_fail; | |
2522 | } | |
4f89f6a3 RD |
2523 | { |
2524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2525 | } | |
d14a1e28 RD |
2526 | return resultobj; |
2527 | fail: | |
2528 | return NULL; | |
2529 | } | |
2530 | ||
2531 | ||
c32bde28 | 2532 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2533 | PyObject *resultobj; |
2534 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2535 | bool result; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | char *kwnames[] = { | |
2538 | (char *) "self", NULL | |
2539 | }; | |
2540 | ||
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2544 | { |
2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2546 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2547 | ||
2548 | wxPyEndAllowThreads(__tstate); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
4f89f6a3 RD |
2551 | { |
2552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2553 | } | |
d14a1e28 RD |
2554 | return resultobj; |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
c32bde28 | 2560 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
2561 | PyObject *resultobj; |
2562 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2563 | wxVisualAttributes result; | |
2564 | PyObject * obj0 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "variant", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2570 | if (obj0) { | |
c32bde28 | 2571 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
2572 | if (PyErr_Occurred()) SWIG_fail; |
2573 | } | |
2574 | { | |
110da5b0 | 2575 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2577 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2580 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2581 | } |
2582 | { | |
2583 | wxVisualAttributes * resultptr; | |
2584 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
c32bde28 | 2593 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2594 | PyObject *obj; |
2595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2596 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2597 | Py_INCREF(obj); | |
2598 | return Py_BuildValue((char *)""); | |
2599 | } | |
c32bde28 | 2600 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
2601 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2602 | return 1; | |
2603 | } | |
2604 | ||
2605 | ||
2606 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2607 | PyObject *pyobj; | |
2608 | ||
2609 | { | |
2610 | #if wxUSE_UNICODE | |
2611 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2612 | #else | |
2613 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2614 | #endif | |
2615 | } | |
2616 | return pyobj; | |
2617 | } | |
2618 | ||
2619 | ||
c32bde28 | 2620 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2621 | PyObject *resultobj; |
2622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2623 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2624 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2625 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2626 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2627 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2628 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2629 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2630 | long arg6 = (long) 0 ; | |
2631 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2632 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2633 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2634 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2635 | wxChoice *result; |
2636 | wxPoint temp3 ; | |
2637 | wxSize temp4 ; | |
ae8162c8 RD |
2638 | bool temp5 = false ; |
2639 | bool temp8 = false ; | |
d14a1e28 | 2640 | PyObject * obj0 = 0 ; |
994141e6 | 2641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2642 | PyObject * obj2 = 0 ; |
2643 | PyObject * obj3 = 0 ; | |
2644 | PyObject * obj4 = 0 ; | |
994141e6 | 2645 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2646 | PyObject * obj6 = 0 ; |
2647 | PyObject * obj7 = 0 ; | |
2648 | char *kwnames[] = { | |
2649 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2650 | }; | |
2651 | ||
a95a7133 | 2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2655 | if (obj1) { |
c32bde28 | 2656 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
2657 | if (PyErr_Occurred()) SWIG_fail; |
2658 | } | |
d14a1e28 RD |
2659 | if (obj2) { |
2660 | { | |
2661 | arg3 = &temp3; | |
2662 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2663 | } | |
2664 | } | |
2665 | if (obj3) { | |
2666 | { | |
2667 | arg4 = &temp4; | |
2668 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2669 | } | |
2670 | } | |
2671 | if (obj4) { | |
2672 | { | |
4d5c3d91 RD |
2673 | if (! PySequence_Check(obj4)) { |
2674 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2675 | SWIG_fail; | |
2676 | } | |
2677 | arg5 = new wxArrayString; | |
ae8162c8 | 2678 | temp5 = true; |
4d5c3d91 RD |
2679 | int i, len=PySequence_Length(obj4); |
2680 | for (i=0; i<len; i++) { | |
2681 | PyObject* item = PySequence_GetItem(obj4, i); | |
2682 | #if wxUSE_UNICODE | |
2683 | PyObject* str = PyObject_Unicode(item); | |
2684 | #else | |
2685 | PyObject* str = PyObject_Str(item); | |
2686 | #endif | |
74a57fcd | 2687 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2688 | arg5->Add(Py2wxString(str)); |
2689 | Py_DECREF(item); | |
2690 | Py_DECREF(str); | |
2691 | } | |
d14a1e28 RD |
2692 | } |
2693 | } | |
994141e6 | 2694 | if (obj5) { |
c32bde28 | 2695 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 2696 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2697 | } |
d14a1e28 | 2698 | if (obj6) { |
15afbcd0 RD |
2699 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2701 | SWIG_fail; | |
4d5c3d91 | 2702 | if (arg7 == NULL) { |
15afbcd0 RD |
2703 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2704 | SWIG_fail; | |
d14a1e28 RD |
2705 | } |
2706 | } | |
2707 | if (obj7) { | |
2708 | { | |
4d5c3d91 RD |
2709 | arg8 = wxString_in_helper(obj7); |
2710 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2711 | temp8 = true; |
d14a1e28 RD |
2712 | } |
2713 | } | |
2714 | { | |
e3b71cb8 | 2715 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 2717 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2718 | |
2719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2720 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2721 | } |
15afbcd0 | 2722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2723 | { |
3adfb63b | 2724 | if (temp5) delete arg5; |
d14a1e28 RD |
2725 | } |
2726 | { | |
2727 | if (temp8) | |
4d5c3d91 | 2728 | delete arg8; |
d14a1e28 RD |
2729 | } |
2730 | return resultobj; | |
2731 | fail: | |
2732 | { | |
3adfb63b | 2733 | if (temp5) delete arg5; |
d14a1e28 RD |
2734 | } |
2735 | { | |
2736 | if (temp8) | |
4d5c3d91 | 2737 | delete arg8; |
d14a1e28 RD |
2738 | } |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
c32bde28 | 2743 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2744 | PyObject *resultobj; |
2745 | wxChoice *result; | |
2746 | char *kwnames[] = { | |
2747 | NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2751 | { | |
e3b71cb8 | 2752 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2754 | result = (wxChoice *)new wxChoice(); | |
2755 | ||
2756 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2757 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2758 | } |
15afbcd0 | 2759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2760 | return resultobj; |
2761 | fail: | |
2762 | return NULL; | |
2763 | } | |
2764 | ||
2765 | ||
c32bde28 | 2766 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2767 | PyObject *resultobj; |
2768 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2769 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2770 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2771 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2772 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2773 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2774 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2775 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2776 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2777 | long arg7 = (long) 0 ; | |
2778 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2779 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2780 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2781 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2782 | bool result; |
2783 | wxPoint temp4 ; | |
2784 | wxSize temp5 ; | |
ae8162c8 RD |
2785 | bool temp6 = false ; |
2786 | bool temp9 = false ; | |
d14a1e28 RD |
2787 | PyObject * obj0 = 0 ; |
2788 | PyObject * obj1 = 0 ; | |
994141e6 | 2789 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2790 | PyObject * obj3 = 0 ; |
2791 | PyObject * obj4 = 0 ; | |
2792 | PyObject * obj5 = 0 ; | |
994141e6 | 2793 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2794 | PyObject * obj7 = 0 ; |
2795 | PyObject * obj8 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2798 | }; | |
2799 | ||
a95a7133 | 2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 2805 | if (obj2) { |
c32bde28 | 2806 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
2807 | if (PyErr_Occurred()) SWIG_fail; |
2808 | } | |
d14a1e28 RD |
2809 | if (obj3) { |
2810 | { | |
2811 | arg4 = &temp4; | |
2812 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2813 | } | |
2814 | } | |
2815 | if (obj4) { | |
2816 | { | |
2817 | arg5 = &temp5; | |
2818 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2819 | } | |
2820 | } | |
2821 | if (obj5) { | |
2822 | { | |
4d5c3d91 RD |
2823 | if (! PySequence_Check(obj5)) { |
2824 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2825 | SWIG_fail; | |
2826 | } | |
2827 | arg6 = new wxArrayString; | |
ae8162c8 | 2828 | temp6 = true; |
4d5c3d91 RD |
2829 | int i, len=PySequence_Length(obj5); |
2830 | for (i=0; i<len; i++) { | |
2831 | PyObject* item = PySequence_GetItem(obj5, i); | |
2832 | #if wxUSE_UNICODE | |
2833 | PyObject* str = PyObject_Unicode(item); | |
2834 | #else | |
2835 | PyObject* str = PyObject_Str(item); | |
2836 | #endif | |
74a57fcd | 2837 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2838 | arg6->Add(Py2wxString(str)); |
2839 | Py_DECREF(item); | |
2840 | Py_DECREF(str); | |
2841 | } | |
d14a1e28 RD |
2842 | } |
2843 | } | |
994141e6 | 2844 | if (obj6) { |
c32bde28 | 2845 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 2846 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 2847 | } |
d14a1e28 | 2848 | if (obj7) { |
15afbcd0 RD |
2849 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2851 | SWIG_fail; | |
4d5c3d91 | 2852 | if (arg8 == NULL) { |
15afbcd0 RD |
2853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2854 | SWIG_fail; | |
d14a1e28 RD |
2855 | } |
2856 | } | |
2857 | if (obj8) { | |
2858 | { | |
4d5c3d91 RD |
2859 | arg9 = wxString_in_helper(obj8); |
2860 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2861 | temp9 = true; |
d14a1e28 RD |
2862 | } |
2863 | } | |
2864 | { | |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2866 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2867 | |
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
4f89f6a3 RD |
2871 | { |
2872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2873 | } | |
d14a1e28 | 2874 | { |
3adfb63b | 2875 | if (temp6) delete arg6; |
d14a1e28 RD |
2876 | } |
2877 | { | |
2878 | if (temp9) | |
4d5c3d91 | 2879 | delete arg9; |
d14a1e28 RD |
2880 | } |
2881 | return resultobj; | |
2882 | fail: | |
2883 | { | |
3adfb63b | 2884 | if (temp6) delete arg6; |
d14a1e28 RD |
2885 | } |
2886 | { | |
2887 | if (temp9) | |
4d5c3d91 | 2888 | delete arg9; |
d14a1e28 RD |
2889 | } |
2890 | return NULL; | |
2891 | } | |
2892 | ||
2893 | ||
c32bde28 | 2894 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2895 | PyObject *resultobj; |
2896 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2897 | int arg2 ; | |
2898 | PyObject * obj0 = 0 ; | |
994141e6 | 2899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2900 | char *kwnames[] = { |
2901 | (char *) "self",(char *) "n", NULL | |
2902 | }; | |
2903 | ||
994141e6 | 2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2907 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2908 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2909 | { |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | (arg1)->SetSelection(arg2); | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | Py_INCREF(Py_None); resultobj = Py_None; | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
c32bde28 | 2923 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2924 | PyObject *resultobj; |
2925 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2926 | wxString *arg2 = 0 ; | |
121b9a67 | 2927 | bool result; |
ae8162c8 | 2928 | bool temp2 = false ; |
d14a1e28 RD |
2929 | PyObject * obj0 = 0 ; |
2930 | PyObject * obj1 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self",(char *) "string", NULL | |
2933 | }; | |
2934 | ||
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2938 | { |
2939 | arg2 = wxString_in_helper(obj1); | |
2940 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2941 | temp2 = true; |
d14a1e28 RD |
2942 | } |
2943 | { | |
2944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2945 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2946 | |
2947 | wxPyEndAllowThreads(__tstate); | |
2948 | if (PyErr_Occurred()) SWIG_fail; | |
2949 | } | |
121b9a67 RD |
2950 | { |
2951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2952 | } | |
d14a1e28 RD |
2953 | { |
2954 | if (temp2) | |
2955 | delete arg2; | |
2956 | } | |
2957 | return resultobj; | |
2958 | fail: | |
2959 | { | |
2960 | if (temp2) | |
2961 | delete arg2; | |
2962 | } | |
2963 | return NULL; | |
2964 | } | |
2965 | ||
2966 | ||
c32bde28 | 2967 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2968 | PyObject *resultobj; |
2969 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2970 | int arg2 ; | |
2971 | wxString *arg3 = 0 ; | |
ae8162c8 | 2972 | bool temp3 = false ; |
d14a1e28 | 2973 | PyObject * obj0 = 0 ; |
994141e6 | 2974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2975 | PyObject * obj2 = 0 ; |
2976 | char *kwnames[] = { | |
fcafa8a9 | 2977 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2978 | }; |
2979 | ||
994141e6 | 2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2983 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 2984 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2985 | { |
2986 | arg3 = wxString_in_helper(obj2); | |
2987 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2988 | temp3 = true; |
d14a1e28 RD |
2989 | } |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | Py_INCREF(Py_None); resultobj = Py_None; | |
2998 | { | |
2999 | if (temp3) | |
3000 | delete arg3; | |
3001 | } | |
3002 | return resultobj; | |
3003 | fail: | |
3004 | { | |
3005 | if (temp3) | |
3006 | delete arg3; | |
3007 | } | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
c32bde28 | 3012 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
3013 | PyObject *resultobj; |
3014 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3015 | wxVisualAttributes result; | |
3016 | PyObject * obj0 = 0 ; | |
3017 | char *kwnames[] = { | |
3018 | (char *) "variant", NULL | |
3019 | }; | |
3020 | ||
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3022 | if (obj0) { | |
c32bde28 | 3023 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
3024 | if (PyErr_Occurred()) SWIG_fail; |
3025 | } | |
3026 | { | |
110da5b0 | 3027 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3029 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3030 | ||
3031 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3032 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3033 | } |
3034 | { | |
3035 | wxVisualAttributes * resultptr; | |
3036 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3038 | } | |
3039 | return resultobj; | |
3040 | fail: | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
c32bde28 | 3045 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3046 | PyObject *obj; |
3047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3048 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
3049 | Py_INCREF(obj); | |
3050 | return Py_BuildValue((char *)""); | |
3051 | } | |
c32bde28 | 3052 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3053 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
3054 | return 1; | |
3055 | } | |
3056 | ||
3057 | ||
3058 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
3059 | PyObject *pyobj; | |
3060 | ||
3061 | { | |
3062 | #if wxUSE_UNICODE | |
3063 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3064 | #else | |
3065 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
3066 | #endif | |
3067 | } | |
3068 | return pyobj; | |
3069 | } | |
3070 | ||
3071 | ||
c32bde28 | 3072 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3073 | PyObject *resultobj; |
3074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 3075 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3076 | wxString const &arg3_defvalue = wxPyEmptyString ; |
3077 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3078 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3079 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3080 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3081 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
3082 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
3083 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3084 | long arg7 = (long) 0 ; | |
3085 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3086 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3087 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
3088 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 3089 | wxComboBox *result; |
ae8162c8 | 3090 | bool temp3 = false ; |
d14a1e28 RD |
3091 | wxPoint temp4 ; |
3092 | wxSize temp5 ; | |
ae8162c8 RD |
3093 | bool temp6 = false ; |
3094 | bool temp9 = false ; | |
d14a1e28 | 3095 | PyObject * obj0 = 0 ; |
994141e6 | 3096 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3097 | PyObject * obj2 = 0 ; |
3098 | PyObject * obj3 = 0 ; | |
3099 | PyObject * obj4 = 0 ; | |
3100 | PyObject * obj5 = 0 ; | |
994141e6 | 3101 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3102 | PyObject * obj7 = 0 ; |
3103 | PyObject * obj8 = 0 ; | |
3104 | char *kwnames[] = { | |
3105 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3106 | }; | |
3107 | ||
a95a7133 | 3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3111 | if (obj1) { |
c32bde28 | 3112 | arg2 = (int)SWIG_As_int(obj1); |
a95a7133 RD |
3113 | if (PyErr_Occurred()) SWIG_fail; |
3114 | } | |
d14a1e28 RD |
3115 | if (obj2) { |
3116 | { | |
3117 | arg3 = wxString_in_helper(obj2); | |
3118 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3119 | temp3 = true; |
d14a1e28 RD |
3120 | } |
3121 | } | |
3122 | if (obj3) { | |
3123 | { | |
3124 | arg4 = &temp4; | |
3125 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3126 | } | |
3127 | } | |
3128 | if (obj4) { | |
3129 | { | |
3130 | arg5 = &temp5; | |
3131 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3132 | } | |
3133 | } | |
3134 | if (obj5) { | |
3135 | { | |
4d5c3d91 RD |
3136 | if (! PySequence_Check(obj5)) { |
3137 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3138 | SWIG_fail; | |
3139 | } | |
3140 | arg6 = new wxArrayString; | |
ae8162c8 | 3141 | temp6 = true; |
4d5c3d91 RD |
3142 | int i, len=PySequence_Length(obj5); |
3143 | for (i=0; i<len; i++) { | |
3144 | PyObject* item = PySequence_GetItem(obj5, i); | |
3145 | #if wxUSE_UNICODE | |
3146 | PyObject* str = PyObject_Unicode(item); | |
3147 | #else | |
3148 | PyObject* str = PyObject_Str(item); | |
3149 | #endif | |
74a57fcd | 3150 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3151 | arg6->Add(Py2wxString(str)); |
3152 | Py_DECREF(item); | |
3153 | Py_DECREF(str); | |
3154 | } | |
d14a1e28 RD |
3155 | } |
3156 | } | |
994141e6 | 3157 | if (obj6) { |
c32bde28 | 3158 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 3159 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3160 | } |
d14a1e28 | 3161 | if (obj7) { |
15afbcd0 RD |
3162 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3164 | SWIG_fail; | |
4d5c3d91 | 3165 | if (arg8 == NULL) { |
15afbcd0 RD |
3166 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3167 | SWIG_fail; | |
d14a1e28 RD |
3168 | } |
3169 | } | |
3170 | if (obj8) { | |
3171 | { | |
4d5c3d91 RD |
3172 | arg9 = wxString_in_helper(obj8); |
3173 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3174 | temp9 = true; |
d14a1e28 RD |
3175 | } |
3176 | } | |
3177 | { | |
e3b71cb8 | 3178 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3180 | 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 |
3181 | |
3182 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3183 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3184 | } |
15afbcd0 | 3185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3186 | { |
3187 | if (temp3) | |
3188 | delete arg3; | |
3189 | } | |
3190 | { | |
3adfb63b | 3191 | if (temp6) delete arg6; |
d14a1e28 RD |
3192 | } |
3193 | { | |
3194 | if (temp9) | |
4d5c3d91 | 3195 | delete arg9; |
d14a1e28 RD |
3196 | } |
3197 | return resultobj; | |
3198 | fail: | |
3199 | { | |
3200 | if (temp3) | |
3201 | delete arg3; | |
3202 | } | |
3203 | { | |
3adfb63b | 3204 | if (temp6) delete arg6; |
d14a1e28 RD |
3205 | } |
3206 | { | |
3207 | if (temp9) | |
4d5c3d91 | 3208 | delete arg9; |
d14a1e28 RD |
3209 | } |
3210 | return NULL; | |
3211 | } | |
3212 | ||
3213 | ||
c32bde28 | 3214 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3215 | PyObject *resultobj; |
3216 | wxComboBox *result; | |
3217 | char *kwnames[] = { | |
3218 | NULL | |
3219 | }; | |
3220 | ||
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3222 | { | |
e3b71cb8 | 3223 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3225 | result = (wxComboBox *)new wxComboBox(); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3228 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3229 | } |
15afbcd0 | 3230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3231 | return resultobj; |
3232 | fail: | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
c32bde28 | 3237 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3238 | PyObject *resultobj; |
3239 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3240 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3241 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3242 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3243 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3244 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3245 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3246 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3247 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3248 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3249 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3250 | long arg8 = (long) 0 ; | |
3251 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3252 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3253 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3254 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3255 | bool result; |
ae8162c8 | 3256 | bool temp4 = false ; |
d14a1e28 RD |
3257 | wxPoint temp5 ; |
3258 | wxSize temp6 ; | |
ae8162c8 RD |
3259 | bool temp7 = false ; |
3260 | bool temp10 = false ; | |
d14a1e28 RD |
3261 | PyObject * obj0 = 0 ; |
3262 | PyObject * obj1 = 0 ; | |
994141e6 | 3263 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3264 | PyObject * obj3 = 0 ; |
3265 | PyObject * obj4 = 0 ; | |
3266 | PyObject * obj5 = 0 ; | |
3267 | PyObject * obj6 = 0 ; | |
994141e6 | 3268 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3269 | PyObject * obj8 = 0 ; |
3270 | PyObject * obj9 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3273 | }; | |
3274 | ||
a95a7133 | 3275 | 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 |
3276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 | 3280 | if (obj2) { |
c32bde28 | 3281 | arg3 = (int)SWIG_As_int(obj2); |
a95a7133 RD |
3282 | if (PyErr_Occurred()) SWIG_fail; |
3283 | } | |
d14a1e28 RD |
3284 | if (obj3) { |
3285 | { | |
3286 | arg4 = wxString_in_helper(obj3); | |
3287 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3288 | temp4 = true; |
d14a1e28 RD |
3289 | } |
3290 | } | |
3291 | if (obj4) { | |
3292 | { | |
3293 | arg5 = &temp5; | |
3294 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3295 | } | |
3296 | } | |
3297 | if (obj5) { | |
3298 | { | |
3299 | arg6 = &temp6; | |
3300 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3301 | } | |
3302 | } | |
3303 | if (obj6) { | |
3304 | { | |
4d5c3d91 RD |
3305 | if (! PySequence_Check(obj6)) { |
3306 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3307 | SWIG_fail; | |
3308 | } | |
3309 | arg7 = new wxArrayString; | |
ae8162c8 | 3310 | temp7 = true; |
4d5c3d91 RD |
3311 | int i, len=PySequence_Length(obj6); |
3312 | for (i=0; i<len; i++) { | |
3313 | PyObject* item = PySequence_GetItem(obj6, i); | |
3314 | #if wxUSE_UNICODE | |
3315 | PyObject* str = PyObject_Unicode(item); | |
3316 | #else | |
3317 | PyObject* str = PyObject_Str(item); | |
3318 | #endif | |
74a57fcd | 3319 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3320 | arg7->Add(Py2wxString(str)); |
3321 | Py_DECREF(item); | |
3322 | Py_DECREF(str); | |
3323 | } | |
d14a1e28 RD |
3324 | } |
3325 | } | |
994141e6 | 3326 | if (obj7) { |
c32bde28 | 3327 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 3328 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 3329 | } |
d14a1e28 | 3330 | if (obj8) { |
15afbcd0 RD |
3331 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3333 | SWIG_fail; | |
4d5c3d91 | 3334 | if (arg9 == NULL) { |
15afbcd0 RD |
3335 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3336 | SWIG_fail; | |
d14a1e28 RD |
3337 | } |
3338 | } | |
3339 | if (obj9) { | |
3340 | { | |
4d5c3d91 RD |
3341 | arg10 = wxString_in_helper(obj9); |
3342 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 3343 | temp10 = true; |
d14a1e28 RD |
3344 | } |
3345 | } | |
3346 | { | |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3348 | 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 |
3349 | |
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
4f89f6a3 RD |
3353 | { |
3354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3355 | } | |
d14a1e28 RD |
3356 | { |
3357 | if (temp4) | |
3358 | delete arg4; | |
3359 | } | |
3360 | { | |
3adfb63b | 3361 | if (temp7) delete arg7; |
d14a1e28 RD |
3362 | } |
3363 | { | |
3364 | if (temp10) | |
4d5c3d91 | 3365 | delete arg10; |
d14a1e28 RD |
3366 | } |
3367 | return resultobj; | |
3368 | fail: | |
3369 | { | |
3370 | if (temp4) | |
3371 | delete arg4; | |
3372 | } | |
3373 | { | |
3adfb63b | 3374 | if (temp7) delete arg7; |
d14a1e28 RD |
3375 | } |
3376 | { | |
3377 | if (temp10) | |
4d5c3d91 | 3378 | delete arg10; |
d14a1e28 RD |
3379 | } |
3380 | return NULL; | |
3381 | } | |
3382 | ||
3383 | ||
c32bde28 | 3384 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3385 | PyObject *resultobj; |
3386 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3387 | wxString result; | |
3388 | PyObject * obj0 = 0 ; | |
3389 | char *kwnames[] = { | |
3390 | (char *) "self", NULL | |
3391 | }; | |
3392 | ||
3393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3396 | { |
3397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3398 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3399 | ||
3400 | wxPyEndAllowThreads(__tstate); | |
3401 | if (PyErr_Occurred()) SWIG_fail; | |
3402 | } | |
3403 | { | |
3404 | #if wxUSE_UNICODE | |
3405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3406 | #else | |
3407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3408 | #endif | |
3409 | } | |
3410 | return resultobj; | |
3411 | fail: | |
3412 | return NULL; | |
3413 | } | |
3414 | ||
3415 | ||
c32bde28 | 3416 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3417 | PyObject *resultobj; |
3418 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3419 | wxString *arg2 = 0 ; | |
ae8162c8 | 3420 | bool temp2 = false ; |
d14a1e28 RD |
3421 | PyObject * obj0 = 0 ; |
3422 | PyObject * obj1 = 0 ; | |
3423 | char *kwnames[] = { | |
3424 | (char *) "self",(char *) "value", NULL | |
3425 | }; | |
3426 | ||
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3430 | { |
3431 | arg2 = wxString_in_helper(obj1); | |
3432 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3433 | temp2 = true; |
d14a1e28 RD |
3434 | } |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | (arg1)->SetValue((wxString const &)*arg2); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | Py_INCREF(Py_None); resultobj = Py_None; | |
3443 | { | |
3444 | if (temp2) | |
3445 | delete arg2; | |
3446 | } | |
3447 | return resultobj; | |
3448 | fail: | |
3449 | { | |
3450 | if (temp2) | |
3451 | delete arg2; | |
3452 | } | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
c32bde28 | 3457 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3458 | PyObject *resultobj; |
3459 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3460 | PyObject * obj0 = 0 ; | |
3461 | char *kwnames[] = { | |
3462 | (char *) "self", NULL | |
3463 | }; | |
3464 | ||
3465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3468 | { |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | (arg1)->Copy(); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | } | |
3475 | Py_INCREF(Py_None); resultobj = Py_None; | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | return NULL; | |
3479 | } | |
3480 | ||
3481 | ||
c32bde28 | 3482 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3483 | PyObject *resultobj; |
3484 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3485 | PyObject * obj0 = 0 ; | |
3486 | char *kwnames[] = { | |
3487 | (char *) "self", NULL | |
3488 | }; | |
3489 | ||
3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3493 | { |
3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3495 | (arg1)->Cut(); | |
3496 | ||
3497 | wxPyEndAllowThreads(__tstate); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | Py_INCREF(Py_None); resultobj = Py_None; | |
3501 | return resultobj; | |
3502 | fail: | |
3503 | return NULL; | |
3504 | } | |
3505 | ||
3506 | ||
c32bde28 | 3507 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3508 | PyObject *resultobj; |
3509 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3510 | PyObject * obj0 = 0 ; | |
3511 | char *kwnames[] = { | |
3512 | (char *) "self", NULL | |
3513 | }; | |
3514 | ||
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3518 | { |
3519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3520 | (arg1)->Paste(); | |
3521 | ||
3522 | wxPyEndAllowThreads(__tstate); | |
3523 | if (PyErr_Occurred()) SWIG_fail; | |
3524 | } | |
3525 | Py_INCREF(Py_None); resultobj = Py_None; | |
3526 | return resultobj; | |
3527 | fail: | |
3528 | return NULL; | |
3529 | } | |
3530 | ||
3531 | ||
c32bde28 | 3532 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3533 | PyObject *resultobj; |
3534 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3535 | long arg2 ; | |
3536 | PyObject * obj0 = 0 ; | |
994141e6 | 3537 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3538 | char *kwnames[] = { |
3539 | (char *) "self",(char *) "pos", NULL | |
3540 | }; | |
3541 | ||
994141e6 | 3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3545 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3546 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3547 | { |
3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3549 | (arg1)->SetInsertionPoint(arg2); | |
3550 | ||
3551 | wxPyEndAllowThreads(__tstate); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | } | |
3554 | Py_INCREF(Py_None); resultobj = Py_None; | |
3555 | return resultobj; | |
3556 | fail: | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
c32bde28 | 3561 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3562 | PyObject *resultobj; |
3563 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3564 | long result; | |
3565 | PyObject * obj0 = 0 ; | |
3566 | char *kwnames[] = { | |
3567 | (char *) "self", NULL | |
3568 | }; | |
3569 | ||
3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3573 | { |
3574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3575 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3576 | ||
3577 | wxPyEndAllowThreads(__tstate); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
c32bde28 | 3580 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3581 | return resultobj; |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
c32bde28 | 3587 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3588 | PyObject *resultobj; |
3589 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3590 | long result; | |
3591 | PyObject * obj0 = 0 ; | |
3592 | char *kwnames[] = { | |
3593 | (char *) "self", NULL | |
3594 | }; | |
3595 | ||
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3599 | { |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
c32bde28 | 3606 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
3607 | return resultobj; |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
c32bde28 | 3613 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3614 | PyObject *resultobj; |
3615 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3616 | long arg2 ; | |
3617 | long arg3 ; | |
3618 | wxString *arg4 = 0 ; | |
ae8162c8 | 3619 | bool temp4 = false ; |
d14a1e28 | 3620 | PyObject * obj0 = 0 ; |
994141e6 RD |
3621 | PyObject * obj1 = 0 ; |
3622 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3623 | PyObject * obj3 = 0 ; |
3624 | char *kwnames[] = { | |
3625 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3626 | }; | |
3627 | ||
994141e6 | 3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3631 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3632 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3633 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3634 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3635 | { |
3636 | arg4 = wxString_in_helper(obj3); | |
3637 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3638 | temp4 = true; |
d14a1e28 RD |
3639 | } |
3640 | { | |
3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3642 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3643 | ||
3644 | wxPyEndAllowThreads(__tstate); | |
3645 | if (PyErr_Occurred()) SWIG_fail; | |
3646 | } | |
3647 | Py_INCREF(Py_None); resultobj = Py_None; | |
3648 | { | |
3649 | if (temp4) | |
3650 | delete arg4; | |
3651 | } | |
3652 | return resultobj; | |
3653 | fail: | |
3654 | { | |
3655 | if (temp4) | |
3656 | delete arg4; | |
3657 | } | |
3658 | return NULL; | |
3659 | } | |
3660 | ||
3661 | ||
c32bde28 | 3662 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
fd3f2efe RD |
3663 | PyObject *resultobj; |
3664 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3665 | int arg2 ; | |
3666 | PyObject * obj0 = 0 ; | |
994141e6 | 3667 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3668 | char *kwnames[] = { |
3669 | (char *) "self",(char *) "n", NULL | |
3670 | }; | |
3671 | ||
994141e6 | 3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3675 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 3676 | if (PyErr_Occurred()) SWIG_fail; |
fd3f2efe RD |
3677 | { |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3679 | (arg1)->SetSelection(arg2); | |
3680 | ||
3681 | wxPyEndAllowThreads(__tstate); | |
3682 | if (PyErr_Occurred()) SWIG_fail; | |
3683 | } | |
3684 | Py_INCREF(Py_None); resultobj = Py_None; | |
3685 | return resultobj; | |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
c32bde28 | 3691 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3692 | PyObject *resultobj; |
3693 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3694 | long arg2 ; | |
3695 | long arg3 ; | |
3696 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3697 | PyObject * obj1 = 0 ; |
3698 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3699 | char *kwnames[] = { |
3700 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3701 | }; | |
3702 | ||
994141e6 | 3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3706 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3707 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3708 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3709 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3710 | { |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | (arg1)->SetSelection(arg2,arg3); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
3717 | Py_INCREF(Py_None); resultobj = Py_None; | |
3718 | return resultobj; | |
3719 | fail: | |
3720 | return NULL; | |
3721 | } | |
3722 | ||
3723 | ||
c32bde28 | 3724 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3725 | PyObject *resultobj; |
3726 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3727 | wxString *arg2 = 0 ; | |
3728 | bool result; | |
ae8162c8 | 3729 | bool temp2 = false ; |
121b9a67 RD |
3730 | PyObject * obj0 = 0 ; |
3731 | PyObject * obj1 = 0 ; | |
3732 | char *kwnames[] = { | |
3733 | (char *) "self",(char *) "string", NULL | |
3734 | }; | |
3735 | ||
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3739 | { | |
3740 | arg2 = wxString_in_helper(obj1); | |
3741 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3742 | temp2 = true; |
121b9a67 RD |
3743 | } |
3744 | { | |
3745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3746 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3747 | ||
3748 | wxPyEndAllowThreads(__tstate); | |
3749 | if (PyErr_Occurred()) SWIG_fail; | |
3750 | } | |
3751 | { | |
3752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3753 | } | |
3754 | { | |
3755 | if (temp2) | |
3756 | delete arg2; | |
3757 | } | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | { | |
3761 | if (temp2) | |
3762 | delete arg2; | |
3763 | } | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
c32bde28 | 3768 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
3769 | PyObject *resultobj; |
3770 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3771 | int arg2 ; | |
3772 | wxString *arg3 = 0 ; | |
ae8162c8 | 3773 | bool temp3 = false ; |
121b9a67 RD |
3774 | PyObject * obj0 = 0 ; |
3775 | PyObject * obj1 = 0 ; | |
3776 | PyObject * obj2 = 0 ; | |
3777 | char *kwnames[] = { | |
3778 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3784 | arg2 = (int)SWIG_As_int(obj1); |
121b9a67 RD |
3785 | if (PyErr_Occurred()) SWIG_fail; |
3786 | { | |
3787 | arg3 = wxString_in_helper(obj2); | |
3788 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3789 | temp3 = true; |
121b9a67 RD |
3790 | } |
3791 | { | |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3793 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3794 | ||
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
3798 | Py_INCREF(Py_None); resultobj = Py_None; | |
3799 | { | |
3800 | if (temp3) | |
3801 | delete arg3; | |
3802 | } | |
3803 | return resultobj; | |
3804 | fail: | |
3805 | { | |
3806 | if (temp3) | |
3807 | delete arg3; | |
3808 | } | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
c32bde28 | 3813 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3814 | PyObject *resultobj; |
3815 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3816 | bool arg2 ; | |
3817 | PyObject * obj0 = 0 ; | |
3818 | PyObject * obj1 = 0 ; | |
3819 | char *kwnames[] = { | |
3820 | (char *) "self",(char *) "editable", NULL | |
3821 | }; | |
3822 | ||
3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3826 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 3827 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3828 | { |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | (arg1)->SetEditable(arg2); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | Py_INCREF(Py_None); resultobj = Py_None; | |
3836 | return resultobj; | |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
c32bde28 | 3842 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3843 | PyObject *resultobj; |
3844 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3845 | PyObject * obj0 = 0 ; | |
3846 | char *kwnames[] = { | |
3847 | (char *) "self", NULL | |
3848 | }; | |
3849 | ||
3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3853 | { |
3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3855 | (arg1)->SetInsertionPointEnd(); | |
3856 | ||
3857 | wxPyEndAllowThreads(__tstate); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
3860 | Py_INCREF(Py_None); resultobj = Py_None; | |
3861 | return resultobj; | |
3862 | fail: | |
3863 | return NULL; | |
3864 | } | |
3865 | ||
3866 | ||
c32bde28 | 3867 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3868 | PyObject *resultobj; |
3869 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3870 | long arg2 ; | |
3871 | long arg3 ; | |
3872 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3873 | PyObject * obj1 = 0 ; |
3874 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3875 | char *kwnames[] = { |
3876 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3877 | }; | |
3878 | ||
994141e6 | 3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3882 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 3883 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3884 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 3885 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3886 | { |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | (arg1)->Remove(arg2,arg3); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | Py_INCREF(Py_None); resultobj = Py_None; | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
c32bde28 | 3900 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
3901 | PyObject *resultobj; |
3902 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3903 | wxVisualAttributes result; | |
3904 | PyObject * obj0 = 0 ; | |
3905 | char *kwnames[] = { | |
3906 | (char *) "variant", NULL | |
3907 | }; | |
3908 | ||
3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3910 | if (obj0) { | |
c32bde28 | 3911 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
3912 | if (PyErr_Occurred()) SWIG_fail; |
3913 | } | |
3914 | { | |
110da5b0 | 3915 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3917 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3920 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3921 | } |
3922 | { | |
3923 | wxVisualAttributes * resultptr; | |
3924 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3926 | } | |
3927 | return resultobj; | |
3928 | fail: | |
3929 | return NULL; | |
3930 | } | |
3931 | ||
3932 | ||
c32bde28 | 3933 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3934 | PyObject *obj; |
3935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3936 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3937 | Py_INCREF(obj); | |
3938 | return Py_BuildValue((char *)""); | |
3939 | } | |
c32bde28 | 3940 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
3941 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3942 | return 1; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_GaugeNameStr_get() { | |
3947 | PyObject *pyobj; | |
3948 | ||
3949 | { | |
3950 | #if wxUSE_UNICODE | |
3951 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3952 | #else | |
3953 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3954 | #endif | |
3955 | } | |
3956 | return pyobj; | |
3957 | } | |
3958 | ||
3959 | ||
c32bde28 | 3960 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3961 | PyObject *resultobj; |
3962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3963 | int arg2 = (int) -1 ; |
3964 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
3965 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3966 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3967 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3968 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3969 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3970 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3971 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3972 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3973 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3974 | wxGauge *result; | |
3975 | wxPoint temp4 ; | |
3976 | wxSize temp5 ; | |
ae8162c8 | 3977 | bool temp8 = false ; |
d14a1e28 | 3978 | PyObject * obj0 = 0 ; |
994141e6 RD |
3979 | PyObject * obj1 = 0 ; |
3980 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3981 | PyObject * obj3 = 0 ; |
3982 | PyObject * obj4 = 0 ; | |
994141e6 | 3983 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3984 | PyObject * obj6 = 0 ; |
3985 | PyObject * obj7 = 0 ; | |
3986 | char *kwnames[] = { | |
3987 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3988 | }; | |
3989 | ||
248ed943 | 3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 3993 | if (obj1) { |
c32bde28 | 3994 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
3995 | if (PyErr_Occurred()) SWIG_fail; |
3996 | } | |
3997 | if (obj2) { | |
c32bde28 | 3998 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
3999 | if (PyErr_Occurred()) SWIG_fail; |
4000 | } | |
d14a1e28 RD |
4001 | if (obj3) { |
4002 | { | |
4003 | arg4 = &temp4; | |
4004 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4005 | } | |
4006 | } | |
4007 | if (obj4) { | |
4008 | { | |
4009 | arg5 = &temp5; | |
4010 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4011 | } | |
4012 | } | |
994141e6 | 4013 | if (obj5) { |
c32bde28 | 4014 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4015 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4016 | } |
d14a1e28 | 4017 | if (obj6) { |
15afbcd0 RD |
4018 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
4019 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4020 | SWIG_fail; | |
d14a1e28 | 4021 | if (arg7 == NULL) { |
15afbcd0 RD |
4022 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4023 | SWIG_fail; | |
d14a1e28 RD |
4024 | } |
4025 | } | |
4026 | if (obj7) { | |
4027 | { | |
4028 | arg8 = wxString_in_helper(obj7); | |
4029 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4030 | temp8 = true; |
d14a1e28 RD |
4031 | } |
4032 | } | |
4033 | { | |
e3b71cb8 | 4034 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4036 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4039 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4040 | } |
15afbcd0 | 4041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4042 | { |
4043 | if (temp8) | |
4044 | delete arg8; | |
4045 | } | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | { | |
4049 | if (temp8) | |
4050 | delete arg8; | |
4051 | } | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
c32bde28 | 4056 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4057 | PyObject *resultobj; |
4058 | wxGauge *result; | |
4059 | char *kwnames[] = { | |
4060 | NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
4064 | { | |
e3b71cb8 | 4065 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4067 | result = (wxGauge *)new wxGauge(); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4070 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4071 | } |
15afbcd0 | 4072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
4073 | return resultobj; |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
c32bde28 | 4079 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4080 | PyObject *resultobj; |
4081 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4082 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4083 | int arg3 = (int) -1 ; |
4084 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
4085 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4086 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4087 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4088 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4089 | long arg7 = (long) wxGA_HORIZONTAL ; | |
4090 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4091 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4092 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
4093 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4094 | bool result; | |
4095 | wxPoint temp5 ; | |
4096 | wxSize temp6 ; | |
ae8162c8 | 4097 | bool temp9 = false ; |
d14a1e28 RD |
4098 | PyObject * obj0 = 0 ; |
4099 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4100 | PyObject * obj2 = 0 ; |
4101 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4102 | PyObject * obj4 = 0 ; |
4103 | PyObject * obj5 = 0 ; | |
994141e6 | 4104 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4105 | PyObject * obj7 = 0 ; |
4106 | PyObject * obj8 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4109 | }; | |
4110 | ||
248ed943 | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
4112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4116 | if (obj2) { |
c32bde28 | 4117 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4118 | if (PyErr_Occurred()) SWIG_fail; |
4119 | } | |
4120 | if (obj3) { | |
c32bde28 | 4121 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
4122 | if (PyErr_Occurred()) SWIG_fail; |
4123 | } | |
d14a1e28 RD |
4124 | if (obj4) { |
4125 | { | |
4126 | arg5 = &temp5; | |
4127 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4128 | } | |
4129 | } | |
4130 | if (obj5) { | |
4131 | { | |
4132 | arg6 = &temp6; | |
4133 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4134 | } | |
4135 | } | |
994141e6 | 4136 | if (obj6) { |
c32bde28 | 4137 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4138 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4139 | } |
d14a1e28 | 4140 | if (obj7) { |
15afbcd0 RD |
4141 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4143 | SWIG_fail; | |
d14a1e28 | 4144 | if (arg8 == NULL) { |
15afbcd0 RD |
4145 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4146 | SWIG_fail; | |
d14a1e28 RD |
4147 | } |
4148 | } | |
4149 | if (obj8) { | |
4150 | { | |
4151 | arg9 = wxString_in_helper(obj8); | |
4152 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4153 | temp9 = true; |
d14a1e28 RD |
4154 | } |
4155 | } | |
4156 | { | |
4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4158 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4159 | ||
4160 | wxPyEndAllowThreads(__tstate); | |
4161 | if (PyErr_Occurred()) SWIG_fail; | |
4162 | } | |
4f89f6a3 RD |
4163 | { |
4164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4165 | } | |
d14a1e28 RD |
4166 | { |
4167 | if (temp9) | |
4168 | delete arg9; | |
4169 | } | |
4170 | return resultobj; | |
4171 | fail: | |
4172 | { | |
4173 | if (temp9) | |
4174 | delete arg9; | |
4175 | } | |
4176 | return NULL; | |
4177 | } | |
4178 | ||
4179 | ||
c32bde28 | 4180 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4181 | PyObject *resultobj; |
4182 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4183 | int arg2 ; | |
4184 | PyObject * obj0 = 0 ; | |
994141e6 | 4185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4186 | char *kwnames[] = { |
4187 | (char *) "self",(char *) "range", NULL | |
4188 | }; | |
4189 | ||
994141e6 | 4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4193 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4194 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4195 | { |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4197 | (arg1)->SetRange(arg2); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | Py_INCREF(Py_None); resultobj = Py_None; | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | return NULL; | |
4206 | } | |
4207 | ||
4208 | ||
c32bde28 | 4209 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4210 | PyObject *resultobj; |
4211 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4212 | int result; | |
4213 | PyObject * obj0 = 0 ; | |
4214 | char *kwnames[] = { | |
4215 | (char *) "self", NULL | |
4216 | }; | |
4217 | ||
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4221 | { |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4223 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4224 | ||
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
c32bde28 | 4228 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4229 | return resultobj; |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
c32bde28 | 4235 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4236 | PyObject *resultobj; |
4237 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4238 | int arg2 ; | |
4239 | PyObject * obj0 = 0 ; | |
994141e6 | 4240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4241 | char *kwnames[] = { |
4242 | (char *) "self",(char *) "pos", NULL | |
4243 | }; | |
4244 | ||
994141e6 | 4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4248 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4249 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4250 | { |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4252 | (arg1)->SetValue(arg2); | |
4253 | ||
4254 | wxPyEndAllowThreads(__tstate); | |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | Py_INCREF(Py_None); resultobj = Py_None; | |
4258 | return resultobj; | |
4259 | fail: | |
4260 | return NULL; | |
4261 | } | |
4262 | ||
4263 | ||
c32bde28 | 4264 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4265 | PyObject *resultobj; |
4266 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4267 | int result; | |
4268 | PyObject * obj0 = 0 ; | |
4269 | char *kwnames[] = { | |
4270 | (char *) "self", NULL | |
4271 | }; | |
4272 | ||
4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4276 | { |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
c32bde28 | 4283 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4284 | return resultobj; |
4285 | fail: | |
4286 | return NULL; | |
4287 | } | |
4288 | ||
4289 | ||
c32bde28 | 4290 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4291 | PyObject *resultobj; |
4292 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4293 | bool result; | |
4294 | PyObject * obj0 = 0 ; | |
4295 | char *kwnames[] = { | |
4296 | (char *) "self", NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4302 | { |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4f89f6a3 RD |
4309 | { |
4310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4311 | } | |
d14a1e28 RD |
4312 | return resultobj; |
4313 | fail: | |
4314 | return NULL; | |
4315 | } | |
4316 | ||
4317 | ||
c32bde28 | 4318 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4319 | PyObject *resultobj; |
4320 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4321 | int arg2 ; | |
4322 | PyObject * obj0 = 0 ; | |
994141e6 | 4323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4324 | char *kwnames[] = { |
4325 | (char *) "self",(char *) "w", NULL | |
4326 | }; | |
4327 | ||
994141e6 | 4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4331 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4332 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4333 | { |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4335 | (arg1)->SetShadowWidth(arg2); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | Py_INCREF(Py_None); resultobj = Py_None; | |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
4344 | } | |
4345 | ||
4346 | ||
c32bde28 | 4347 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4348 | PyObject *resultobj; |
4349 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4350 | int result; | |
4351 | PyObject * obj0 = 0 ; | |
4352 | char *kwnames[] = { | |
4353 | (char *) "self", NULL | |
4354 | }; | |
4355 | ||
4356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4359 | { |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
c32bde28 | 4366 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4367 | return resultobj; |
4368 | fail: | |
4369 | return NULL; | |
4370 | } | |
4371 | ||
4372 | ||
c32bde28 | 4373 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4374 | PyObject *resultobj; |
4375 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4376 | int arg2 ; | |
4377 | PyObject * obj0 = 0 ; | |
994141e6 | 4378 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4379 | char *kwnames[] = { |
4380 | (char *) "self",(char *) "w", NULL | |
4381 | }; | |
4382 | ||
994141e6 | 4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4386 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 4387 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4388 | { |
4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4390 | (arg1)->SetBezelFace(arg2); | |
4391 | ||
4392 | wxPyEndAllowThreads(__tstate); | |
4393 | if (PyErr_Occurred()) SWIG_fail; | |
4394 | } | |
4395 | Py_INCREF(Py_None); resultobj = Py_None; | |
4396 | return resultobj; | |
4397 | fail: | |
4398 | return NULL; | |
4399 | } | |
4400 | ||
4401 | ||
c32bde28 | 4402 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4403 | PyObject *resultobj; |
4404 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4405 | int result; | |
4406 | PyObject * obj0 = 0 ; | |
4407 | char *kwnames[] = { | |
4408 | (char *) "self", NULL | |
4409 | }; | |
4410 | ||
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4414 | { |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4417 | ||
4418 | wxPyEndAllowThreads(__tstate); | |
4419 | if (PyErr_Occurred()) SWIG_fail; | |
4420 | } | |
c32bde28 | 4421 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
4422 | return resultobj; |
4423 | fail: | |
4424 | return NULL; | |
4425 | } | |
4426 | ||
4427 | ||
c32bde28 | 4428 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4429 | PyObject *resultobj; |
4430 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4431 | wxVisualAttributes result; | |
4432 | PyObject * obj0 = 0 ; | |
4433 | char *kwnames[] = { | |
4434 | (char *) "variant", NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4438 | if (obj0) { | |
c32bde28 | 4439 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4440 | if (PyErr_Occurred()) SWIG_fail; |
4441 | } | |
4442 | { | |
110da5b0 | 4443 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4445 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4446 | ||
4447 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4448 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4449 | } |
4450 | { | |
4451 | wxVisualAttributes * resultptr; | |
4452 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4453 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4454 | } | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
c32bde28 | 4461 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4462 | PyObject *obj; |
4463 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4464 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4465 | Py_INCREF(obj); | |
4466 | return Py_BuildValue((char *)""); | |
4467 | } | |
c32bde28 | 4468 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
4469 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4470 | return 1; | |
4471 | } | |
4472 | ||
4473 | ||
4474 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4475 | PyObject *pyobj; | |
4476 | ||
4477 | { | |
4478 | #if wxUSE_UNICODE | |
4479 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4480 | #else | |
4481 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4482 | #endif | |
4483 | } | |
4484 | return pyobj; | |
4485 | } | |
4486 | ||
4487 | ||
c32bde28 | 4488 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4489 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4490 | return 1; | |
4491 | } | |
4492 | ||
4493 | ||
4494 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4495 | PyObject *pyobj; | |
4496 | ||
4497 | { | |
4498 | #if wxUSE_UNICODE | |
4499 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4500 | #else | |
4501 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4502 | #endif | |
4503 | } | |
4504 | return pyobj; | |
4505 | } | |
4506 | ||
4507 | ||
c32bde28 | 4508 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
4509 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4510 | return 1; | |
4511 | } | |
4512 | ||
4513 | ||
4514 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4515 | PyObject *pyobj; | |
4516 | ||
4517 | { | |
4518 | #if wxUSE_UNICODE | |
4519 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4520 | #else | |
4521 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4522 | #endif | |
4523 | } | |
4524 | return pyobj; | |
4525 | } | |
4526 | ||
4527 | ||
c32bde28 | 4528 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4529 | PyObject *resultobj; |
4530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4531 | int arg2 = (int) -1 ; |
4532 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4533 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4534 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4535 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4536 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4537 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4538 | long arg6 = (long) 0 ; | |
4539 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4540 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4541 | wxStaticBox *result; | |
ae8162c8 | 4542 | bool temp3 = false ; |
d14a1e28 RD |
4543 | wxPoint temp4 ; |
4544 | wxSize temp5 ; | |
ae8162c8 | 4545 | bool temp7 = false ; |
d14a1e28 | 4546 | PyObject * obj0 = 0 ; |
994141e6 | 4547 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4548 | PyObject * obj2 = 0 ; |
4549 | PyObject * obj3 = 0 ; | |
4550 | PyObject * obj4 = 0 ; | |
994141e6 | 4551 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4552 | PyObject * obj6 = 0 ; |
4553 | char *kwnames[] = { | |
4554 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4555 | }; | |
4556 | ||
248ed943 | 4557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4560 | if (obj1) { |
c32bde28 | 4561 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4562 | if (PyErr_Occurred()) SWIG_fail; |
4563 | } | |
4564 | if (obj2) { | |
4565 | { | |
4566 | arg3 = wxString_in_helper(obj2); | |
4567 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4568 | temp3 = true; |
248ed943 | 4569 | } |
d14a1e28 RD |
4570 | } |
4571 | if (obj3) { | |
4572 | { | |
4573 | arg4 = &temp4; | |
4574 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4575 | } | |
4576 | } | |
4577 | if (obj4) { | |
4578 | { | |
4579 | arg5 = &temp5; | |
4580 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4581 | } | |
4582 | } | |
994141e6 | 4583 | if (obj5) { |
c32bde28 | 4584 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4585 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4586 | } |
d14a1e28 RD |
4587 | if (obj6) { |
4588 | { | |
4589 | arg7 = wxString_in_helper(obj6); | |
4590 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 4591 | temp7 = true; |
d14a1e28 RD |
4592 | } |
4593 | } | |
4594 | { | |
e3b71cb8 | 4595 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4597 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4600 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4601 | } |
b0f7404b | 4602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4603 | { |
4604 | if (temp3) | |
4605 | delete arg3; | |
4606 | } | |
4607 | { | |
4608 | if (temp7) | |
4609 | delete arg7; | |
4610 | } | |
4611 | return resultobj; | |
4612 | fail: | |
4613 | { | |
4614 | if (temp3) | |
4615 | delete arg3; | |
4616 | } | |
4617 | { | |
4618 | if (temp7) | |
4619 | delete arg7; | |
4620 | } | |
4621 | return NULL; | |
4622 | } | |
4623 | ||
4624 | ||
c32bde28 | 4625 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4626 | PyObject *resultobj; |
4627 | wxStaticBox *result; | |
4628 | char *kwnames[] = { | |
4629 | NULL | |
4630 | }; | |
4631 | ||
4632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4633 | { | |
e3b71cb8 | 4634 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4636 | result = (wxStaticBox *)new wxStaticBox(); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4639 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4640 | } |
b0f7404b | 4641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4642 | return resultobj; |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
c32bde28 | 4648 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4649 | PyObject *resultobj; |
4650 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4651 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4652 | int arg3 = (int) -1 ; |
4653 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4654 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
4655 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4656 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4657 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4658 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4659 | long arg7 = (long) 0 ; | |
4660 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4661 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4662 | bool result; | |
ae8162c8 | 4663 | bool temp4 = false ; |
d14a1e28 RD |
4664 | wxPoint temp5 ; |
4665 | wxSize temp6 ; | |
ae8162c8 | 4666 | bool temp8 = false ; |
d14a1e28 RD |
4667 | PyObject * obj0 = 0 ; |
4668 | PyObject * obj1 = 0 ; | |
994141e6 | 4669 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4670 | PyObject * obj3 = 0 ; |
4671 | PyObject * obj4 = 0 ; | |
4672 | PyObject * obj5 = 0 ; | |
994141e6 | 4673 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4674 | PyObject * obj7 = 0 ; |
4675 | char *kwnames[] = { | |
4676 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4677 | }; | |
4678 | ||
248ed943 | 4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4684 | if (obj2) { |
c32bde28 | 4685 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4686 | if (PyErr_Occurred()) SWIG_fail; |
4687 | } | |
4688 | if (obj3) { | |
4689 | { | |
4690 | arg4 = wxString_in_helper(obj3); | |
4691 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4692 | temp4 = true; |
248ed943 | 4693 | } |
d14a1e28 RD |
4694 | } |
4695 | if (obj4) { | |
4696 | { | |
4697 | arg5 = &temp5; | |
4698 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4699 | } | |
4700 | } | |
4701 | if (obj5) { | |
4702 | { | |
4703 | arg6 = &temp6; | |
4704 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4705 | } | |
4706 | } | |
994141e6 | 4707 | if (obj6) { |
c32bde28 | 4708 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 4709 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4710 | } |
d14a1e28 RD |
4711 | if (obj7) { |
4712 | { | |
4713 | arg8 = wxString_in_helper(obj7); | |
4714 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4715 | temp8 = true; |
d14a1e28 RD |
4716 | } |
4717 | } | |
4718 | { | |
4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4720 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4721 | ||
4722 | wxPyEndAllowThreads(__tstate); | |
4723 | if (PyErr_Occurred()) SWIG_fail; | |
4724 | } | |
4f89f6a3 RD |
4725 | { |
4726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4727 | } | |
d14a1e28 RD |
4728 | { |
4729 | if (temp4) | |
4730 | delete arg4; | |
4731 | } | |
4732 | { | |
4733 | if (temp8) | |
4734 | delete arg8; | |
4735 | } | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | { | |
4739 | if (temp4) | |
4740 | delete arg4; | |
4741 | } | |
4742 | { | |
4743 | if (temp8) | |
4744 | delete arg8; | |
4745 | } | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
c32bde28 | 4750 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
4751 | PyObject *resultobj; |
4752 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4753 | wxVisualAttributes result; | |
4754 | PyObject * obj0 = 0 ; | |
4755 | char *kwnames[] = { | |
4756 | (char *) "variant", NULL | |
4757 | }; | |
4758 | ||
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4760 | if (obj0) { | |
c32bde28 | 4761 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
4762 | if (PyErr_Occurred()) SWIG_fail; |
4763 | } | |
4764 | { | |
110da5b0 | 4765 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4767 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4768 | ||
4769 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4770 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4771 | } |
4772 | { | |
4773 | wxVisualAttributes * resultptr; | |
4774 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4776 | } | |
4777 | return resultobj; | |
4778 | fail: | |
4779 | return NULL; | |
4780 | } | |
4781 | ||
4782 | ||
c32bde28 | 4783 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4784 | PyObject *obj; |
4785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4786 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4787 | Py_INCREF(obj); | |
4788 | return Py_BuildValue((char *)""); | |
4789 | } | |
c32bde28 | 4790 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4791 | PyObject *resultobj; |
4792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4793 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4794 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4795 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4796 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4797 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4798 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4799 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4800 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4801 | wxStaticLine *result; | |
4802 | wxPoint temp3 ; | |
4803 | wxSize temp4 ; | |
ae8162c8 | 4804 | bool temp6 = false ; |
d14a1e28 | 4805 | PyObject * obj0 = 0 ; |
994141e6 | 4806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4807 | PyObject * obj2 = 0 ; |
4808 | PyObject * obj3 = 0 ; | |
994141e6 | 4809 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4810 | PyObject * obj5 = 0 ; |
4811 | char *kwnames[] = { | |
4812 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4813 | }; | |
4814 | ||
248ed943 | 4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4818 | if (obj1) { |
c32bde28 | 4819 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
4820 | if (PyErr_Occurred()) SWIG_fail; |
4821 | } | |
d14a1e28 RD |
4822 | if (obj2) { |
4823 | { | |
4824 | arg3 = &temp3; | |
4825 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4826 | } | |
4827 | } | |
4828 | if (obj3) { | |
4829 | { | |
4830 | arg4 = &temp4; | |
4831 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4832 | } | |
4833 | } | |
994141e6 | 4834 | if (obj4) { |
c32bde28 | 4835 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 4836 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4837 | } |
d14a1e28 RD |
4838 | if (obj5) { |
4839 | { | |
4840 | arg6 = wxString_in_helper(obj5); | |
4841 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 4842 | temp6 = true; |
d14a1e28 RD |
4843 | } |
4844 | } | |
4845 | { | |
e3b71cb8 | 4846 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4848 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4851 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4852 | } |
15afbcd0 | 4853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4854 | { |
4855 | if (temp6) | |
4856 | delete arg6; | |
4857 | } | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | { | |
4861 | if (temp6) | |
4862 | delete arg6; | |
4863 | } | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
c32bde28 | 4868 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4869 | PyObject *resultobj; |
4870 | wxStaticLine *result; | |
4871 | char *kwnames[] = { | |
4872 | NULL | |
4873 | }; | |
4874 | ||
4875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4876 | { | |
e3b71cb8 | 4877 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4879 | result = (wxStaticLine *)new wxStaticLine(); | |
4880 | ||
4881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4882 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4883 | } |
15afbcd0 | 4884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4885 | return resultobj; |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
c32bde28 | 4891 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4892 | PyObject *resultobj; |
4893 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4894 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4895 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4896 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4897 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4898 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4899 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4900 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4901 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4902 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4903 | bool result; | |
4904 | wxPoint temp4 ; | |
4905 | wxSize temp5 ; | |
ae8162c8 | 4906 | bool temp7 = false ; |
d14a1e28 RD |
4907 | PyObject * obj0 = 0 ; |
4908 | PyObject * obj1 = 0 ; | |
994141e6 | 4909 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4910 | PyObject * obj3 = 0 ; |
4911 | PyObject * obj4 = 0 ; | |
994141e6 | 4912 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4913 | PyObject * obj6 = 0 ; |
4914 | char *kwnames[] = { | |
4915 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4916 | }; | |
4917 | ||
248ed943 | 4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 4923 | if (obj2) { |
c32bde28 | 4924 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
4925 | if (PyErr_Occurred()) SWIG_fail; |
4926 | } | |
d14a1e28 RD |
4927 | if (obj3) { |
4928 | { | |
4929 | arg4 = &temp4; | |
4930 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4931 | } | |
4932 | } | |
4933 | if (obj4) { | |
4934 | { | |
4935 | arg5 = &temp5; | |
4936 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4937 | } | |
4938 | } | |
994141e6 | 4939 | if (obj5) { |
c32bde28 | 4940 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 4941 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 4942 | } |
d14a1e28 RD |
4943 | if (obj6) { |
4944 | { | |
4945 | arg7 = wxString_in_helper(obj6); | |
4946 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 4947 | temp7 = true; |
d14a1e28 RD |
4948 | } |
4949 | } | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4f89f6a3 RD |
4957 | { |
4958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4959 | } | |
d14a1e28 RD |
4960 | { |
4961 | if (temp7) | |
4962 | delete arg7; | |
4963 | } | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | { | |
4967 | if (temp7) | |
4968 | delete arg7; | |
4969 | } | |
4970 | return NULL; | |
4971 | } | |
4972 | ||
4973 | ||
c32bde28 | 4974 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4975 | PyObject *resultobj; |
4976 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4977 | bool result; | |
4978 | PyObject * obj0 = 0 ; | |
4979 | char *kwnames[] = { | |
4980 | (char *) "self", NULL | |
4981 | }; | |
4982 | ||
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4986 | { |
4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4988 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4989 | ||
4990 | wxPyEndAllowThreads(__tstate); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | } | |
4f89f6a3 RD |
4993 | { |
4994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4995 | } | |
d14a1e28 RD |
4996 | return resultobj; |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
c32bde28 | 5002 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5003 | PyObject *resultobj; |
5004 | int result; | |
5005 | char *kwnames[] = { | |
5006 | NULL | |
5007 | }; | |
5008 | ||
5009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | result = (int)wxStaticLine::GetDefaultSize(); | |
5013 | ||
5014 | wxPyEndAllowThreads(__tstate); | |
5015 | if (PyErr_Occurred()) SWIG_fail; | |
5016 | } | |
c32bde28 | 5017 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5018 | return resultobj; |
5019 | fail: | |
5020 | return NULL; | |
5021 | } | |
5022 | ||
5023 | ||
c32bde28 | 5024 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5025 | PyObject *resultobj; |
5026 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5027 | wxVisualAttributes result; | |
5028 | PyObject * obj0 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "variant", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5034 | if (obj0) { | |
c32bde28 | 5035 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5036 | if (PyErr_Occurred()) SWIG_fail; |
5037 | } | |
5038 | { | |
110da5b0 | 5039 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5041 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5044 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5045 | } |
5046 | { | |
5047 | wxVisualAttributes * resultptr; | |
5048 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5050 | } | |
5051 | return resultobj; | |
5052 | fail: | |
5053 | return NULL; | |
5054 | } | |
5055 | ||
5056 | ||
c32bde28 | 5057 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5058 | PyObject *obj; |
5059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5060 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
5061 | Py_INCREF(obj); | |
5062 | return Py_BuildValue((char *)""); | |
5063 | } | |
c32bde28 | 5064 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5065 | PyObject *resultobj; |
5066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5067 | int arg2 = (int) -1 ; |
5068 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
5070 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5071 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5072 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5073 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5074 | long arg6 = (long) 0 ; | |
5075 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
5076 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5077 | wxStaticText *result; | |
ae8162c8 | 5078 | bool temp3 = false ; |
d14a1e28 RD |
5079 | wxPoint temp4 ; |
5080 | wxSize temp5 ; | |
ae8162c8 | 5081 | bool temp7 = false ; |
d14a1e28 | 5082 | PyObject * obj0 = 0 ; |
994141e6 | 5083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5084 | PyObject * obj2 = 0 ; |
5085 | PyObject * obj3 = 0 ; | |
5086 | PyObject * obj4 = 0 ; | |
994141e6 | 5087 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5088 | PyObject * obj6 = 0 ; |
5089 | char *kwnames[] = { | |
5090 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5091 | }; | |
5092 | ||
248ed943 | 5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5096 | if (obj1) { |
c32bde28 | 5097 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5098 | if (PyErr_Occurred()) SWIG_fail; |
5099 | } | |
5100 | if (obj2) { | |
5101 | { | |
5102 | arg3 = wxString_in_helper(obj2); | |
5103 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5104 | temp3 = true; |
248ed943 | 5105 | } |
d14a1e28 RD |
5106 | } |
5107 | if (obj3) { | |
5108 | { | |
5109 | arg4 = &temp4; | |
5110 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5111 | } | |
5112 | } | |
5113 | if (obj4) { | |
5114 | { | |
5115 | arg5 = &temp5; | |
5116 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5117 | } | |
5118 | } | |
994141e6 | 5119 | if (obj5) { |
c32bde28 | 5120 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5121 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5122 | } |
d14a1e28 RD |
5123 | if (obj6) { |
5124 | { | |
5125 | arg7 = wxString_in_helper(obj6); | |
5126 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5127 | temp7 = true; |
d14a1e28 RD |
5128 | } |
5129 | } | |
5130 | { | |
e3b71cb8 | 5131 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5133 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5134 | ||
5135 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5136 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5137 | } |
15afbcd0 | 5138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5139 | { |
5140 | if (temp3) | |
5141 | delete arg3; | |
5142 | } | |
5143 | { | |
5144 | if (temp7) | |
5145 | delete arg7; | |
5146 | } | |
5147 | return resultobj; | |
5148 | fail: | |
5149 | { | |
5150 | if (temp3) | |
5151 | delete arg3; | |
5152 | } | |
5153 | { | |
5154 | if (temp7) | |
5155 | delete arg7; | |
5156 | } | |
5157 | return NULL; | |
5158 | } | |
5159 | ||
5160 | ||
c32bde28 | 5161 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5162 | PyObject *resultobj; |
5163 | wxStaticText *result; | |
5164 | char *kwnames[] = { | |
5165 | NULL | |
5166 | }; | |
5167 | ||
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5169 | { | |
e3b71cb8 | 5170 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5172 | result = (wxStaticText *)new wxStaticText(); | |
5173 | ||
5174 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5176 | } |
15afbcd0 | 5177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5178 | return resultobj; |
5179 | fail: | |
5180 | return NULL; | |
5181 | } | |
5182 | ||
5183 | ||
c32bde28 | 5184 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5185 | PyObject *resultobj; |
5186 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5188 | int arg3 = (int) -1 ; |
5189 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5190 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
5191 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5192 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5193 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5194 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5195 | long arg7 = (long) 0 ; | |
5196 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5197 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5198 | bool result; | |
ae8162c8 | 5199 | bool temp4 = false ; |
d14a1e28 RD |
5200 | wxPoint temp5 ; |
5201 | wxSize temp6 ; | |
ae8162c8 | 5202 | bool temp8 = false ; |
d14a1e28 RD |
5203 | PyObject * obj0 = 0 ; |
5204 | PyObject * obj1 = 0 ; | |
994141e6 | 5205 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5206 | PyObject * obj3 = 0 ; |
5207 | PyObject * obj4 = 0 ; | |
5208 | PyObject * obj5 = 0 ; | |
994141e6 | 5209 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5210 | PyObject * obj7 = 0 ; |
5211 | char *kwnames[] = { | |
5212 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5213 | }; | |
5214 | ||
248ed943 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5220 | if (obj2) { |
c32bde28 | 5221 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5222 | if (PyErr_Occurred()) SWIG_fail; |
5223 | } | |
5224 | if (obj3) { | |
5225 | { | |
5226 | arg4 = wxString_in_helper(obj3); | |
5227 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 5228 | temp4 = true; |
248ed943 | 5229 | } |
d14a1e28 RD |
5230 | } |
5231 | if (obj4) { | |
5232 | { | |
5233 | arg5 = &temp5; | |
5234 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5235 | } | |
5236 | } | |
5237 | if (obj5) { | |
5238 | { | |
5239 | arg6 = &temp6; | |
5240 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5241 | } | |
5242 | } | |
994141e6 | 5243 | if (obj6) { |
c32bde28 | 5244 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5245 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5246 | } |
d14a1e28 RD |
5247 | if (obj7) { |
5248 | { | |
5249 | arg8 = wxString_in_helper(obj7); | |
5250 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5251 | temp8 = true; |
d14a1e28 RD |
5252 | } |
5253 | } | |
5254 | { | |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5257 | ||
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
4f89f6a3 RD |
5261 | { |
5262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5263 | } | |
d14a1e28 RD |
5264 | { |
5265 | if (temp4) | |
5266 | delete arg4; | |
5267 | } | |
5268 | { | |
5269 | if (temp8) | |
5270 | delete arg8; | |
5271 | } | |
5272 | return resultobj; | |
5273 | fail: | |
5274 | { | |
5275 | if (temp4) | |
5276 | delete arg4; | |
5277 | } | |
5278 | { | |
5279 | if (temp8) | |
5280 | delete arg8; | |
5281 | } | |
5282 | return NULL; | |
5283 | } | |
5284 | ||
5285 | ||
c32bde28 | 5286 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5287 | PyObject *resultobj; |
5288 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5289 | wxVisualAttributes result; | |
5290 | PyObject * obj0 = 0 ; | |
5291 | char *kwnames[] = { | |
5292 | (char *) "variant", NULL | |
5293 | }; | |
5294 | ||
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5296 | if (obj0) { | |
c32bde28 | 5297 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5298 | if (PyErr_Occurred()) SWIG_fail; |
5299 | } | |
5300 | { | |
110da5b0 | 5301 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5303 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5304 | ||
5305 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5306 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5307 | } |
5308 | { | |
5309 | wxVisualAttributes * resultptr; | |
5310 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5312 | } | |
5313 | return resultobj; | |
5314 | fail: | |
5315 | return NULL; | |
5316 | } | |
5317 | ||
5318 | ||
c32bde28 | 5319 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5320 | PyObject *obj; |
5321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5322 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5323 | Py_INCREF(obj); | |
5324 | return Py_BuildValue((char *)""); | |
5325 | } | |
c32bde28 | 5326 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5327 | PyObject *resultobj; |
5328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5329 | int arg2 = (int) -1 ; |
5330 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5331 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
5332 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5333 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5334 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5335 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5336 | long arg6 = (long) 0 ; | |
5337 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5338 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5339 | wxStaticBitmap *result; | |
5340 | wxPoint temp4 ; | |
5341 | wxSize temp5 ; | |
ae8162c8 | 5342 | bool temp7 = false ; |
d14a1e28 | 5343 | PyObject * obj0 = 0 ; |
994141e6 | 5344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5345 | PyObject * obj2 = 0 ; |
5346 | PyObject * obj3 = 0 ; | |
5347 | PyObject * obj4 = 0 ; | |
994141e6 | 5348 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5349 | PyObject * obj6 = 0 ; |
5350 | char *kwnames[] = { | |
5351 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5352 | }; | |
5353 | ||
248ed943 | 5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5357 | if (obj1) { |
c32bde28 | 5358 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5359 | if (PyErr_Occurred()) SWIG_fail; |
5360 | } | |
5361 | if (obj2) { | |
5362 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5363 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5364 | SWIG_fail; |
248ed943 RD |
5365 | if (arg3 == NULL) { |
5366 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5367 | SWIG_fail; | |
5368 | } | |
d14a1e28 RD |
5369 | } |
5370 | if (obj3) { | |
5371 | { | |
5372 | arg4 = &temp4; | |
5373 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5374 | } | |
5375 | } | |
5376 | if (obj4) { | |
5377 | { | |
5378 | arg5 = &temp5; | |
5379 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5380 | } | |
5381 | } | |
994141e6 | 5382 | if (obj5) { |
c32bde28 | 5383 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5384 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5385 | } |
d14a1e28 RD |
5386 | if (obj6) { |
5387 | { | |
5388 | arg7 = wxString_in_helper(obj6); | |
5389 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5390 | temp7 = true; |
d14a1e28 RD |
5391 | } |
5392 | } | |
5393 | { | |
e3b71cb8 | 5394 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5396 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5397 | ||
5398 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5399 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5400 | } |
15afbcd0 | 5401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5402 | { |
5403 | if (temp7) | |
5404 | delete arg7; | |
5405 | } | |
5406 | return resultobj; | |
5407 | fail: | |
5408 | { | |
5409 | if (temp7) | |
5410 | delete arg7; | |
5411 | } | |
5412 | return NULL; | |
5413 | } | |
5414 | ||
5415 | ||
c32bde28 | 5416 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5417 | PyObject *resultobj; |
5418 | wxStaticBitmap *result; | |
5419 | char *kwnames[] = { | |
5420 | NULL | |
5421 | }; | |
5422 | ||
5423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5424 | { | |
e3b71cb8 | 5425 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5427 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5428 | ||
5429 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5430 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5431 | } |
15afbcd0 | 5432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5433 | return resultobj; |
5434 | fail: | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
c32bde28 | 5439 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5440 | PyObject *resultobj; |
5441 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5442 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5443 | int arg3 = (int) -1 ; |
5444 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5445 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
5446 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5447 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5448 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5449 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5450 | long arg7 = (long) 0 ; | |
5451 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5452 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5453 | bool result; | |
5454 | wxPoint temp5 ; | |
5455 | wxSize temp6 ; | |
ae8162c8 | 5456 | bool temp8 = false ; |
d14a1e28 RD |
5457 | PyObject * obj0 = 0 ; |
5458 | PyObject * obj1 = 0 ; | |
994141e6 | 5459 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5460 | PyObject * obj3 = 0 ; |
5461 | PyObject * obj4 = 0 ; | |
5462 | PyObject * obj5 = 0 ; | |
994141e6 | 5463 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5464 | PyObject * obj7 = 0 ; |
5465 | char *kwnames[] = { | |
5466 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5467 | }; | |
5468 | ||
248ed943 | 5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5474 | if (obj2) { |
c32bde28 | 5475 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5476 | if (PyErr_Occurred()) SWIG_fail; |
5477 | } | |
5478 | if (obj3) { | |
5479 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5481 | SWIG_fail; |
248ed943 RD |
5482 | if (arg4 == NULL) { |
5483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5484 | SWIG_fail; | |
5485 | } | |
d14a1e28 RD |
5486 | } |
5487 | if (obj4) { | |
5488 | { | |
5489 | arg5 = &temp5; | |
5490 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5491 | } | |
5492 | } | |
5493 | if (obj5) { | |
5494 | { | |
5495 | arg6 = &temp6; | |
5496 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5497 | } | |
5498 | } | |
994141e6 | 5499 | if (obj6) { |
c32bde28 | 5500 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5501 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5502 | } |
d14a1e28 RD |
5503 | if (obj7) { |
5504 | { | |
5505 | arg8 = wxString_in_helper(obj7); | |
5506 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5507 | temp8 = true; |
d14a1e28 RD |
5508 | } |
5509 | } | |
5510 | { | |
5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5512 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5513 | ||
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
4f89f6a3 RD |
5517 | { |
5518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5519 | } | |
d14a1e28 RD |
5520 | { |
5521 | if (temp8) | |
5522 | delete arg8; | |
5523 | } | |
5524 | return resultobj; | |
5525 | fail: | |
5526 | { | |
5527 | if (temp8) | |
5528 | delete arg8; | |
5529 | } | |
5530 | return NULL; | |
5531 | } | |
5532 | ||
5533 | ||
c32bde28 | 5534 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5535 | PyObject *resultobj; |
5536 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5537 | wxBitmap result; | |
5538 | PyObject * obj0 = 0 ; | |
5539 | char *kwnames[] = { | |
5540 | (char *) "self", NULL | |
5541 | }; | |
5542 | ||
5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5546 | { |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | result = (arg1)->GetBitmap(); | |
5549 | ||
5550 | wxPyEndAllowThreads(__tstate); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
5552 | } | |
5553 | { | |
5554 | wxBitmap * resultptr; | |
5555 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5557 | } |
5558 | return resultobj; | |
5559 | fail: | |
5560 | return NULL; | |
5561 | } | |
5562 | ||
5563 | ||
c32bde28 | 5564 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5565 | PyObject *resultobj; |
5566 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5567 | wxBitmap *arg2 = 0 ; | |
5568 | PyObject * obj0 = 0 ; | |
5569 | PyObject * obj1 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self",(char *) "bitmap", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5579 | SWIG_fail; | |
d14a1e28 | 5580 | if (arg2 == NULL) { |
15afbcd0 RD |
5581 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5582 | SWIG_fail; | |
d14a1e28 RD |
5583 | } |
5584 | { | |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | Py_INCREF(Py_None); resultobj = Py_None; | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
c32bde28 | 5598 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5599 | PyObject *resultobj; |
5600 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5601 | wxIcon *arg2 = 0 ; | |
5602 | PyObject * obj0 = 0 ; | |
5603 | PyObject * obj1 = 0 ; | |
5604 | char *kwnames[] = { | |
5605 | (char *) "self",(char *) "icon", NULL | |
5606 | }; | |
5607 | ||
5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5613 | SWIG_fail; | |
d14a1e28 | 5614 | if (arg2 == NULL) { |
15afbcd0 RD |
5615 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5616 | SWIG_fail; | |
d14a1e28 RD |
5617 | } |
5618 | { | |
5619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5620 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5621 | ||
5622 | wxPyEndAllowThreads(__tstate); | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | } | |
5625 | Py_INCREF(Py_None); resultobj = Py_None; | |
5626 | return resultobj; | |
5627 | fail: | |
5628 | return NULL; | |
5629 | } | |
5630 | ||
5631 | ||
c32bde28 | 5632 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
5633 | PyObject *resultobj; |
5634 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5635 | wxVisualAttributes result; | |
5636 | PyObject * obj0 = 0 ; | |
5637 | char *kwnames[] = { | |
5638 | (char *) "variant", NULL | |
5639 | }; | |
5640 | ||
5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5642 | if (obj0) { | |
c32bde28 | 5643 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
5644 | if (PyErr_Occurred()) SWIG_fail; |
5645 | } | |
5646 | { | |
110da5b0 | 5647 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5649 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5650 | ||
5651 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5652 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5653 | } |
5654 | { | |
5655 | wxVisualAttributes * resultptr; | |
5656 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5658 | } | |
5659 | return resultobj; | |
5660 | fail: | |
5661 | return NULL; | |
5662 | } | |
5663 | ||
5664 | ||
c32bde28 | 5665 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5666 | PyObject *obj; |
5667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5668 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5669 | Py_INCREF(obj); | |
5670 | return Py_BuildValue((char *)""); | |
5671 | } | |
c32bde28 | 5672 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
5673 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5674 | return 1; | |
5675 | } | |
5676 | ||
5677 | ||
5678 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5679 | PyObject *pyobj; | |
5680 | ||
5681 | { | |
5682 | #if wxUSE_UNICODE | |
5683 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5684 | #else | |
5685 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5686 | #endif | |
5687 | } | |
5688 | return pyobj; | |
5689 | } | |
5690 | ||
5691 | ||
c32bde28 | 5692 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5693 | PyObject *resultobj; |
5694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5695 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5696 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5697 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5698 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5699 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5700 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5701 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5702 | long arg6 = (long) 0 ; | |
5703 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5704 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5705 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5706 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5707 | wxListBox *result; |
5708 | wxPoint temp3 ; | |
5709 | wxSize temp4 ; | |
ae8162c8 RD |
5710 | bool temp5 = false ; |
5711 | bool temp8 = false ; | |
d14a1e28 | 5712 | PyObject * obj0 = 0 ; |
994141e6 | 5713 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5714 | PyObject * obj2 = 0 ; |
5715 | PyObject * obj3 = 0 ; | |
5716 | PyObject * obj4 = 0 ; | |
994141e6 | 5717 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5718 | PyObject * obj6 = 0 ; |
5719 | PyObject * obj7 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5722 | }; | |
5723 | ||
248ed943 | 5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5727 | if (obj1) { |
c32bde28 | 5728 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
5729 | if (PyErr_Occurred()) SWIG_fail; |
5730 | } | |
d14a1e28 RD |
5731 | if (obj2) { |
5732 | { | |
5733 | arg3 = &temp3; | |
5734 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5735 | } | |
5736 | } | |
5737 | if (obj3) { | |
5738 | { | |
5739 | arg4 = &temp4; | |
5740 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5741 | } | |
5742 | } | |
5743 | if (obj4) { | |
5744 | { | |
4d5c3d91 RD |
5745 | if (! PySequence_Check(obj4)) { |
5746 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5747 | SWIG_fail; | |
5748 | } | |
5749 | arg5 = new wxArrayString; | |
ae8162c8 | 5750 | temp5 = true; |
4d5c3d91 RD |
5751 | int i, len=PySequence_Length(obj4); |
5752 | for (i=0; i<len; i++) { | |
5753 | PyObject* item = PySequence_GetItem(obj4, i); | |
5754 | #if wxUSE_UNICODE | |
5755 | PyObject* str = PyObject_Unicode(item); | |
5756 | #else | |
5757 | PyObject* str = PyObject_Str(item); | |
5758 | #endif | |
74a57fcd | 5759 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5760 | arg5->Add(Py2wxString(str)); |
5761 | Py_DECREF(item); | |
5762 | Py_DECREF(str); | |
5763 | } | |
d14a1e28 RD |
5764 | } |
5765 | } | |
994141e6 | 5766 | if (obj5) { |
c32bde28 | 5767 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 5768 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5769 | } |
d14a1e28 | 5770 | if (obj6) { |
15afbcd0 RD |
5771 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5773 | SWIG_fail; | |
4d5c3d91 | 5774 | if (arg7 == NULL) { |
15afbcd0 RD |
5775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5776 | SWIG_fail; | |
d14a1e28 RD |
5777 | } |
5778 | } | |
5779 | if (obj7) { | |
5780 | { | |
4d5c3d91 RD |
5781 | arg8 = wxString_in_helper(obj7); |
5782 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5783 | temp8 = true; |
d14a1e28 RD |
5784 | } |
5785 | } | |
5786 | { | |
e3b71cb8 | 5787 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 5789 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5790 | |
5791 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5792 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5793 | } |
15afbcd0 | 5794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5795 | { |
3adfb63b | 5796 | if (temp5) delete arg5; |
d14a1e28 RD |
5797 | } |
5798 | { | |
5799 | if (temp8) | |
4d5c3d91 | 5800 | delete arg8; |
d14a1e28 RD |
5801 | } |
5802 | return resultobj; | |
5803 | fail: | |
5804 | { | |
3adfb63b | 5805 | if (temp5) delete arg5; |
d14a1e28 RD |
5806 | } |
5807 | { | |
5808 | if (temp8) | |
4d5c3d91 | 5809 | delete arg8; |
d14a1e28 RD |
5810 | } |
5811 | return NULL; | |
5812 | } | |
5813 | ||
5814 | ||
c32bde28 | 5815 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5816 | PyObject *resultobj; |
5817 | wxListBox *result; | |
5818 | char *kwnames[] = { | |
5819 | NULL | |
5820 | }; | |
5821 | ||
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5823 | { | |
e3b71cb8 | 5824 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5826 | result = (wxListBox *)new wxListBox(); | |
5827 | ||
5828 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5829 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5830 | } |
15afbcd0 | 5831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5832 | return resultobj; |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
c32bde28 | 5838 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5839 | PyObject *resultobj; |
5840 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5841 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5842 | int arg3 = (int) -1 ; |
d14a1e28 RD |
5843 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5844 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5845 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5846 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5847 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5848 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5849 | long arg7 = (long) 0 ; | |
5850 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5851 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5852 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5853 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5854 | bool result; |
5855 | wxPoint temp4 ; | |
5856 | wxSize temp5 ; | |
ae8162c8 RD |
5857 | bool temp6 = false ; |
5858 | bool temp9 = false ; | |
d14a1e28 RD |
5859 | PyObject * obj0 = 0 ; |
5860 | PyObject * obj1 = 0 ; | |
994141e6 | 5861 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5862 | PyObject * obj3 = 0 ; |
5863 | PyObject * obj4 = 0 ; | |
5864 | PyObject * obj5 = 0 ; | |
994141e6 | 5865 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5866 | PyObject * obj7 = 0 ; |
5867 | PyObject * obj8 = 0 ; | |
5868 | char *kwnames[] = { | |
5869 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5870 | }; | |
5871 | ||
248ed943 | 5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 5877 | if (obj2) { |
c32bde28 | 5878 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
5879 | if (PyErr_Occurred()) SWIG_fail; |
5880 | } | |
d14a1e28 RD |
5881 | if (obj3) { |
5882 | { | |
5883 | arg4 = &temp4; | |
5884 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5885 | } | |
5886 | } | |
5887 | if (obj4) { | |
5888 | { | |
5889 | arg5 = &temp5; | |
5890 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5891 | } | |
5892 | } | |
5893 | if (obj5) { | |
5894 | { | |
4d5c3d91 RD |
5895 | if (! PySequence_Check(obj5)) { |
5896 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5897 | SWIG_fail; | |
5898 | } | |
5899 | arg6 = new wxArrayString; | |
ae8162c8 | 5900 | temp6 = true; |
4d5c3d91 RD |
5901 | int i, len=PySequence_Length(obj5); |
5902 | for (i=0; i<len; i++) { | |
5903 | PyObject* item = PySequence_GetItem(obj5, i); | |
5904 | #if wxUSE_UNICODE | |
5905 | PyObject* str = PyObject_Unicode(item); | |
5906 | #else | |
5907 | PyObject* str = PyObject_Str(item); | |
5908 | #endif | |
74a57fcd | 5909 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5910 | arg6->Add(Py2wxString(str)); |
5911 | Py_DECREF(item); | |
5912 | Py_DECREF(str); | |
5913 | } | |
d14a1e28 RD |
5914 | } |
5915 | } | |
994141e6 | 5916 | if (obj6) { |
c32bde28 | 5917 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 5918 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 5919 | } |
d14a1e28 | 5920 | if (obj7) { |
15afbcd0 RD |
5921 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5923 | SWIG_fail; | |
4d5c3d91 | 5924 | if (arg8 == NULL) { |
15afbcd0 RD |
5925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5926 | SWIG_fail; | |
d14a1e28 RD |
5927 | } |
5928 | } | |
5929 | if (obj8) { | |
5930 | { | |
4d5c3d91 RD |
5931 | arg9 = wxString_in_helper(obj8); |
5932 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5933 | temp9 = true; |
d14a1e28 RD |
5934 | } |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5938 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5939 | |
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
4f89f6a3 RD |
5943 | { |
5944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5945 | } | |
d14a1e28 | 5946 | { |
3adfb63b | 5947 | if (temp6) delete arg6; |
d14a1e28 RD |
5948 | } |
5949 | { | |
5950 | if (temp9) | |
4d5c3d91 | 5951 | delete arg9; |
d14a1e28 RD |
5952 | } |
5953 | return resultobj; | |
5954 | fail: | |
5955 | { | |
3adfb63b | 5956 | if (temp6) delete arg6; |
d14a1e28 RD |
5957 | } |
5958 | { | |
5959 | if (temp9) | |
4d5c3d91 | 5960 | delete arg9; |
d14a1e28 RD |
5961 | } |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
c32bde28 | 5966 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5967 | PyObject *resultobj; |
5968 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5969 | wxString *arg2 = 0 ; | |
5970 | int arg3 ; | |
5971 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 5972 | bool temp2 = false ; |
d14a1e28 RD |
5973 | PyObject * obj0 = 0 ; |
5974 | PyObject * obj1 = 0 ; | |
994141e6 | 5975 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5976 | PyObject * obj3 = 0 ; |
5977 | char *kwnames[] = { | |
5978 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5979 | }; | |
5980 | ||
994141e6 | 5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5984 | { |
5985 | arg2 = wxString_in_helper(obj1); | |
5986 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5987 | temp2 = true; |
d14a1e28 | 5988 | } |
c32bde28 | 5989 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 5990 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5991 | if (obj3) { |
5992 | arg4 = obj3; | |
5993 | } | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | Py_INCREF(Py_None); resultobj = Py_None; | |
6002 | { | |
6003 | if (temp2) | |
6004 | delete arg2; | |
6005 | } | |
6006 | return resultobj; | |
6007 | fail: | |
6008 | { | |
6009 | if (temp2) | |
6010 | delete arg2; | |
6011 | } | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
c32bde28 | 6016 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6017 | PyObject *resultobj; |
6018 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6019 | wxArrayString *arg2 = 0 ; | |
6020 | int arg3 ; | |
ae8162c8 | 6021 | bool temp2 = false ; |
d14a1e28 RD |
6022 | PyObject * obj0 = 0 ; |
6023 | PyObject * obj1 = 0 ; | |
994141e6 | 6024 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6025 | char *kwnames[] = { |
6026 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
6027 | }; | |
6028 | ||
994141e6 | 6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6032 | { |
6033 | if (! PySequence_Check(obj1)) { | |
6034 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6035 | SWIG_fail; | |
6036 | } | |
6037 | arg2 = new wxArrayString; | |
ae8162c8 | 6038 | temp2 = true; |
d14a1e28 RD |
6039 | int i, len=PySequence_Length(obj1); |
6040 | for (i=0; i<len; i++) { | |
6041 | PyObject* item = PySequence_GetItem(obj1, i); | |
6042 | #if wxUSE_UNICODE | |
6043 | PyObject* str = PyObject_Unicode(item); | |
6044 | #else | |
6045 | PyObject* str = PyObject_Str(item); | |
6046 | #endif | |
74a57fcd | 6047 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6048 | arg2->Add(Py2wxString(str)); |
6049 | Py_DECREF(item); | |
6050 | Py_DECREF(str); | |
6051 | } | |
6052 | } | |
c32bde28 | 6053 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 6054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6055 | { |
6056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6057 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
6058 | ||
6059 | wxPyEndAllowThreads(__tstate); | |
6060 | if (PyErr_Occurred()) SWIG_fail; | |
6061 | } | |
6062 | Py_INCREF(Py_None); resultobj = Py_None; | |
6063 | { | |
3adfb63b | 6064 | if (temp2) delete arg2; |
d14a1e28 RD |
6065 | } |
6066 | return resultobj; | |
6067 | fail: | |
6068 | { | |
3adfb63b | 6069 | if (temp2) delete arg2; |
d14a1e28 RD |
6070 | } |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
c32bde28 | 6075 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6076 | PyObject *resultobj; |
6077 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6078 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 6079 | bool temp2 = false ; |
d14a1e28 RD |
6080 | PyObject * obj0 = 0 ; |
6081 | PyObject * obj1 = 0 ; | |
6082 | char *kwnames[] = { | |
6083 | (char *) "self",(char *) "items", NULL | |
6084 | }; | |
6085 | ||
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6089 | { |
6090 | if (! PySequence_Check(obj1)) { | |
6091 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6092 | SWIG_fail; | |
6093 | } | |
6094 | arg2 = new wxArrayString; | |
ae8162c8 | 6095 | temp2 = true; |
d14a1e28 RD |
6096 | int i, len=PySequence_Length(obj1); |
6097 | for (i=0; i<len; i++) { | |
6098 | PyObject* item = PySequence_GetItem(obj1, i); | |
6099 | #if wxUSE_UNICODE | |
6100 | PyObject* str = PyObject_Unicode(item); | |
6101 | #else | |
6102 | PyObject* str = PyObject_Str(item); | |
6103 | #endif | |
74a57fcd | 6104 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6105 | arg2->Add(Py2wxString(str)); |
6106 | Py_DECREF(item); | |
6107 | Py_DECREF(str); | |
6108 | } | |
6109 | } | |
6110 | { | |
6111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6112 | (arg1)->Set((wxArrayString const &)*arg2); | |
6113 | ||
6114 | wxPyEndAllowThreads(__tstate); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | } | |
6117 | Py_INCREF(Py_None); resultobj = Py_None; | |
6118 | { | |
3adfb63b | 6119 | if (temp2) delete arg2; |
d14a1e28 RD |
6120 | } |
6121 | return resultobj; | |
6122 | fail: | |
6123 | { | |
3adfb63b | 6124 | if (temp2) delete arg2; |
d14a1e28 RD |
6125 | } |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
c32bde28 | 6130 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6131 | PyObject *resultobj; |
6132 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6133 | int arg2 ; | |
6134 | bool result; | |
6135 | PyObject * obj0 = 0 ; | |
994141e6 | 6136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6137 | char *kwnames[] = { |
6138 | (char *) "self",(char *) "n", NULL | |
6139 | }; | |
6140 | ||
994141e6 | 6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6144 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6145 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6146 | { |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
4f89f6a3 RD |
6153 | { |
6154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6155 | } | |
d14a1e28 RD |
6156 | return resultobj; |
6157 | fail: | |
6158 | return NULL; | |
6159 | } | |
6160 | ||
6161 | ||
c32bde28 | 6162 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6163 | PyObject *resultobj; |
6164 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6165 | int arg2 ; | |
ae8162c8 | 6166 | bool arg3 = (bool) true ; |
d14a1e28 | 6167 | PyObject * obj0 = 0 ; |
994141e6 | 6168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6169 | PyObject * obj2 = 0 ; |
6170 | char *kwnames[] = { | |
6171 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6172 | }; | |
6173 | ||
994141e6 | 6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6177 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6178 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6179 | if (obj2) { |
c32bde28 | 6180 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6181 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6182 | } |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | (arg1)->SetSelection(arg2,arg3); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | Py_INCREF(Py_None); resultobj = Py_None; | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
c32bde28 | 6197 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6198 | PyObject *resultobj; |
6199 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6200 | int arg2 ; | |
6201 | PyObject * obj0 = 0 ; | |
994141e6 | 6202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6203 | char *kwnames[] = { |
6204 | (char *) "self",(char *) "n", NULL | |
6205 | }; | |
6206 | ||
994141e6 | 6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6210 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6211 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6212 | { |
6213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6214 | (arg1)->Select(arg2); | |
6215 | ||
6216 | wxPyEndAllowThreads(__tstate); | |
6217 | if (PyErr_Occurred()) SWIG_fail; | |
6218 | } | |
6219 | Py_INCREF(Py_None); resultobj = Py_None; | |
6220 | return resultobj; | |
6221 | fail: | |
6222 | return NULL; | |
6223 | } | |
6224 | ||
6225 | ||
c32bde28 | 6226 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6227 | PyObject *resultobj; |
6228 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6229 | int arg2 ; | |
6230 | PyObject * obj0 = 0 ; | |
994141e6 | 6231 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6232 | char *kwnames[] = { |
6233 | (char *) "self",(char *) "n", NULL | |
6234 | }; | |
6235 | ||
994141e6 | 6236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6239 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6240 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6241 | { |
6242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6243 | (arg1)->Deselect(arg2); | |
6244 | ||
6245 | wxPyEndAllowThreads(__tstate); | |
6246 | if (PyErr_Occurred()) SWIG_fail; | |
6247 | } | |
6248 | Py_INCREF(Py_None); resultobj = Py_None; | |
6249 | return resultobj; | |
6250 | fail: | |
6251 | return NULL; | |
6252 | } | |
6253 | ||
6254 | ||
c32bde28 | 6255 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6256 | PyObject *resultobj; |
6257 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6258 | int arg2 = (int) -1 ; | |
6259 | PyObject * obj0 = 0 ; | |
994141e6 | 6260 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6261 | char *kwnames[] = { |
6262 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6263 | }; | |
6264 | ||
994141e6 | 6265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6268 | if (obj1) { |
c32bde28 | 6269 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6270 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6271 | } |
d14a1e28 RD |
6272 | { |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | (arg1)->DeselectAll(arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | Py_INCREF(Py_None); resultobj = Py_None; | |
6280 | return resultobj; | |
6281 | fail: | |
6282 | return NULL; | |
6283 | } | |
6284 | ||
6285 | ||
c32bde28 | 6286 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6287 | PyObject *resultobj; |
6288 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6289 | wxString *arg2 = 0 ; | |
ae8162c8 | 6290 | bool arg3 = (bool) true ; |
d14a1e28 | 6291 | bool result; |
ae8162c8 | 6292 | bool temp2 = false ; |
d14a1e28 RD |
6293 | PyObject * obj0 = 0 ; |
6294 | PyObject * obj1 = 0 ; | |
6295 | PyObject * obj2 = 0 ; | |
6296 | char *kwnames[] = { | |
6297 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6298 | }; | |
6299 | ||
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6303 | { |
6304 | arg2 = wxString_in_helper(obj1); | |
6305 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6306 | temp2 = true; |
d14a1e28 RD |
6307 | } |
6308 | if (obj2) { | |
c32bde28 | 6309 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 6310 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6311 | } |
6312 | { | |
6313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6314 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6315 | ||
6316 | wxPyEndAllowThreads(__tstate); | |
6317 | if (PyErr_Occurred()) SWIG_fail; | |
6318 | } | |
4f89f6a3 RD |
6319 | { |
6320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6321 | } | |
d14a1e28 RD |
6322 | { |
6323 | if (temp2) | |
6324 | delete arg2; | |
6325 | } | |
6326 | return resultobj; | |
6327 | fail: | |
6328 | { | |
6329 | if (temp2) | |
6330 | delete arg2; | |
6331 | } | |
6332 | return NULL; | |
6333 | } | |
6334 | ||
6335 | ||
c32bde28 | 6336 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6337 | PyObject *resultobj; |
6338 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6339 | PyObject *result; | |
6340 | PyObject * obj0 = 0 ; | |
6341 | char *kwnames[] = { | |
6342 | (char *) "self", NULL | |
6343 | }; | |
6344 | ||
6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6348 | { |
6349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6350 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6351 | ||
6352 | wxPyEndAllowThreads(__tstate); | |
6353 | if (PyErr_Occurred()) SWIG_fail; | |
6354 | } | |
6355 | resultobj = result; | |
6356 | return resultobj; | |
6357 | fail: | |
6358 | return NULL; | |
6359 | } | |
6360 | ||
6361 | ||
c32bde28 | 6362 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6363 | PyObject *resultobj; |
6364 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6365 | int arg2 ; | |
6366 | PyObject * obj0 = 0 ; | |
994141e6 | 6367 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6368 | char *kwnames[] = { |
6369 | (char *) "self",(char *) "n", NULL | |
6370 | }; | |
6371 | ||
994141e6 | 6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6375 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6376 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6377 | { |
6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6379 | (arg1)->SetFirstItem(arg2); | |
6380 | ||
6381 | wxPyEndAllowThreads(__tstate); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
6384 | Py_INCREF(Py_None); resultobj = Py_None; | |
6385 | return resultobj; | |
6386 | fail: | |
6387 | return NULL; | |
6388 | } | |
6389 | ||
6390 | ||
c32bde28 | 6391 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6392 | PyObject *resultobj; |
6393 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6394 | wxString *arg2 = 0 ; | |
ae8162c8 | 6395 | bool temp2 = false ; |
d14a1e28 RD |
6396 | PyObject * obj0 = 0 ; |
6397 | PyObject * obj1 = 0 ; | |
6398 | char *kwnames[] = { | |
6399 | (char *) "self",(char *) "s", NULL | |
6400 | }; | |
6401 | ||
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6405 | { |
6406 | arg2 = wxString_in_helper(obj1); | |
6407 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6408 | temp2 = true; |
d14a1e28 RD |
6409 | } |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6413 | ||
6414 | wxPyEndAllowThreads(__tstate); | |
6415 | if (PyErr_Occurred()) SWIG_fail; | |
6416 | } | |
6417 | Py_INCREF(Py_None); resultobj = Py_None; | |
6418 | { | |
6419 | if (temp2) | |
6420 | delete arg2; | |
6421 | } | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | { | |
6425 | if (temp2) | |
6426 | delete arg2; | |
6427 | } | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
c32bde28 | 6432 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6433 | PyObject *resultobj; |
6434 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6435 | int arg2 ; | |
6436 | PyObject * obj0 = 0 ; | |
994141e6 | 6437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6438 | char *kwnames[] = { |
6439 | (char *) "self",(char *) "n", NULL | |
6440 | }; | |
6441 | ||
994141e6 | 6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6445 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6446 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6447 | { |
6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6449 | (arg1)->EnsureVisible(arg2); | |
6450 | ||
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) SWIG_fail; | |
6453 | } | |
6454 | Py_INCREF(Py_None); resultobj = Py_None; | |
6455 | return resultobj; | |
6456 | fail: | |
6457 | return NULL; | |
6458 | } | |
6459 | ||
6460 | ||
c32bde28 | 6461 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6462 | PyObject *resultobj; |
6463 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6464 | wxString *arg2 = 0 ; | |
ae8162c8 | 6465 | bool temp2 = false ; |
d14a1e28 RD |
6466 | PyObject * obj0 = 0 ; |
6467 | PyObject * obj1 = 0 ; | |
6468 | char *kwnames[] = { | |
6469 | (char *) "self",(char *) "s", NULL | |
6470 | }; | |
6471 | ||
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6475 | { |
6476 | arg2 = wxString_in_helper(obj1); | |
6477 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6478 | temp2 = true; |
d14a1e28 RD |
6479 | } |
6480 | { | |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6483 | ||
6484 | wxPyEndAllowThreads(__tstate); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
6487 | Py_INCREF(Py_None); resultobj = Py_None; | |
6488 | { | |
6489 | if (temp2) | |
6490 | delete arg2; | |
6491 | } | |
6492 | return resultobj; | |
6493 | fail: | |
6494 | { | |
6495 | if (temp2) | |
6496 | delete arg2; | |
6497 | } | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
c32bde28 | 6502 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6503 | PyObject *resultobj; |
6504 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6505 | bool result; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "self", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6514 | { |
6515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6516 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6517 | ||
6518 | wxPyEndAllowThreads(__tstate); | |
6519 | if (PyErr_Occurred()) SWIG_fail; | |
6520 | } | |
4f89f6a3 RD |
6521 | { |
6522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6523 | } | |
d14a1e28 RD |
6524 | return resultobj; |
6525 | fail: | |
6526 | return NULL; | |
6527 | } | |
6528 | ||
6529 | ||
c32bde28 | 6530 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6531 | PyObject *resultobj; |
6532 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6533 | int arg2 ; | |
6534 | wxColour *arg3 = 0 ; | |
6535 | wxColour temp3 ; | |
6536 | PyObject * obj0 = 0 ; | |
6537 | PyObject * obj1 = 0 ; | |
6538 | PyObject * obj2 = 0 ; | |
6539 | char *kwnames[] = { | |
6540 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6541 | }; | |
6542 | ||
6543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6546 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6547 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6548 | { |
6549 | arg3 = &temp3; | |
6550 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6551 | } | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6555 | ||
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
6559 | Py_INCREF(Py_None); resultobj = Py_None; | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
c32bde28 | 6566 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6567 | PyObject *resultobj; |
6568 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6569 | int arg2 ; | |
6570 | wxColour *arg3 = 0 ; | |
6571 | wxColour temp3 ; | |
6572 | PyObject * obj0 = 0 ; | |
6573 | PyObject * obj1 = 0 ; | |
6574 | PyObject * obj2 = 0 ; | |
6575 | char *kwnames[] = { | |
6576 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6577 | }; | |
6578 | ||
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6582 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6583 | if (PyErr_Occurred()) SWIG_fail; |
c3eb6258 RD |
6584 | { |
6585 | arg3 = &temp3; | |
6586 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6587 | } | |
6588 | { | |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) SWIG_fail; | |
6594 | } | |
6595 | Py_INCREF(Py_None); resultobj = Py_None; | |
6596 | return resultobj; | |
6597 | fail: | |
6598 | return NULL; | |
6599 | } | |
6600 | ||
6601 | ||
c32bde28 | 6602 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
6603 | PyObject *resultobj; |
6604 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6605 | int arg2 ; | |
6606 | wxFont *arg3 = 0 ; | |
6607 | PyObject * obj0 = 0 ; | |
6608 | PyObject * obj1 = 0 ; | |
6609 | PyObject * obj2 = 0 ; | |
6610 | char *kwnames[] = { | |
6611 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6612 | }; | |
6613 | ||
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6617 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
6618 | if (PyErr_Occurred()) SWIG_fail; |
6619 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6620 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6621 | SWIG_fail; | |
c3eb6258 | 6622 | if (arg3 == NULL) { |
15afbcd0 RD |
6623 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6624 | SWIG_fail; | |
c3eb6258 RD |
6625 | } |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | Py_INCREF(Py_None); resultobj = Py_None; | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
c32bde28 | 6640 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
6641 | PyObject *resultobj; |
6642 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6643 | wxVisualAttributes result; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "variant", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6650 | if (obj0) { | |
c32bde28 | 6651 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
6652 | if (PyErr_Occurred()) SWIG_fail; |
6653 | } | |
6654 | { | |
110da5b0 | 6655 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6657 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6660 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
6661 | } |
6662 | { | |
6663 | wxVisualAttributes * resultptr; | |
6664 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6665 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6666 | } | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | return NULL; | |
6670 | } | |
6671 | ||
6672 | ||
c32bde28 | 6673 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6674 | PyObject *obj; |
6675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6676 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6677 | Py_INCREF(obj); | |
6678 | return Py_BuildValue((char *)""); | |
6679 | } | |
c32bde28 | 6680 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6681 | PyObject *resultobj; |
6682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6683 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6684 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6685 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6686 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6687 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6688 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6689 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6690 | long arg6 = (long) 0 ; | |
6691 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6692 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6693 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6694 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6695 | wxCheckListBox *result; |
6696 | wxPoint temp3 ; | |
6697 | wxSize temp4 ; | |
ae8162c8 RD |
6698 | bool temp5 = false ; |
6699 | bool temp8 = false ; | |
d14a1e28 | 6700 | PyObject * obj0 = 0 ; |
994141e6 | 6701 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6702 | PyObject * obj2 = 0 ; |
6703 | PyObject * obj3 = 0 ; | |
6704 | PyObject * obj4 = 0 ; | |
994141e6 | 6705 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6706 | PyObject * obj6 = 0 ; |
6707 | PyObject * obj7 = 0 ; | |
6708 | char *kwnames[] = { | |
6709 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6710 | }; | |
6711 | ||
248ed943 | 6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6715 | if (obj1) { |
c32bde28 | 6716 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
6717 | if (PyErr_Occurred()) SWIG_fail; |
6718 | } | |
d14a1e28 RD |
6719 | if (obj2) { |
6720 | { | |
6721 | arg3 = &temp3; | |
6722 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6723 | } | |
6724 | } | |
6725 | if (obj3) { | |
6726 | { | |
6727 | arg4 = &temp4; | |
6728 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6729 | } | |
6730 | } | |
6731 | if (obj4) { | |
6732 | { | |
4d5c3d91 RD |
6733 | if (! PySequence_Check(obj4)) { |
6734 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6735 | SWIG_fail; | |
6736 | } | |
6737 | arg5 = new wxArrayString; | |
ae8162c8 | 6738 | temp5 = true; |
4d5c3d91 RD |
6739 | int i, len=PySequence_Length(obj4); |
6740 | for (i=0; i<len; i++) { | |
6741 | PyObject* item = PySequence_GetItem(obj4, i); | |
6742 | #if wxUSE_UNICODE | |
6743 | PyObject* str = PyObject_Unicode(item); | |
6744 | #else | |
6745 | PyObject* str = PyObject_Str(item); | |
6746 | #endif | |
74a57fcd | 6747 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6748 | arg5->Add(Py2wxString(str)); |
6749 | Py_DECREF(item); | |
6750 | Py_DECREF(str); | |
6751 | } | |
d14a1e28 RD |
6752 | } |
6753 | } | |
994141e6 | 6754 | if (obj5) { |
c32bde28 | 6755 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 6756 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6757 | } |
d14a1e28 | 6758 | if (obj6) { |
15afbcd0 RD |
6759 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6761 | SWIG_fail; | |
4d5c3d91 | 6762 | if (arg7 == NULL) { |
15afbcd0 RD |
6763 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6764 | SWIG_fail; | |
d14a1e28 RD |
6765 | } |
6766 | } | |
6767 | if (obj7) { | |
6768 | { | |
4d5c3d91 RD |
6769 | arg8 = wxString_in_helper(obj7); |
6770 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6771 | temp8 = true; |
d14a1e28 RD |
6772 | } |
6773 | } | |
6774 | { | |
e3b71cb8 | 6775 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 6777 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6778 | |
6779 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6780 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6781 | } |
15afbcd0 | 6782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6783 | { |
3adfb63b | 6784 | if (temp5) delete arg5; |
d14a1e28 RD |
6785 | } |
6786 | { | |
6787 | if (temp8) | |
4d5c3d91 | 6788 | delete arg8; |
d14a1e28 RD |
6789 | } |
6790 | return resultobj; | |
6791 | fail: | |
6792 | { | |
3adfb63b | 6793 | if (temp5) delete arg5; |
d14a1e28 RD |
6794 | } |
6795 | { | |
6796 | if (temp8) | |
4d5c3d91 | 6797 | delete arg8; |
d14a1e28 RD |
6798 | } |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
c32bde28 | 6803 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6804 | PyObject *resultobj; |
6805 | wxCheckListBox *result; | |
6806 | char *kwnames[] = { | |
6807 | NULL | |
6808 | }; | |
6809 | ||
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6811 | { | |
e3b71cb8 | 6812 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6814 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6815 | ||
6816 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6817 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6818 | } |
15afbcd0 | 6819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6820 | return resultobj; |
6821 | fail: | |
6822 | return NULL; | |
6823 | } | |
6824 | ||
6825 | ||
c32bde28 | 6826 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6827 | PyObject *resultobj; |
6828 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6829 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6830 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6831 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6832 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6833 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6834 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6835 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6836 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6837 | long arg7 = (long) 0 ; | |
6838 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6839 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6840 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6841 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6842 | bool result; |
6843 | wxPoint temp4 ; | |
6844 | wxSize temp5 ; | |
ae8162c8 RD |
6845 | bool temp6 = false ; |
6846 | bool temp9 = false ; | |
d14a1e28 RD |
6847 | PyObject * obj0 = 0 ; |
6848 | PyObject * obj1 = 0 ; | |
994141e6 | 6849 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6850 | PyObject * obj3 = 0 ; |
6851 | PyObject * obj4 = 0 ; | |
6852 | PyObject * obj5 = 0 ; | |
994141e6 | 6853 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6854 | PyObject * obj7 = 0 ; |
6855 | PyObject * obj8 = 0 ; | |
6856 | char *kwnames[] = { | |
6857 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6858 | }; | |
6859 | ||
248ed943 | 6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 6865 | if (obj2) { |
c32bde28 | 6866 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
6867 | if (PyErr_Occurred()) SWIG_fail; |
6868 | } | |
d14a1e28 RD |
6869 | if (obj3) { |
6870 | { | |
6871 | arg4 = &temp4; | |
6872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6873 | } | |
6874 | } | |
6875 | if (obj4) { | |
6876 | { | |
6877 | arg5 = &temp5; | |
6878 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6879 | } | |
6880 | } | |
6881 | if (obj5) { | |
6882 | { | |
4d5c3d91 RD |
6883 | if (! PySequence_Check(obj5)) { |
6884 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6885 | SWIG_fail; | |
6886 | } | |
6887 | arg6 = new wxArrayString; | |
ae8162c8 | 6888 | temp6 = true; |
4d5c3d91 RD |
6889 | int i, len=PySequence_Length(obj5); |
6890 | for (i=0; i<len; i++) { | |
6891 | PyObject* item = PySequence_GetItem(obj5, i); | |
6892 | #if wxUSE_UNICODE | |
6893 | PyObject* str = PyObject_Unicode(item); | |
6894 | #else | |
6895 | PyObject* str = PyObject_Str(item); | |
6896 | #endif | |
74a57fcd | 6897 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6898 | arg6->Add(Py2wxString(str)); |
6899 | Py_DECREF(item); | |
6900 | Py_DECREF(str); | |
6901 | } | |
d14a1e28 RD |
6902 | } |
6903 | } | |
994141e6 | 6904 | if (obj6) { |
c32bde28 | 6905 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 6906 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 6907 | } |
d14a1e28 | 6908 | if (obj7) { |
15afbcd0 RD |
6909 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6911 | SWIG_fail; | |
4d5c3d91 | 6912 | if (arg8 == NULL) { |
15afbcd0 RD |
6913 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6914 | SWIG_fail; | |
d14a1e28 RD |
6915 | } |
6916 | } | |
6917 | if (obj8) { | |
6918 | { | |
4d5c3d91 RD |
6919 | arg9 = wxString_in_helper(obj8); |
6920 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 6921 | temp9 = true; |
d14a1e28 RD |
6922 | } |
6923 | } | |
6924 | { | |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6926 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6927 | |
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
4f89f6a3 RD |
6931 | { |
6932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6933 | } | |
d14a1e28 | 6934 | { |
3adfb63b | 6935 | if (temp6) delete arg6; |
d14a1e28 RD |
6936 | } |
6937 | { | |
6938 | if (temp9) | |
4d5c3d91 | 6939 | delete arg9; |
d14a1e28 RD |
6940 | } |
6941 | return resultobj; | |
6942 | fail: | |
6943 | { | |
3adfb63b | 6944 | if (temp6) delete arg6; |
d14a1e28 RD |
6945 | } |
6946 | { | |
6947 | if (temp9) | |
4d5c3d91 | 6948 | delete arg9; |
d14a1e28 RD |
6949 | } |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
c32bde28 | 6954 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6955 | PyObject *resultobj; |
6956 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6957 | int arg2 ; | |
6958 | bool result; | |
6959 | PyObject * obj0 = 0 ; | |
994141e6 | 6960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6961 | char *kwnames[] = { |
6962 | (char *) "self",(char *) "index", NULL | |
6963 | }; | |
6964 | ||
994141e6 | 6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6968 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 6969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6970 | { |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | result = (bool)(arg1)->IsChecked(arg2); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
4f89f6a3 RD |
6977 | { |
6978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6979 | } | |
d14a1e28 RD |
6980 | return resultobj; |
6981 | fail: | |
6982 | return NULL; | |
6983 | } | |
6984 | ||
6985 | ||
c32bde28 | 6986 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6987 | PyObject *resultobj; |
6988 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6989 | int arg2 ; | |
ae8162c8 | 6990 | int arg3 = (int) true ; |
d14a1e28 | 6991 | PyObject * obj0 = 0 ; |
994141e6 RD |
6992 | PyObject * obj1 = 0 ; |
6993 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6994 | char *kwnames[] = { |
6995 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6996 | }; | |
6997 | ||
994141e6 | 6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7001 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7002 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7003 | if (obj2) { |
c32bde28 | 7004 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7005 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7006 | } |
d14a1e28 RD |
7007 | { |
7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7009 | (arg1)->Check(arg2,arg3); | |
7010 | ||
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | Py_INCREF(Py_None); resultobj = Py_None; | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
c32bde28 | 7021 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7022 | PyObject *resultobj; |
7023 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7024 | int result; | |
7025 | PyObject * obj0 = 0 ; | |
7026 | char *kwnames[] = { | |
7027 | (char *) "self", NULL | |
7028 | }; | |
7029 | ||
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7033 | { |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | result = (int)(arg1)->GetItemHeight(); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
c32bde28 | 7040 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7041 | return resultobj; |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
c32bde28 | 7047 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7048 | PyObject *resultobj; |
7049 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
7050 | wxPoint *arg2 = 0 ; | |
7051 | int result; | |
7052 | wxPoint temp2 ; | |
7053 | PyObject * obj0 = 0 ; | |
7054 | PyObject * obj1 = 0 ; | |
7055 | char *kwnames[] = { | |
7056 | (char *) "self",(char *) "pt", NULL | |
7057 | }; | |
7058 | ||
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7062 | { |
7063 | arg2 = &temp2; | |
7064 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7065 | } | |
7066 | { | |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
c32bde28 | 7073 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7074 | return resultobj; |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
c32bde28 | 7080 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7081 | PyObject *resultobj; |
7082 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
7083 | int arg2 ; |
7084 | int arg3 ; | |
d14a1e28 RD |
7085 | int result; |
7086 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7087 | PyObject * obj1 = 0 ; |
7088 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7089 | char *kwnames[] = { |
7090 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7091 | }; | |
7092 | ||
994141e6 | 7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
7095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7096 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7097 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 7098 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 7099 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7100 | { |
7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7102 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
7103 | ||
7104 | wxPyEndAllowThreads(__tstate); | |
7105 | if (PyErr_Occurred()) SWIG_fail; | |
7106 | } | |
c32bde28 | 7107 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7108 | return resultobj; |
7109 | fail: | |
7110 | return NULL; | |
7111 | } | |
7112 | ||
7113 | ||
c32bde28 | 7114 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7115 | PyObject *obj; |
7116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7117 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
7118 | Py_INCREF(obj); | |
7119 | return Py_BuildValue((char *)""); | |
7120 | } | |
c32bde28 | 7121 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
7122 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
7123 | return 1; | |
7124 | } | |
7125 | ||
7126 | ||
7127 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
7128 | PyObject *pyobj; | |
7129 | ||
7130 | { | |
7131 | #if wxUSE_UNICODE | |
7132 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7133 | #else | |
7134 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
7135 | #endif | |
7136 | } | |
7137 | return pyobj; | |
7138 | } | |
7139 | ||
7140 | ||
c32bde28 | 7141 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7142 | PyObject *resultobj; |
908b74cd RD |
7143 | wxColour const &arg1_defvalue = wxNullColour ; |
7144 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
7145 | wxColour const &arg2_defvalue = wxNullColour ; |
7146 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7147 | wxFont const &arg3_defvalue = wxNullFont ; | |
7148 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7149 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7150 | wxTextAttr *result; | |
7151 | wxColour temp1 ; | |
7152 | wxColour temp2 ; | |
7153 | PyObject * obj0 = 0 ; | |
7154 | PyObject * obj1 = 0 ; | |
7155 | PyObject * obj2 = 0 ; | |
994141e6 | 7156 | PyObject * obj3 = 0 ; |
908b74cd RD |
7157 | char *kwnames[] = { |
7158 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7159 | }; | |
d14a1e28 | 7160 | |
908b74cd RD |
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7162 | if (obj0) { | |
7163 | { | |
7164 | arg1 = &temp1; | |
7165 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7166 | } | |
d14a1e28 RD |
7167 | } |
7168 | if (obj1) { | |
7169 | { | |
7170 | arg2 = &temp2; | |
7171 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7172 | } | |
7173 | } | |
7174 | if (obj2) { | |
15afbcd0 RD |
7175 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
7176 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7177 | SWIG_fail; | |
d14a1e28 | 7178 | if (arg3 == NULL) { |
15afbcd0 RD |
7179 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7180 | SWIG_fail; | |
d14a1e28 RD |
7181 | } |
7182 | } | |
994141e6 | 7183 | if (obj3) { |
c32bde28 | 7184 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 7185 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7186 | } |
d14a1e28 RD |
7187 | { |
7188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7189 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7190 | ||
7191 | wxPyEndAllowThreads(__tstate); | |
7192 | if (PyErr_Occurred()) SWIG_fail; | |
7193 | } | |
15afbcd0 | 7194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7195 | return resultobj; |
7196 | fail: | |
7197 | return NULL; | |
7198 | } | |
7199 | ||
7200 | ||
c32bde28 | 7201 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7202 | PyObject *resultobj; |
7203 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7204 | PyObject * obj0 = 0 ; | |
7205 | char *kwnames[] = { | |
7206 | (char *) "self", NULL | |
7207 | }; | |
7208 | ||
994141e6 | 7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7212 | { |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7214 | delete arg1; |
d14a1e28 RD |
7215 | |
7216 | wxPyEndAllowThreads(__tstate); | |
7217 | if (PyErr_Occurred()) SWIG_fail; | |
7218 | } | |
7219 | Py_INCREF(Py_None); resultobj = Py_None; | |
7220 | return resultobj; | |
7221 | fail: | |
7222 | return NULL; | |
7223 | } | |
7224 | ||
7225 | ||
c32bde28 | 7226 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
7227 | PyObject *resultobj; |
7228 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7229 | PyObject * obj0 = 0 ; | |
7230 | char *kwnames[] = { | |
7231 | (char *) "self", NULL | |
7232 | }; | |
7233 | ||
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7237 | { |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | (arg1)->Init(); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | Py_INCREF(Py_None); resultobj = Py_None; | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
c32bde28 | 7251 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7252 | PyObject *resultobj; |
7253 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7254 | wxColour *arg2 = 0 ; | |
7255 | wxColour temp2 ; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | PyObject * obj1 = 0 ; | |
7258 | char *kwnames[] = { | |
7259 | (char *) "self",(char *) "colText", NULL | |
7260 | }; | |
7261 | ||
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7265 | { |
7266 | arg2 = &temp2; | |
7267 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7268 | } | |
7269 | { | |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7271 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7272 | ||
7273 | wxPyEndAllowThreads(__tstate); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
7276 | Py_INCREF(Py_None); resultobj = Py_None; | |
7277 | return resultobj; | |
7278 | fail: | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
c32bde28 | 7283 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7284 | PyObject *resultobj; |
7285 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7286 | wxColour *arg2 = 0 ; | |
7287 | wxColour temp2 ; | |
7288 | PyObject * obj0 = 0 ; | |
7289 | PyObject * obj1 = 0 ; | |
7290 | char *kwnames[] = { | |
7291 | (char *) "self",(char *) "colBack", NULL | |
7292 | }; | |
7293 | ||
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7297 | { |
7298 | arg2 = &temp2; | |
7299 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7300 | } | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | Py_INCREF(Py_None); resultobj = Py_None; | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
c32bde28 | 7315 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7316 | PyObject *resultobj; |
7317 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7318 | wxFont *arg2 = 0 ; | |
7319 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7320 | PyObject * obj0 = 0 ; | |
7321 | PyObject * obj1 = 0 ; | |
994141e6 | 7322 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7323 | char *kwnames[] = { |
7324 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7325 | }; | |
7326 | ||
994141e6 | 7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7331 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7332 | SWIG_fail; | |
d14a1e28 | 7333 | if (arg2 == NULL) { |
15afbcd0 RD |
7334 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7335 | SWIG_fail; | |
d14a1e28 | 7336 | } |
994141e6 | 7337 | if (obj2) { |
c32bde28 | 7338 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 7339 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 7340 | } |
d14a1e28 RD |
7341 | { |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7344 | ||
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | Py_INCREF(Py_None); resultobj = Py_None; | |
7349 | return resultobj; | |
7350 | fail: | |
7351 | return NULL; | |
7352 | } | |
7353 | ||
7354 | ||
c32bde28 | 7355 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7356 | PyObject *resultobj; |
7357 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7358 | int arg2 ; | |
7359 | PyObject * obj0 = 0 ; | |
994141e6 | 7360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7361 | char *kwnames[] = { |
7362 | (char *) "self",(char *) "alignment", NULL | |
7363 | }; | |
7364 | ||
994141e6 | 7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7368 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7369 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7370 | { |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) SWIG_fail; | |
7376 | } | |
7377 | Py_INCREF(Py_None); resultobj = Py_None; | |
7378 | return resultobj; | |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
c32bde28 | 7384 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7385 | PyObject *resultobj; |
7386 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7387 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 7388 | bool temp2 = false ; |
d14a1e28 RD |
7389 | PyObject * obj0 = 0 ; |
7390 | PyObject * obj1 = 0 ; | |
7391 | char *kwnames[] = { | |
7392 | (char *) "self",(char *) "tabs", NULL | |
7393 | }; | |
7394 | ||
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7398 | { |
7399 | if (! PySequence_Check(obj1)) { | |
7400 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7401 | SWIG_fail; | |
7402 | } | |
7403 | arg2 = new wxArrayInt; | |
ae8162c8 | 7404 | temp2 = true; |
d14a1e28 RD |
7405 | int i, len=PySequence_Length(obj1); |
7406 | for (i=0; i<len; i++) { | |
7407 | PyObject* item = PySequence_GetItem(obj1, i); | |
7408 | PyObject* number = PyNumber_Int(item); | |
7409 | arg2->Add(PyInt_AS_LONG(number)); | |
7410 | Py_DECREF(item); | |
7411 | Py_DECREF(number); | |
7412 | } | |
7413 | } | |
7414 | { | |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | Py_INCREF(Py_None); resultobj = Py_None; | |
7422 | { | |
3adfb63b | 7423 | if (temp2) delete arg2; |
d14a1e28 RD |
7424 | } |
7425 | return resultobj; | |
7426 | fail: | |
7427 | { | |
3adfb63b | 7428 | if (temp2) delete arg2; |
d14a1e28 RD |
7429 | } |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
c32bde28 | 7434 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7435 | PyObject *resultobj; |
7436 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7437 | int arg2 ; | |
5e4ca4a8 | 7438 | int arg3 = (int) 0 ; |
d14a1e28 | 7439 | PyObject * obj0 = 0 ; |
994141e6 | 7440 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7441 | PyObject * obj2 = 0 ; |
d14a1e28 | 7442 | char *kwnames[] = { |
5e4ca4a8 | 7443 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7444 | }; |
7445 | ||
5e4ca4a8 | 7446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7449 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7450 | if (PyErr_Occurred()) SWIG_fail; |
5e4ca4a8 | 7451 | if (obj2) { |
c32bde28 | 7452 | arg3 = (int)SWIG_As_int(obj2); |
5e4ca4a8 RD |
7453 | if (PyErr_Occurred()) SWIG_fail; |
7454 | } | |
d14a1e28 RD |
7455 | { |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7457 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7458 | |
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | Py_INCREF(Py_None); resultobj = Py_None; | |
7463 | return resultobj; | |
7464 | fail: | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
c32bde28 | 7469 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7470 | PyObject *resultobj; |
7471 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7472 | int arg2 ; | |
7473 | PyObject * obj0 = 0 ; | |
994141e6 | 7474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7475 | char *kwnames[] = { |
7476 | (char *) "self",(char *) "indent", NULL | |
7477 | }; | |
7478 | ||
994141e6 | 7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7482 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 7483 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7484 | { |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | (arg1)->SetRightIndent(arg2); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
7491 | Py_INCREF(Py_None); resultobj = Py_None; | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
c32bde28 | 7498 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7499 | PyObject *resultobj; |
7500 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7501 | long arg2 ; | |
7502 | PyObject * obj0 = 0 ; | |
994141e6 | 7503 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7504 | char *kwnames[] = { |
7505 | (char *) "self",(char *) "flags", NULL | |
7506 | }; | |
7507 | ||
994141e6 | 7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",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; | |
c32bde28 | 7511 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7512 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7513 | { |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | (arg1)->SetFlags(arg2); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
7520 | Py_INCREF(Py_None); resultobj = Py_None; | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
c32bde28 | 7527 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7528 | PyObject *resultobj; |
7529 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7530 | bool result; | |
7531 | PyObject * obj0 = 0 ; | |
7532 | char *kwnames[] = { | |
7533 | (char *) "self", NULL | |
7534 | }; | |
7535 | ||
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7539 | { |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7541 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7542 | ||
7543 | wxPyEndAllowThreads(__tstate); | |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
7545 | } | |
4f89f6a3 RD |
7546 | { |
7547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7548 | } | |
d14a1e28 RD |
7549 | return resultobj; |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
c32bde28 | 7555 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7556 | PyObject *resultobj; |
7557 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7558 | bool result; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "self", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7567 | { |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7569 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7570 | ||
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
4f89f6a3 RD |
7574 | { |
7575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7576 | } | |
d14a1e28 RD |
7577 | return resultobj; |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
c32bde28 | 7583 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7584 | PyObject *resultobj; |
7585 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7586 | bool result; | |
7587 | PyObject * obj0 = 0 ; | |
7588 | char *kwnames[] = { | |
7589 | (char *) "self", NULL | |
7590 | }; | |
7591 | ||
7592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7595 | { |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7598 | ||
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
4f89f6a3 RD |
7602 | { |
7603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7604 | } | |
d14a1e28 RD |
7605 | return resultobj; |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
c32bde28 | 7611 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7612 | PyObject *resultobj; |
7613 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7614 | bool result; | |
7615 | PyObject * obj0 = 0 ; | |
7616 | char *kwnames[] = { | |
7617 | (char *) "self", NULL | |
7618 | }; | |
7619 | ||
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7623 | { |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
4f89f6a3 RD |
7630 | { |
7631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7632 | } | |
d14a1e28 RD |
7633 | return resultobj; |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
c32bde28 | 7639 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7640 | PyObject *resultobj; |
7641 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7642 | bool result; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | char *kwnames[] = { | |
7645 | (char *) "self", NULL | |
7646 | }; | |
7647 | ||
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7651 | { |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7653 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7654 | ||
7655 | wxPyEndAllowThreads(__tstate); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
4f89f6a3 RD |
7658 | { |
7659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7660 | } | |
d14a1e28 RD |
7661 | return resultobj; |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
c32bde28 | 7667 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7668 | PyObject *resultobj; |
7669 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7670 | bool result; | |
7671 | PyObject * obj0 = 0 ; | |
7672 | char *kwnames[] = { | |
7673 | (char *) "self", NULL | |
7674 | }; | |
7675 | ||
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7679 | { |
7680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7681 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7682 | ||
7683 | wxPyEndAllowThreads(__tstate); | |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
7685 | } | |
4f89f6a3 RD |
7686 | { |
7687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7688 | } | |
d14a1e28 RD |
7689 | return resultobj; |
7690 | fail: | |
7691 | return NULL; | |
7692 | } | |
7693 | ||
7694 | ||
c32bde28 | 7695 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7696 | PyObject *resultobj; |
7697 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7698 | bool result; | |
7699 | PyObject * obj0 = 0 ; | |
7700 | char *kwnames[] = { | |
7701 | (char *) "self", NULL | |
7702 | }; | |
7703 | ||
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7707 | { |
7708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7709 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7710 | ||
7711 | wxPyEndAllowThreads(__tstate); | |
7712 | if (PyErr_Occurred()) SWIG_fail; | |
7713 | } | |
4f89f6a3 RD |
7714 | { |
7715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7716 | } | |
d14a1e28 RD |
7717 | return resultobj; |
7718 | fail: | |
7719 | return NULL; | |
7720 | } | |
7721 | ||
7722 | ||
c32bde28 | 7723 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7724 | PyObject *resultobj; |
7725 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7726 | long arg2 ; | |
7727 | bool result; | |
7728 | PyObject * obj0 = 0 ; | |
994141e6 | 7729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7730 | char *kwnames[] = { |
7731 | (char *) "self",(char *) "flag", NULL | |
7732 | }; | |
7733 | ||
994141e6 | 7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7737 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 7738 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7739 | { |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
4f89f6a3 RD |
7746 | { |
7747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7748 | } | |
d14a1e28 RD |
7749 | return resultobj; |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
c32bde28 | 7755 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7756 | PyObject *resultobj; |
7757 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7758 | wxColour *result; | |
7759 | PyObject * obj0 = 0 ; | |
7760 | char *kwnames[] = { | |
7761 | (char *) "self", NULL | |
7762 | }; | |
7763 | ||
7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7767 | { |
7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7769 | { | |
7770 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7771 | result = (wxColour *) &_result_ref; | |
7772 | } | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | } | |
15afbcd0 | 7777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7778 | return resultobj; |
7779 | fail: | |
7780 | return NULL; | |
7781 | } | |
7782 | ||
7783 | ||
c32bde28 | 7784 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7785 | PyObject *resultobj; |
7786 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7787 | wxColour *result; | |
7788 | PyObject * obj0 = 0 ; | |
7789 | char *kwnames[] = { | |
7790 | (char *) "self", NULL | |
7791 | }; | |
7792 | ||
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7796 | { |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | { | |
7799 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7800 | result = (wxColour *) &_result_ref; | |
7801 | } | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
15afbcd0 | 7806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7807 | return resultobj; |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
c32bde28 | 7813 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7814 | PyObject *resultobj; |
7815 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7816 | wxFont *result; | |
7817 | PyObject * obj0 = 0 ; | |
7818 | char *kwnames[] = { | |
7819 | (char *) "self", NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7825 | { |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | { | |
7828 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7829 | result = (wxFont *) &_result_ref; | |
7830 | } | |
7831 | ||
7832 | wxPyEndAllowThreads(__tstate); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
4276dc52 RD |
7835 | { |
7836 | wxFont* resultptr = new wxFont(*result); | |
7837 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7838 | } | |
d14a1e28 RD |
7839 | return resultobj; |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
c32bde28 | 7845 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7846 | PyObject *resultobj; |
7847 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7848 | int result; | |
7849 | PyObject * obj0 = 0 ; | |
7850 | char *kwnames[] = { | |
7851 | (char *) "self", NULL | |
7852 | }; | |
7853 | ||
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7857 | { |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | } | |
c32bde28 | 7864 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7865 | return resultobj; |
7866 | fail: | |
7867 | return NULL; | |
7868 | } | |
7869 | ||
7870 | ||
c32bde28 | 7871 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7872 | PyObject *resultobj; |
7873 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7874 | wxArrayInt *result; | |
7875 | PyObject * obj0 = 0 ; | |
7876 | char *kwnames[] = { | |
7877 | (char *) "self", NULL | |
7878 | }; | |
7879 | ||
7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7883 | { |
7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7885 | { | |
7886 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7887 | result = (wxArrayInt *) &_result_ref; | |
7888 | } | |
7889 | ||
7890 | wxPyEndAllowThreads(__tstate); | |
7891 | if (PyErr_Occurred()) SWIG_fail; | |
7892 | } | |
7893 | { | |
7894 | resultobj = PyList_New(0); | |
7895 | size_t idx; | |
7896 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7897 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7898 | PyList_Append(resultobj, val); | |
7899 | Py_DECREF(val); | |
7900 | } | |
7901 | } | |
7902 | return resultobj; | |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
c32bde28 | 7908 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7909 | PyObject *resultobj; |
7910 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7911 | long result; | |
7912 | PyObject * obj0 = 0 ; | |
7913 | char *kwnames[] = { | |
7914 | (char *) "self", NULL | |
7915 | }; | |
7916 | ||
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7920 | { |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
c32bde28 | 7927 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
7928 | return resultobj; |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
c32bde28 | 7934 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
5e4ca4a8 RD |
7935 | PyObject *resultobj; |
7936 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7937 | long result; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
7952 | } | |
c32bde28 | 7953 | resultobj = SWIG_From_long((long)result); |
5e4ca4a8 RD |
7954 | return resultobj; |
7955 | fail: | |
7956 | return NULL; | |
7957 | } | |
7958 | ||
7959 | ||
c32bde28 | 7960 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7961 | PyObject *resultobj; |
7962 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7963 | long result; | |
7964 | PyObject * obj0 = 0 ; | |
7965 | char *kwnames[] = { | |
7966 | (char *) "self", NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7972 | { |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
c32bde28 | 7979 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
7980 | return resultobj; |
7981 | fail: | |
7982 | return NULL; | |
7983 | } | |
7984 | ||
7985 | ||
c32bde28 | 7986 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7987 | PyObject *resultobj; |
7988 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7989 | long result; | |
7990 | PyObject * obj0 = 0 ; | |
7991 | char *kwnames[] = { | |
7992 | (char *) "self", NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7998 | { |
7999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8000 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
8001 | ||
8002 | wxPyEndAllowThreads(__tstate); | |
8003 | if (PyErr_Occurred()) SWIG_fail; | |
8004 | } | |
c32bde28 | 8005 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
8006 | return resultobj; |
8007 | fail: | |
8008 | return NULL; | |
8009 | } | |
8010 | ||
8011 | ||
c32bde28 | 8012 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8013 | PyObject *resultobj; |
8014 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8015 | bool result; | |
8016 | PyObject * obj0 = 0 ; | |
8017 | char *kwnames[] = { | |
8018 | (char *) "self", NULL | |
8019 | }; | |
8020 | ||
8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8024 | { |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
4f89f6a3 RD |
8031 | { |
8032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8033 | } | |
d14a1e28 RD |
8034 | return resultobj; |
8035 | fail: | |
8036 | return NULL; | |
8037 | } | |
8038 | ||
8039 | ||
c32bde28 | 8040 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8041 | PyObject *resultobj; |
8042 | wxTextAttr *arg1 = 0 ; | |
8043 | wxTextAttr *arg2 = 0 ; | |
8044 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
8045 | wxTextAttr result; | |
8046 | PyObject * obj0 = 0 ; | |
8047 | PyObject * obj1 = 0 ; | |
8048 | PyObject * obj2 = 0 ; | |
8049 | char *kwnames[] = { | |
8050 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
8051 | }; | |
8052 | ||
8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
8055 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8056 | SWIG_fail; | |
d14a1e28 | 8057 | if (arg1 == NULL) { |
15afbcd0 RD |
8058 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8059 | SWIG_fail; | |
d14a1e28 | 8060 | } |
15afbcd0 RD |
8061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
8062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8063 | SWIG_fail; | |
d14a1e28 | 8064 | if (arg2 == NULL) { |
15afbcd0 RD |
8065 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8066 | SWIG_fail; | |
d14a1e28 | 8067 | } |
15afbcd0 RD |
8068 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
8069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8070 | { |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | { | |
8078 | wxTextAttr * resultptr; | |
8079 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 8080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8081 | } |
8082 | return resultobj; | |
8083 | fail: | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
c32bde28 | 8088 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8089 | PyObject *obj; |
8090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8091 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
8092 | Py_INCREF(obj); | |
8093 | return Py_BuildValue((char *)""); | |
8094 | } | |
c32bde28 | 8095 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8096 | PyObject *resultobj; |
8097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8098 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8099 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8100 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8101 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8102 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8103 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8104 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8105 | long arg6 = (long) 0 ; | |
8106 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8107 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8108 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
8109 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8110 | wxTextCtrl *result; | |
ae8162c8 | 8111 | bool temp3 = false ; |
d14a1e28 RD |
8112 | wxPoint temp4 ; |
8113 | wxSize temp5 ; | |
ae8162c8 | 8114 | bool temp8 = false ; |
d14a1e28 | 8115 | PyObject * obj0 = 0 ; |
994141e6 | 8116 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8117 | PyObject * obj2 = 0 ; |
8118 | PyObject * obj3 = 0 ; | |
8119 | PyObject * obj4 = 0 ; | |
994141e6 | 8120 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8121 | PyObject * obj6 = 0 ; |
8122 | PyObject * obj7 = 0 ; | |
8123 | char *kwnames[] = { | |
8124 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8125 | }; | |
8126 | ||
248ed943 | 8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
8128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8130 | if (obj1) { |
c32bde28 | 8131 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
8132 | if (PyErr_Occurred()) SWIG_fail; |
8133 | } | |
d14a1e28 RD |
8134 | if (obj2) { |
8135 | { | |
8136 | arg3 = wxString_in_helper(obj2); | |
8137 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8138 | temp3 = true; |
d14a1e28 RD |
8139 | } |
8140 | } | |
8141 | if (obj3) { | |
8142 | { | |
8143 | arg4 = &temp4; | |
8144 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8145 | } | |
8146 | } | |
8147 | if (obj4) { | |
8148 | { | |
8149 | arg5 = &temp5; | |
8150 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8151 | } | |
8152 | } | |
994141e6 | 8153 | if (obj5) { |
c32bde28 | 8154 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 8155 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8156 | } |
d14a1e28 | 8157 | if (obj6) { |
15afbcd0 RD |
8158 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
8159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8160 | SWIG_fail; | |
d14a1e28 | 8161 | if (arg7 == NULL) { |
15afbcd0 RD |
8162 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8163 | SWIG_fail; | |
d14a1e28 RD |
8164 | } |
8165 | } | |
8166 | if (obj7) { | |
8167 | { | |
8168 | arg8 = wxString_in_helper(obj7); | |
8169 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8170 | temp8 = true; |
d14a1e28 RD |
8171 | } |
8172 | } | |
8173 | { | |
e3b71cb8 | 8174 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8176 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8177 | ||
8178 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8179 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8180 | } |
b0f7404b | 8181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8182 | { |
8183 | if (temp3) | |
8184 | delete arg3; | |
8185 | } | |
8186 | { | |
8187 | if (temp8) | |
8188 | delete arg8; | |
8189 | } | |
8190 | return resultobj; | |
8191 | fail: | |
8192 | { | |
8193 | if (temp3) | |
8194 | delete arg3; | |
8195 | } | |
8196 | { | |
8197 | if (temp8) | |
8198 | delete arg8; | |
8199 | } | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
c32bde28 | 8204 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8205 | PyObject *resultobj; |
8206 | wxTextCtrl *result; | |
8207 | char *kwnames[] = { | |
8208 | NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8212 | { | |
e3b71cb8 | 8213 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8215 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8218 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8219 | } |
b0f7404b | 8220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8221 | return resultobj; |
8222 | fail: | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
c32bde28 | 8227 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8228 | PyObject *resultobj; |
8229 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8230 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8231 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8232 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8233 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8234 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8235 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8236 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8237 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8238 | long arg7 = (long) 0 ; | |
8239 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8240 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8241 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8242 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8243 | bool result; | |
ae8162c8 | 8244 | bool temp4 = false ; |
d14a1e28 RD |
8245 | wxPoint temp5 ; |
8246 | wxSize temp6 ; | |
ae8162c8 | 8247 | bool temp9 = false ; |
d14a1e28 RD |
8248 | PyObject * obj0 = 0 ; |
8249 | PyObject * obj1 = 0 ; | |
994141e6 | 8250 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8251 | PyObject * obj3 = 0 ; |
8252 | PyObject * obj4 = 0 ; | |
8253 | PyObject * obj5 = 0 ; | |
994141e6 | 8254 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8255 | PyObject * obj7 = 0 ; |
8256 | PyObject * obj8 = 0 ; | |
8257 | char *kwnames[] = { | |
8258 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8259 | }; | |
8260 | ||
248ed943 | 8261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 8266 | if (obj2) { |
c32bde28 | 8267 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
8268 | if (PyErr_Occurred()) SWIG_fail; |
8269 | } | |
d14a1e28 RD |
8270 | if (obj3) { |
8271 | { | |
8272 | arg4 = wxString_in_helper(obj3); | |
8273 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 8274 | temp4 = true; |
d14a1e28 RD |
8275 | } |
8276 | } | |
8277 | if (obj4) { | |
8278 | { | |
8279 | arg5 = &temp5; | |
8280 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8281 | } | |
8282 | } | |
8283 | if (obj5) { | |
8284 | { | |
8285 | arg6 = &temp6; | |
8286 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8287 | } | |
8288 | } | |
994141e6 | 8289 | if (obj6) { |
c32bde28 | 8290 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 8291 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 8292 | } |
d14a1e28 | 8293 | if (obj7) { |
15afbcd0 RD |
8294 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8296 | SWIG_fail; | |
d14a1e28 | 8297 | if (arg8 == NULL) { |
15afbcd0 RD |
8298 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8299 | SWIG_fail; | |
d14a1e28 RD |
8300 | } |
8301 | } | |
8302 | if (obj8) { | |
8303 | { | |
8304 | arg9 = wxString_in_helper(obj8); | |
8305 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8306 | temp9 = true; |
d14a1e28 RD |
8307 | } |
8308 | } | |
8309 | { | |
8310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8311 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8312 | ||
8313 | wxPyEndAllowThreads(__tstate); | |
8314 | if (PyErr_Occurred()) SWIG_fail; | |
8315 | } | |
4f89f6a3 RD |
8316 | { |
8317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8318 | } | |
d14a1e28 RD |
8319 | { |
8320 | if (temp4) | |
8321 | delete arg4; | |
8322 | } | |
8323 | { | |
8324 | if (temp9) | |
8325 | delete arg9; | |
8326 | } | |
8327 | return resultobj; | |
8328 | fail: | |
8329 | { | |
8330 | if (temp4) | |
8331 | delete arg4; | |
8332 | } | |
8333 | { | |
8334 | if (temp9) | |
8335 | delete arg9; | |
8336 | } | |
8337 | return NULL; | |
8338 | } | |
8339 | ||
8340 | ||
c32bde28 | 8341 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8342 | PyObject *resultobj; |
8343 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8344 | wxString result; | |
8345 | PyObject * obj0 = 0 ; | |
8346 | char *kwnames[] = { | |
8347 | (char *) "self", NULL | |
8348 | }; | |
8349 | ||
8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8353 | { |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | { | |
8361 | #if wxUSE_UNICODE | |
8362 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8363 | #else | |
8364 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8365 | #endif | |
8366 | } | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
c32bde28 | 8373 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8374 | PyObject *resultobj; |
8375 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8376 | wxString *arg2 = 0 ; | |
ae8162c8 | 8377 | bool temp2 = false ; |
d14a1e28 RD |
8378 | PyObject * obj0 = 0 ; |
8379 | PyObject * obj1 = 0 ; | |
8380 | char *kwnames[] = { | |
8381 | (char *) "self",(char *) "value", NULL | |
8382 | }; | |
8383 | ||
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8387 | { |
8388 | arg2 = wxString_in_helper(obj1); | |
8389 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8390 | temp2 = true; |
d14a1e28 RD |
8391 | } |
8392 | { | |
8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8394 | (arg1)->SetValue((wxString const &)*arg2); | |
8395 | ||
8396 | wxPyEndAllowThreads(__tstate); | |
8397 | if (PyErr_Occurred()) SWIG_fail; | |
8398 | } | |
8399 | Py_INCREF(Py_None); resultobj = Py_None; | |
8400 | { | |
8401 | if (temp2) | |
8402 | delete arg2; | |
8403 | } | |
8404 | return resultobj; | |
8405 | fail: | |
8406 | { | |
8407 | if (temp2) | |
8408 | delete arg2; | |
8409 | } | |
8410 | return NULL; | |
8411 | } | |
8412 | ||
8413 | ||
c32bde28 | 8414 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8415 | PyObject *resultobj; |
8416 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8417 | long arg2 ; | |
8418 | long arg3 ; | |
8419 | wxString result; | |
8420 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8421 | PyObject * obj1 = 0 ; |
8422 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8423 | char *kwnames[] = { |
8424 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8425 | }; | |
8426 | ||
994141e6 | 8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8430 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8431 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8432 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8433 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8434 | { |
8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8436 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8437 | ||
8438 | wxPyEndAllowThreads(__tstate); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
8441 | { | |
8442 | #if wxUSE_UNICODE | |
8443 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8444 | #else | |
8445 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8446 | #endif | |
8447 | } | |
8448 | return resultobj; | |
8449 | fail: | |
8450 | return NULL; | |
8451 | } | |
8452 | ||
8453 | ||
c32bde28 | 8454 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8455 | PyObject *resultobj; |
8456 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8457 | long arg2 ; | |
8458 | int result; | |
8459 | PyObject * obj0 = 0 ; | |
994141e6 | 8460 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8461 | char *kwnames[] = { |
8462 | (char *) "self",(char *) "lineNo", NULL | |
8463 | }; | |
8464 | ||
994141e6 | 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8468 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8469 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8470 | { |
8471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8472 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8473 | ||
8474 | wxPyEndAllowThreads(__tstate); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
c32bde28 | 8477 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8478 | return resultobj; |
8479 | fail: | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
c32bde28 | 8484 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8485 | PyObject *resultobj; |
8486 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8487 | long arg2 ; | |
8488 | wxString result; | |
8489 | PyObject * obj0 = 0 ; | |
994141e6 | 8490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8491 | char *kwnames[] = { |
8492 | (char *) "self",(char *) "lineNo", NULL | |
8493 | }; | |
8494 | ||
994141e6 | 8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8498 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8499 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8500 | { |
8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8502 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8503 | ||
8504 | wxPyEndAllowThreads(__tstate); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
8507 | { | |
8508 | #if wxUSE_UNICODE | |
8509 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8510 | #else | |
8511 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8512 | #endif | |
8513 | } | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
c32bde28 | 8520 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8521 | PyObject *resultobj; |
8522 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8523 | int result; | |
8524 | PyObject * obj0 = 0 ; | |
8525 | char *kwnames[] = { | |
8526 | (char *) "self", NULL | |
8527 | }; | |
8528 | ||
8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8532 | { |
8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8534 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8535 | ||
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
c32bde28 | 8539 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8540 | return resultobj; |
8541 | fail: | |
8542 | return NULL; | |
8543 | } | |
8544 | ||
8545 | ||
c32bde28 | 8546 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8547 | PyObject *resultobj; |
8548 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8549 | bool result; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | char *kwnames[] = { | |
8552 | (char *) "self", NULL | |
8553 | }; | |
8554 | ||
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8558 | { |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
4f89f6a3 RD |
8565 | { |
8566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8567 | } | |
d14a1e28 RD |
8568 | return resultobj; |
8569 | fail: | |
8570 | return NULL; | |
8571 | } | |
8572 | ||
8573 | ||
c32bde28 | 8574 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8575 | PyObject *resultobj; |
8576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8577 | bool result; | |
8578 | PyObject * obj0 = 0 ; | |
8579 | char *kwnames[] = { | |
8580 | (char *) "self", NULL | |
8581 | }; | |
8582 | ||
8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8586 | { |
8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8588 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8589 | ||
8590 | wxPyEndAllowThreads(__tstate); | |
8591 | if (PyErr_Occurred()) SWIG_fail; | |
8592 | } | |
4f89f6a3 RD |
8593 | { |
8594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8595 | } | |
d14a1e28 RD |
8596 | return resultobj; |
8597 | fail: | |
8598 | return NULL; | |
8599 | } | |
8600 | ||
8601 | ||
c32bde28 | 8602 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8603 | PyObject *resultobj; |
8604 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8605 | bool result; | |
8606 | PyObject * obj0 = 0 ; | |
8607 | char *kwnames[] = { | |
8608 | (char *) "self", NULL | |
8609 | }; | |
8610 | ||
8611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8614 | { |
8615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8616 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8617 | ||
8618 | wxPyEndAllowThreads(__tstate); | |
8619 | if (PyErr_Occurred()) SWIG_fail; | |
8620 | } | |
4f89f6a3 RD |
8621 | { |
8622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8623 | } | |
d14a1e28 RD |
8624 | return resultobj; |
8625 | fail: | |
8626 | return NULL; | |
8627 | } | |
8628 | ||
8629 | ||
c32bde28 | 8630 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8631 | PyObject *resultobj; |
8632 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8633 | bool result; | |
8634 | PyObject * obj0 = 0 ; | |
8635 | char *kwnames[] = { | |
8636 | (char *) "self", NULL | |
8637 | }; | |
8638 | ||
8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8642 | { |
8643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8644 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8645 | ||
8646 | wxPyEndAllowThreads(__tstate); | |
8647 | if (PyErr_Occurred()) SWIG_fail; | |
8648 | } | |
4f89f6a3 RD |
8649 | { |
8650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8651 | } | |
d14a1e28 RD |
8652 | return resultobj; |
8653 | fail: | |
8654 | return NULL; | |
8655 | } | |
8656 | ||
8657 | ||
c32bde28 | 8658 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8659 | PyObject *resultobj; |
8660 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8661 | long *arg2 = (long *) 0 ; | |
8662 | long *arg3 = (long *) 0 ; | |
8663 | long temp2 ; | |
c32bde28 | 8664 | int res2 = 0 ; |
d14a1e28 | 8665 | long temp3 ; |
c32bde28 | 8666 | int res3 = 0 ; |
d14a1e28 RD |
8667 | PyObject * obj0 = 0 ; |
8668 | char *kwnames[] = { | |
8669 | (char *) "self", NULL | |
8670 | }; | |
8671 | ||
c32bde28 RD |
8672 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8673 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8677 | { |
8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8679 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8680 | ||
8681 | wxPyEndAllowThreads(__tstate); | |
8682 | if (PyErr_Occurred()) SWIG_fail; | |
8683 | } | |
8684 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
8685 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8686 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
8687 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8688 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
8689 | return resultobj; |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
c32bde28 | 8695 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8696 | PyObject *resultobj; |
8697 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8698 | wxString result; | |
8699 | PyObject * obj0 = 0 ; | |
8700 | char *kwnames[] = { | |
8701 | (char *) "self", NULL | |
8702 | }; | |
8703 | ||
8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8707 | { |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8710 | ||
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
8714 | { | |
8715 | #if wxUSE_UNICODE | |
8716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8717 | #else | |
8718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8719 | #endif | |
8720 | } | |
8721 | return resultobj; | |
8722 | fail: | |
8723 | return NULL; | |
8724 | } | |
8725 | ||
8726 | ||
c32bde28 | 8727 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8728 | PyObject *resultobj; |
8729 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8730 | PyObject * obj0 = 0 ; | |
8731 | char *kwnames[] = { | |
8732 | (char *) "self", NULL | |
8733 | }; | |
8734 | ||
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8738 | { |
8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8740 | (arg1)->Clear(); | |
8741 | ||
8742 | wxPyEndAllowThreads(__tstate); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | Py_INCREF(Py_None); resultobj = Py_None; | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
c32bde28 | 8752 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8753 | PyObject *resultobj; |
8754 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8755 | long arg2 ; | |
8756 | long arg3 ; | |
8757 | wxString *arg4 = 0 ; | |
ae8162c8 | 8758 | bool temp4 = false ; |
d14a1e28 | 8759 | PyObject * obj0 = 0 ; |
994141e6 RD |
8760 | PyObject * obj1 = 0 ; |
8761 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8762 | PyObject * obj3 = 0 ; |
8763 | char *kwnames[] = { | |
8764 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8765 | }; | |
8766 | ||
994141e6 | 8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8770 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8771 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8772 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8773 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8774 | { |
8775 | arg4 = wxString_in_helper(obj3); | |
8776 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 8777 | temp4 = true; |
d14a1e28 RD |
8778 | } |
8779 | { | |
8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8781 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8782 | ||
8783 | wxPyEndAllowThreads(__tstate); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
8786 | Py_INCREF(Py_None); resultobj = Py_None; | |
8787 | { | |
8788 | if (temp4) | |
8789 | delete arg4; | |
8790 | } | |
8791 | return resultobj; | |
8792 | fail: | |
8793 | { | |
8794 | if (temp4) | |
8795 | delete arg4; | |
8796 | } | |
8797 | return NULL; | |
8798 | } | |
8799 | ||
8800 | ||
c32bde28 | 8801 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8802 | PyObject *resultobj; |
8803 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8804 | long arg2 ; | |
8805 | long arg3 ; | |
8806 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8807 | PyObject * obj1 = 0 ; |
8808 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8809 | char *kwnames[] = { |
8810 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8811 | }; | |
8812 | ||
994141e6 | 8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8816 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 8817 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8818 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 8819 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8820 | { |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | (arg1)->Remove(arg2,arg3); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
8827 | Py_INCREF(Py_None); resultobj = Py_None; | |
8828 | return resultobj; | |
8829 | fail: | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
c32bde28 | 8834 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8835 | PyObject *resultobj; |
8836 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8837 | wxString *arg2 = 0 ; | |
8838 | bool result; | |
ae8162c8 | 8839 | bool temp2 = false ; |
d14a1e28 RD |
8840 | PyObject * obj0 = 0 ; |
8841 | PyObject * obj1 = 0 ; | |
8842 | char *kwnames[] = { | |
8843 | (char *) "self",(char *) "file", NULL | |
8844 | }; | |
8845 | ||
8846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8849 | { |
8850 | arg2 = wxString_in_helper(obj1); | |
8851 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8852 | temp2 = true; |
d14a1e28 RD |
8853 | } |
8854 | { | |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
4f89f6a3 RD |
8861 | { |
8862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8863 | } | |
d14a1e28 RD |
8864 | { |
8865 | if (temp2) | |
8866 | delete arg2; | |
8867 | } | |
8868 | return resultobj; | |
8869 | fail: | |
8870 | { | |
8871 | if (temp2) | |
8872 | delete arg2; | |
8873 | } | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
c32bde28 | 8878 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8879 | PyObject *resultobj; |
8880 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8881 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8882 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8883 | bool result; | |
ae8162c8 | 8884 | bool temp2 = false ; |
d14a1e28 RD |
8885 | PyObject * obj0 = 0 ; |
8886 | PyObject * obj1 = 0 ; | |
8887 | char *kwnames[] = { | |
8888 | (char *) "self",(char *) "file", NULL | |
8889 | }; | |
8890 | ||
8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8894 | if (obj1) { |
8895 | { | |
8896 | arg2 = wxString_in_helper(obj1); | |
8897 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8898 | temp2 = true; |
d14a1e28 RD |
8899 | } |
8900 | } | |
8901 | { | |
8902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8903 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8904 | ||
8905 | wxPyEndAllowThreads(__tstate); | |
8906 | if (PyErr_Occurred()) SWIG_fail; | |
8907 | } | |
4f89f6a3 RD |
8908 | { |
8909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8910 | } | |
d14a1e28 RD |
8911 | { |
8912 | if (temp2) | |
8913 | delete arg2; | |
8914 | } | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | { | |
8918 | if (temp2) | |
8919 | delete arg2; | |
8920 | } | |
8921 | return NULL; | |
8922 | } | |
8923 | ||
8924 | ||
c32bde28 | 8925 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8926 | PyObject *resultobj; |
8927 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8928 | PyObject * obj0 = 0 ; | |
8929 | char *kwnames[] = { | |
8930 | (char *) "self", NULL | |
8931 | }; | |
8932 | ||
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8936 | { |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | (arg1)->MarkDirty(); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | Py_INCREF(Py_None); resultobj = Py_None; | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
c32bde28 | 8950 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8951 | PyObject *resultobj; |
8952 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8953 | PyObject * obj0 = 0 ; | |
8954 | char *kwnames[] = { | |
8955 | (char *) "self", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8961 | { |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | (arg1)->DiscardEdits(); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | Py_INCREF(Py_None); resultobj = Py_None; | |
8969 | return resultobj; | |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
c32bde28 | 8975 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8976 | PyObject *resultobj; |
8977 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8978 | unsigned long arg2 ; | |
8979 | PyObject * obj0 = 0 ; | |
8980 | PyObject * obj1 = 0 ; | |
8981 | char *kwnames[] = { | |
8982 | (char *) "self",(char *) "len", NULL | |
8983 | }; | |
8984 | ||
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8988 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 8989 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8990 | { |
8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8992 | (arg1)->SetMaxLength(arg2); | |
8993 | ||
8994 | wxPyEndAllowThreads(__tstate); | |
8995 | if (PyErr_Occurred()) SWIG_fail; | |
8996 | } | |
8997 | Py_INCREF(Py_None); resultobj = Py_None; | |
8998 | return resultobj; | |
8999 | fail: | |
9000 | return NULL; | |
9001 | } | |
9002 | ||
9003 | ||
c32bde28 | 9004 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9005 | PyObject *resultobj; |
9006 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9007 | wxString *arg2 = 0 ; | |
ae8162c8 | 9008 | bool temp2 = false ; |
d14a1e28 RD |
9009 | PyObject * obj0 = 0 ; |
9010 | PyObject * obj1 = 0 ; | |
9011 | char *kwnames[] = { | |
9012 | (char *) "self",(char *) "text", NULL | |
9013 | }; | |
9014 | ||
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9018 | { |
9019 | arg2 = wxString_in_helper(obj1); | |
9020 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9021 | temp2 = true; |
d14a1e28 RD |
9022 | } |
9023 | { | |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9025 | (arg1)->WriteText((wxString const &)*arg2); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
9029 | } | |
9030 | Py_INCREF(Py_None); resultobj = Py_None; | |
9031 | { | |
9032 | if (temp2) | |
9033 | delete arg2; | |
9034 | } | |
9035 | return resultobj; | |
9036 | fail: | |
9037 | { | |
9038 | if (temp2) | |
9039 | delete arg2; | |
9040 | } | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
c32bde28 | 9045 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9046 | PyObject *resultobj; |
9047 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9048 | wxString *arg2 = 0 ; | |
ae8162c8 | 9049 | bool temp2 = false ; |
d14a1e28 RD |
9050 | PyObject * obj0 = 0 ; |
9051 | PyObject * obj1 = 0 ; | |
9052 | char *kwnames[] = { | |
9053 | (char *) "self",(char *) "text", NULL | |
9054 | }; | |
9055 | ||
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9059 | { |
9060 | arg2 = wxString_in_helper(obj1); | |
9061 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9062 | temp2 = true; |
d14a1e28 RD |
9063 | } |
9064 | { | |
9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9066 | (arg1)->AppendText((wxString const &)*arg2); | |
9067 | ||
9068 | wxPyEndAllowThreads(__tstate); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | } | |
9071 | Py_INCREF(Py_None); resultobj = Py_None; | |
9072 | { | |
9073 | if (temp2) | |
9074 | delete arg2; | |
9075 | } | |
9076 | return resultobj; | |
9077 | fail: | |
9078 | { | |
9079 | if (temp2) | |
9080 | delete arg2; | |
9081 | } | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
c32bde28 | 9086 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9087 | PyObject *resultobj; |
9088 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9089 | wxKeyEvent *arg2 = 0 ; | |
9090 | bool result; | |
9091 | PyObject * obj0 = 0 ; | |
9092 | PyObject * obj1 = 0 ; | |
9093 | char *kwnames[] = { | |
9094 | (char *) "self",(char *) "event", NULL | |
9095 | }; | |
9096 | ||
9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
9101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9102 | SWIG_fail; | |
d14a1e28 | 9103 | if (arg2 == NULL) { |
15afbcd0 RD |
9104 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9105 | SWIG_fail; | |
d14a1e28 RD |
9106 | } |
9107 | { | |
9108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9109 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
9110 | ||
9111 | wxPyEndAllowThreads(__tstate); | |
9112 | if (PyErr_Occurred()) SWIG_fail; | |
9113 | } | |
4f89f6a3 RD |
9114 | { |
9115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9116 | } | |
d14a1e28 RD |
9117 | return resultobj; |
9118 | fail: | |
9119 | return NULL; | |
9120 | } | |
9121 | ||
9122 | ||
c32bde28 | 9123 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9124 | PyObject *resultobj; |
9125 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9126 | long arg2 ; | |
9127 | long arg3 ; | |
9128 | wxTextAttr *arg4 = 0 ; | |
9129 | bool result; | |
9130 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9131 | PyObject * obj1 = 0 ; |
9132 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9133 | PyObject * obj3 = 0 ; |
9134 | char *kwnames[] = { | |
9135 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9136 | }; | |
9137 | ||
994141e6 | 9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9141 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9142 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9143 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 RD |
9144 | if (PyErr_Occurred()) SWIG_fail; |
9145 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9147 | SWIG_fail; | |
d14a1e28 | 9148 | if (arg4 == NULL) { |
15afbcd0 RD |
9149 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9150 | SWIG_fail; | |
d14a1e28 RD |
9151 | } |
9152 | { | |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9155 | ||
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
4f89f6a3 RD |
9159 | { |
9160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9161 | } | |
d14a1e28 RD |
9162 | return resultobj; |
9163 | fail: | |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
c32bde28 | 9168 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9169 | PyObject *resultobj; |
9170 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9171 | long arg2 ; | |
9172 | wxTextAttr *arg3 = 0 ; | |
9173 | bool result; | |
9174 | PyObject * obj0 = 0 ; | |
994141e6 | 9175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9176 | PyObject * obj2 = 0 ; |
9177 | char *kwnames[] = { | |
9178 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9179 | }; | |
9180 | ||
994141e6 | 9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9184 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
9185 | if (PyErr_Occurred()) SWIG_fail; |
9186 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9187 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9188 | SWIG_fail; | |
d14a1e28 | 9189 | if (arg3 == NULL) { |
15afbcd0 RD |
9190 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9191 | SWIG_fail; | |
d14a1e28 RD |
9192 | } |
9193 | { | |
9194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9195 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9196 | ||
9197 | wxPyEndAllowThreads(__tstate); | |
9198 | if (PyErr_Occurred()) SWIG_fail; | |
9199 | } | |
4f89f6a3 RD |
9200 | { |
9201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9202 | } | |
d14a1e28 RD |
9203 | return resultobj; |
9204 | fail: | |
9205 | return NULL; | |
9206 | } | |
9207 | ||
9208 | ||
c32bde28 | 9209 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9210 | PyObject *resultobj; |
9211 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9212 | wxTextAttr *arg2 = 0 ; | |
9213 | bool result; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | PyObject * obj1 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self",(char *) "style", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9225 | SWIG_fail; | |
d14a1e28 | 9226 | if (arg2 == NULL) { |
15afbcd0 RD |
9227 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9228 | SWIG_fail; | |
d14a1e28 RD |
9229 | } |
9230 | { | |
9231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9232 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
4f89f6a3 RD |
9237 | { |
9238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9239 | } | |
d14a1e28 RD |
9240 | return resultobj; |
9241 | fail: | |
9242 | return NULL; | |
9243 | } | |
9244 | ||
9245 | ||
c32bde28 | 9246 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9247 | PyObject *resultobj; |
9248 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9249 | wxTextAttr *result; | |
9250 | PyObject * obj0 = 0 ; | |
9251 | char *kwnames[] = { | |
9252 | (char *) "self", NULL | |
9253 | }; | |
9254 | ||
9255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9258 | { |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9260 | { | |
9261 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9262 | result = (wxTextAttr *) &_result_ref; | |
9263 | } | |
9264 | ||
9265 | wxPyEndAllowThreads(__tstate); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
9267 | } | |
15afbcd0 | 9268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9269 | return resultobj; |
9270 | fail: | |
9271 | return NULL; | |
9272 | } | |
9273 | ||
9274 | ||
c32bde28 | 9275 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9276 | PyObject *resultobj; |
9277 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9278 | long arg2 ; | |
9279 | long arg3 ; | |
9280 | long result; | |
9281 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9282 | PyObject * obj1 = 0 ; |
9283 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9284 | char *kwnames[] = { |
9285 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9286 | }; | |
9287 | ||
994141e6 | 9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9291 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9292 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9293 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9294 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9295 | { |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
c32bde28 | 9302 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9303 | return resultobj; |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
c32bde28 | 9309 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9310 | PyObject *resultobj; |
9311 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9312 | long arg2 ; | |
9313 | long *arg3 = (long *) 0 ; | |
9314 | long *arg4 = (long *) 0 ; | |
9315 | long temp3 ; | |
c32bde28 | 9316 | int res3 = 0 ; |
d14a1e28 | 9317 | long temp4 ; |
c32bde28 | 9318 | int res4 = 0 ; |
d14a1e28 | 9319 | PyObject * obj0 = 0 ; |
994141e6 | 9320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9321 | char *kwnames[] = { |
9322 | (char *) "self",(char *) "pos", NULL | |
9323 | }; | |
9324 | ||
c32bde28 RD |
9325 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9326 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9330 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9331 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9332 | { |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9335 | ||
9336 | wxPyEndAllowThreads(__tstate); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
9339 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
9340 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
9341 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9342 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9343 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
9344 | return resultobj; |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
c32bde28 | 9350 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9351 | PyObject *resultobj; |
9352 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9353 | long arg2 ; | |
9354 | PyObject * obj0 = 0 ; | |
994141e6 | 9355 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9356 | char *kwnames[] = { |
9357 | (char *) "self",(char *) "pos", NULL | |
9358 | }; | |
9359 | ||
994141e6 | 9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9363 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9364 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9365 | { |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | (arg1)->ShowPosition(arg2); | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | Py_INCREF(Py_None); resultobj = Py_None; | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
c32bde28 | 9379 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
9380 | PyObject *resultobj; |
9381 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9382 | wxPoint *arg2 = 0 ; | |
9383 | long *arg3 = (long *) 0 ; | |
9384 | long *arg4 = (long *) 0 ; | |
9385 | int result; | |
9386 | wxPoint temp2 ; | |
9387 | long temp3 ; | |
c32bde28 | 9388 | int res3 = 0 ; |
4d5c3d91 | 9389 | long temp4 ; |
c32bde28 | 9390 | int res4 = 0 ; |
4d5c3d91 RD |
9391 | PyObject * obj0 = 0 ; |
9392 | PyObject * obj1 = 0 ; | |
9393 | char *kwnames[] = { | |
9394 | (char *) "self",(char *) "pt", NULL | |
9395 | }; | |
9396 | ||
c32bde28 RD |
9397 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
9398 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 9399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9402 | { |
9403 | arg2 = &temp2; | |
9404 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9405 | } | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
c32bde28 RD |
9413 | resultobj = SWIG_From_int((int)result); |
9414 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9415 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
9416 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9417 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
9418 | return resultobj; |
9419 | fail: | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
c32bde28 | 9424 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
9425 | PyObject *resultobj; |
9426 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9427 | wxPoint *arg2 = 0 ; | |
9428 | long *arg3 = (long *) 0 ; | |
9429 | int result; | |
9430 | wxPoint temp2 ; | |
9431 | long temp3 ; | |
c32bde28 | 9432 | int res3 = 0 ; |
4896ac9e RD |
9433 | PyObject * obj0 = 0 ; |
9434 | PyObject * obj1 = 0 ; | |
9435 | char *kwnames[] = { | |
9436 | (char *) "self",(char *) "pt", NULL | |
9437 | }; | |
9438 | ||
c32bde28 | 9439 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e RD |
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
9441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9443 | { | |
9444 | arg2 = &temp2; | |
9445 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9446 | } | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
c32bde28 RD |
9454 | resultobj = SWIG_From_int((int)result); |
9455 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9456 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
9457 | return resultobj; |
9458 | fail: | |
9459 | return NULL; | |
9460 | } | |
9461 | ||
9462 | ||
c32bde28 | 9463 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9464 | PyObject *resultobj; |
9465 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | char *kwnames[] = { | |
9468 | (char *) "self", NULL | |
9469 | }; | |
9470 | ||
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9474 | { |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | (arg1)->Copy(); | |
9477 | ||
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
9481 | Py_INCREF(Py_None); resultobj = Py_None; | |
9482 | return resultobj; | |
9483 | fail: | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
c32bde28 | 9488 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9489 | PyObject *resultobj; |
9490 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9491 | PyObject * obj0 = 0 ; | |
9492 | char *kwnames[] = { | |
9493 | (char *) "self", NULL | |
9494 | }; | |
9495 | ||
9496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9499 | { |
9500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9501 | (arg1)->Cut(); | |
9502 | ||
9503 | wxPyEndAllowThreads(__tstate); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | } | |
9506 | Py_INCREF(Py_None); resultobj = Py_None; | |
9507 | return resultobj; | |
9508 | fail: | |
9509 | return NULL; | |
9510 | } | |
9511 | ||
9512 | ||
c32bde28 | 9513 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9514 | PyObject *resultobj; |
9515 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9516 | PyObject * obj0 = 0 ; | |
9517 | char *kwnames[] = { | |
9518 | (char *) "self", NULL | |
9519 | }; | |
9520 | ||
9521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9524 | { |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | (arg1)->Paste(); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | Py_INCREF(Py_None); resultobj = Py_None; | |
9532 | return resultobj; | |
9533 | fail: | |
9534 | return NULL; | |
9535 | } | |
9536 | ||
9537 | ||
c32bde28 | 9538 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9539 | PyObject *resultobj; |
9540 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9541 | bool result; | |
9542 | PyObject * obj0 = 0 ; | |
9543 | char *kwnames[] = { | |
9544 | (char *) "self", NULL | |
9545 | }; | |
9546 | ||
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9550 | { |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9553 | ||
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
4f89f6a3 RD |
9557 | { |
9558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9559 | } | |
d14a1e28 RD |
9560 | return resultobj; |
9561 | fail: | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
c32bde28 | 9566 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9567 | PyObject *resultobj; |
9568 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9569 | bool result; | |
9570 | PyObject * obj0 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "self", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9578 | { |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
4f89f6a3 RD |
9585 | { |
9586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9587 | } | |
d14a1e28 RD |
9588 | return resultobj; |
9589 | fail: | |
9590 | return NULL; | |
9591 | } | |
9592 | ||
9593 | ||
c32bde28 | 9594 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9595 | PyObject *resultobj; |
9596 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9597 | bool result; | |
9598 | PyObject * obj0 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "self", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9606 | { |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | } | |
4f89f6a3 RD |
9613 | { |
9614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9615 | } | |
d14a1e28 RD |
9616 | return resultobj; |
9617 | fail: | |
9618 | return NULL; | |
9619 | } | |
9620 | ||
9621 | ||
c32bde28 | 9622 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9623 | PyObject *resultobj; |
9624 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9625 | PyObject * obj0 = 0 ; | |
9626 | char *kwnames[] = { | |
9627 | (char *) "self", NULL | |
9628 | }; | |
9629 | ||
9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9633 | { |
9634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9635 | (arg1)->Undo(); | |
9636 | ||
9637 | wxPyEndAllowThreads(__tstate); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | } | |
9640 | Py_INCREF(Py_None); resultobj = Py_None; | |
9641 | return resultobj; | |
9642 | fail: | |
9643 | return NULL; | |
9644 | } | |
9645 | ||
9646 | ||
c32bde28 | 9647 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9648 | PyObject *resultobj; |
9649 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9650 | PyObject * obj0 = 0 ; | |
9651 | char *kwnames[] = { | |
9652 | (char *) "self", NULL | |
9653 | }; | |
9654 | ||
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9658 | { |
9659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9660 | (arg1)->Redo(); | |
9661 | ||
9662 | wxPyEndAllowThreads(__tstate); | |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
9664 | } | |
9665 | Py_INCREF(Py_None); resultobj = Py_None; | |
9666 | return resultobj; | |
9667 | fail: | |
9668 | return NULL; | |
9669 | } | |
9670 | ||
9671 | ||
c32bde28 | 9672 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9673 | PyObject *resultobj; |
9674 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9675 | bool result; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "self", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9684 | { |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
4f89f6a3 RD |
9691 | { |
9692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9693 | } | |
d14a1e28 RD |
9694 | return resultobj; |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
c32bde28 | 9700 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9701 | PyObject *resultobj; |
9702 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9703 | bool result; | |
9704 | PyObject * obj0 = 0 ; | |
9705 | char *kwnames[] = { | |
9706 | (char *) "self", NULL | |
9707 | }; | |
9708 | ||
9709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9712 | { |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
4f89f6a3 RD |
9719 | { |
9720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9721 | } | |
d14a1e28 RD |
9722 | return resultobj; |
9723 | fail: | |
9724 | return NULL; | |
9725 | } | |
9726 | ||
9727 | ||
c32bde28 | 9728 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9729 | PyObject *resultobj; |
9730 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9731 | long arg2 ; | |
9732 | PyObject * obj0 = 0 ; | |
994141e6 | 9733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9734 | char *kwnames[] = { |
9735 | (char *) "self",(char *) "pos", NULL | |
9736 | }; | |
9737 | ||
994141e6 | 9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9741 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9742 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9743 | { |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | (arg1)->SetInsertionPoint(arg2); | |
9746 | ||
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
9750 | Py_INCREF(Py_None); resultobj = Py_None; | |
9751 | return resultobj; | |
9752 | fail: | |
9753 | return NULL; | |
9754 | } | |
9755 | ||
9756 | ||
c32bde28 | 9757 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9758 | PyObject *resultobj; |
9759 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9760 | PyObject * obj0 = 0 ; | |
9761 | char *kwnames[] = { | |
9762 | (char *) "self", NULL | |
9763 | }; | |
9764 | ||
9765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9768 | { |
9769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9770 | (arg1)->SetInsertionPointEnd(); | |
9771 | ||
9772 | wxPyEndAllowThreads(__tstate); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | Py_INCREF(Py_None); resultobj = Py_None; | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
9779 | } | |
9780 | ||
9781 | ||
c32bde28 | 9782 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9783 | PyObject *resultobj; |
9784 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9785 | long result; | |
9786 | PyObject * obj0 = 0 ; | |
9787 | char *kwnames[] = { | |
9788 | (char *) "self", NULL | |
9789 | }; | |
9790 | ||
9791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9794 | { |
9795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9796 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9797 | ||
9798 | wxPyEndAllowThreads(__tstate); | |
9799 | if (PyErr_Occurred()) SWIG_fail; | |
9800 | } | |
c32bde28 | 9801 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9802 | return resultobj; |
9803 | fail: | |
9804 | return NULL; | |
9805 | } | |
9806 | ||
9807 | ||
c32bde28 | 9808 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9809 | PyObject *resultobj; |
9810 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9811 | long result; | |
9812 | PyObject * obj0 = 0 ; | |
9813 | char *kwnames[] = { | |
9814 | (char *) "self", NULL | |
9815 | }; | |
9816 | ||
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9820 | { |
9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9822 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9823 | ||
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
c32bde28 | 9827 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
9828 | return resultobj; |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
c32bde28 | 9834 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9835 | PyObject *resultobj; |
9836 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9837 | long arg2 ; | |
9838 | long arg3 ; | |
9839 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9840 | PyObject * obj1 = 0 ; |
9841 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9842 | char *kwnames[] = { |
9843 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9844 | }; | |
9845 | ||
994141e6 | 9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9849 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9850 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9851 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9852 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9853 | { |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | (arg1)->SetSelection(arg2,arg3); | |
9856 | ||
9857 | wxPyEndAllowThreads(__tstate); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
9860 | Py_INCREF(Py_None); resultobj = Py_None; | |
9861 | return resultobj; | |
9862 | fail: | |
9863 | return NULL; | |
9864 | } | |
9865 | ||
9866 | ||
c32bde28 | 9867 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9868 | PyObject *resultobj; |
9869 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9870 | PyObject * obj0 = 0 ; | |
9871 | char *kwnames[] = { | |
9872 | (char *) "self", NULL | |
9873 | }; | |
9874 | ||
9875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9878 | { |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | (arg1)->SelectAll(); | |
9881 | ||
9882 | wxPyEndAllowThreads(__tstate); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
9885 | Py_INCREF(Py_None); resultobj = Py_None; | |
9886 | return resultobj; | |
9887 | fail: | |
9888 | return NULL; | |
9889 | } | |
9890 | ||
9891 | ||
c32bde28 | 9892 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9893 | PyObject *resultobj; |
9894 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9895 | bool arg2 ; | |
9896 | PyObject * obj0 = 0 ; | |
9897 | PyObject * obj1 = 0 ; | |
9898 | char *kwnames[] = { | |
9899 | (char *) "self",(char *) "editable", NULL | |
9900 | }; | |
9901 | ||
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9905 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 9906 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9907 | { |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | (arg1)->SetEditable(arg2); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | Py_INCREF(Py_None); resultobj = Py_None; | |
9915 | return resultobj; | |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
c32bde28 | 9921 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9922 | PyObject *resultobj; |
9923 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9924 | wxString *arg2 = 0 ; | |
ae8162c8 | 9925 | bool temp2 = false ; |
d14a1e28 RD |
9926 | PyObject * obj0 = 0 ; |
9927 | PyObject * obj1 = 0 ; | |
9928 | char *kwnames[] = { | |
9929 | (char *) "self",(char *) "text", NULL | |
9930 | }; | |
9931 | ||
9932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9935 | { |
9936 | arg2 = wxString_in_helper(obj1); | |
9937 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9938 | temp2 = true; |
d14a1e28 RD |
9939 | } |
9940 | { | |
9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9942 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9943 | ||
9944 | wxPyEndAllowThreads(__tstate); | |
9945 | if (PyErr_Occurred()) SWIG_fail; | |
9946 | } | |
9947 | Py_INCREF(Py_None); resultobj = Py_None; | |
9948 | { | |
9949 | if (temp2) | |
9950 | delete arg2; | |
9951 | } | |
9952 | return resultobj; | |
9953 | fail: | |
9954 | { | |
9955 | if (temp2) | |
9956 | delete arg2; | |
9957 | } | |
9958 | return NULL; | |
9959 | } | |
9960 | ||
9961 | ||
c32bde28 | 9962 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9963 | PyObject *resultobj; |
9964 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9965 | long arg2 ; | |
9966 | long arg3 ; | |
9967 | wxString result; | |
9968 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9969 | PyObject * obj1 = 0 ; |
9970 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9971 | char *kwnames[] = { |
9972 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9973 | }; | |
9974 | ||
994141e6 | 9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9978 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 9979 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9980 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 9981 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9982 | { |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | { | |
9990 | #if wxUSE_UNICODE | |
9991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9992 | #else | |
9993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9994 | #endif | |
9995 | } | |
9996 | return resultobj; | |
9997 | fail: | |
9998 | return NULL; | |
9999 | } | |
10000 | ||
10001 | ||
c32bde28 | 10002 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10003 | PyObject *resultobj; |
10004 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10005 | wxVisualAttributes result; | |
10006 | PyObject * obj0 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "variant", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10012 | if (obj0) { | |
c32bde28 | 10013 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10014 | if (PyErr_Occurred()) SWIG_fail; |
10015 | } | |
10016 | { | |
110da5b0 | 10017 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10019 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10022 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10023 | } |
10024 | { | |
10025 | wxVisualAttributes * resultptr; | |
10026 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10028 | } | |
10029 | return resultobj; | |
10030 | fail: | |
10031 | return NULL; | |
10032 | } | |
10033 | ||
10034 | ||
c32bde28 | 10035 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10036 | PyObject *obj; |
10037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10038 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
10039 | Py_INCREF(obj); | |
10040 | return Py_BuildValue((char *)""); | |
10041 | } | |
c32bde28 | 10042 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10043 | PyObject *resultobj; |
10044 | int arg1 ; | |
10045 | wxMouseEvent *arg2 = 0 ; | |
10046 | long arg3 ; | |
10047 | long arg4 ; | |
10048 | wxTextUrlEvent *result; | |
994141e6 | 10049 | PyObject * obj0 = 0 ; |
d14a1e28 | 10050 | PyObject * obj1 = 0 ; |
994141e6 RD |
10051 | PyObject * obj2 = 0 ; |
10052 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10053 | char *kwnames[] = { |
10054 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
10055 | }; | |
10056 | ||
994141e6 | 10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
c32bde28 | 10058 | arg1 = (int)SWIG_As_int(obj0); |
15afbcd0 RD |
10059 | if (PyErr_Occurred()) SWIG_fail; |
10060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
10061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10062 | SWIG_fail; | |
d14a1e28 | 10063 | if (arg2 == NULL) { |
15afbcd0 RD |
10064 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10065 | SWIG_fail; | |
994141e6 | 10066 | } |
c32bde28 | 10067 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 10068 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10069 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 10070 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10071 | { |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
15afbcd0 | 10078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
10079 | return resultobj; |
10080 | fail: | |
10081 | return NULL; | |
10082 | } | |
10083 | ||
10084 | ||
c32bde28 | 10085 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10086 | PyObject *resultobj; |
10087 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10088 | wxMouseEvent *result; | |
10089 | PyObject * obj0 = 0 ; | |
10090 | char *kwnames[] = { | |
10091 | (char *) "self", NULL | |
10092 | }; | |
10093 | ||
10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10097 | { |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | { | |
10100 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
10101 | result = (wxMouseEvent *) &_result_ref; | |
10102 | } | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
15afbcd0 | 10107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
10108 | return resultobj; |
10109 | fail: | |
10110 | return NULL; | |
10111 | } | |
10112 | ||
10113 | ||
c32bde28 | 10114 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10115 | PyObject *resultobj; |
10116 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10117 | long result; | |
10118 | PyObject * obj0 = 0 ; | |
10119 | char *kwnames[] = { | |
10120 | (char *) "self", NULL | |
10121 | }; | |
10122 | ||
10123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10126 | { |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10129 | ||
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
c32bde28 | 10133 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10134 | return resultobj; |
10135 | fail: | |
10136 | return NULL; | |
10137 | } | |
10138 | ||
10139 | ||
c32bde28 | 10140 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10141 | PyObject *resultobj; |
10142 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10143 | long result; | |
10144 | PyObject * obj0 = 0 ; | |
10145 | char *kwnames[] = { | |
10146 | (char *) "self", NULL | |
10147 | }; | |
10148 | ||
10149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10152 | { |
10153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10154 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10155 | ||
10156 | wxPyEndAllowThreads(__tstate); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
c32bde28 | 10159 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
10160 | return resultobj; |
10161 | fail: | |
10162 | return NULL; | |
10163 | } | |
10164 | ||
10165 | ||
c32bde28 | 10166 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10167 | PyObject *obj; |
10168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10169 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10170 | Py_INCREF(obj); | |
10171 | return Py_BuildValue((char *)""); | |
10172 | } | |
c32bde28 | 10173 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
10174 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
10175 | return 1; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10180 | PyObject *pyobj; | |
10181 | ||
10182 | { | |
10183 | #if wxUSE_UNICODE | |
10184 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10185 | #else | |
10186 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10187 | #endif | |
10188 | } | |
10189 | return pyobj; | |
10190 | } | |
10191 | ||
10192 | ||
c32bde28 | 10193 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10194 | PyObject *resultobj; |
10195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10196 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10197 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10198 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10199 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10200 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10201 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10202 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10203 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10204 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10205 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10206 | wxScrollBar *result; | |
10207 | wxPoint temp3 ; | |
10208 | wxSize temp4 ; | |
ae8162c8 | 10209 | bool temp7 = false ; |
d14a1e28 | 10210 | PyObject * obj0 = 0 ; |
994141e6 | 10211 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10212 | PyObject * obj2 = 0 ; |
10213 | PyObject * obj3 = 0 ; | |
994141e6 | 10214 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10215 | PyObject * obj5 = 0 ; |
10216 | PyObject * obj6 = 0 ; | |
10217 | char *kwnames[] = { | |
10218 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10219 | }; | |
10220 | ||
994141e6 | 10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10224 | if (obj1) { |
c32bde28 | 10225 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10226 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10227 | } |
d14a1e28 RD |
10228 | if (obj2) { |
10229 | { | |
10230 | arg3 = &temp3; | |
10231 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10232 | } | |
10233 | } | |
10234 | if (obj3) { | |
10235 | { | |
10236 | arg4 = &temp4; | |
10237 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10238 | } | |
10239 | } | |
994141e6 | 10240 | if (obj4) { |
c32bde28 | 10241 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10242 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10243 | } |
d14a1e28 | 10244 | if (obj5) { |
15afbcd0 RD |
10245 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10247 | SWIG_fail; | |
d14a1e28 | 10248 | if (arg6 == NULL) { |
15afbcd0 RD |
10249 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10250 | SWIG_fail; | |
d14a1e28 RD |
10251 | } |
10252 | } | |
10253 | if (obj6) { | |
10254 | { | |
10255 | arg7 = wxString_in_helper(obj6); | |
10256 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 10257 | temp7 = true; |
d14a1e28 RD |
10258 | } |
10259 | } | |
10260 | { | |
e3b71cb8 | 10261 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10263 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10264 | ||
10265 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10266 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10267 | } |
15afbcd0 | 10268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10269 | { |
10270 | if (temp7) | |
10271 | delete arg7; | |
10272 | } | |
10273 | return resultobj; | |
10274 | fail: | |
10275 | { | |
10276 | if (temp7) | |
10277 | delete arg7; | |
10278 | } | |
10279 | return NULL; | |
10280 | } | |
10281 | ||
10282 | ||
c32bde28 | 10283 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10284 | PyObject *resultobj; |
10285 | wxScrollBar *result; | |
10286 | char *kwnames[] = { | |
10287 | NULL | |
10288 | }; | |
10289 | ||
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10291 | { | |
e3b71cb8 | 10292 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10294 | result = (wxScrollBar *)new wxScrollBar(); | |
10295 | ||
10296 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10297 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10298 | } |
15afbcd0 | 10299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10300 | return resultobj; |
10301 | fail: | |
10302 | return NULL; | |
10303 | } | |
10304 | ||
10305 | ||
c32bde28 | 10306 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10307 | PyObject *resultobj; |
10308 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10309 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10310 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10311 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10312 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10313 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10314 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10315 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10316 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10317 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10318 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10319 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10320 | bool result; | |
10321 | wxPoint temp4 ; | |
10322 | wxSize temp5 ; | |
ae8162c8 | 10323 | bool temp8 = false ; |
d14a1e28 RD |
10324 | PyObject * obj0 = 0 ; |
10325 | PyObject * obj1 = 0 ; | |
994141e6 | 10326 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10327 | PyObject * obj3 = 0 ; |
10328 | PyObject * obj4 = 0 ; | |
994141e6 | 10329 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10330 | PyObject * obj6 = 0 ; |
10331 | PyObject * obj7 = 0 ; | |
10332 | char *kwnames[] = { | |
10333 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10334 | }; | |
10335 | ||
994141e6 | 10336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10341 | if (obj2) { |
c32bde28 | 10342 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10343 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10344 | } |
d14a1e28 RD |
10345 | if (obj3) { |
10346 | { | |
10347 | arg4 = &temp4; | |
10348 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10349 | } | |
10350 | } | |
10351 | if (obj4) { | |
10352 | { | |
10353 | arg5 = &temp5; | |
10354 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10355 | } | |
10356 | } | |
994141e6 | 10357 | if (obj5) { |
c32bde28 | 10358 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 10359 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10360 | } |
d14a1e28 | 10361 | if (obj6) { |
15afbcd0 RD |
10362 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10363 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10364 | SWIG_fail; | |
d14a1e28 | 10365 | if (arg7 == NULL) { |
15afbcd0 RD |
10366 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10367 | SWIG_fail; | |
d14a1e28 RD |
10368 | } |
10369 | } | |
10370 | if (obj7) { | |
10371 | { | |
10372 | arg8 = wxString_in_helper(obj7); | |
10373 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 10374 | temp8 = true; |
d14a1e28 RD |
10375 | } |
10376 | } | |
10377 | { | |
10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10379 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10380 | ||
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
4f89f6a3 RD |
10384 | { |
10385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10386 | } | |
d14a1e28 RD |
10387 | { |
10388 | if (temp8) | |
10389 | delete arg8; | |
10390 | } | |
10391 | return resultobj; | |
10392 | fail: | |
10393 | { | |
10394 | if (temp8) | |
10395 | delete arg8; | |
10396 | } | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
c32bde28 | 10401 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10402 | PyObject *resultobj; |
10403 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10404 | int result; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char *kwnames[] = { | |
10407 | (char *) "self", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10413 | { |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
c32bde28 | 10420 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10421 | return resultobj; |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
c32bde28 | 10427 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10428 | PyObject *resultobj; |
10429 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10430 | int result; | |
10431 | PyObject * obj0 = 0 ; | |
10432 | char *kwnames[] = { | |
10433 | (char *) "self", NULL | |
10434 | }; | |
10435 | ||
10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10439 | { |
10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10441 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10442 | ||
10443 | wxPyEndAllowThreads(__tstate); | |
10444 | if (PyErr_Occurred()) SWIG_fail; | |
10445 | } | |
c32bde28 | 10446 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10447 | return resultobj; |
10448 | fail: | |
10449 | return NULL; | |
10450 | } | |
10451 | ||
10452 | ||
c32bde28 | 10453 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10454 | PyObject *resultobj; |
10455 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10456 | int result; | |
10457 | PyObject * obj0 = 0 ; | |
10458 | char *kwnames[] = { | |
10459 | (char *) "self", NULL | |
10460 | }; | |
10461 | ||
10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10465 | { |
10466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10467 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10468 | ||
10469 | wxPyEndAllowThreads(__tstate); | |
10470 | if (PyErr_Occurred()) SWIG_fail; | |
10471 | } | |
c32bde28 | 10472 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10473 | return resultobj; |
10474 | fail: | |
10475 | return NULL; | |
10476 | } | |
10477 | ||
10478 | ||
c32bde28 | 10479 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10480 | PyObject *resultobj; |
10481 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10482 | int result; | |
10483 | PyObject * obj0 = 0 ; | |
10484 | char *kwnames[] = { | |
10485 | (char *) "self", NULL | |
10486 | }; | |
10487 | ||
10488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10491 | { |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10493 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10494 | ||
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | } | |
c32bde28 | 10498 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10499 | return resultobj; |
10500 | fail: | |
10501 | return NULL; | |
10502 | } | |
10503 | ||
10504 | ||
c32bde28 | 10505 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10506 | PyObject *resultobj; |
10507 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10508 | bool result; | |
10509 | PyObject * obj0 = 0 ; | |
10510 | char *kwnames[] = { | |
10511 | (char *) "self", NULL | |
10512 | }; | |
10513 | ||
10514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10517 | { |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10520 | ||
10521 | wxPyEndAllowThreads(__tstate); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
4f89f6a3 RD |
10524 | { |
10525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10526 | } | |
d14a1e28 RD |
10527 | return resultobj; |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
c32bde28 | 10533 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10534 | PyObject *resultobj; |
10535 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10536 | int arg2 ; | |
10537 | PyObject * obj0 = 0 ; | |
994141e6 | 10538 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10539 | char *kwnames[] = { |
10540 | (char *) "self",(char *) "viewStart", NULL | |
10541 | }; | |
10542 | ||
994141e6 | 10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10546 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10547 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10548 | { |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | (arg1)->SetThumbPosition(arg2); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | Py_INCREF(Py_None); resultobj = Py_None; | |
10556 | return resultobj; | |
10557 | fail: | |
10558 | return NULL; | |
10559 | } | |
10560 | ||
10561 | ||
c32bde28 | 10562 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10563 | PyObject *resultobj; |
10564 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10565 | int arg2 ; | |
10566 | int arg3 ; | |
10567 | int arg4 ; | |
10568 | int arg5 ; | |
ae8162c8 | 10569 | bool arg6 = (bool) true ; |
d14a1e28 | 10570 | PyObject * obj0 = 0 ; |
994141e6 RD |
10571 | PyObject * obj1 = 0 ; |
10572 | PyObject * obj2 = 0 ; | |
10573 | PyObject * obj3 = 0 ; | |
10574 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10575 | PyObject * obj5 = 0 ; |
10576 | char *kwnames[] = { | |
10577 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10578 | }; | |
10579 | ||
994141e6 | 10580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10583 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10584 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10585 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10586 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10587 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 10588 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10589 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 10590 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10591 | if (obj5) { |
c32bde28 | 10592 | arg6 = (bool)SWIG_As_bool(obj5); |
15afbcd0 | 10593 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10594 | } |
10595 | { | |
10596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10597 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10598 | ||
10599 | wxPyEndAllowThreads(__tstate); | |
10600 | if (PyErr_Occurred()) SWIG_fail; | |
10601 | } | |
10602 | Py_INCREF(Py_None); resultobj = Py_None; | |
10603 | return resultobj; | |
10604 | fail: | |
10605 | return NULL; | |
10606 | } | |
10607 | ||
10608 | ||
c32bde28 | 10609 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
10610 | PyObject *resultobj; |
10611 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10612 | wxVisualAttributes result; | |
10613 | PyObject * obj0 = 0 ; | |
10614 | char *kwnames[] = { | |
10615 | (char *) "variant", NULL | |
10616 | }; | |
10617 | ||
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10619 | if (obj0) { | |
c32bde28 | 10620 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
10621 | if (PyErr_Occurred()) SWIG_fail; |
10622 | } | |
10623 | { | |
110da5b0 | 10624 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10626 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10629 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10630 | } |
10631 | { | |
10632 | wxVisualAttributes * resultptr; | |
10633 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10635 | } | |
10636 | return resultobj; | |
10637 | fail: | |
10638 | return NULL; | |
10639 | } | |
10640 | ||
10641 | ||
c32bde28 | 10642 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10643 | PyObject *obj; |
10644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10645 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10646 | Py_INCREF(obj); | |
10647 | return Py_BuildValue((char *)""); | |
10648 | } | |
c32bde28 | 10649 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
10650 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10651 | return 1; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10656 | PyObject *pyobj; | |
10657 | ||
10658 | { | |
10659 | #if wxUSE_UNICODE | |
10660 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10661 | #else | |
10662 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10663 | #endif | |
10664 | } | |
10665 | return pyobj; | |
10666 | } | |
10667 | ||
10668 | ||
c32bde28 | 10669 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
10670 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
10671 | return 1; | |
10672 | } | |
10673 | ||
10674 | ||
10675 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10676 | PyObject *pyobj; | |
10677 | ||
10678 | { | |
10679 | #if wxUSE_UNICODE | |
10680 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10681 | #else | |
10682 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10683 | #endif | |
10684 | } | |
10685 | return pyobj; | |
10686 | } | |
10687 | ||
10688 | ||
c32bde28 | 10689 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10690 | PyObject *resultobj; |
10691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10692 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10693 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10694 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10695 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10696 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10697 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10698 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10699 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10700 | wxSpinButton *result; | |
10701 | wxPoint temp3 ; | |
10702 | wxSize temp4 ; | |
ae8162c8 | 10703 | bool temp6 = false ; |
d14a1e28 | 10704 | PyObject * obj0 = 0 ; |
994141e6 | 10705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10706 | PyObject * obj2 = 0 ; |
10707 | PyObject * obj3 = 0 ; | |
994141e6 | 10708 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10709 | PyObject * obj5 = 0 ; |
10710 | char *kwnames[] = { | |
10711 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10712 | }; | |
10713 | ||
994141e6 | 10714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10717 | if (obj1) { |
c32bde28 | 10718 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10719 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10720 | } |
d14a1e28 RD |
10721 | if (obj2) { |
10722 | { | |
10723 | arg3 = &temp3; | |
10724 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10725 | } | |
10726 | } | |
10727 | if (obj3) { | |
10728 | { | |
10729 | arg4 = &temp4; | |
10730 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10731 | } | |
10732 | } | |
994141e6 | 10733 | if (obj4) { |
c32bde28 | 10734 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 10735 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10736 | } |
d14a1e28 RD |
10737 | if (obj5) { |
10738 | { | |
10739 | arg6 = wxString_in_helper(obj5); | |
10740 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 10741 | temp6 = true; |
d14a1e28 RD |
10742 | } |
10743 | } | |
10744 | { | |
e3b71cb8 | 10745 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10747 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10750 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10751 | } |
15afbcd0 | 10752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10753 | { |
10754 | if (temp6) | |
10755 | delete arg6; | |
10756 | } | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | { | |
10760 | if (temp6) | |
10761 | delete arg6; | |
10762 | } | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
c32bde28 | 10767 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10768 | PyObject *resultobj; |
10769 | wxSpinButton *result; | |
10770 | char *kwnames[] = { | |
10771 | NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10775 | { | |
e3b71cb8 | 10776 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10778 | result = (wxSpinButton *)new wxSpinButton(); | |
10779 | ||
10780 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10781 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10782 | } |
15afbcd0 | 10783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10784 | return resultobj; |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
c32bde28 | 10790 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10791 | PyObject *resultobj; |
10792 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10793 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10794 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10795 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10796 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10797 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10798 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10799 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10800 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10801 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10802 | bool result; | |
10803 | wxPoint temp4 ; | |
10804 | wxSize temp5 ; | |
ae8162c8 | 10805 | bool temp7 = false ; |
d14a1e28 RD |
10806 | PyObject * obj0 = 0 ; |
10807 | PyObject * obj1 = 0 ; | |
994141e6 | 10808 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10809 | PyObject * obj3 = 0 ; |
10810 | PyObject * obj4 = 0 ; | |
994141e6 | 10811 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10812 | PyObject * obj6 = 0 ; |
10813 | char *kwnames[] = { | |
10814 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10815 | }; | |
10816 | ||
994141e6 | 10817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10822 | if (obj2) { |
c32bde28 | 10823 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 10824 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10825 | } |
d14a1e28 RD |
10826 | if (obj3) { |
10827 | { | |
10828 | arg4 = &temp4; | |
10829 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10830 | } | |
10831 | } | |
10832 | if (obj4) { | |
10833 | { | |
10834 | arg5 = &temp5; | |
10835 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10836 | } | |
10837 | } | |
994141e6 | 10838 | if (obj5) { |
c32bde28 | 10839 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 10840 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 10841 | } |
d14a1e28 RD |
10842 | if (obj6) { |
10843 | { | |
10844 | arg7 = wxString_in_helper(obj6); | |
10845 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 10846 | temp7 = true; |
d14a1e28 RD |
10847 | } |
10848 | } | |
10849 | { | |
10850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10851 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10852 | ||
10853 | wxPyEndAllowThreads(__tstate); | |
10854 | if (PyErr_Occurred()) SWIG_fail; | |
10855 | } | |
4f89f6a3 RD |
10856 | { |
10857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10858 | } | |
d14a1e28 RD |
10859 | { |
10860 | if (temp7) | |
10861 | delete arg7; | |
10862 | } | |
10863 | return resultobj; | |
10864 | fail: | |
10865 | { | |
10866 | if (temp7) | |
10867 | delete arg7; | |
10868 | } | |
10869 | return NULL; | |
10870 | } | |
10871 | ||
10872 | ||
c32bde28 | 10873 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10874 | PyObject *resultobj; |
10875 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10876 | int result; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | char *kwnames[] = { | |
10879 | (char *) "self", NULL | |
10880 | }; | |
10881 | ||
10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10885 | { |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
c32bde28 | 10892 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10893 | return resultobj; |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
c32bde28 | 10899 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10900 | PyObject *resultobj; |
10901 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10902 | int result; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10911 | { |
10912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10913 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10914 | ||
10915 | wxPyEndAllowThreads(__tstate); | |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
10917 | } | |
c32bde28 | 10918 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10919 | return resultobj; |
10920 | fail: | |
10921 | return NULL; | |
10922 | } | |
10923 | ||
10924 | ||
c32bde28 | 10925 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10926 | PyObject *resultobj; |
10927 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10928 | int result; | |
10929 | PyObject * obj0 = 0 ; | |
10930 | char *kwnames[] = { | |
10931 | (char *) "self", NULL | |
10932 | }; | |
10933 | ||
10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10937 | { |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
c32bde28 | 10944 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10945 | return resultobj; |
10946 | fail: | |
10947 | return NULL; | |
10948 | } | |
10949 | ||
10950 | ||
c32bde28 | 10951 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10952 | PyObject *resultobj; |
10953 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10954 | int arg2 ; | |
10955 | PyObject * obj0 = 0 ; | |
994141e6 | 10956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10957 | char *kwnames[] = { |
10958 | (char *) "self",(char *) "val", NULL | |
10959 | }; | |
10960 | ||
994141e6 | 10961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10964 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10965 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10966 | { |
10967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10968 | (arg1)->SetValue(arg2); | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
10972 | } | |
10973 | Py_INCREF(Py_None); resultobj = Py_None; | |
10974 | return resultobj; | |
10975 | fail: | |
10976 | return NULL; | |
10977 | } | |
10978 | ||
10979 | ||
c32bde28 | 10980 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10981 | PyObject *resultobj; |
10982 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10983 | int arg2 ; | |
10984 | PyObject * obj0 = 0 ; | |
994141e6 | 10985 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10986 | char *kwnames[] = { |
10987 | (char *) "self",(char *) "minVal", NULL | |
10988 | }; | |
10989 | ||
994141e6 | 10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10993 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 10994 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10995 | { |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | (arg1)->SetMin(arg2); | |
10998 | ||
10999 | wxPyEndAllowThreads(__tstate); | |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | Py_INCREF(Py_None); resultobj = Py_None; | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
c32bde28 | 11009 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11010 | PyObject *resultobj; |
11011 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11012 | int arg2 ; | |
11013 | PyObject * obj0 = 0 ; | |
994141e6 | 11014 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11015 | char *kwnames[] = { |
11016 | (char *) "self",(char *) "maxVal", NULL | |
11017 | }; | |
11018 | ||
994141e6 | 11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11022 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11023 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11024 | { |
11025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11026 | (arg1)->SetMax(arg2); | |
11027 | ||
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
11031 | Py_INCREF(Py_None); resultobj = Py_None; | |
11032 | return resultobj; | |
11033 | fail: | |
11034 | return NULL; | |
11035 | } | |
11036 | ||
11037 | ||
c32bde28 | 11038 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11039 | PyObject *resultobj; |
11040 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11041 | int arg2 ; | |
11042 | int arg3 ; | |
11043 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11044 | PyObject * obj1 = 0 ; |
11045 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11046 | char *kwnames[] = { |
11047 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11048 | }; | |
11049 | ||
994141e6 | 11050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
11052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11053 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11054 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11055 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11056 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11057 | { |
15afbcd0 RD |
11058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11059 | (arg1)->SetRange(arg2,arg3); | |
11060 | ||
11061 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
11062 | if (PyErr_Occurred()) SWIG_fail; |
11063 | } | |
22bfe96c RD |
11064 | Py_INCREF(Py_None); resultobj = Py_None; |
11065 | return resultobj; | |
11066 | fail: | |
11067 | return NULL; | |
11068 | } | |
11069 | ||
11070 | ||
c32bde28 | 11071 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11072 | PyObject *resultobj; |
11073 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
11074 | bool result; | |
11075 | PyObject * obj0 = 0 ; | |
11076 | char *kwnames[] = { | |
11077 | (char *) "self", NULL | |
11078 | }; | |
11079 | ||
11080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
11081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
11082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | { | |
11091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11092 | } | |
d14a1e28 RD |
11093 | return resultobj; |
11094 | fail: | |
11095 | return NULL; | |
11096 | } | |
11097 | ||
11098 | ||
c32bde28 | 11099 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11100 | PyObject *resultobj; |
22bfe96c RD |
11101 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
11102 | wxVisualAttributes result; | |
d14a1e28 RD |
11103 | PyObject * obj0 = 0 ; |
11104 | char *kwnames[] = { | |
22bfe96c | 11105 | (char *) "variant", NULL |
d14a1e28 RD |
11106 | }; |
11107 | ||
22bfe96c RD |
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11109 | if (obj0) { | |
c32bde28 | 11110 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11111 | if (PyErr_Occurred()) SWIG_fail; |
11112 | } | |
d14a1e28 | 11113 | { |
110da5b0 | 11114 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 11116 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
11117 | |
11118 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11119 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11120 | } |
4f89f6a3 | 11121 | { |
22bfe96c RD |
11122 | wxVisualAttributes * resultptr; |
11123 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11124 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 11125 | } |
d14a1e28 RD |
11126 | return resultobj; |
11127 | fail: | |
11128 | return NULL; | |
11129 | } | |
11130 | ||
11131 | ||
c32bde28 | 11132 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11133 | PyObject *obj; |
11134 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11135 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11136 | Py_INCREF(obj); | |
11137 | return Py_BuildValue((char *)""); | |
11138 | } | |
c32bde28 | 11139 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11140 | PyObject *resultobj; |
11141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11142 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11143 | wxString const &arg3_defvalue = wxPyEmptyString ; |
11144 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11145 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11146 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11147 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11148 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11149 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11150 | int arg7 = (int) 0 ; | |
11151 | int arg8 = (int) 100 ; | |
11152 | int arg9 = (int) 0 ; | |
11153 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11154 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11155 | wxSpinCtrl *result; | |
ae8162c8 | 11156 | bool temp3 = false ; |
d14a1e28 RD |
11157 | wxPoint temp4 ; |
11158 | wxSize temp5 ; | |
ae8162c8 | 11159 | bool temp10 = false ; |
d14a1e28 | 11160 | PyObject * obj0 = 0 ; |
994141e6 | 11161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11162 | PyObject * obj2 = 0 ; |
11163 | PyObject * obj3 = 0 ; | |
11164 | PyObject * obj4 = 0 ; | |
994141e6 RD |
11165 | PyObject * obj5 = 0 ; |
11166 | PyObject * obj6 = 0 ; | |
11167 | PyObject * obj7 = 0 ; | |
11168 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11169 | PyObject * obj9 = 0 ; |
11170 | char *kwnames[] = { | |
11171 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11172 | }; | |
11173 | ||
994141e6 | 11174 | 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 |
11175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11177 | if (obj1) { |
c32bde28 | 11178 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11179 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11180 | } |
11181 | if (obj2) { | |
d14a1e28 RD |
11182 | { |
11183 | arg3 = wxString_in_helper(obj2); | |
11184 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11185 | temp3 = true; |
d14a1e28 RD |
11186 | } |
11187 | } | |
11188 | if (obj3) { | |
11189 | { | |
11190 | arg4 = &temp4; | |
11191 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11192 | } | |
11193 | } | |
11194 | if (obj4) { | |
11195 | { | |
11196 | arg5 = &temp5; | |
11197 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11198 | } | |
11199 | } | |
994141e6 | 11200 | if (obj5) { |
c32bde28 | 11201 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 11202 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11203 | } |
11204 | if (obj6) { | |
c32bde28 | 11205 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11206 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11207 | } |
11208 | if (obj7) { | |
c32bde28 | 11209 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11210 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11211 | } |
11212 | if (obj8) { | |
c32bde28 | 11213 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11214 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11215 | } |
d14a1e28 RD |
11216 | if (obj9) { |
11217 | { | |
11218 | arg10 = wxString_in_helper(obj9); | |
11219 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 11220 | temp10 = true; |
d14a1e28 RD |
11221 | } |
11222 | } | |
11223 | { | |
e3b71cb8 | 11224 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11226 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11227 | ||
11228 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11229 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11230 | } |
15afbcd0 | 11231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11232 | { |
11233 | if (temp3) | |
11234 | delete arg3; | |
11235 | } | |
11236 | { | |
11237 | if (temp10) | |
11238 | delete arg10; | |
11239 | } | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | { | |
11243 | if (temp3) | |
11244 | delete arg3; | |
11245 | } | |
11246 | { | |
11247 | if (temp10) | |
11248 | delete arg10; | |
11249 | } | |
11250 | return NULL; | |
11251 | } | |
11252 | ||
11253 | ||
c32bde28 | 11254 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11255 | PyObject *resultobj; |
11256 | wxSpinCtrl *result; | |
11257 | char *kwnames[] = { | |
11258 | NULL | |
11259 | }; | |
11260 | ||
11261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11262 | { | |
e3b71cb8 | 11263 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11265 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11266 | ||
11267 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11268 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11269 | } |
15afbcd0 | 11270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11271 | return resultobj; |
11272 | fail: | |
11273 | return NULL; | |
11274 | } | |
11275 | ||
11276 | ||
c32bde28 | 11277 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11278 | PyObject *resultobj; |
11279 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11280 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11281 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11282 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11283 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11284 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11285 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11286 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11287 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11288 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11289 | int arg8 = (int) 0 ; | |
11290 | int arg9 = (int) 100 ; | |
11291 | int arg10 = (int) 0 ; | |
11292 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11293 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11294 | bool result; | |
ae8162c8 | 11295 | bool temp4 = false ; |
d14a1e28 RD |
11296 | wxPoint temp5 ; |
11297 | wxSize temp6 ; | |
ae8162c8 | 11298 | bool temp11 = false ; |
d14a1e28 RD |
11299 | PyObject * obj0 = 0 ; |
11300 | PyObject * obj1 = 0 ; | |
994141e6 | 11301 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11302 | PyObject * obj3 = 0 ; |
11303 | PyObject * obj4 = 0 ; | |
11304 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11305 | PyObject * obj6 = 0 ; |
11306 | PyObject * obj7 = 0 ; | |
11307 | PyObject * obj8 = 0 ; | |
11308 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11309 | PyObject * obj10 = 0 ; |
11310 | char *kwnames[] = { | |
11311 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11312 | }; | |
11313 | ||
994141e6 | 11314 | 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 |
11315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11319 | if (obj2) { |
c32bde28 | 11320 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11321 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11322 | } |
d14a1e28 RD |
11323 | if (obj3) { |
11324 | { | |
11325 | arg4 = wxString_in_helper(obj3); | |
11326 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 11327 | temp4 = true; |
d14a1e28 RD |
11328 | } |
11329 | } | |
11330 | if (obj4) { | |
11331 | { | |
11332 | arg5 = &temp5; | |
11333 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11334 | } | |
11335 | } | |
11336 | if (obj5) { | |
11337 | { | |
11338 | arg6 = &temp6; | |
11339 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11340 | } | |
11341 | } | |
994141e6 | 11342 | if (obj6) { |
c32bde28 | 11343 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 11344 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11345 | } |
11346 | if (obj7) { | |
c32bde28 | 11347 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 11348 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11349 | } |
11350 | if (obj8) { | |
c32bde28 | 11351 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 11352 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11353 | } |
11354 | if (obj9) { | |
c32bde28 | 11355 | arg10 = (int)SWIG_As_int(obj9); |
15afbcd0 | 11356 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11357 | } |
d14a1e28 RD |
11358 | if (obj10) { |
11359 | { | |
11360 | arg11 = wxString_in_helper(obj10); | |
11361 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 11362 | temp11 = true; |
d14a1e28 RD |
11363 | } |
11364 | } | |
11365 | { | |
11366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11367 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11368 | ||
11369 | wxPyEndAllowThreads(__tstate); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
4f89f6a3 RD |
11372 | { |
11373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11374 | } | |
d14a1e28 RD |
11375 | { |
11376 | if (temp4) | |
11377 | delete arg4; | |
11378 | } | |
11379 | { | |
11380 | if (temp11) | |
11381 | delete arg11; | |
11382 | } | |
11383 | return resultobj; | |
11384 | fail: | |
11385 | { | |
11386 | if (temp4) | |
11387 | delete arg4; | |
11388 | } | |
11389 | { | |
11390 | if (temp11) | |
11391 | delete arg11; | |
11392 | } | |
11393 | return NULL; | |
11394 | } | |
11395 | ||
11396 | ||
c32bde28 | 11397 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11398 | PyObject *resultobj; |
11399 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11400 | int result; | |
11401 | PyObject * obj0 = 0 ; | |
11402 | char *kwnames[] = { | |
11403 | (char *) "self", NULL | |
11404 | }; | |
11405 | ||
11406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11409 | { |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
c32bde28 | 11416 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11417 | return resultobj; |
11418 | fail: | |
11419 | return NULL; | |
11420 | } | |
11421 | ||
11422 | ||
c32bde28 | 11423 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11424 | PyObject *resultobj; |
11425 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11426 | int arg2 ; | |
11427 | PyObject * obj0 = 0 ; | |
994141e6 | 11428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11429 | char *kwnames[] = { |
11430 | (char *) "self",(char *) "value", NULL | |
11431 | }; | |
11432 | ||
994141e6 | 11433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11436 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11437 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11438 | { |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11440 | (arg1)->SetValue(arg2); | |
11441 | ||
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
11445 | Py_INCREF(Py_None); resultobj = Py_None; | |
11446 | return resultobj; | |
11447 | fail: | |
11448 | return NULL; | |
11449 | } | |
11450 | ||
11451 | ||
c32bde28 | 11452 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11453 | PyObject *resultobj; |
11454 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11455 | wxString *arg2 = 0 ; | |
ae8162c8 | 11456 | bool temp2 = false ; |
d14a1e28 RD |
11457 | PyObject * obj0 = 0 ; |
11458 | PyObject * obj1 = 0 ; | |
11459 | char *kwnames[] = { | |
11460 | (char *) "self",(char *) "text", NULL | |
11461 | }; | |
11462 | ||
11463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11466 | { |
11467 | arg2 = wxString_in_helper(obj1); | |
11468 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11469 | temp2 = true; |
d14a1e28 RD |
11470 | } |
11471 | { | |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11473 | (arg1)->SetValue((wxString const &)*arg2); | |
11474 | ||
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | Py_INCREF(Py_None); resultobj = Py_None; | |
11479 | { | |
11480 | if (temp2) | |
11481 | delete arg2; | |
11482 | } | |
11483 | return resultobj; | |
11484 | fail: | |
11485 | { | |
11486 | if (temp2) | |
11487 | delete arg2; | |
11488 | } | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
c32bde28 | 11493 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11494 | PyObject *resultobj; |
11495 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11496 | int arg2 ; | |
11497 | int arg3 ; | |
11498 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11499 | PyObject * obj1 = 0 ; |
11500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11501 | char *kwnames[] = { |
11502 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11503 | }; | |
11504 | ||
994141e6 | 11505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11508 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11509 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11510 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 11511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11512 | { |
11513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11514 | (arg1)->SetRange(arg2,arg3); | |
11515 | ||
11516 | wxPyEndAllowThreads(__tstate); | |
11517 | if (PyErr_Occurred()) SWIG_fail; | |
11518 | } | |
11519 | Py_INCREF(Py_None); resultobj = Py_None; | |
11520 | return resultobj; | |
11521 | fail: | |
11522 | return NULL; | |
11523 | } | |
11524 | ||
11525 | ||
c32bde28 | 11526 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11527 | PyObject *resultobj; |
11528 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11529 | int result; | |
11530 | PyObject * obj0 = 0 ; | |
11531 | char *kwnames[] = { | |
11532 | (char *) "self", NULL | |
11533 | }; | |
11534 | ||
11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11538 | { |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11540 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11541 | ||
11542 | wxPyEndAllowThreads(__tstate); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
c32bde28 | 11545 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11546 | return resultobj; |
11547 | fail: | |
11548 | return NULL; | |
11549 | } | |
11550 | ||
11551 | ||
c32bde28 | 11552 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11553 | PyObject *resultobj; |
11554 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11555 | int result; | |
11556 | PyObject * obj0 = 0 ; | |
11557 | char *kwnames[] = { | |
11558 | (char *) "self", NULL | |
11559 | }; | |
11560 | ||
11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11564 | { |
11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11566 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11567 | ||
11568 | wxPyEndAllowThreads(__tstate); | |
11569 | if (PyErr_Occurred()) SWIG_fail; | |
11570 | } | |
c32bde28 | 11571 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11572 | return resultobj; |
11573 | fail: | |
11574 | return NULL; | |
11575 | } | |
11576 | ||
11577 | ||
c32bde28 | 11578 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11579 | PyObject *resultobj; |
11580 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11581 | long arg2 ; | |
11582 | long arg3 ; | |
11583 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11584 | PyObject * obj1 = 0 ; |
11585 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11586 | char *kwnames[] = { |
11587 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11588 | }; | |
11589 | ||
994141e6 | 11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11593 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 11594 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11595 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 11596 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11597 | { |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11599 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11600 | |
11601 | wxPyEndAllowThreads(__tstate); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | Py_INCREF(Py_None); resultobj = Py_None; | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
c32bde28 | 11611 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
11612 | PyObject *resultobj; |
11613 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11614 | wxVisualAttributes result; | |
11615 | PyObject * obj0 = 0 ; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "variant", NULL | |
11618 | }; | |
11619 | ||
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11621 | if (obj0) { | |
c32bde28 | 11622 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
11623 | if (PyErr_Occurred()) SWIG_fail; |
11624 | } | |
11625 | { | |
110da5b0 | 11626 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11628 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11631 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11632 | } |
11633 | { | |
11634 | wxVisualAttributes * resultptr; | |
11635 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11637 | } | |
11638 | return resultobj; | |
11639 | fail: | |
11640 | return NULL; | |
11641 | } | |
11642 | ||
11643 | ||
c32bde28 | 11644 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11645 | PyObject *obj; |
11646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11647 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11648 | Py_INCREF(obj); | |
11649 | return Py_BuildValue((char *)""); | |
11650 | } | |
c32bde28 | 11651 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11652 | PyObject *resultobj; |
11653 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11654 | int arg2 = (int) 0 ; | |
11655 | wxSpinEvent *result; | |
994141e6 RD |
11656 | PyObject * obj0 = 0 ; |
11657 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11658 | char *kwnames[] = { |
11659 | (char *) "commandType",(char *) "winid", NULL | |
11660 | }; | |
11661 | ||
994141e6 RD |
11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11663 | if (obj0) { | |
c32bde28 | 11664 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 11665 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11666 | } |
11667 | if (obj1) { | |
c32bde28 | 11668 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11669 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11670 | } |
d1e20054 RD |
11671 | { |
11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11673 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11674 | ||
11675 | wxPyEndAllowThreads(__tstate); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | } | |
15afbcd0 | 11678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11679 | return resultobj; |
11680 | fail: | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
c32bde28 | 11685 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11686 | PyObject *resultobj; |
11687 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11688 | int result; | |
11689 | PyObject * obj0 = 0 ; | |
11690 | char *kwnames[] = { | |
11691 | (char *) "self", NULL | |
11692 | }; | |
11693 | ||
11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11697 | { |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
c32bde28 | 11704 | resultobj = SWIG_From_int((int)result); |
d1e20054 RD |
11705 | return resultobj; |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
c32bde28 | 11711 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
11712 | PyObject *resultobj; |
11713 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11714 | int arg2 ; | |
11715 | PyObject * obj0 = 0 ; | |
994141e6 | 11716 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11717 | char *kwnames[] = { |
11718 | (char *) "self",(char *) "pos", NULL | |
11719 | }; | |
11720 | ||
994141e6 | 11721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11724 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 11725 | if (PyErr_Occurred()) SWIG_fail; |
d1e20054 RD |
11726 | { |
11727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11728 | (arg1)->SetPosition(arg2); | |
11729 | ||
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
11733 | Py_INCREF(Py_None); resultobj = Py_None; | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | return NULL; | |
11737 | } | |
11738 | ||
11739 | ||
c32bde28 | 11740 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
11741 | PyObject *obj; |
11742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11743 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11744 | Py_INCREF(obj); | |
11745 | return Py_BuildValue((char *)""); | |
11746 | } | |
c32bde28 | 11747 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
11748 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
11749 | return 1; | |
11750 | } | |
11751 | ||
11752 | ||
11753 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11754 | PyObject *pyobj; | |
11755 | ||
11756 | { | |
11757 | #if wxUSE_UNICODE | |
11758 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11759 | #else | |
11760 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11761 | #endif | |
11762 | } | |
11763 | return pyobj; | |
11764 | } | |
11765 | ||
11766 | ||
c32bde28 | 11767 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
11768 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11769 | return 1; | |
11770 | } | |
11771 | ||
11772 | ||
11773 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11774 | PyObject *pyobj; | |
11775 | ||
11776 | { | |
11777 | #if wxUSE_UNICODE | |
11778 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11779 | #else | |
11780 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11781 | #endif | |
11782 | } | |
11783 | return pyobj; | |
11784 | } | |
11785 | ||
11786 | ||
c32bde28 | 11787 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11788 | PyObject *resultobj; |
11789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11790 | int arg2 = (int) -1 ; |
11791 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11792 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
11793 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11794 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11795 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11796 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11797 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11798 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11799 | int arg7 = (int) 0 ; | |
11800 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11801 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11802 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11803 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11804 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11805 | wxRadioBox *result; |
ae8162c8 | 11806 | bool temp3 = false ; |
d14a1e28 RD |
11807 | wxPoint temp4 ; |
11808 | wxSize temp5 ; | |
ae8162c8 RD |
11809 | bool temp6 = false ; |
11810 | bool temp10 = false ; | |
d14a1e28 | 11811 | PyObject * obj0 = 0 ; |
994141e6 | 11812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11813 | PyObject * obj2 = 0 ; |
11814 | PyObject * obj3 = 0 ; | |
11815 | PyObject * obj4 = 0 ; | |
11816 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11817 | PyObject * obj6 = 0 ; |
11818 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11819 | PyObject * obj8 = 0 ; |
11820 | PyObject * obj9 = 0 ; | |
11821 | char *kwnames[] = { | |
994141e6 | 11822 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11823 | }; |
11824 | ||
248ed943 | 11825 | 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 |
11826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 11828 | if (obj1) { |
c32bde28 | 11829 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
11830 | if (PyErr_Occurred()) SWIG_fail; |
11831 | } | |
11832 | if (obj2) { | |
11833 | { | |
11834 | arg3 = wxString_in_helper(obj2); | |
11835 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11836 | temp3 = true; |
248ed943 | 11837 | } |
d14a1e28 RD |
11838 | } |
11839 | if (obj3) { | |
11840 | { | |
11841 | arg4 = &temp4; | |
11842 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11843 | } | |
11844 | } | |
11845 | if (obj4) { | |
11846 | { | |
11847 | arg5 = &temp5; | |
11848 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11849 | } | |
11850 | } | |
11851 | if (obj5) { | |
11852 | { | |
4d5c3d91 RD |
11853 | if (! PySequence_Check(obj5)) { |
11854 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11855 | SWIG_fail; | |
11856 | } | |
11857 | arg6 = new wxArrayString; | |
ae8162c8 | 11858 | temp6 = true; |
4d5c3d91 RD |
11859 | int i, len=PySequence_Length(obj5); |
11860 | for (i=0; i<len; i++) { | |
11861 | PyObject* item = PySequence_GetItem(obj5, i); | |
11862 | #if wxUSE_UNICODE | |
11863 | PyObject* str = PyObject_Unicode(item); | |
11864 | #else | |
11865 | PyObject* str = PyObject_Str(item); | |
11866 | #endif | |
74a57fcd | 11867 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11868 | arg6->Add(Py2wxString(str)); |
11869 | Py_DECREF(item); | |
11870 | Py_DECREF(str); | |
11871 | } | |
d14a1e28 RD |
11872 | } |
11873 | } | |
994141e6 | 11874 | if (obj6) { |
c32bde28 | 11875 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 11876 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
11877 | } |
11878 | if (obj7) { | |
c32bde28 | 11879 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 11880 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 11881 | } |
d14a1e28 | 11882 | if (obj8) { |
15afbcd0 RD |
11883 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11884 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11885 | SWIG_fail; | |
4d5c3d91 | 11886 | if (arg9 == NULL) { |
15afbcd0 RD |
11887 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11888 | SWIG_fail; | |
d14a1e28 RD |
11889 | } |
11890 | } | |
11891 | if (obj9) { | |
11892 | { | |
4d5c3d91 RD |
11893 | arg10 = wxString_in_helper(obj9); |
11894 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 11895 | temp10 = true; |
d14a1e28 RD |
11896 | } |
11897 | } | |
11898 | { | |
e3b71cb8 | 11899 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 11901 | 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 |
11902 | |
11903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11904 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11905 | } |
15afbcd0 | 11906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11907 | { |
11908 | if (temp3) | |
11909 | delete arg3; | |
11910 | } | |
11911 | { | |
3adfb63b | 11912 | if (temp6) delete arg6; |
d14a1e28 RD |
11913 | } |
11914 | { | |
11915 | if (temp10) | |
4d5c3d91 | 11916 | delete arg10; |
d14a1e28 RD |
11917 | } |
11918 | return resultobj; | |
11919 | fail: | |
11920 | { | |
11921 | if (temp3) | |
11922 | delete arg3; | |
11923 | } | |
11924 | { | |
3adfb63b | 11925 | if (temp6) delete arg6; |
d14a1e28 RD |
11926 | } |
11927 | { | |
11928 | if (temp10) | |
4d5c3d91 | 11929 | delete arg10; |
d14a1e28 RD |
11930 | } |
11931 | return NULL; | |
11932 | } | |
11933 | ||
11934 | ||
c32bde28 | 11935 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11936 | PyObject *resultobj; |
11937 | wxRadioBox *result; | |
11938 | char *kwnames[] = { | |
11939 | NULL | |
11940 | }; | |
11941 | ||
11942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11943 | { | |
e3b71cb8 | 11944 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11946 | result = (wxRadioBox *)new wxRadioBox(); | |
11947 | ||
11948 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11949 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11950 | } |
15afbcd0 | 11951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11952 | return resultobj; |
11953 | fail: | |
11954 | return NULL; | |
11955 | } | |
11956 | ||
11957 | ||
c32bde28 | 11958 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11959 | PyObject *resultobj; |
11960 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11961 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11962 | int arg3 = (int) -1 ; |
11963 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11964 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
11965 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11966 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11967 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11968 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11969 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11970 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11971 | int arg8 = (int) 0 ; | |
11972 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11973 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11974 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11975 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11976 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11977 | bool result; |
ae8162c8 | 11978 | bool temp4 = false ; |
d14a1e28 RD |
11979 | wxPoint temp5 ; |
11980 | wxSize temp6 ; | |
ae8162c8 RD |
11981 | bool temp7 = false ; |
11982 | bool temp11 = false ; | |
d14a1e28 RD |
11983 | PyObject * obj0 = 0 ; |
11984 | PyObject * obj1 = 0 ; | |
994141e6 | 11985 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11986 | PyObject * obj3 = 0 ; |
11987 | PyObject * obj4 = 0 ; | |
11988 | PyObject * obj5 = 0 ; | |
11989 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11990 | PyObject * obj7 = 0 ; |
11991 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11992 | PyObject * obj9 = 0 ; |
11993 | PyObject * obj10 = 0 ; | |
11994 | char *kwnames[] = { | |
994141e6 | 11995 | (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 |
11996 | }; |
11997 | ||
248ed943 | 11998 | 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 |
11999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12003 | if (obj2) { |
c32bde28 | 12004 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12005 | if (PyErr_Occurred()) SWIG_fail; |
12006 | } | |
12007 | if (obj3) { | |
12008 | { | |
12009 | arg4 = wxString_in_helper(obj3); | |
12010 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12011 | temp4 = true; |
248ed943 | 12012 | } |
d14a1e28 RD |
12013 | } |
12014 | if (obj4) { | |
12015 | { | |
12016 | arg5 = &temp5; | |
12017 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12018 | } | |
12019 | } | |
12020 | if (obj5) { | |
12021 | { | |
12022 | arg6 = &temp6; | |
12023 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12024 | } | |
12025 | } | |
12026 | if (obj6) { | |
12027 | { | |
4d5c3d91 RD |
12028 | if (! PySequence_Check(obj6)) { |
12029 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12030 | SWIG_fail; | |
12031 | } | |
12032 | arg7 = new wxArrayString; | |
ae8162c8 | 12033 | temp7 = true; |
4d5c3d91 RD |
12034 | int i, len=PySequence_Length(obj6); |
12035 | for (i=0; i<len; i++) { | |
12036 | PyObject* item = PySequence_GetItem(obj6, i); | |
12037 | #if wxUSE_UNICODE | |
12038 | PyObject* str = PyObject_Unicode(item); | |
12039 | #else | |
12040 | PyObject* str = PyObject_Str(item); | |
12041 | #endif | |
74a57fcd | 12042 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
12043 | arg7->Add(Py2wxString(str)); |
12044 | Py_DECREF(item); | |
12045 | Py_DECREF(str); | |
12046 | } | |
d14a1e28 RD |
12047 | } |
12048 | } | |
994141e6 | 12049 | if (obj7) { |
c32bde28 | 12050 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 12051 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
12052 | } |
12053 | if (obj8) { | |
c32bde28 | 12054 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 12055 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12056 | } |
d14a1e28 | 12057 | if (obj9) { |
15afbcd0 RD |
12058 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12060 | SWIG_fail; | |
4d5c3d91 | 12061 | if (arg10 == NULL) { |
15afbcd0 RD |
12062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12063 | SWIG_fail; | |
d14a1e28 RD |
12064 | } |
12065 | } | |
12066 | if (obj10) { | |
12067 | { | |
4d5c3d91 RD |
12068 | arg11 = wxString_in_helper(obj10); |
12069 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 12070 | temp11 = true; |
d14a1e28 RD |
12071 | } |
12072 | } | |
12073 | { | |
12074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 12075 | 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 |
12076 | |
12077 | wxPyEndAllowThreads(__tstate); | |
12078 | if (PyErr_Occurred()) SWIG_fail; | |
12079 | } | |
4f89f6a3 RD |
12080 | { |
12081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12082 | } | |
d14a1e28 RD |
12083 | { |
12084 | if (temp4) | |
12085 | delete arg4; | |
12086 | } | |
12087 | { | |
3adfb63b | 12088 | if (temp7) delete arg7; |
d14a1e28 RD |
12089 | } |
12090 | { | |
12091 | if (temp11) | |
4d5c3d91 | 12092 | delete arg11; |
d14a1e28 RD |
12093 | } |
12094 | return resultobj; | |
12095 | fail: | |
12096 | { | |
12097 | if (temp4) | |
12098 | delete arg4; | |
12099 | } | |
12100 | { | |
3adfb63b | 12101 | if (temp7) delete arg7; |
d14a1e28 RD |
12102 | } |
12103 | { | |
12104 | if (temp11) | |
4d5c3d91 | 12105 | delete arg11; |
d14a1e28 RD |
12106 | } |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
c32bde28 | 12111 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12112 | PyObject *resultobj; |
12113 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12114 | int arg2 ; | |
12115 | PyObject * obj0 = 0 ; | |
994141e6 | 12116 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12117 | char *kwnames[] = { |
12118 | (char *) "self",(char *) "n", NULL | |
12119 | }; | |
12120 | ||
994141e6 | 12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12124 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12126 | { |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | (arg1)->SetSelection(arg2); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | Py_INCREF(Py_None); resultobj = Py_None; | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
c32bde28 | 12140 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12141 | PyObject *resultobj; |
12142 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12143 | int result; | |
12144 | PyObject * obj0 = 0 ; | |
12145 | char *kwnames[] = { | |
12146 | (char *) "self", NULL | |
12147 | }; | |
12148 | ||
12149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12152 | { |
12153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12154 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12155 | ||
12156 | wxPyEndAllowThreads(__tstate); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
c32bde28 | 12159 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12160 | return resultobj; |
12161 | fail: | |
12162 | return NULL; | |
12163 | } | |
12164 | ||
12165 | ||
c32bde28 | 12166 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12167 | PyObject *resultobj; |
12168 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12169 | wxString result; | |
12170 | PyObject * obj0 = 0 ; | |
12171 | char *kwnames[] = { | |
12172 | (char *) "self", NULL | |
12173 | }; | |
12174 | ||
12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12178 | { |
12179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12180 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12181 | ||
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | { | |
12186 | #if wxUSE_UNICODE | |
12187 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12188 | #else | |
12189 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12190 | #endif | |
12191 | } | |
12192 | return resultobj; | |
12193 | fail: | |
12194 | return NULL; | |
12195 | } | |
12196 | ||
12197 | ||
c32bde28 | 12198 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12199 | PyObject *resultobj; |
12200 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12201 | wxString *arg2 = 0 ; | |
12202 | bool result; | |
ae8162c8 | 12203 | bool temp2 = false ; |
d14a1e28 RD |
12204 | PyObject * obj0 = 0 ; |
12205 | PyObject * obj1 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self",(char *) "s", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12213 | { |
12214 | arg2 = wxString_in_helper(obj1); | |
12215 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12216 | temp2 = true; |
d14a1e28 RD |
12217 | } |
12218 | { | |
12219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12220 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12221 | ||
12222 | wxPyEndAllowThreads(__tstate); | |
12223 | if (PyErr_Occurred()) SWIG_fail; | |
12224 | } | |
4f89f6a3 RD |
12225 | { |
12226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12227 | } | |
d14a1e28 RD |
12228 | { |
12229 | if (temp2) | |
12230 | delete arg2; | |
12231 | } | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | { | |
12235 | if (temp2) | |
12236 | delete arg2; | |
12237 | } | |
12238 | return NULL; | |
12239 | } | |
12240 | ||
12241 | ||
c32bde28 | 12242 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12243 | PyObject *resultobj; |
12244 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12245 | int result; | |
12246 | PyObject * obj0 = 0 ; | |
12247 | char *kwnames[] = { | |
12248 | (char *) "self", NULL | |
12249 | }; | |
12250 | ||
12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12254 | { |
12255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12256 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12257 | ||
12258 | wxPyEndAllowThreads(__tstate); | |
12259 | if (PyErr_Occurred()) SWIG_fail; | |
12260 | } | |
c32bde28 | 12261 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12262 | return resultobj; |
12263 | fail: | |
12264 | return NULL; | |
12265 | } | |
12266 | ||
12267 | ||
c32bde28 | 12268 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12269 | PyObject *resultobj; |
12270 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12271 | wxString *arg2 = 0 ; | |
12272 | int result; | |
ae8162c8 | 12273 | bool temp2 = false ; |
d14a1e28 RD |
12274 | PyObject * obj0 = 0 ; |
12275 | PyObject * obj1 = 0 ; | |
12276 | char *kwnames[] = { | |
12277 | (char *) "self",(char *) "s", NULL | |
12278 | }; | |
12279 | ||
12280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12283 | { |
12284 | arg2 = wxString_in_helper(obj1); | |
12285 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12286 | temp2 = true; |
d14a1e28 RD |
12287 | } |
12288 | { | |
12289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12290 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12291 | ||
12292 | wxPyEndAllowThreads(__tstate); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | } | |
c32bde28 | 12295 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12296 | { |
12297 | if (temp2) | |
12298 | delete arg2; | |
12299 | } | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | { | |
12303 | if (temp2) | |
12304 | delete arg2; | |
12305 | } | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
c32bde28 | 12310 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12311 | PyObject *resultobj; |
12312 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12313 | int arg2 ; | |
12314 | wxString result; | |
12315 | PyObject * obj0 = 0 ; | |
994141e6 | 12316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12317 | char *kwnames[] = { |
12318 | (char *) "self",(char *) "n", NULL | |
12319 | }; | |
12320 | ||
994141e6 | 12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12324 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12325 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12326 | { |
12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12328 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12329 | ||
12330 | wxPyEndAllowThreads(__tstate); | |
12331 | if (PyErr_Occurred()) SWIG_fail; | |
12332 | } | |
12333 | { | |
12334 | #if wxUSE_UNICODE | |
12335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12336 | #else | |
12337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12338 | #endif | |
12339 | } | |
12340 | return resultobj; | |
12341 | fail: | |
12342 | return NULL; | |
12343 | } | |
12344 | ||
12345 | ||
c32bde28 | 12346 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12347 | PyObject *resultobj; |
12348 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12349 | int arg2 ; | |
12350 | wxString *arg3 = 0 ; | |
ae8162c8 | 12351 | bool temp3 = false ; |
d14a1e28 | 12352 | PyObject * obj0 = 0 ; |
994141e6 | 12353 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12354 | PyObject * obj2 = 0 ; |
12355 | char *kwnames[] = { | |
12356 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12357 | }; | |
12358 | ||
994141e6 | 12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12362 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12363 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12364 | { |
12365 | arg3 = wxString_in_helper(obj2); | |
12366 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12367 | temp3 = true; |
d14a1e28 RD |
12368 | } |
12369 | { | |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12371 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12372 | ||
12373 | wxPyEndAllowThreads(__tstate); | |
12374 | if (PyErr_Occurred()) SWIG_fail; | |
12375 | } | |
12376 | Py_INCREF(Py_None); resultobj = Py_None; | |
12377 | { | |
12378 | if (temp3) | |
12379 | delete arg3; | |
12380 | } | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | { | |
12384 | if (temp3) | |
12385 | delete arg3; | |
12386 | } | |
12387 | return NULL; | |
12388 | } | |
12389 | ||
12390 | ||
c32bde28 | 12391 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12392 | PyObject *resultobj; |
12393 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12394 | int arg2 ; | |
ae8162c8 | 12395 | bool arg3 = (bool) true ; |
d14a1e28 | 12396 | PyObject * obj0 = 0 ; |
994141e6 | 12397 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12398 | PyObject * obj2 = 0 ; |
12399 | char *kwnames[] = { | |
12400 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12401 | }; | |
12402 | ||
994141e6 | 12403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12406 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12407 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12408 | if (obj2) { |
c32bde28 | 12409 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12410 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12411 | } |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | (arg1)->Enable(arg2,arg3); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | Py_INCREF(Py_None); resultobj = Py_None; | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
c32bde28 | 12426 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12427 | PyObject *resultobj; |
12428 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12429 | int arg2 ; | |
ae8162c8 | 12430 | bool arg3 = (bool) true ; |
d14a1e28 | 12431 | PyObject * obj0 = 0 ; |
994141e6 | 12432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12433 | PyObject * obj2 = 0 ; |
12434 | char *kwnames[] = { | |
12435 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12436 | }; | |
12437 | ||
994141e6 | 12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12441 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12443 | if (obj2) { |
c32bde28 | 12444 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 12445 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12446 | } |
12447 | { | |
12448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12449 | (arg1)->Show(arg2,arg3); | |
12450 | ||
12451 | wxPyEndAllowThreads(__tstate); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | } | |
12454 | Py_INCREF(Py_None); resultobj = Py_None; | |
12455 | return resultobj; | |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
c32bde28 | 12461 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12462 | PyObject *resultobj; |
12463 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12464 | int result; | |
12465 | PyObject * obj0 = 0 ; | |
12466 | char *kwnames[] = { | |
12467 | (char *) "self", NULL | |
12468 | }; | |
12469 | ||
12470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12473 | { |
12474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12475 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12476 | ||
12477 | wxPyEndAllowThreads(__tstate); | |
12478 | if (PyErr_Occurred()) SWIG_fail; | |
12479 | } | |
c32bde28 | 12480 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12481 | return resultobj; |
12482 | fail: | |
12483 | return NULL; | |
12484 | } | |
12485 | ||
12486 | ||
c32bde28 | 12487 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12488 | PyObject *resultobj; |
12489 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12490 | int result; | |
12491 | PyObject * obj0 = 0 ; | |
12492 | char *kwnames[] = { | |
12493 | (char *) "self", NULL | |
12494 | }; | |
12495 | ||
12496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12499 | { |
12500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12501 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12502 | ||
12503 | wxPyEndAllowThreads(__tstate); | |
12504 | if (PyErr_Occurred()) SWIG_fail; | |
12505 | } | |
c32bde28 | 12506 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12507 | return resultobj; |
12508 | fail: | |
12509 | return NULL; | |
12510 | } | |
12511 | ||
12512 | ||
c32bde28 | 12513 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12514 | PyObject *resultobj; |
12515 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12516 | int arg2 ; | |
12517 | int arg3 ; | |
12518 | long arg4 ; | |
12519 | int result; | |
12520 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12521 | PyObject * obj1 = 0 ; |
12522 | PyObject * obj2 = 0 ; | |
12523 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12524 | char *kwnames[] = { |
12525 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12526 | }; | |
12527 | ||
994141e6 | 12528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12531 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 12532 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12533 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 12534 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12535 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 12536 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12537 | { |
12538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12539 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12540 | ||
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
c32bde28 | 12544 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12545 | return resultobj; |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
c32bde28 | 12551 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12552 | PyObject *resultobj; |
12553 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12554 | wxVisualAttributes result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "variant", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12561 | if (obj0) { | |
c32bde28 | 12562 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
12563 | if (PyErr_Occurred()) SWIG_fail; |
12564 | } | |
12565 | { | |
110da5b0 | 12566 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12568 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12569 | ||
12570 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12571 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12572 | } |
12573 | { | |
12574 | wxVisualAttributes * resultptr; | |
12575 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12576 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12577 | } | |
12578 | return resultobj; | |
12579 | fail: | |
12580 | return NULL; | |
12581 | } | |
12582 | ||
12583 | ||
c32bde28 | 12584 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12585 | PyObject *obj; |
12586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12587 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12588 | Py_INCREF(obj); | |
12589 | return Py_BuildValue((char *)""); | |
12590 | } | |
c32bde28 | 12591 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12592 | PyObject *resultobj; |
12593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12594 | int arg2 = (int) -1 ; |
12595 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12596 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12597 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12598 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12599 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12600 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12601 | long arg6 = (long) 0 ; | |
12602 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12603 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12604 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12605 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12606 | wxRadioButton *result; | |
ae8162c8 | 12607 | bool temp3 = false ; |
d14a1e28 RD |
12608 | wxPoint temp4 ; |
12609 | wxSize temp5 ; | |
ae8162c8 | 12610 | bool temp8 = false ; |
d14a1e28 | 12611 | PyObject * obj0 = 0 ; |
994141e6 | 12612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12613 | PyObject * obj2 = 0 ; |
12614 | PyObject * obj3 = 0 ; | |
12615 | PyObject * obj4 = 0 ; | |
994141e6 | 12616 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12617 | PyObject * obj6 = 0 ; |
12618 | PyObject * obj7 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12621 | }; | |
12622 | ||
248ed943 | 12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12626 | if (obj1) { |
c32bde28 | 12627 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12628 | if (PyErr_Occurred()) SWIG_fail; |
12629 | } | |
12630 | if (obj2) { | |
12631 | { | |
12632 | arg3 = wxString_in_helper(obj2); | |
12633 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12634 | temp3 = true; |
248ed943 | 12635 | } |
d14a1e28 RD |
12636 | } |
12637 | if (obj3) { | |
12638 | { | |
12639 | arg4 = &temp4; | |
12640 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12641 | } | |
12642 | } | |
12643 | if (obj4) { | |
12644 | { | |
12645 | arg5 = &temp5; | |
12646 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12647 | } | |
12648 | } | |
994141e6 | 12649 | if (obj5) { |
c32bde28 | 12650 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 12651 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12652 | } |
d14a1e28 | 12653 | if (obj6) { |
15afbcd0 RD |
12654 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12656 | SWIG_fail; | |
d14a1e28 | 12657 | if (arg7 == NULL) { |
15afbcd0 RD |
12658 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12659 | SWIG_fail; | |
d14a1e28 RD |
12660 | } |
12661 | } | |
12662 | if (obj7) { | |
12663 | { | |
12664 | arg8 = wxString_in_helper(obj7); | |
12665 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12666 | temp8 = true; |
d14a1e28 RD |
12667 | } |
12668 | } | |
12669 | { | |
e3b71cb8 | 12670 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12672 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12673 | ||
12674 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12675 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12676 | } |
15afbcd0 | 12677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12678 | { |
12679 | if (temp3) | |
12680 | delete arg3; | |
12681 | } | |
12682 | { | |
12683 | if (temp8) | |
12684 | delete arg8; | |
12685 | } | |
12686 | return resultobj; | |
12687 | fail: | |
12688 | { | |
12689 | if (temp3) | |
12690 | delete arg3; | |
12691 | } | |
12692 | { | |
12693 | if (temp8) | |
12694 | delete arg8; | |
12695 | } | |
12696 | return NULL; | |
12697 | } | |
12698 | ||
12699 | ||
c32bde28 | 12700 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12701 | PyObject *resultobj; |
12702 | wxRadioButton *result; | |
12703 | char *kwnames[] = { | |
12704 | NULL | |
12705 | }; | |
12706 | ||
12707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12708 | { | |
e3b71cb8 | 12709 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12711 | result = (wxRadioButton *)new wxRadioButton(); | |
12712 | ||
12713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12714 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12715 | } |
15afbcd0 | 12716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12717 | return resultobj; |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
c32bde28 | 12723 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12724 | PyObject *resultobj; |
12725 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12727 | int arg3 = (int) -1 ; |
12728 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12729 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12730 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12731 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12732 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12733 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12734 | long arg7 = (long) 0 ; | |
12735 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12736 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12737 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12738 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12739 | bool result; | |
ae8162c8 | 12740 | bool temp4 = false ; |
d14a1e28 RD |
12741 | wxPoint temp5 ; |
12742 | wxSize temp6 ; | |
ae8162c8 | 12743 | bool temp9 = false ; |
d14a1e28 RD |
12744 | PyObject * obj0 = 0 ; |
12745 | PyObject * obj1 = 0 ; | |
994141e6 | 12746 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12747 | PyObject * obj3 = 0 ; |
12748 | PyObject * obj4 = 0 ; | |
12749 | PyObject * obj5 = 0 ; | |
994141e6 | 12750 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12751 | PyObject * obj7 = 0 ; |
12752 | PyObject * obj8 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12755 | }; | |
12756 | ||
248ed943 | 12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12762 | if (obj2) { |
c32bde28 | 12763 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12764 | if (PyErr_Occurred()) SWIG_fail; |
12765 | } | |
12766 | if (obj3) { | |
12767 | { | |
12768 | arg4 = wxString_in_helper(obj3); | |
12769 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12770 | temp4 = true; |
248ed943 | 12771 | } |
d14a1e28 RD |
12772 | } |
12773 | if (obj4) { | |
12774 | { | |
12775 | arg5 = &temp5; | |
12776 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12777 | } | |
12778 | } | |
12779 | if (obj5) { | |
12780 | { | |
12781 | arg6 = &temp6; | |
12782 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12783 | } | |
12784 | } | |
994141e6 | 12785 | if (obj6) { |
c32bde28 | 12786 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 12787 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 12788 | } |
d14a1e28 | 12789 | if (obj7) { |
15afbcd0 RD |
12790 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12792 | SWIG_fail; | |
d14a1e28 | 12793 | if (arg8 == NULL) { |
15afbcd0 RD |
12794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12795 | SWIG_fail; | |
d14a1e28 RD |
12796 | } |
12797 | } | |
12798 | if (obj8) { | |
12799 | { | |
12800 | arg9 = wxString_in_helper(obj8); | |
12801 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 12802 | temp9 = true; |
d14a1e28 RD |
12803 | } |
12804 | } | |
12805 | { | |
12806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12807 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12808 | ||
12809 | wxPyEndAllowThreads(__tstate); | |
12810 | if (PyErr_Occurred()) SWIG_fail; | |
12811 | } | |
4f89f6a3 RD |
12812 | { |
12813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12814 | } | |
d14a1e28 RD |
12815 | { |
12816 | if (temp4) | |
12817 | delete arg4; | |
12818 | } | |
12819 | { | |
12820 | if (temp9) | |
12821 | delete arg9; | |
12822 | } | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | { | |
12826 | if (temp4) | |
12827 | delete arg4; | |
12828 | } | |
12829 | { | |
12830 | if (temp9) | |
12831 | delete arg9; | |
12832 | } | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
c32bde28 | 12837 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12838 | PyObject *resultobj; |
12839 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12840 | bool result; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | char *kwnames[] = { | |
12843 | (char *) "self", NULL | |
12844 | }; | |
12845 | ||
12846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12849 | { |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | result = (bool)(arg1)->GetValue(); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
4f89f6a3 RD |
12856 | { |
12857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12858 | } | |
d14a1e28 RD |
12859 | return resultobj; |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
c32bde28 | 12865 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12866 | PyObject *resultobj; |
12867 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12868 | bool arg2 ; | |
12869 | PyObject * obj0 = 0 ; | |
12870 | PyObject * obj1 = 0 ; | |
12871 | char *kwnames[] = { | |
12872 | (char *) "self",(char *) "value", NULL | |
12873 | }; | |
12874 | ||
12875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12878 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 12879 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12880 | { |
12881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12882 | (arg1)->SetValue(arg2); | |
12883 | ||
12884 | wxPyEndAllowThreads(__tstate); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
12887 | Py_INCREF(Py_None); resultobj = Py_None; | |
12888 | return resultobj; | |
12889 | fail: | |
12890 | return NULL; | |
12891 | } | |
12892 | ||
12893 | ||
c32bde28 | 12894 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12895 | PyObject *resultobj; |
12896 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12897 | wxVisualAttributes result; | |
12898 | PyObject * obj0 = 0 ; | |
12899 | char *kwnames[] = { | |
12900 | (char *) "variant", NULL | |
12901 | }; | |
12902 | ||
12903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12904 | if (obj0) { | |
c32bde28 | 12905 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
12906 | if (PyErr_Occurred()) SWIG_fail; |
12907 | } | |
12908 | { | |
110da5b0 | 12909 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12911 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12914 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12915 | } |
12916 | { | |
12917 | wxVisualAttributes * resultptr; | |
12918 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12920 | } | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | return NULL; | |
12924 | } | |
12925 | ||
12926 | ||
c32bde28 | 12927 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12928 | PyObject *obj; |
12929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12930 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12931 | Py_INCREF(obj); | |
12932 | return Py_BuildValue((char *)""); | |
12933 | } | |
c32bde28 | 12934 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
12935 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12936 | return 1; | |
12937 | } | |
12938 | ||
12939 | ||
12940 | static PyObject *_wrap_SliderNameStr_get() { | |
12941 | PyObject *pyobj; | |
12942 | ||
12943 | { | |
12944 | #if wxUSE_UNICODE | |
12945 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12946 | #else | |
12947 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12948 | #endif | |
12949 | } | |
12950 | return pyobj; | |
12951 | } | |
12952 | ||
12953 | ||
c32bde28 | 12954 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12955 | PyObject *resultobj; |
12956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12957 | int arg2 = (int) -1 ; |
12958 | int arg3 = (int) 0 ; | |
12959 | int arg4 = (int) 0 ; | |
12960 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
12961 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12962 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12963 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12964 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12965 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12966 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12967 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12968 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12969 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12970 | wxSlider *result; | |
12971 | wxPoint temp6 ; | |
12972 | wxSize temp7 ; | |
ae8162c8 | 12973 | bool temp10 = false ; |
d14a1e28 | 12974 | PyObject * obj0 = 0 ; |
994141e6 RD |
12975 | PyObject * obj1 = 0 ; |
12976 | PyObject * obj2 = 0 ; | |
12977 | PyObject * obj3 = 0 ; | |
12978 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12979 | PyObject * obj5 = 0 ; |
12980 | PyObject * obj6 = 0 ; | |
994141e6 | 12981 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12982 | PyObject * obj8 = 0 ; |
12983 | PyObject * obj9 = 0 ; | |
12984 | char *kwnames[] = { | |
994141e6 | 12985 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12986 | }; |
12987 | ||
248ed943 | 12988 | 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 |
12989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 12991 | if (obj1) { |
c32bde28 | 12992 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
12993 | if (PyErr_Occurred()) SWIG_fail; |
12994 | } | |
12995 | if (obj2) { | |
c32bde28 | 12996 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
12997 | if (PyErr_Occurred()) SWIG_fail; |
12998 | } | |
12999 | if (obj3) { | |
c32bde28 | 13000 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13001 | if (PyErr_Occurred()) SWIG_fail; |
13002 | } | |
13003 | if (obj4) { | |
c32bde28 | 13004 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13005 | if (PyErr_Occurred()) SWIG_fail; |
13006 | } | |
d14a1e28 RD |
13007 | if (obj5) { |
13008 | { | |
13009 | arg6 = &temp6; | |
13010 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13011 | } | |
13012 | } | |
13013 | if (obj6) { | |
13014 | { | |
13015 | arg7 = &temp7; | |
13016 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
13017 | } | |
13018 | } | |
994141e6 | 13019 | if (obj7) { |
c32bde28 | 13020 | arg8 = (long)SWIG_As_long(obj7); |
15afbcd0 | 13021 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13022 | } |
d14a1e28 | 13023 | if (obj8) { |
15afbcd0 RD |
13024 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
13025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13026 | SWIG_fail; | |
d14a1e28 | 13027 | if (arg9 == NULL) { |
15afbcd0 RD |
13028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13029 | SWIG_fail; | |
d14a1e28 RD |
13030 | } |
13031 | } | |
13032 | if (obj9) { | |
13033 | { | |
13034 | arg10 = wxString_in_helper(obj9); | |
13035 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13036 | temp10 = true; |
d14a1e28 RD |
13037 | } |
13038 | } | |
13039 | { | |
e3b71cb8 | 13040 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13042 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13045 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13046 | } |
15afbcd0 | 13047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13048 | { |
13049 | if (temp10) | |
13050 | delete arg10; | |
13051 | } | |
13052 | return resultobj; | |
13053 | fail: | |
13054 | { | |
13055 | if (temp10) | |
13056 | delete arg10; | |
13057 | } | |
13058 | return NULL; | |
13059 | } | |
13060 | ||
13061 | ||
c32bde28 | 13062 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13063 | PyObject *resultobj; |
13064 | wxSlider *result; | |
13065 | char *kwnames[] = { | |
13066 | NULL | |
13067 | }; | |
13068 | ||
13069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
13070 | { | |
e3b71cb8 | 13071 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13073 | result = (wxSlider *)new wxSlider(); | |
13074 | ||
13075 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13076 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13077 | } |
15afbcd0 | 13078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
13079 | return resultobj; |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
c32bde28 | 13085 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13086 | PyObject *resultobj; |
13087 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13088 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13089 | int arg3 = (int) -1 ; |
13090 | int arg4 = (int) 0 ; | |
13091 | int arg5 = (int) 0 ; | |
13092 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
13093 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
13094 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
13095 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
13096 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
13097 | long arg9 = (long) wxSL_HORIZONTAL ; | |
13098 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13099 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13100 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
13101 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13102 | bool result; | |
13103 | wxPoint temp7 ; | |
13104 | wxSize temp8 ; | |
ae8162c8 | 13105 | bool temp11 = false ; |
d14a1e28 RD |
13106 | PyObject * obj0 = 0 ; |
13107 | PyObject * obj1 = 0 ; | |
994141e6 RD |
13108 | PyObject * obj2 = 0 ; |
13109 | PyObject * obj3 = 0 ; | |
13110 | PyObject * obj4 = 0 ; | |
13111 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
13112 | PyObject * obj6 = 0 ; |
13113 | PyObject * obj7 = 0 ; | |
994141e6 | 13114 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
13115 | PyObject * obj9 = 0 ; |
13116 | PyObject * obj10 = 0 ; | |
13117 | char *kwnames[] = { | |
994141e6 | 13118 | (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 |
13119 | }; |
13120 | ||
248ed943 | 13121 | 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 |
13122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13126 | if (obj2) { |
c32bde28 | 13127 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
13128 | if (PyErr_Occurred()) SWIG_fail; |
13129 | } | |
13130 | if (obj3) { | |
c32bde28 | 13131 | arg4 = (int)SWIG_As_int(obj3); |
248ed943 RD |
13132 | if (PyErr_Occurred()) SWIG_fail; |
13133 | } | |
13134 | if (obj4) { | |
c32bde28 | 13135 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
13136 | if (PyErr_Occurred()) SWIG_fail; |
13137 | } | |
13138 | if (obj5) { | |
c32bde28 | 13139 | arg6 = (int)SWIG_As_int(obj5); |
248ed943 RD |
13140 | if (PyErr_Occurred()) SWIG_fail; |
13141 | } | |
d14a1e28 RD |
13142 | if (obj6) { |
13143 | { | |
13144 | arg7 = &temp7; | |
13145 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13146 | } | |
13147 | } | |
13148 | if (obj7) { | |
13149 | { | |
13150 | arg8 = &temp8; | |
13151 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13152 | } | |
13153 | } | |
994141e6 | 13154 | if (obj8) { |
c32bde28 | 13155 | arg9 = (long)SWIG_As_long(obj8); |
15afbcd0 | 13156 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13157 | } |
d14a1e28 | 13158 | if (obj9) { |
15afbcd0 RD |
13159 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
13160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13161 | SWIG_fail; | |
d14a1e28 | 13162 | if (arg10 == NULL) { |
15afbcd0 RD |
13163 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13164 | SWIG_fail; | |
d14a1e28 RD |
13165 | } |
13166 | } | |
13167 | if (obj10) { | |
13168 | { | |
13169 | arg11 = wxString_in_helper(obj10); | |
13170 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13171 | temp11 = true; |
d14a1e28 RD |
13172 | } |
13173 | } | |
13174 | { | |
13175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13176 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13177 | ||
13178 | wxPyEndAllowThreads(__tstate); | |
13179 | if (PyErr_Occurred()) SWIG_fail; | |
13180 | } | |
4f89f6a3 RD |
13181 | { |
13182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13183 | } | |
d14a1e28 RD |
13184 | { |
13185 | if (temp11) | |
13186 | delete arg11; | |
13187 | } | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | { | |
13191 | if (temp11) | |
13192 | delete arg11; | |
13193 | } | |
13194 | return NULL; | |
13195 | } | |
13196 | ||
13197 | ||
c32bde28 | 13198 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13199 | PyObject *resultobj; |
13200 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13201 | int result; | |
13202 | PyObject * obj0 = 0 ; | |
13203 | char *kwnames[] = { | |
13204 | (char *) "self", NULL | |
13205 | }; | |
13206 | ||
13207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13210 | { |
13211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13212 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13213 | ||
13214 | wxPyEndAllowThreads(__tstate); | |
13215 | if (PyErr_Occurred()) SWIG_fail; | |
13216 | } | |
c32bde28 | 13217 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13218 | return resultobj; |
13219 | fail: | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
c32bde28 | 13224 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13225 | PyObject *resultobj; |
13226 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13227 | int arg2 ; | |
13228 | PyObject * obj0 = 0 ; | |
994141e6 | 13229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13230 | char *kwnames[] = { |
13231 | (char *) "self",(char *) "value", NULL | |
13232 | }; | |
13233 | ||
994141e6 | 13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13237 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13238 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13239 | { |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13241 | (arg1)->SetValue(arg2); | |
13242 | ||
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | Py_INCREF(Py_None); resultobj = Py_None; | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
c32bde28 | 13253 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13254 | PyObject *resultobj; |
13255 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13256 | int arg2 ; | |
13257 | int arg3 ; | |
13258 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13259 | PyObject * obj1 = 0 ; |
13260 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13261 | char *kwnames[] = { |
13262 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13263 | }; | |
13264 | ||
994141e6 | 13265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13268 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13269 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13270 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13271 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13272 | { |
13273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13274 | (arg1)->SetRange(arg2,arg3); | |
13275 | ||
13276 | wxPyEndAllowThreads(__tstate); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | } | |
13279 | Py_INCREF(Py_None); resultobj = Py_None; | |
13280 | return resultobj; | |
13281 | fail: | |
13282 | return NULL; | |
13283 | } | |
13284 | ||
13285 | ||
c32bde28 | 13286 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13287 | PyObject *resultobj; |
13288 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13289 | int result; | |
13290 | PyObject * obj0 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13298 | { |
13299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13300 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13301 | ||
13302 | wxPyEndAllowThreads(__tstate); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | } | |
c32bde28 | 13305 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13306 | return resultobj; |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
c32bde28 | 13312 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13313 | PyObject *resultobj; |
13314 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13315 | int result; | |
13316 | PyObject * obj0 = 0 ; | |
13317 | char *kwnames[] = { | |
13318 | (char *) "self", NULL | |
13319 | }; | |
13320 | ||
13321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13324 | { |
13325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13326 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13327 | ||
13328 | wxPyEndAllowThreads(__tstate); | |
13329 | if (PyErr_Occurred()) SWIG_fail; | |
13330 | } | |
c32bde28 | 13331 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13332 | return resultobj; |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
c32bde28 | 13338 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13339 | PyObject *resultobj; |
13340 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13341 | int arg2 ; | |
13342 | PyObject * obj0 = 0 ; | |
994141e6 | 13343 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13344 | char *kwnames[] = { |
13345 | (char *) "self",(char *) "minValue", NULL | |
13346 | }; | |
13347 | ||
994141e6 | 13348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13351 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13353 | { |
13354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13355 | (arg1)->SetMin(arg2); | |
13356 | ||
13357 | wxPyEndAllowThreads(__tstate); | |
13358 | if (PyErr_Occurred()) SWIG_fail; | |
13359 | } | |
13360 | Py_INCREF(Py_None); resultobj = Py_None; | |
13361 | return resultobj; | |
13362 | fail: | |
13363 | return NULL; | |
13364 | } | |
13365 | ||
13366 | ||
c32bde28 | 13367 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13368 | PyObject *resultobj; |
13369 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13370 | int arg2 ; | |
13371 | PyObject * obj0 = 0 ; | |
994141e6 | 13372 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13373 | char *kwnames[] = { |
13374 | (char *) "self",(char *) "maxValue", NULL | |
13375 | }; | |
13376 | ||
994141e6 | 13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13380 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13381 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13382 | { |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13384 | (arg1)->SetMax(arg2); | |
13385 | ||
13386 | wxPyEndAllowThreads(__tstate); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | } | |
13389 | Py_INCREF(Py_None); resultobj = Py_None; | |
13390 | return resultobj; | |
13391 | fail: | |
13392 | return NULL; | |
13393 | } | |
13394 | ||
13395 | ||
c32bde28 | 13396 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13397 | PyObject *resultobj; |
13398 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13399 | int arg2 ; | |
13400 | PyObject * obj0 = 0 ; | |
994141e6 | 13401 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13402 | char *kwnames[] = { |
13403 | (char *) "self",(char *) "lineSize", NULL | |
13404 | }; | |
13405 | ||
994141e6 | 13406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13409 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13410 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13411 | { |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | (arg1)->SetLineSize(arg2); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
13418 | Py_INCREF(Py_None); resultobj = Py_None; | |
13419 | return resultobj; | |
13420 | fail: | |
13421 | return NULL; | |
13422 | } | |
13423 | ||
13424 | ||
c32bde28 | 13425 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13426 | PyObject *resultobj; |
13427 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13428 | int arg2 ; | |
13429 | PyObject * obj0 = 0 ; | |
994141e6 | 13430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13431 | char *kwnames[] = { |
13432 | (char *) "self",(char *) "pageSize", NULL | |
13433 | }; | |
13434 | ||
994141e6 | 13435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13438 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13439 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13440 | { |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | (arg1)->SetPageSize(arg2); | |
13443 | ||
13444 | wxPyEndAllowThreads(__tstate); | |
13445 | if (PyErr_Occurred()) SWIG_fail; | |
13446 | } | |
13447 | Py_INCREF(Py_None); resultobj = Py_None; | |
13448 | return resultobj; | |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
c32bde28 | 13454 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13455 | PyObject *resultobj; |
13456 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13457 | int result; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13466 | { |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
c32bde28 | 13473 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13474 | return resultobj; |
13475 | fail: | |
13476 | return NULL; | |
13477 | } | |
13478 | ||
13479 | ||
c32bde28 | 13480 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13481 | PyObject *resultobj; |
13482 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13483 | int result; | |
13484 | PyObject * obj0 = 0 ; | |
13485 | char *kwnames[] = { | |
13486 | (char *) "self", NULL | |
13487 | }; | |
13488 | ||
13489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13492 | { |
13493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13494 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13495 | ||
13496 | wxPyEndAllowThreads(__tstate); | |
13497 | if (PyErr_Occurred()) SWIG_fail; | |
13498 | } | |
c32bde28 | 13499 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13500 | return resultobj; |
13501 | fail: | |
13502 | return NULL; | |
13503 | } | |
13504 | ||
13505 | ||
c32bde28 | 13506 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13507 | PyObject *resultobj; |
13508 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13509 | int arg2 ; | |
13510 | PyObject * obj0 = 0 ; | |
994141e6 | 13511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13512 | char *kwnames[] = { |
13513 | (char *) "self",(char *) "lenPixels", NULL | |
13514 | }; | |
13515 | ||
994141e6 | 13516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13519 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13521 | { |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | (arg1)->SetThumbLength(arg2); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | Py_INCREF(Py_None); resultobj = Py_None; | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
c32bde28 | 13535 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13536 | PyObject *resultobj; |
13537 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13538 | int result; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | char *kwnames[] = { | |
13541 | (char *) "self", NULL | |
13542 | }; | |
13543 | ||
13544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13547 | { |
13548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13549 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13550 | ||
13551 | wxPyEndAllowThreads(__tstate); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | } | |
c32bde28 | 13554 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13555 | return resultobj; |
13556 | fail: | |
13557 | return NULL; | |
13558 | } | |
13559 | ||
13560 | ||
c32bde28 | 13561 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13562 | PyObject *resultobj; |
13563 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13564 | int arg2 ; | |
994141e6 | 13565 | int arg3 = (int) 1 ; |
d14a1e28 | 13566 | PyObject * obj0 = 0 ; |
994141e6 RD |
13567 | PyObject * obj1 = 0 ; |
13568 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13569 | char *kwnames[] = { |
13570 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13571 | }; | |
13572 | ||
994141e6 | 13573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13576 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13577 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13578 | if (obj2) { |
c32bde28 | 13579 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13580 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13581 | } |
d14a1e28 RD |
13582 | { |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | (arg1)->SetTickFreq(arg2,arg3); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | Py_INCREF(Py_None); resultobj = Py_None; | |
13590 | return resultobj; | |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
c32bde28 | 13596 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13597 | PyObject *resultobj; |
13598 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13599 | int result; | |
13600 | PyObject * obj0 = 0 ; | |
13601 | char *kwnames[] = { | |
13602 | (char *) "self", NULL | |
13603 | }; | |
13604 | ||
13605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13608 | { |
13609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13610 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13611 | ||
13612 | wxPyEndAllowThreads(__tstate); | |
13613 | if (PyErr_Occurred()) SWIG_fail; | |
13614 | } | |
c32bde28 | 13615 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13616 | return resultobj; |
13617 | fail: | |
13618 | return NULL; | |
13619 | } | |
13620 | ||
13621 | ||
c32bde28 | 13622 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13623 | PyObject *resultobj; |
13624 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13625 | PyObject * obj0 = 0 ; | |
13626 | char *kwnames[] = { | |
13627 | (char *) "self", NULL | |
13628 | }; | |
13629 | ||
13630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13633 | { |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | (arg1)->ClearTicks(); | |
13636 | ||
13637 | wxPyEndAllowThreads(__tstate); | |
13638 | if (PyErr_Occurred()) SWIG_fail; | |
13639 | } | |
13640 | Py_INCREF(Py_None); resultobj = Py_None; | |
13641 | return resultobj; | |
13642 | fail: | |
13643 | return NULL; | |
13644 | } | |
13645 | ||
13646 | ||
c32bde28 | 13647 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13648 | PyObject *resultobj; |
13649 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13650 | int arg2 ; | |
13651 | PyObject * obj0 = 0 ; | |
994141e6 | 13652 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13653 | char *kwnames[] = { |
13654 | (char *) "self",(char *) "tickPos", NULL | |
13655 | }; | |
13656 | ||
994141e6 | 13657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13660 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13661 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13662 | { |
13663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13664 | (arg1)->SetTick(arg2); | |
13665 | ||
13666 | wxPyEndAllowThreads(__tstate); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
13669 | Py_INCREF(Py_None); resultobj = Py_None; | |
13670 | return resultobj; | |
13671 | fail: | |
13672 | return NULL; | |
13673 | } | |
13674 | ||
13675 | ||
c32bde28 | 13676 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13677 | PyObject *resultobj; |
13678 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13679 | PyObject * obj0 = 0 ; | |
13680 | char *kwnames[] = { | |
13681 | (char *) "self", NULL | |
13682 | }; | |
13683 | ||
13684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13687 | { |
13688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13689 | (arg1)->ClearSel(); | |
13690 | ||
13691 | wxPyEndAllowThreads(__tstate); | |
13692 | if (PyErr_Occurred()) SWIG_fail; | |
13693 | } | |
13694 | Py_INCREF(Py_None); resultobj = Py_None; | |
13695 | return resultobj; | |
13696 | fail: | |
13697 | return NULL; | |
13698 | } | |
13699 | ||
13700 | ||
c32bde28 | 13701 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13702 | PyObject *resultobj; |
13703 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13704 | int result; | |
13705 | PyObject * obj0 = 0 ; | |
13706 | char *kwnames[] = { | |
13707 | (char *) "self", NULL | |
13708 | }; | |
13709 | ||
13710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13713 | { |
13714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13715 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13716 | ||
13717 | wxPyEndAllowThreads(__tstate); | |
13718 | if (PyErr_Occurred()) SWIG_fail; | |
13719 | } | |
c32bde28 | 13720 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13721 | return resultobj; |
13722 | fail: | |
13723 | return NULL; | |
13724 | } | |
13725 | ||
13726 | ||
c32bde28 | 13727 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13728 | PyObject *resultobj; |
13729 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13730 | int result; | |
13731 | PyObject * obj0 = 0 ; | |
13732 | char *kwnames[] = { | |
13733 | (char *) "self", NULL | |
13734 | }; | |
13735 | ||
13736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13739 | { |
13740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13741 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13742 | ||
13743 | wxPyEndAllowThreads(__tstate); | |
13744 | if (PyErr_Occurred()) SWIG_fail; | |
13745 | } | |
c32bde28 | 13746 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
13747 | return resultobj; |
13748 | fail: | |
13749 | return NULL; | |
13750 | } | |
13751 | ||
13752 | ||
c32bde28 | 13753 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13754 | PyObject *resultobj; |
13755 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13756 | int arg2 ; | |
13757 | int arg3 ; | |
13758 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13759 | PyObject * obj1 = 0 ; |
13760 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13761 | char *kwnames[] = { |
13762 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13763 | }; | |
13764 | ||
994141e6 | 13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13768 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 13769 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 13770 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 13771 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13772 | { |
13773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13774 | (arg1)->SetSelection(arg2,arg3); | |
13775 | ||
13776 | wxPyEndAllowThreads(__tstate); | |
13777 | if (PyErr_Occurred()) SWIG_fail; | |
13778 | } | |
13779 | Py_INCREF(Py_None); resultobj = Py_None; | |
13780 | return resultobj; | |
13781 | fail: | |
13782 | return NULL; | |
13783 | } | |
13784 | ||
13785 | ||
c32bde28 | 13786 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
13787 | PyObject *resultobj; |
13788 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13789 | wxVisualAttributes result; | |
13790 | PyObject * obj0 = 0 ; | |
13791 | char *kwnames[] = { | |
13792 | (char *) "variant", NULL | |
13793 | }; | |
13794 | ||
13795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13796 | if (obj0) { | |
c32bde28 | 13797 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
13798 | if (PyErr_Occurred()) SWIG_fail; |
13799 | } | |
13800 | { | |
110da5b0 | 13801 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13803 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13804 | ||
13805 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13806 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13807 | } |
13808 | { | |
13809 | wxVisualAttributes * resultptr; | |
13810 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13811 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13812 | } | |
13813 | return resultobj; | |
13814 | fail: | |
13815 | return NULL; | |
13816 | } | |
13817 | ||
13818 | ||
c32bde28 | 13819 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13820 | PyObject *obj; |
13821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13822 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13823 | Py_INCREF(obj); | |
13824 | return Py_BuildValue((char *)""); | |
13825 | } | |
c32bde28 | 13826 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13827 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
13828 | return 1; | |
13829 | } | |
13830 | ||
13831 | ||
13832 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13833 | PyObject *pyobj; | |
13834 | ||
13835 | { | |
13836 | #if wxUSE_UNICODE | |
13837 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13838 | #else | |
13839 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13840 | #endif | |
13841 | } | |
13842 | return pyobj; | |
13843 | } | |
13844 | ||
13845 | ||
c32bde28 | 13846 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13847 | PyObject *resultobj; |
13848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13849 | int arg2 = (int) -1 ; |
13850 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13851 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13852 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13853 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13854 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13855 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13856 | long arg6 = (long) 0 ; | |
13857 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13858 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13859 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13860 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13861 | wxToggleButton *result; | |
ae8162c8 | 13862 | bool temp3 = false ; |
d14a1e28 RD |
13863 | wxPoint temp4 ; |
13864 | wxSize temp5 ; | |
ae8162c8 | 13865 | bool temp8 = false ; |
d14a1e28 | 13866 | PyObject * obj0 = 0 ; |
994141e6 | 13867 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13868 | PyObject * obj2 = 0 ; |
13869 | PyObject * obj3 = 0 ; | |
13870 | PyObject * obj4 = 0 ; | |
994141e6 | 13871 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13872 | PyObject * obj6 = 0 ; |
13873 | PyObject * obj7 = 0 ; | |
13874 | char *kwnames[] = { | |
13875 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13876 | }; | |
13877 | ||
248ed943 | 13878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 13881 | if (obj1) { |
c32bde28 | 13882 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
13883 | if (PyErr_Occurred()) SWIG_fail; |
13884 | } | |
13885 | if (obj2) { | |
13886 | { | |
13887 | arg3 = wxString_in_helper(obj2); | |
13888 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13889 | temp3 = true; |
248ed943 | 13890 | } |
d14a1e28 RD |
13891 | } |
13892 | if (obj3) { | |
13893 | { | |
13894 | arg4 = &temp4; | |
13895 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13896 | } | |
13897 | } | |
13898 | if (obj4) { | |
13899 | { | |
13900 | arg5 = &temp5; | |
13901 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13902 | } | |
13903 | } | |
994141e6 | 13904 | if (obj5) { |
c32bde28 | 13905 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 13906 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 13907 | } |
d14a1e28 | 13908 | if (obj6) { |
15afbcd0 RD |
13909 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13911 | SWIG_fail; | |
d14a1e28 | 13912 | if (arg7 == NULL) { |
15afbcd0 RD |
13913 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13914 | SWIG_fail; | |
d14a1e28 RD |
13915 | } |
13916 | } | |
13917 | if (obj7) { | |
13918 | { | |
13919 | arg8 = wxString_in_helper(obj7); | |
13920 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 13921 | temp8 = true; |
d14a1e28 RD |
13922 | } |
13923 | } | |
13924 | { | |
e3b71cb8 | 13925 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13927 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13930 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13931 | } |
15afbcd0 | 13932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13933 | { |
13934 | if (temp3) | |
13935 | delete arg3; | |
13936 | } | |
13937 | { | |
13938 | if (temp8) | |
13939 | delete arg8; | |
13940 | } | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | { | |
13944 | if (temp3) | |
13945 | delete arg3; | |
13946 | } | |
13947 | { | |
13948 | if (temp8) | |
13949 | delete arg8; | |
13950 | } | |
13951 | return NULL; | |
13952 | } | |
13953 | ||
13954 | ||
c32bde28 | 13955 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13956 | PyObject *resultobj; |
13957 | wxToggleButton *result; | |
13958 | char *kwnames[] = { | |
13959 | NULL | |
13960 | }; | |
13961 | ||
13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13963 | { | |
e3b71cb8 | 13964 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13966 | result = (wxToggleButton *)new wxToggleButton(); | |
13967 | ||
13968 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13970 | } |
15afbcd0 | 13971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13972 | return resultobj; |
13973 | fail: | |
13974 | return NULL; | |
13975 | } | |
13976 | ||
13977 | ||
c32bde28 | 13978 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13979 | PyObject *resultobj; |
13980 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13981 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13982 | int arg3 = (int) -1 ; |
13983 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13984 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13985 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13986 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13987 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13988 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13989 | long arg7 = (long) 0 ; | |
13990 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13991 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13992 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13993 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13994 | bool result; | |
ae8162c8 | 13995 | bool temp4 = false ; |
d14a1e28 RD |
13996 | wxPoint temp5 ; |
13997 | wxSize temp6 ; | |
ae8162c8 | 13998 | bool temp9 = false ; |
d14a1e28 RD |
13999 | PyObject * obj0 = 0 ; |
14000 | PyObject * obj1 = 0 ; | |
994141e6 | 14001 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14002 | PyObject * obj3 = 0 ; |
14003 | PyObject * obj4 = 0 ; | |
14004 | PyObject * obj5 = 0 ; | |
994141e6 | 14005 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14006 | PyObject * obj7 = 0 ; |
14007 | PyObject * obj8 = 0 ; | |
14008 | char *kwnames[] = { | |
14009 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14010 | }; | |
14011 | ||
248ed943 | 14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
14013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 14017 | if (obj2) { |
c32bde28 | 14018 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
14019 | if (PyErr_Occurred()) SWIG_fail; |
14020 | } | |
14021 | if (obj3) { | |
14022 | { | |
14023 | arg4 = wxString_in_helper(obj3); | |
14024 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14025 | temp4 = true; |
248ed943 | 14026 | } |
d14a1e28 RD |
14027 | } |
14028 | if (obj4) { | |
14029 | { | |
14030 | arg5 = &temp5; | |
14031 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14032 | } | |
14033 | } | |
14034 | if (obj5) { | |
14035 | { | |
14036 | arg6 = &temp6; | |
14037 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14038 | } | |
14039 | } | |
994141e6 | 14040 | if (obj6) { |
c32bde28 | 14041 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 14042 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14043 | } |
d14a1e28 | 14044 | if (obj7) { |
15afbcd0 RD |
14045 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
14046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14047 | SWIG_fail; | |
d14a1e28 | 14048 | if (arg8 == NULL) { |
15afbcd0 RD |
14049 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14050 | SWIG_fail; | |
d14a1e28 RD |
14051 | } |
14052 | } | |
14053 | if (obj8) { | |
14054 | { | |
14055 | arg9 = wxString_in_helper(obj8); | |
14056 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14057 | temp9 = true; |
d14a1e28 RD |
14058 | } |
14059 | } | |
14060 | { | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
4f89f6a3 RD |
14067 | { |
14068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14069 | } | |
d14a1e28 RD |
14070 | { |
14071 | if (temp4) | |
14072 | delete arg4; | |
14073 | } | |
14074 | { | |
14075 | if (temp9) | |
14076 | delete arg9; | |
14077 | } | |
14078 | return resultobj; | |
14079 | fail: | |
14080 | { | |
14081 | if (temp4) | |
14082 | delete arg4; | |
14083 | } | |
14084 | { | |
14085 | if (temp9) | |
14086 | delete arg9; | |
14087 | } | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
c32bde28 | 14092 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14093 | PyObject *resultobj; |
14094 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14095 | bool arg2 ; | |
14096 | PyObject * obj0 = 0 ; | |
14097 | PyObject * obj1 = 0 ; | |
14098 | char *kwnames[] = { | |
14099 | (char *) "self",(char *) "value", NULL | |
14100 | }; | |
14101 | ||
14102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14105 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14106 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14107 | { |
14108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14109 | (arg1)->SetValue(arg2); | |
14110 | ||
14111 | wxPyEndAllowThreads(__tstate); | |
14112 | if (PyErr_Occurred()) SWIG_fail; | |
14113 | } | |
14114 | Py_INCREF(Py_None); resultobj = Py_None; | |
14115 | return resultobj; | |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
c32bde28 | 14121 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14122 | PyObject *resultobj; |
14123 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14124 | bool result; | |
14125 | PyObject * obj0 = 0 ; | |
14126 | char *kwnames[] = { | |
14127 | (char *) "self", NULL | |
14128 | }; | |
14129 | ||
14130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14133 | { |
14134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14135 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14136 | ||
14137 | wxPyEndAllowThreads(__tstate); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | } | |
4f89f6a3 RD |
14140 | { |
14141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14142 | } | |
d14a1e28 RD |
14143 | return resultobj; |
14144 | fail: | |
14145 | return NULL; | |
14146 | } | |
14147 | ||
14148 | ||
c32bde28 | 14149 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14150 | PyObject *resultobj; |
14151 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14152 | wxString *arg2 = 0 ; | |
ae8162c8 | 14153 | bool temp2 = false ; |
d14a1e28 RD |
14154 | PyObject * obj0 = 0 ; |
14155 | PyObject * obj1 = 0 ; | |
14156 | char *kwnames[] = { | |
14157 | (char *) "self",(char *) "label", NULL | |
14158 | }; | |
14159 | ||
14160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14163 | { |
14164 | arg2 = wxString_in_helper(obj1); | |
14165 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14166 | temp2 = true; |
d14a1e28 RD |
14167 | } |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | (arg1)->SetLabel((wxString const &)*arg2); | |
14171 | ||
14172 | wxPyEndAllowThreads(__tstate); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | } | |
14175 | Py_INCREF(Py_None); resultobj = Py_None; | |
14176 | { | |
14177 | if (temp2) | |
14178 | delete arg2; | |
14179 | } | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | { | |
14183 | if (temp2) | |
14184 | delete arg2; | |
14185 | } | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
c32bde28 | 14190 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14191 | PyObject *resultobj; |
14192 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14193 | wxVisualAttributes result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "variant", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14200 | if (obj0) { | |
c32bde28 | 14201 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14202 | if (PyErr_Occurred()) SWIG_fail; |
14203 | } | |
14204 | { | |
110da5b0 | 14205 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14207 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14208 | ||
14209 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14210 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14211 | } |
14212 | { | |
14213 | wxVisualAttributes * resultptr; | |
14214 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14216 | } | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | return NULL; | |
14220 | } | |
14221 | ||
14222 | ||
c32bde28 | 14223 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14224 | PyObject *obj; |
14225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14226 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14227 | Py_INCREF(obj); | |
14228 | return Py_BuildValue((char *)""); | |
14229 | } | |
c32bde28 | 14230 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
b2dc1044 RD |
14231 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
14232 | return 1; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14237 | PyObject *pyobj; | |
14238 | ||
14239 | { | |
14240 | #if wxUSE_UNICODE | |
14241 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14242 | #else | |
14243 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14244 | #endif | |
14245 | } | |
14246 | return pyobj; | |
14247 | } | |
14248 | ||
14249 | ||
c32bde28 | 14250 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14251 | PyObject *resultobj; |
14252 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14253 | size_t result; | |
14254 | PyObject * obj0 = 0 ; | |
14255 | char *kwnames[] = { | |
14256 | (char *) "self", NULL | |
14257 | }; | |
14258 | ||
14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14262 | { |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14265 | ||
14266 | wxPyEndAllowThreads(__tstate); | |
14267 | if (PyErr_Occurred()) SWIG_fail; | |
14268 | } | |
c32bde28 | 14269 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
14270 | return resultobj; |
14271 | fail: | |
14272 | return NULL; | |
14273 | } | |
14274 | ||
14275 | ||
c32bde28 | 14276 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14277 | PyObject *resultobj; |
14278 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14279 | size_t arg2 ; | |
14280 | wxWindow *result; | |
14281 | PyObject * obj0 = 0 ; | |
14282 | PyObject * obj1 = 0 ; | |
14283 | char *kwnames[] = { | |
14284 | (char *) "self",(char *) "n", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14290 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14291 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14292 | { |
14293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14294 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14295 | ||
14296 | wxPyEndAllowThreads(__tstate); | |
14297 | if (PyErr_Occurred()) SWIG_fail; | |
14298 | } | |
14299 | { | |
412d302d | 14300 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14301 | } |
14302 | return resultobj; | |
14303 | fail: | |
14304 | return NULL; | |
14305 | } | |
14306 | ||
14307 | ||
c32bde28 | 14308 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14309 | PyObject *resultobj; |
14310 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14311 | int result; | |
14312 | PyObject * obj0 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "self", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14320 | { |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14323 | ||
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
c32bde28 | 14327 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14328 | return resultobj; |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
c32bde28 | 14334 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14335 | PyObject *resultobj; |
14336 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14337 | size_t arg2 ; | |
14338 | wxString *arg3 = 0 ; | |
14339 | bool result; | |
ae8162c8 | 14340 | bool temp3 = false ; |
d14a1e28 RD |
14341 | PyObject * obj0 = 0 ; |
14342 | PyObject * obj1 = 0 ; | |
14343 | PyObject * obj2 = 0 ; | |
14344 | char *kwnames[] = { | |
14345 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14346 | }; | |
14347 | ||
14348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14351 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14353 | { |
14354 | arg3 = wxString_in_helper(obj2); | |
14355 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14356 | temp3 = true; |
d14a1e28 RD |
14357 | } |
14358 | { | |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14361 | ||
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
4f89f6a3 RD |
14365 | { |
14366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14367 | } | |
d14a1e28 RD |
14368 | { |
14369 | if (temp3) | |
14370 | delete arg3; | |
14371 | } | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | { | |
14375 | if (temp3) | |
14376 | delete arg3; | |
14377 | } | |
14378 | return NULL; | |
14379 | } | |
14380 | ||
14381 | ||
c32bde28 | 14382 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14383 | PyObject *resultobj; |
14384 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14385 | size_t arg2 ; | |
14386 | wxString result; | |
14387 | PyObject * obj0 = 0 ; | |
14388 | PyObject * obj1 = 0 ; | |
14389 | char *kwnames[] = { | |
14390 | (char *) "self",(char *) "n", NULL | |
14391 | }; | |
14392 | ||
14393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14396 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14397 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14398 | { |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
14405 | { | |
14406 | #if wxUSE_UNICODE | |
14407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14408 | #else | |
14409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14410 | #endif | |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
c32bde28 | 14418 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14419 | PyObject *resultobj; |
14420 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14421 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | PyObject * obj1 = 0 ; | |
14424 | char *kwnames[] = { | |
14425 | (char *) "self",(char *) "imageList", NULL | |
14426 | }; | |
14427 | ||
14428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14433 | { |
14434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14435 | (arg1)->SetImageList(arg2); | |
14436 | ||
14437 | wxPyEndAllowThreads(__tstate); | |
14438 | if (PyErr_Occurred()) SWIG_fail; | |
14439 | } | |
14440 | Py_INCREF(Py_None); resultobj = Py_None; | |
14441 | return resultobj; | |
14442 | fail: | |
14443 | return NULL; | |
14444 | } | |
14445 | ||
14446 | ||
c32bde28 | 14447 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14448 | PyObject *resultobj; |
14449 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14450 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14451 | PyObject * obj0 = 0 ; | |
14452 | PyObject * obj1 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "self",(char *) "imageList", NULL | |
14455 | }; | |
14456 | ||
14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14461 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14462 | { |
14463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14464 | (arg1)->AssignImageList(arg2); | |
14465 | ||
14466 | wxPyEndAllowThreads(__tstate); | |
14467 | if (PyErr_Occurred()) SWIG_fail; | |
14468 | } | |
14469 | Py_INCREF(Py_None); resultobj = Py_None; | |
14470 | return resultobj; | |
14471 | fail: | |
14472 | return NULL; | |
14473 | } | |
14474 | ||
14475 | ||
c32bde28 | 14476 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14477 | PyObject *resultobj; |
14478 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14479 | wxImageList *result; | |
14480 | PyObject * obj0 = 0 ; | |
14481 | char *kwnames[] = { | |
14482 | (char *) "self", NULL | |
14483 | }; | |
14484 | ||
14485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14488 | { |
14489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14490 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14491 | ||
14492 | wxPyEndAllowThreads(__tstate); | |
14493 | if (PyErr_Occurred()) SWIG_fail; | |
14494 | } | |
14495 | { | |
412d302d | 14496 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14497 | } |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
c32bde28 | 14504 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14505 | PyObject *resultobj; |
14506 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14507 | size_t arg2 ; | |
14508 | int result; | |
14509 | PyObject * obj0 = 0 ; | |
14510 | PyObject * obj1 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self",(char *) "n", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14518 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14519 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14520 | { |
14521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14522 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14523 | ||
14524 | wxPyEndAllowThreads(__tstate); | |
14525 | if (PyErr_Occurred()) SWIG_fail; | |
14526 | } | |
c32bde28 | 14527 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14528 | return resultobj; |
14529 | fail: | |
14530 | return NULL; | |
14531 | } | |
14532 | ||
14533 | ||
c32bde28 | 14534 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14535 | PyObject *resultobj; |
14536 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14537 | size_t arg2 ; | |
14538 | int arg3 ; | |
14539 | bool result; | |
14540 | PyObject * obj0 = 0 ; | |
14541 | PyObject * obj1 = 0 ; | |
994141e6 | 14542 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14543 | char *kwnames[] = { |
14544 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14545 | }; | |
14546 | ||
994141e6 | 14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14550 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14551 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 14552 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14553 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14554 | { |
14555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14556 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14557 | ||
14558 | wxPyEndAllowThreads(__tstate); | |
14559 | if (PyErr_Occurred()) SWIG_fail; | |
14560 | } | |
4f89f6a3 RD |
14561 | { |
14562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14563 | } | |
d14a1e28 RD |
14564 | return resultobj; |
14565 | fail: | |
14566 | return NULL; | |
14567 | } | |
14568 | ||
14569 | ||
c32bde28 | 14570 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14571 | PyObject *resultobj; |
14572 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14573 | wxSize *arg2 = 0 ; | |
14574 | wxSize temp2 ; | |
14575 | PyObject * obj0 = 0 ; | |
14576 | PyObject * obj1 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self",(char *) "size", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14584 | { |
14585 | arg2 = &temp2; | |
14586 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14587 | } | |
14588 | { | |
14589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14590 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14591 | ||
14592 | wxPyEndAllowThreads(__tstate); | |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
14594 | } | |
14595 | Py_INCREF(Py_None); resultobj = Py_None; | |
14596 | return resultobj; | |
14597 | fail: | |
14598 | return NULL; | |
14599 | } | |
14600 | ||
14601 | ||
c32bde28 | 14602 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14603 | PyObject *resultobj; |
14604 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14605 | wxSize *arg2 = 0 ; | |
14606 | wxSize result; | |
14607 | wxSize temp2 ; | |
14608 | PyObject * obj0 = 0 ; | |
14609 | PyObject * obj1 = 0 ; | |
14610 | char *kwnames[] = { | |
14611 | (char *) "self",(char *) "sizePage", NULL | |
14612 | }; | |
14613 | ||
14614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14617 | { |
14618 | arg2 = &temp2; | |
14619 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14620 | } | |
14621 | { | |
14622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14623 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14624 | ||
14625 | wxPyEndAllowThreads(__tstate); | |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
14627 | } | |
14628 | { | |
14629 | wxSize * resultptr; | |
14630 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14632 | } |
14633 | return resultobj; | |
14634 | fail: | |
14635 | return NULL; | |
14636 | } | |
14637 | ||
14638 | ||
c32bde28 | 14639 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14640 | PyObject *resultobj; |
14641 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14642 | size_t arg2 ; | |
14643 | bool result; | |
14644 | PyObject * obj0 = 0 ; | |
14645 | PyObject * obj1 = 0 ; | |
14646 | char *kwnames[] = { | |
14647 | (char *) "self",(char *) "n", NULL | |
14648 | }; | |
14649 | ||
14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14653 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14655 | { |
14656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14657 | result = (bool)(arg1)->DeletePage(arg2); | |
14658 | ||
14659 | wxPyEndAllowThreads(__tstate); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | } | |
4f89f6a3 RD |
14662 | { |
14663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14664 | } | |
d14a1e28 RD |
14665 | return resultobj; |
14666 | fail: | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
c32bde28 | 14671 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14672 | PyObject *resultobj; |
14673 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14674 | size_t arg2 ; | |
14675 | bool result; | |
14676 | PyObject * obj0 = 0 ; | |
14677 | PyObject * obj1 = 0 ; | |
14678 | char *kwnames[] = { | |
14679 | (char *) "self",(char *) "n", NULL | |
14680 | }; | |
14681 | ||
14682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14685 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14686 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14687 | { |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | result = (bool)(arg1)->RemovePage(arg2); | |
14690 | ||
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
4f89f6a3 RD |
14694 | { |
14695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14696 | } | |
d14a1e28 RD |
14697 | return resultobj; |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
c32bde28 | 14703 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14704 | PyObject *resultobj; |
14705 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14706 | bool result; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | char *kwnames[] = { | |
14709 | (char *) "self", NULL | |
14710 | }; | |
14711 | ||
14712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14715 | { |
14716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14717 | result = (bool)(arg1)->DeleteAllPages(); | |
14718 | ||
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
4f89f6a3 RD |
14722 | { |
14723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14724 | } | |
d14a1e28 RD |
14725 | return resultobj; |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
c32bde28 | 14731 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14732 | PyObject *resultobj; |
14733 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14734 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14735 | wxString *arg3 = 0 ; | |
ae8162c8 | 14736 | bool arg4 = (bool) false ; |
d14a1e28 RD |
14737 | int arg5 = (int) -1 ; |
14738 | bool result; | |
ae8162c8 | 14739 | bool temp3 = false ; |
d14a1e28 RD |
14740 | PyObject * obj0 = 0 ; |
14741 | PyObject * obj1 = 0 ; | |
14742 | PyObject * obj2 = 0 ; | |
14743 | PyObject * obj3 = 0 ; | |
994141e6 | 14744 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14745 | char *kwnames[] = { |
14746 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14747 | }; | |
14748 | ||
994141e6 | 14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14754 | { |
14755 | arg3 = wxString_in_helper(obj2); | |
14756 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14757 | temp3 = true; |
d14a1e28 RD |
14758 | } |
14759 | if (obj3) { | |
c32bde28 | 14760 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 14761 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14762 | } |
14763 | if (obj4) { | |
c32bde28 | 14764 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 14765 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14766 | } |
14767 | { | |
14768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14769 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14770 | ||
14771 | wxPyEndAllowThreads(__tstate); | |
14772 | if (PyErr_Occurred()) SWIG_fail; | |
14773 | } | |
4f89f6a3 RD |
14774 | { |
14775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14776 | } | |
d14a1e28 RD |
14777 | { |
14778 | if (temp3) | |
14779 | delete arg3; | |
14780 | } | |
14781 | return resultobj; | |
14782 | fail: | |
14783 | { | |
14784 | if (temp3) | |
14785 | delete arg3; | |
14786 | } | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
c32bde28 | 14791 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14792 | PyObject *resultobj; |
14793 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14794 | size_t arg2 ; | |
14795 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14796 | wxString *arg4 = 0 ; | |
ae8162c8 | 14797 | bool arg5 = (bool) false ; |
d14a1e28 RD |
14798 | int arg6 = (int) -1 ; |
14799 | bool result; | |
ae8162c8 | 14800 | bool temp4 = false ; |
d14a1e28 RD |
14801 | PyObject * obj0 = 0 ; |
14802 | PyObject * obj1 = 0 ; | |
14803 | PyObject * obj2 = 0 ; | |
14804 | PyObject * obj3 = 0 ; | |
14805 | PyObject * obj4 = 0 ; | |
994141e6 | 14806 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14807 | char *kwnames[] = { |
14808 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14809 | }; | |
14810 | ||
994141e6 | 14811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14814 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
14815 | if (PyErr_Occurred()) SWIG_fail; |
14816 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14818 | { |
14819 | arg4 = wxString_in_helper(obj3); | |
14820 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14821 | temp4 = true; |
d14a1e28 RD |
14822 | } |
14823 | if (obj4) { | |
c32bde28 | 14824 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 14825 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14826 | } |
14827 | if (obj5) { | |
c32bde28 | 14828 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 14829 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14830 | } |
14831 | { | |
14832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14833 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14834 | ||
14835 | wxPyEndAllowThreads(__tstate); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
4f89f6a3 RD |
14838 | { |
14839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14840 | } | |
d14a1e28 RD |
14841 | { |
14842 | if (temp4) | |
14843 | delete arg4; | |
14844 | } | |
14845 | return resultobj; | |
14846 | fail: | |
14847 | { | |
14848 | if (temp4) | |
14849 | delete arg4; | |
14850 | } | |
14851 | return NULL; | |
14852 | } | |
14853 | ||
14854 | ||
c32bde28 | 14855 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14856 | PyObject *resultobj; |
14857 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14858 | size_t arg2 ; | |
14859 | int result; | |
14860 | PyObject * obj0 = 0 ; | |
14861 | PyObject * obj1 = 0 ; | |
14862 | char *kwnames[] = { | |
14863 | (char *) "self",(char *) "n", NULL | |
14864 | }; | |
14865 | ||
14866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14869 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 14870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14871 | { |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | result = (int)(arg1)->SetSelection(arg2); | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
c32bde28 | 14878 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14879 | return resultobj; |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
c32bde28 | 14885 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14886 | PyObject *resultobj; |
14887 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
ae8162c8 | 14888 | bool arg2 = (bool) true ; |
d14a1e28 RD |
14889 | PyObject * obj0 = 0 ; |
14890 | PyObject * obj1 = 0 ; | |
14891 | char *kwnames[] = { | |
14892 | (char *) "self",(char *) "forward", NULL | |
14893 | }; | |
14894 | ||
14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14898 | if (obj1) { |
c32bde28 | 14899 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 14900 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14901 | } |
14902 | { | |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | (arg1)->AdvanceSelection(arg2); | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | Py_INCREF(Py_None); resultobj = Py_None; | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
c32bde28 | 14916 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
14917 | PyObject *resultobj; |
14918 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14919 | wxVisualAttributes result; | |
14920 | PyObject * obj0 = 0 ; | |
14921 | char *kwnames[] = { | |
14922 | (char *) "variant", NULL | |
14923 | }; | |
14924 | ||
14925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14926 | if (obj0) { | |
c32bde28 | 14927 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
14928 | if (PyErr_Occurred()) SWIG_fail; |
14929 | } | |
14930 | { | |
110da5b0 | 14931 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14933 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14934 | ||
14935 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14936 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14937 | } |
14938 | { | |
14939 | wxVisualAttributes * resultptr; | |
14940 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14942 | } | |
14943 | return resultobj; | |
14944 | fail: | |
14945 | return NULL; | |
14946 | } | |
14947 | ||
14948 | ||
c32bde28 | 14949 | static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14950 | PyObject *obj; |
14951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14952 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14953 | Py_INCREF(obj); | |
14954 | return Py_BuildValue((char *)""); | |
14955 | } | |
c32bde28 | 14956 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14957 | PyObject *resultobj; |
14958 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14959 | int arg2 = (int) 0 ; | |
14960 | int arg3 = (int) -1 ; | |
14961 | int arg4 = (int) -1 ; | |
14962 | wxBookCtrlEvent *result; | |
994141e6 RD |
14963 | PyObject * obj0 = 0 ; |
14964 | PyObject * obj1 = 0 ; | |
14965 | PyObject * obj2 = 0 ; | |
14966 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14967 | char *kwnames[] = { |
14968 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14969 | }; | |
14970 | ||
994141e6 RD |
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14972 | if (obj0) { | |
c32bde28 | 14973 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 14974 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14975 | } |
14976 | if (obj1) { | |
c32bde28 | 14977 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 14978 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14979 | } |
14980 | if (obj2) { | |
c32bde28 | 14981 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 14982 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
14983 | } |
14984 | if (obj3) { | |
c32bde28 | 14985 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 14986 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 14987 | } |
d14a1e28 RD |
14988 | { |
14989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14990 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14991 | ||
14992 | wxPyEndAllowThreads(__tstate); | |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
15afbcd0 | 14995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14996 | return resultobj; |
14997 | fail: | |
14998 | return NULL; | |
14999 | } | |
15000 | ||
15001 | ||
c32bde28 | 15002 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15003 | PyObject *resultobj; |
15004 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15005 | int result; | |
15006 | PyObject * obj0 = 0 ; | |
15007 | char *kwnames[] = { | |
15008 | (char *) "self", NULL | |
15009 | }; | |
15010 | ||
15011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15014 | { |
15015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15016 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
15017 | ||
15018 | wxPyEndAllowThreads(__tstate); | |
15019 | if (PyErr_Occurred()) SWIG_fail; | |
15020 | } | |
c32bde28 | 15021 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15022 | return resultobj; |
15023 | fail: | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
c32bde28 | 15028 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15029 | PyObject *resultobj; |
15030 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15031 | int arg2 ; | |
15032 | PyObject * obj0 = 0 ; | |
994141e6 | 15033 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15034 | char *kwnames[] = { |
15035 | (char *) "self",(char *) "nSel", NULL | |
15036 | }; | |
15037 | ||
994141e6 | 15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15041 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15042 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15043 | { |
15044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15045 | (arg1)->SetSelection(arg2); | |
15046 | ||
15047 | wxPyEndAllowThreads(__tstate); | |
15048 | if (PyErr_Occurred()) SWIG_fail; | |
15049 | } | |
15050 | Py_INCREF(Py_None); resultobj = Py_None; | |
15051 | return resultobj; | |
15052 | fail: | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
c32bde28 | 15057 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15058 | PyObject *resultobj; |
15059 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15060 | int result; | |
15061 | PyObject * obj0 = 0 ; | |
15062 | char *kwnames[] = { | |
15063 | (char *) "self", NULL | |
15064 | }; | |
15065 | ||
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15069 | { |
15070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15071 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
15072 | ||
15073 | wxPyEndAllowThreads(__tstate); | |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
15075 | } | |
c32bde28 | 15076 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15077 | return resultobj; |
15078 | fail: | |
15079 | return NULL; | |
15080 | } | |
15081 | ||
15082 | ||
c32bde28 | 15083 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15084 | PyObject *resultobj; |
15085 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
15086 | int arg2 ; | |
15087 | PyObject * obj0 = 0 ; | |
994141e6 | 15088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15089 | char *kwnames[] = { |
15090 | (char *) "self",(char *) "nOldSel", NULL | |
15091 | }; | |
15092 | ||
994141e6 | 15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
15095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15096 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15097 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15098 | { |
15099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15100 | (arg1)->SetOldSelection(arg2); | |
15101 | ||
15102 | wxPyEndAllowThreads(__tstate); | |
15103 | if (PyErr_Occurred()) SWIG_fail; | |
15104 | } | |
15105 | Py_INCREF(Py_None); resultobj = Py_None; | |
15106 | return resultobj; | |
15107 | fail: | |
15108 | return NULL; | |
15109 | } | |
15110 | ||
15111 | ||
c32bde28 | 15112 | static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15113 | PyObject *obj; |
15114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15115 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
15116 | Py_INCREF(obj); | |
15117 | return Py_BuildValue((char *)""); | |
15118 | } | |
c32bde28 | 15119 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15120 | PyObject *resultobj; |
15121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15122 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15123 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15124 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15125 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15126 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15127 | long arg5 = (long) 0 ; | |
15128 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15129 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15130 | wxNotebook *result; | |
15131 | wxPoint temp3 ; | |
15132 | wxSize temp4 ; | |
ae8162c8 | 15133 | bool temp6 = false ; |
d14a1e28 | 15134 | PyObject * obj0 = 0 ; |
994141e6 | 15135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15136 | PyObject * obj2 = 0 ; |
15137 | PyObject * obj3 = 0 ; | |
994141e6 | 15138 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15139 | PyObject * obj5 = 0 ; |
15140 | char *kwnames[] = { | |
15141 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15142 | }; | |
15143 | ||
4f89f6a3 | 15144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15147 | if (obj1) { |
c32bde28 | 15148 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15149 | if (PyErr_Occurred()) SWIG_fail; |
15150 | } | |
d14a1e28 RD |
15151 | if (obj2) { |
15152 | { | |
15153 | arg3 = &temp3; | |
15154 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15155 | } | |
15156 | } | |
15157 | if (obj3) { | |
15158 | { | |
15159 | arg4 = &temp4; | |
15160 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15161 | } | |
15162 | } | |
994141e6 | 15163 | if (obj4) { |
c32bde28 | 15164 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15165 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15166 | } |
d14a1e28 RD |
15167 | if (obj5) { |
15168 | { | |
15169 | arg6 = wxString_in_helper(obj5); | |
15170 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15171 | temp6 = true; |
d14a1e28 RD |
15172 | } |
15173 | } | |
15174 | { | |
e3b71cb8 | 15175 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15177 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15178 | ||
15179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15180 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15181 | } |
b0f7404b | 15182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15183 | { |
15184 | if (temp6) | |
15185 | delete arg6; | |
15186 | } | |
15187 | return resultobj; | |
15188 | fail: | |
15189 | { | |
15190 | if (temp6) | |
15191 | delete arg6; | |
15192 | } | |
15193 | return NULL; | |
15194 | } | |
15195 | ||
15196 | ||
c32bde28 | 15197 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15198 | PyObject *resultobj; |
15199 | wxNotebook *result; | |
15200 | char *kwnames[] = { | |
15201 | NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15205 | { | |
e3b71cb8 | 15206 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15208 | result = (wxNotebook *)new wxNotebook(); | |
15209 | ||
15210 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15211 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15212 | } |
b0f7404b | 15213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15214 | return resultobj; |
15215 | fail: | |
15216 | return NULL; | |
15217 | } | |
15218 | ||
15219 | ||
c32bde28 | 15220 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15221 | PyObject *resultobj; |
15222 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15224 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15225 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15226 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15227 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15228 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15229 | long arg6 = (long) 0 ; | |
15230 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15231 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15232 | bool result; | |
15233 | wxPoint temp4 ; | |
15234 | wxSize temp5 ; | |
ae8162c8 | 15235 | bool temp7 = false ; |
d14a1e28 RD |
15236 | PyObject * obj0 = 0 ; |
15237 | PyObject * obj1 = 0 ; | |
994141e6 | 15238 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15239 | PyObject * obj3 = 0 ; |
15240 | PyObject * obj4 = 0 ; | |
994141e6 | 15241 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15242 | PyObject * obj6 = 0 ; |
15243 | char *kwnames[] = { | |
15244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15245 | }; | |
15246 | ||
248ed943 | 15247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15252 | if (obj2) { |
c32bde28 | 15253 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15254 | if (PyErr_Occurred()) SWIG_fail; |
15255 | } | |
d14a1e28 RD |
15256 | if (obj3) { |
15257 | { | |
15258 | arg4 = &temp4; | |
15259 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15260 | } | |
15261 | } | |
15262 | if (obj4) { | |
15263 | { | |
15264 | arg5 = &temp5; | |
15265 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15266 | } | |
15267 | } | |
994141e6 | 15268 | if (obj5) { |
c32bde28 | 15269 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15270 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15271 | } |
d14a1e28 RD |
15272 | if (obj6) { |
15273 | { | |
15274 | arg7 = wxString_in_helper(obj6); | |
15275 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 15276 | temp7 = true; |
d14a1e28 RD |
15277 | } |
15278 | } | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
4f89f6a3 RD |
15286 | { |
15287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15288 | } | |
d14a1e28 RD |
15289 | { |
15290 | if (temp7) | |
15291 | delete arg7; | |
15292 | } | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | { | |
15296 | if (temp7) | |
15297 | delete arg7; | |
15298 | } | |
15299 | return NULL; | |
15300 | } | |
15301 | ||
15302 | ||
c32bde28 | 15303 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15304 | PyObject *resultobj; |
15305 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15306 | int result; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15315 | { |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
c32bde28 | 15322 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15323 | return resultobj; |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
c32bde28 | 15329 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15330 | PyObject *resultobj; |
15331 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15332 | wxSize *arg2 = 0 ; | |
15333 | wxSize temp2 ; | |
15334 | PyObject * obj0 = 0 ; | |
15335 | PyObject * obj1 = 0 ; | |
15336 | char *kwnames[] = { | |
15337 | (char *) "self",(char *) "padding", NULL | |
15338 | }; | |
15339 | ||
15340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15343 | { |
15344 | arg2 = &temp2; | |
15345 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15346 | } | |
15347 | { | |
15348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15349 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15350 | ||
15351 | wxPyEndAllowThreads(__tstate); | |
15352 | if (PyErr_Occurred()) SWIG_fail; | |
15353 | } | |
15354 | Py_INCREF(Py_None); resultobj = Py_None; | |
15355 | return resultobj; | |
15356 | fail: | |
15357 | return NULL; | |
15358 | } | |
15359 | ||
15360 | ||
c32bde28 | 15361 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15362 | PyObject *resultobj; |
15363 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15364 | wxSize *arg2 = 0 ; | |
15365 | wxSize temp2 ; | |
15366 | PyObject * obj0 = 0 ; | |
15367 | PyObject * obj1 = 0 ; | |
15368 | char *kwnames[] = { | |
15369 | (char *) "self",(char *) "sz", NULL | |
15370 | }; | |
15371 | ||
15372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15375 | { |
15376 | arg2 = &temp2; | |
15377 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15378 | } | |
15379 | { | |
15380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15381 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15382 | ||
15383 | wxPyEndAllowThreads(__tstate); | |
15384 | if (PyErr_Occurred()) SWIG_fail; | |
15385 | } | |
15386 | Py_INCREF(Py_None); resultobj = Py_None; | |
15387 | return resultobj; | |
15388 | fail: | |
15389 | return NULL; | |
15390 | } | |
15391 | ||
15392 | ||
c32bde28 | 15393 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15394 | PyObject *resultobj; |
15395 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15396 | wxPoint *arg2 = 0 ; | |
15397 | long *arg3 = (long *) 0 ; | |
15398 | int result; | |
15399 | wxPoint temp2 ; | |
15400 | long temp3 ; | |
c32bde28 | 15401 | int res3 = 0 ; |
d14a1e28 RD |
15402 | PyObject * obj0 = 0 ; |
15403 | PyObject * obj1 = 0 ; | |
15404 | char *kwnames[] = { | |
15405 | (char *) "self",(char *) "pt", NULL | |
15406 | }; | |
15407 | ||
c32bde28 | 15408 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 15409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15412 | { |
15413 | arg2 = &temp2; | |
15414 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15415 | } | |
15416 | { | |
15417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15418 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15419 | ||
15420 | wxPyEndAllowThreads(__tstate); | |
15421 | if (PyErr_Occurred()) SWIG_fail; | |
15422 | } | |
c32bde28 RD |
15423 | resultobj = SWIG_From_int((int)result); |
15424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15425 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
c32bde28 | 15432 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15433 | PyObject *resultobj; |
15434 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15435 | wxSize *arg2 = 0 ; | |
15436 | wxSize result; | |
15437 | wxSize temp2 ; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | PyObject * obj1 = 0 ; | |
15440 | char *kwnames[] = { | |
15441 | (char *) "self",(char *) "sizePage", NULL | |
15442 | }; | |
15443 | ||
15444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15447 | { |
15448 | arg2 = &temp2; | |
15449 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15450 | } | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15454 | ||
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | { | |
15459 | wxSize * resultptr; | |
15460 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15462 | } |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
c32bde28 | 15469 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
15470 | PyObject *resultobj; |
15471 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15472 | wxVisualAttributes result; | |
15473 | PyObject * obj0 = 0 ; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "variant", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15479 | if (obj0) { | |
c32bde28 | 15480 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
15481 | if (PyErr_Occurred()) SWIG_fail; |
15482 | } | |
15483 | { | |
110da5b0 | 15484 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15486 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15489 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15490 | } |
15491 | { | |
15492 | wxVisualAttributes * resultptr; | |
15493 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15495 | } | |
15496 | return resultobj; | |
15497 | fail: | |
15498 | return NULL; | |
15499 | } | |
15500 | ||
15501 | ||
c32bde28 | 15502 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15503 | PyObject *obj; |
15504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15505 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15506 | Py_INCREF(obj); | |
15507 | return Py_BuildValue((char *)""); | |
15508 | } | |
c32bde28 | 15509 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15510 | PyObject *resultobj; |
15511 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15512 | int arg2 = (int) 0 ; | |
15513 | int arg3 = (int) -1 ; | |
15514 | int arg4 = (int) -1 ; | |
15515 | wxNotebookEvent *result; | |
994141e6 RD |
15516 | PyObject * obj0 = 0 ; |
15517 | PyObject * obj1 = 0 ; | |
15518 | PyObject * obj2 = 0 ; | |
15519 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15520 | char *kwnames[] = { |
15521 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15522 | }; | |
15523 | ||
994141e6 RD |
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15525 | if (obj0) { | |
c32bde28 | 15526 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15527 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15528 | } |
15529 | if (obj1) { | |
c32bde28 | 15530 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15531 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15532 | } |
15533 | if (obj2) { | |
c32bde28 | 15534 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15535 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15536 | } |
15537 | if (obj3) { | |
c32bde28 | 15538 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15539 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15540 | } |
d14a1e28 RD |
15541 | { |
15542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15543 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15544 | ||
15545 | wxPyEndAllowThreads(__tstate); | |
15546 | if (PyErr_Occurred()) SWIG_fail; | |
15547 | } | |
15afbcd0 | 15548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15549 | return resultobj; |
15550 | fail: | |
15551 | return NULL; | |
15552 | } | |
15553 | ||
15554 | ||
c32bde28 | 15555 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15556 | PyObject *obj; |
15557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15558 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15559 | Py_INCREF(obj); | |
15560 | return Py_BuildValue((char *)""); | |
15561 | } | |
c32bde28 | 15562 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15563 | PyObject *resultobj; |
15564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15565 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15566 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15567 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15568 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15569 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15570 | long arg5 = (long) 0 ; | |
15571 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15572 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15573 | wxListbook *result; | |
15574 | wxPoint temp3 ; | |
15575 | wxSize temp4 ; | |
ae8162c8 | 15576 | bool temp6 = false ; |
d14a1e28 | 15577 | PyObject * obj0 = 0 ; |
994141e6 | 15578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15579 | PyObject * obj2 = 0 ; |
15580 | PyObject * obj3 = 0 ; | |
994141e6 | 15581 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15582 | PyObject * obj5 = 0 ; |
15583 | char *kwnames[] = { | |
15584 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15585 | }; | |
15586 | ||
4f89f6a3 | 15587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 | 15590 | if (obj1) { |
c32bde28 | 15591 | arg2 = (int)SWIG_As_int(obj1); |
4f89f6a3 RD |
15592 | if (PyErr_Occurred()) SWIG_fail; |
15593 | } | |
d14a1e28 RD |
15594 | if (obj2) { |
15595 | { | |
15596 | arg3 = &temp3; | |
15597 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15598 | } | |
15599 | } | |
15600 | if (obj3) { | |
15601 | { | |
15602 | arg4 = &temp4; | |
15603 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15604 | } | |
15605 | } | |
994141e6 | 15606 | if (obj4) { |
c32bde28 | 15607 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 15608 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15609 | } |
d14a1e28 RD |
15610 | if (obj5) { |
15611 | { | |
15612 | arg6 = wxString_in_helper(obj5); | |
15613 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15614 | temp6 = true; |
d14a1e28 RD |
15615 | } |
15616 | } | |
15617 | { | |
e3b71cb8 | 15618 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15620 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15623 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15624 | } |
15afbcd0 | 15625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15626 | { |
15627 | if (temp6) | |
15628 | delete arg6; | |
15629 | } | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | { | |
15633 | if (temp6) | |
15634 | delete arg6; | |
15635 | } | |
15636 | return NULL; | |
15637 | } | |
15638 | ||
15639 | ||
c32bde28 | 15640 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15641 | PyObject *resultobj; |
15642 | wxListbook *result; | |
15643 | char *kwnames[] = { | |
15644 | NULL | |
15645 | }; | |
15646 | ||
15647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15648 | { | |
e3b71cb8 | 15649 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15651 | result = (wxListbook *)new wxListbook(); | |
15652 | ||
15653 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15655 | } |
15afbcd0 | 15656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15657 | return resultobj; |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
c32bde28 | 15663 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15664 | PyObject *resultobj; |
15665 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15667 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15668 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15669 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15670 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15671 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15672 | long arg6 = (long) 0 ; | |
15673 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15674 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15675 | bool result; | |
15676 | wxPoint temp4 ; | |
15677 | wxSize temp5 ; | |
ae8162c8 | 15678 | bool temp7 = false ; |
d14a1e28 RD |
15679 | PyObject * obj0 = 0 ; |
15680 | PyObject * obj1 = 0 ; | |
994141e6 | 15681 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15682 | PyObject * obj3 = 0 ; |
15683 | PyObject * obj4 = 0 ; | |
994141e6 | 15684 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15685 | PyObject * obj6 = 0 ; |
15686 | char *kwnames[] = { | |
15687 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15688 | }; | |
15689 | ||
248ed943 | 15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 15695 | if (obj2) { |
c32bde28 | 15696 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
15697 | if (PyErr_Occurred()) SWIG_fail; |
15698 | } | |
d14a1e28 RD |
15699 | if (obj3) { |
15700 | { | |
15701 | arg4 = &temp4; | |
15702 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15703 | } | |
15704 | } | |
15705 | if (obj4) { | |
15706 | { | |
15707 | arg5 = &temp5; | |
15708 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15709 | } | |
15710 | } | |
994141e6 | 15711 | if (obj5) { |
c32bde28 | 15712 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 15713 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15714 | } |
d14a1e28 RD |
15715 | if (obj6) { |
15716 | { | |
15717 | arg7 = wxString_in_helper(obj6); | |
15718 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 15719 | temp7 = true; |
d14a1e28 RD |
15720 | } |
15721 | } | |
15722 | { | |
15723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15724 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15725 | ||
15726 | wxPyEndAllowThreads(__tstate); | |
15727 | if (PyErr_Occurred()) SWIG_fail; | |
15728 | } | |
4f89f6a3 RD |
15729 | { |
15730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15731 | } | |
d14a1e28 RD |
15732 | { |
15733 | if (temp7) | |
15734 | delete arg7; | |
15735 | } | |
15736 | return resultobj; | |
15737 | fail: | |
15738 | { | |
15739 | if (temp7) | |
15740 | delete arg7; | |
15741 | } | |
15742 | return NULL; | |
15743 | } | |
15744 | ||
15745 | ||
c32bde28 | 15746 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15747 | PyObject *resultobj; |
15748 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15749 | bool result; | |
15750 | PyObject * obj0 = 0 ; | |
15751 | char *kwnames[] = { | |
15752 | (char *) "self", NULL | |
15753 | }; | |
15754 | ||
15755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15758 | { |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
4f89f6a3 RD |
15765 | { |
15766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15767 | } | |
d14a1e28 RD |
15768 | return resultobj; |
15769 | fail: | |
15770 | return NULL; | |
15771 | } | |
15772 | ||
15773 | ||
1fbf26be RD |
15774 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
15775 | PyObject *resultobj; | |
15776 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15777 | wxListView *result; | |
15778 | PyObject * obj0 = 0 ; | |
15779 | char *kwnames[] = { | |
15780 | (char *) "self", NULL | |
15781 | }; | |
15782 | ||
15783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
15784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15786 | { | |
15787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15788 | result = (wxListView *)(arg1)->GetListView(); | |
15789 | ||
15790 | wxPyEndAllowThreads(__tstate); | |
15791 | if (PyErr_Occurred()) SWIG_fail; | |
15792 | } | |
15793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
15794 | return resultobj; | |
15795 | fail: | |
15796 | return NULL; | |
15797 | } | |
15798 | ||
15799 | ||
c32bde28 | 15800 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15801 | PyObject *obj; |
15802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15803 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15804 | Py_INCREF(obj); | |
15805 | return Py_BuildValue((char *)""); | |
15806 | } | |
c32bde28 | 15807 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15808 | PyObject *resultobj; |
15809 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15810 | int arg2 = (int) 0 ; | |
15811 | int arg3 = (int) -1 ; | |
15812 | int arg4 = (int) -1 ; | |
15813 | wxListbookEvent *result; | |
994141e6 RD |
15814 | PyObject * obj0 = 0 ; |
15815 | PyObject * obj1 = 0 ; | |
15816 | PyObject * obj2 = 0 ; | |
15817 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15818 | char *kwnames[] = { |
15819 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15820 | }; | |
15821 | ||
994141e6 RD |
15822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15823 | if (obj0) { | |
c32bde28 | 15824 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 15825 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15826 | } |
15827 | if (obj1) { | |
c32bde28 | 15828 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 15829 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15830 | } |
15831 | if (obj2) { | |
c32bde28 | 15832 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 15833 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
15834 | } |
15835 | if (obj3) { | |
c32bde28 | 15836 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 15837 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 15838 | } |
d14a1e28 RD |
15839 | { |
15840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15841 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15842 | ||
15843 | wxPyEndAllowThreads(__tstate); | |
15844 | if (PyErr_Occurred()) SWIG_fail; | |
15845 | } | |
15afbcd0 | 15846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15847 | return resultobj; |
15848 | fail: | |
15849 | return NULL; | |
15850 | } | |
15851 | ||
15852 | ||
c32bde28 | 15853 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15854 | PyObject *obj; |
15855 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15856 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15857 | Py_INCREF(obj); | |
15858 | return Py_BuildValue((char *)""); | |
15859 | } | |
2ef75293 RD |
15860 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
15861 | PyObject *resultobj; | |
15862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15863 | int arg2 ; | |
15864 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15865 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15866 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15867 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15868 | long arg5 = (long) 0 ; | |
15869 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15870 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15871 | wxChoicebook *result; | |
15872 | wxPoint temp3 ; | |
15873 | wxSize temp4 ; | |
ae8162c8 | 15874 | bool temp6 = false ; |
2ef75293 RD |
15875 | PyObject * obj0 = 0 ; |
15876 | PyObject * obj1 = 0 ; | |
15877 | PyObject * obj2 = 0 ; | |
15878 | PyObject * obj3 = 0 ; | |
15879 | PyObject * obj4 = 0 ; | |
15880 | PyObject * obj5 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15888 | arg2 = (int)SWIG_As_int(obj1); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | if (obj2) { | |
15891 | { | |
15892 | arg3 = &temp3; | |
15893 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15894 | } | |
15895 | } | |
15896 | if (obj3) { | |
15897 | { | |
15898 | arg4 = &temp4; | |
15899 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15900 | } | |
15901 | } | |
15902 | if (obj4) { | |
15903 | arg5 = (long)SWIG_As_long(obj4); | |
15904 | if (PyErr_Occurred()) SWIG_fail; | |
15905 | } | |
15906 | if (obj5) { | |
15907 | { | |
15908 | arg6 = wxString_in_helper(obj5); | |
15909 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 15910 | temp6 = true; |
2ef75293 RD |
15911 | } |
15912 | } | |
15913 | { | |
15914 | if (!wxPyCheckForApp()) SWIG_fail; | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
15922 | { | |
15923 | if (temp6) | |
15924 | delete arg6; | |
15925 | } | |
15926 | return resultobj; | |
15927 | fail: | |
15928 | { | |
15929 | if (temp6) | |
15930 | delete arg6; | |
15931 | } | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
15936 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
15937 | PyObject *resultobj; | |
15938 | wxChoicebook *result; | |
15939 | char *kwnames[] = { | |
15940 | NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
15944 | { | |
15945 | if (!wxPyCheckForApp()) SWIG_fail; | |
15946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15947 | result = (wxChoicebook *)new wxChoicebook(); | |
15948 | ||
15949 | wxPyEndAllowThreads(__tstate); | |
15950 | if (PyErr_Occurred()) SWIG_fail; | |
15951 | } | |
15952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
15953 | return resultobj; | |
15954 | fail: | |
15955 | return NULL; | |
15956 | } | |
15957 | ||
15958 | ||
15959 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
15960 | PyObject *resultobj; | |
15961 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
15962 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15963 | int arg3 ; | |
15964 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15965 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15966 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15967 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15968 | long arg6 = (long) 0 ; | |
15969 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15970 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15971 | bool result; | |
15972 | wxPoint temp4 ; | |
15973 | wxSize temp5 ; | |
ae8162c8 | 15974 | bool temp7 = false ; |
2ef75293 RD |
15975 | PyObject * obj0 = 0 ; |
15976 | PyObject * obj1 = 0 ; | |
15977 | PyObject * obj2 = 0 ; | |
15978 | PyObject * obj3 = 0 ; | |
15979 | PyObject * obj4 = 0 ; | |
15980 | PyObject * obj5 = 0 ; | |
15981 | PyObject * obj6 = 0 ; | |
15982 | char *kwnames[] = { | |
15983 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15984 | }; | |
15985 | ||
15986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
15988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15991 | arg3 = (int)SWIG_As_int(obj2); | |
15992 | if (PyErr_Occurred()) SWIG_fail; | |
15993 | if (obj3) { | |
15994 | { | |
15995 | arg4 = &temp4; | |
15996 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15997 | } | |
15998 | } | |
15999 | if (obj4) { | |
16000 | { | |
16001 | arg5 = &temp5; | |
16002 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16003 | } | |
16004 | } | |
16005 | if (obj5) { | |
16006 | arg6 = (long)SWIG_As_long(obj5); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | } | |
16009 | if (obj6) { | |
16010 | { | |
16011 | arg7 = wxString_in_helper(obj6); | |
16012 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 16013 | temp7 = true; |
2ef75293 RD |
16014 | } |
16015 | } | |
16016 | { | |
16017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16018 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
16019 | ||
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
16023 | { | |
16024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16025 | } | |
16026 | { | |
16027 | if (temp7) | |
16028 | delete arg7; | |
16029 | } | |
16030 | return resultobj; | |
16031 | fail: | |
16032 | { | |
16033 | if (temp7) | |
16034 | delete arg7; | |
16035 | } | |
16036 | return NULL; | |
16037 | } | |
16038 | ||
16039 | ||
16040 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
16041 | PyObject *resultobj; | |
16042 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16043 | bool result; | |
16044 | PyObject * obj0 = 0 ; | |
16045 | char *kwnames[] = { | |
16046 | (char *) "self", NULL | |
16047 | }; | |
16048 | ||
16049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
16050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16052 | { | |
16053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16054 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
16055 | ||
16056 | wxPyEndAllowThreads(__tstate); | |
16057 | if (PyErr_Occurred()) SWIG_fail; | |
16058 | } | |
16059 | { | |
16060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16061 | } | |
16062 | return resultobj; | |
16063 | fail: | |
16064 | return NULL; | |
16065 | } | |
16066 | ||
16067 | ||
16068 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
16069 | PyObject *resultobj; | |
16070 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
16071 | bool result; | |
16072 | PyObject * obj0 = 0 ; | |
16073 | char *kwnames[] = { | |
16074 | (char *) "self", NULL | |
16075 | }; | |
16076 | ||
16077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
16078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook, | |
16079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16080 | { | |
16081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16082 | result = (bool)(arg1)->DeleteAllPages(); | |
16083 | ||
16084 | wxPyEndAllowThreads(__tstate); | |
16085 | if (PyErr_Occurred()) SWIG_fail; | |
16086 | } | |
16087 | { | |
16088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16089 | } | |
16090 | return resultobj; | |
16091 | fail: | |
16092 | return NULL; | |
16093 | } | |
16094 | ||
16095 | ||
16096 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
16097 | PyObject *obj; | |
16098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16099 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
16100 | Py_INCREF(obj); | |
16101 | return Py_BuildValue((char *)""); | |
16102 | } | |
16103 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
16104 | PyObject *resultobj; | |
16105 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16106 | int arg2 = (int) 0 ; | |
16107 | int arg3 = (int) -1 ; | |
16108 | int arg4 = (int) -1 ; | |
16109 | wxChoicebookEvent *result; | |
16110 | PyObject * obj0 = 0 ; | |
16111 | PyObject * obj1 = 0 ; | |
16112 | PyObject * obj2 = 0 ; | |
16113 | PyObject * obj3 = 0 ; | |
16114 | char *kwnames[] = { | |
16115 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16116 | }; | |
16117 | ||
16118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16119 | if (obj0) { | |
16120 | arg1 = (wxEventType)SWIG_As_int(obj0); | |
16121 | if (PyErr_Occurred()) SWIG_fail; | |
16122 | } | |
16123 | if (obj1) { | |
16124 | arg2 = (int)SWIG_As_int(obj1); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
16127 | if (obj2) { | |
16128 | arg3 = (int)SWIG_As_int(obj2); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | } | |
16131 | if (obj3) { | |
16132 | arg4 = (int)SWIG_As_int(obj3); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | { | |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
16143 | return resultobj; | |
16144 | fail: | |
16145 | return NULL; | |
16146 | } | |
16147 | ||
16148 | ||
16149 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
16150 | PyObject *obj; | |
16151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16152 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
16153 | Py_INCREF(obj); | |
16154 | return Py_BuildValue((char *)""); | |
16155 | } | |
c32bde28 | 16156 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16157 | PyObject *resultobj; |
16158 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
16159 | wxBookCtrlSizer *result; | |
16160 | PyObject * obj0 = 0 ; | |
16161 | char *kwnames[] = { | |
16162 | (char *) "nb", NULL | |
16163 | }; | |
16164 | ||
16165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
16167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16168 | { |
16169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16170 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
16171 | ||
16172 | wxPyEndAllowThreads(__tstate); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
15afbcd0 | 16175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
16176 | return resultobj; |
16177 | fail: | |
16178 | return NULL; | |
16179 | } | |
16180 | ||
16181 | ||
c32bde28 | 16182 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16183 | PyObject *resultobj; |
16184 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16185 | PyObject * obj0 = 0 ; | |
16186 | char *kwnames[] = { | |
16187 | (char *) "self", NULL | |
16188 | }; | |
16189 | ||
16190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16193 | { |
16194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16195 | (arg1)->RecalcSizes(); | |
16196 | ||
16197 | wxPyEndAllowThreads(__tstate); | |
16198 | if (PyErr_Occurred()) SWIG_fail; | |
16199 | } | |
16200 | Py_INCREF(Py_None); resultobj = Py_None; | |
16201 | return resultobj; | |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
c32bde28 | 16207 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16208 | PyObject *resultobj; |
16209 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16210 | wxSize result; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | char *kwnames[] = { | |
16213 | (char *) "self", NULL | |
16214 | }; | |
16215 | ||
16216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16219 | { |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (arg1)->CalcMin(); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | { | |
16227 | wxSize * resultptr; | |
16228 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16230 | } |
16231 | return resultobj; | |
16232 | fail: | |
16233 | return NULL; | |
16234 | } | |
16235 | ||
16236 | ||
c32bde28 | 16237 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16238 | PyObject *resultobj; |
16239 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
16240 | wxBookCtrl *result; | |
16241 | PyObject * obj0 = 0 ; | |
16242 | char *kwnames[] = { | |
16243 | (char *) "self", NULL | |
16244 | }; | |
16245 | ||
16246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
16248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16249 | { |
16250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16251 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
16252 | ||
16253 | wxPyEndAllowThreads(__tstate); | |
16254 | if (PyErr_Occurred()) SWIG_fail; | |
16255 | } | |
15afbcd0 | 16256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
16257 | return resultobj; |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
c32bde28 | 16263 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16264 | PyObject *obj; |
16265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16266 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
16267 | Py_INCREF(obj); | |
16268 | return Py_BuildValue((char *)""); | |
16269 | } | |
c32bde28 | 16270 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16271 | PyObject *resultobj; |
16272 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
16273 | wxNotebookSizer *result; | |
16274 | PyObject * obj0 = 0 ; | |
16275 | char *kwnames[] = { | |
16276 | (char *) "nb", NULL | |
16277 | }; | |
16278 | ||
16279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
16281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16282 | { |
16283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16284 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
16285 | ||
16286 | wxPyEndAllowThreads(__tstate); | |
16287 | if (PyErr_Occurred()) SWIG_fail; | |
16288 | } | |
15afbcd0 | 16289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
16290 | return resultobj; |
16291 | fail: | |
16292 | return NULL; | |
16293 | } | |
16294 | ||
16295 | ||
c32bde28 | 16296 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16297 | PyObject *resultobj; |
16298 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16307 | { |
16308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16309 | (arg1)->RecalcSizes(); | |
16310 | ||
16311 | wxPyEndAllowThreads(__tstate); | |
16312 | if (PyErr_Occurred()) SWIG_fail; | |
16313 | } | |
16314 | Py_INCREF(Py_None); resultobj = Py_None; | |
16315 | return resultobj; | |
16316 | fail: | |
16317 | return NULL; | |
16318 | } | |
16319 | ||
16320 | ||
c32bde28 | 16321 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16322 | PyObject *resultobj; |
16323 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16324 | wxSize result; | |
16325 | PyObject * obj0 = 0 ; | |
16326 | char *kwnames[] = { | |
16327 | (char *) "self", NULL | |
16328 | }; | |
16329 | ||
16330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16333 | { |
16334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16335 | result = (arg1)->CalcMin(); | |
16336 | ||
16337 | wxPyEndAllowThreads(__tstate); | |
16338 | if (PyErr_Occurred()) SWIG_fail; | |
16339 | } | |
16340 | { | |
16341 | wxSize * resultptr; | |
16342 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16344 | } |
16345 | return resultobj; | |
16346 | fail: | |
16347 | return NULL; | |
16348 | } | |
16349 | ||
16350 | ||
c32bde28 | 16351 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16352 | PyObject *resultobj; |
16353 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
16354 | wxNotebook *result; | |
16355 | PyObject * obj0 = 0 ; | |
16356 | char *kwnames[] = { | |
16357 | (char *) "self", NULL | |
16358 | }; | |
16359 | ||
16360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
16362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16363 | { |
16364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16365 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
16366 | ||
16367 | wxPyEndAllowThreads(__tstate); | |
16368 | if (PyErr_Occurred()) SWIG_fail; | |
16369 | } | |
16370 | { | |
412d302d | 16371 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16372 | } |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
c32bde28 | 16379 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16380 | PyObject *obj; |
16381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16382 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
16383 | Py_INCREF(obj); | |
16384 | return Py_BuildValue((char *)""); | |
16385 | } | |
c32bde28 | 16386 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16387 | PyObject *resultobj; |
16388 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16389 | int result; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16398 | { |
16399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16400 | result = (int)(arg1)->GetId(); | |
16401 | ||
16402 | wxPyEndAllowThreads(__tstate); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
c32bde28 | 16405 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16406 | return resultobj; |
16407 | fail: | |
16408 | return NULL; | |
16409 | } | |
16410 | ||
16411 | ||
c32bde28 | 16412 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16413 | PyObject *resultobj; |
16414 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16415 | wxControl *result; | |
16416 | PyObject * obj0 = 0 ; | |
16417 | char *kwnames[] = { | |
16418 | (char *) "self", NULL | |
16419 | }; | |
16420 | ||
16421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16424 | { |
16425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16426 | result = (wxControl *)(arg1)->GetControl(); | |
16427 | ||
16428 | wxPyEndAllowThreads(__tstate); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
16431 | { | |
412d302d | 16432 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16433 | } |
16434 | return resultobj; | |
16435 | fail: | |
16436 | return NULL; | |
16437 | } | |
16438 | ||
16439 | ||
c32bde28 | 16440 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16441 | PyObject *resultobj; |
16442 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16443 | wxToolBarBase *result; | |
16444 | PyObject * obj0 = 0 ; | |
16445 | char *kwnames[] = { | |
16446 | (char *) "self", NULL | |
16447 | }; | |
16448 | ||
16449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16452 | { |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16455 | ||
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | { | |
412d302d | 16460 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16461 | } |
16462 | return resultobj; | |
16463 | fail: | |
16464 | return NULL; | |
16465 | } | |
16466 | ||
16467 | ||
c32bde28 | 16468 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16469 | PyObject *resultobj; |
16470 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16471 | int result; | |
16472 | PyObject * obj0 = 0 ; | |
16473 | char *kwnames[] = { | |
16474 | (char *) "self", NULL | |
16475 | }; | |
16476 | ||
16477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16480 | { |
16481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16482 | result = (int)(arg1)->IsButton(); | |
16483 | ||
16484 | wxPyEndAllowThreads(__tstate); | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | } | |
c32bde28 | 16487 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16488 | return resultobj; |
16489 | fail: | |
16490 | return NULL; | |
16491 | } | |
16492 | ||
16493 | ||
c32bde28 | 16494 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16495 | PyObject *resultobj; |
16496 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16497 | int result; | |
16498 | PyObject * obj0 = 0 ; | |
16499 | char *kwnames[] = { | |
16500 | (char *) "self", NULL | |
16501 | }; | |
16502 | ||
16503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16506 | { |
16507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16508 | result = (int)(arg1)->IsControl(); | |
16509 | ||
16510 | wxPyEndAllowThreads(__tstate); | |
16511 | if (PyErr_Occurred()) SWIG_fail; | |
16512 | } | |
c32bde28 | 16513 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16514 | return resultobj; |
16515 | fail: | |
16516 | return NULL; | |
16517 | } | |
16518 | ||
16519 | ||
c32bde28 | 16520 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16521 | PyObject *resultobj; |
16522 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16523 | int result; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | char *kwnames[] = { | |
16526 | (char *) "self", NULL | |
16527 | }; | |
16528 | ||
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16532 | { |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16534 | result = (int)(arg1)->IsSeparator(); | |
16535 | ||
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
c32bde28 | 16539 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16540 | return resultobj; |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
c32bde28 | 16546 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16547 | PyObject *resultobj; |
16548 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16549 | int result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | char *kwnames[] = { | |
16552 | (char *) "self", NULL | |
16553 | }; | |
16554 | ||
16555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16558 | { |
16559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16560 | result = (int)(arg1)->GetStyle(); | |
16561 | ||
16562 | wxPyEndAllowThreads(__tstate); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
c32bde28 | 16565 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16566 | return resultobj; |
16567 | fail: | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
c32bde28 | 16572 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16573 | PyObject *resultobj; |
16574 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16575 | int result; | |
16576 | PyObject * obj0 = 0 ; | |
16577 | char *kwnames[] = { | |
16578 | (char *) "self", NULL | |
16579 | }; | |
16580 | ||
16581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16584 | { |
16585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16586 | result = (int)(arg1)->GetKind(); | |
16587 | ||
16588 | wxPyEndAllowThreads(__tstate); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
c32bde28 | 16591 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
16592 | return resultobj; |
16593 | fail: | |
16594 | return NULL; | |
16595 | } | |
16596 | ||
16597 | ||
c32bde28 | 16598 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16599 | PyObject *resultobj; |
16600 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16601 | bool result; | |
16602 | PyObject * obj0 = 0 ; | |
16603 | char *kwnames[] = { | |
16604 | (char *) "self", NULL | |
16605 | }; | |
16606 | ||
16607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16610 | { |
16611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16612 | result = (bool)(arg1)->IsEnabled(); | |
16613 | ||
16614 | wxPyEndAllowThreads(__tstate); | |
16615 | if (PyErr_Occurred()) SWIG_fail; | |
16616 | } | |
4f89f6a3 RD |
16617 | { |
16618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16619 | } | |
d14a1e28 RD |
16620 | return resultobj; |
16621 | fail: | |
16622 | return NULL; | |
16623 | } | |
16624 | ||
16625 | ||
c32bde28 | 16626 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16627 | PyObject *resultobj; |
16628 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16629 | bool result; | |
16630 | PyObject * obj0 = 0 ; | |
16631 | char *kwnames[] = { | |
16632 | (char *) "self", NULL | |
16633 | }; | |
16634 | ||
16635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16638 | { |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | result = (bool)(arg1)->IsToggled(); | |
16641 | ||
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
4f89f6a3 RD |
16645 | { |
16646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16647 | } | |
d14a1e28 RD |
16648 | return resultobj; |
16649 | fail: | |
16650 | return NULL; | |
16651 | } | |
16652 | ||
16653 | ||
c32bde28 | 16654 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16655 | PyObject *resultobj; |
16656 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16657 | bool result; | |
16658 | PyObject * obj0 = 0 ; | |
16659 | char *kwnames[] = { | |
16660 | (char *) "self", NULL | |
16661 | }; | |
16662 | ||
16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16666 | { |
16667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16668 | result = (bool)(arg1)->CanBeToggled(); | |
16669 | ||
16670 | wxPyEndAllowThreads(__tstate); | |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
16672 | } | |
4f89f6a3 RD |
16673 | { |
16674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16675 | } | |
d14a1e28 RD |
16676 | return resultobj; |
16677 | fail: | |
16678 | return NULL; | |
16679 | } | |
16680 | ||
16681 | ||
c32bde28 | 16682 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16683 | PyObject *resultobj; |
16684 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16685 | wxBitmap *result; | |
16686 | PyObject * obj0 = 0 ; | |
16687 | char *kwnames[] = { | |
16688 | (char *) "self", NULL | |
16689 | }; | |
16690 | ||
16691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16694 | { |
16695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16696 | { | |
16697 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16698 | result = (wxBitmap *) &_result_ref; | |
16699 | } | |
16700 | ||
16701 | wxPyEndAllowThreads(__tstate); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | } | |
4276dc52 RD |
16704 | { |
16705 | wxBitmap* resultptr = new wxBitmap(*result); | |
16706 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16707 | } | |
d14a1e28 RD |
16708 | return resultobj; |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
c32bde28 | 16714 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16715 | PyObject *resultobj; |
16716 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16717 | wxBitmap *result; | |
16718 | PyObject * obj0 = 0 ; | |
16719 | char *kwnames[] = { | |
16720 | (char *) "self", NULL | |
16721 | }; | |
16722 | ||
16723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",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 | { | |
16729 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16730 | result = (wxBitmap *) &_result_ref; | |
16731 | } | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
4276dc52 RD |
16736 | { |
16737 | wxBitmap* resultptr = new wxBitmap(*result); | |
16738 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16739 | } | |
d14a1e28 RD |
16740 | return resultobj; |
16741 | fail: | |
16742 | return NULL; | |
16743 | } | |
16744 | ||
16745 | ||
c32bde28 | 16746 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16747 | PyObject *resultobj; |
16748 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16749 | wxBitmap result; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | char *kwnames[] = { | |
16752 | (char *) "self", NULL | |
16753 | }; | |
16754 | ||
16755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16758 | { |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16760 | result = (arg1)->GetBitmap(); | |
16761 | ||
16762 | wxPyEndAllowThreads(__tstate); | |
16763 | if (PyErr_Occurred()) SWIG_fail; | |
16764 | } | |
16765 | { | |
16766 | wxBitmap * resultptr; | |
16767 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16769 | } |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
c32bde28 | 16776 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16777 | PyObject *resultobj; |
16778 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16779 | wxString result; | |
16780 | PyObject * obj0 = 0 ; | |
16781 | char *kwnames[] = { | |
16782 | (char *) "self", NULL | |
16783 | }; | |
16784 | ||
16785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16788 | { |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (arg1)->GetLabel(); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | { | |
16796 | #if wxUSE_UNICODE | |
16797 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16798 | #else | |
16799 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16800 | #endif | |
16801 | } | |
16802 | return resultobj; | |
16803 | fail: | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
c32bde28 | 16808 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16809 | PyObject *resultobj; |
16810 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16811 | wxString result; | |
16812 | PyObject * obj0 = 0 ; | |
16813 | char *kwnames[] = { | |
16814 | (char *) "self", NULL | |
16815 | }; | |
16816 | ||
16817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16820 | { |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = (arg1)->GetShortHelp(); | |
16823 | ||
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
16827 | { | |
16828 | #if wxUSE_UNICODE | |
16829 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16830 | #else | |
16831 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16832 | #endif | |
16833 | } | |
16834 | return resultobj; | |
16835 | fail: | |
16836 | return NULL; | |
16837 | } | |
16838 | ||
16839 | ||
c32bde28 | 16840 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16841 | PyObject *resultobj; |
16842 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16843 | wxString result; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16852 | { |
16853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16854 | result = (arg1)->GetLongHelp(); | |
16855 | ||
16856 | wxPyEndAllowThreads(__tstate); | |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
16858 | } | |
16859 | { | |
16860 | #if wxUSE_UNICODE | |
16861 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16862 | #else | |
16863 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16864 | #endif | |
16865 | } | |
16866 | return resultobj; | |
16867 | fail: | |
16868 | return NULL; | |
16869 | } | |
16870 | ||
16871 | ||
c32bde28 | 16872 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16873 | PyObject *resultobj; |
16874 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16875 | bool arg2 ; | |
16876 | bool result; | |
16877 | PyObject * obj0 = 0 ; | |
16878 | PyObject * obj1 = 0 ; | |
16879 | char *kwnames[] = { | |
16880 | (char *) "self",(char *) "enable", NULL | |
16881 | }; | |
16882 | ||
16883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16886 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16887 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16888 | { |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | result = (bool)(arg1)->Enable(arg2); | |
16891 | ||
16892 | wxPyEndAllowThreads(__tstate); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | } | |
4f89f6a3 RD |
16895 | { |
16896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16897 | } | |
d14a1e28 RD |
16898 | return resultobj; |
16899 | fail: | |
16900 | return NULL; | |
16901 | } | |
16902 | ||
16903 | ||
c32bde28 | 16904 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16905 | PyObject *resultobj; |
16906 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16907 | PyObject * obj0 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16915 | { |
16916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16917 | (arg1)->Toggle(); | |
16918 | ||
16919 | wxPyEndAllowThreads(__tstate); | |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | } | |
16922 | Py_INCREF(Py_None); resultobj = Py_None; | |
16923 | return resultobj; | |
16924 | fail: | |
16925 | return NULL; | |
16926 | } | |
16927 | ||
16928 | ||
c32bde28 | 16929 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16930 | PyObject *resultobj; |
16931 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16932 | bool arg2 ; | |
16933 | bool result; | |
16934 | PyObject * obj0 = 0 ; | |
16935 | PyObject * obj1 = 0 ; | |
16936 | char *kwnames[] = { | |
16937 | (char *) "self",(char *) "toggle", NULL | |
16938 | }; | |
16939 | ||
16940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16943 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 16944 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
16945 | { |
16946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16947 | result = (bool)(arg1)->SetToggle(arg2); | |
16948 | ||
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
4f89f6a3 RD |
16952 | { |
16953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16954 | } | |
d14a1e28 RD |
16955 | return resultobj; |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
c32bde28 | 16961 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16962 | PyObject *resultobj; |
16963 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16964 | wxString *arg2 = 0 ; | |
16965 | bool result; | |
ae8162c8 | 16966 | bool temp2 = false ; |
d14a1e28 RD |
16967 | PyObject * obj0 = 0 ; |
16968 | PyObject * obj1 = 0 ; | |
16969 | char *kwnames[] = { | |
16970 | (char *) "self",(char *) "help", NULL | |
16971 | }; | |
16972 | ||
16973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16976 | { |
16977 | arg2 = wxString_in_helper(obj1); | |
16978 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16979 | temp2 = true; |
d14a1e28 RD |
16980 | } |
16981 | { | |
16982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16983 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16984 | ||
16985 | wxPyEndAllowThreads(__tstate); | |
16986 | if (PyErr_Occurred()) SWIG_fail; | |
16987 | } | |
4f89f6a3 RD |
16988 | { |
16989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16990 | } | |
d14a1e28 RD |
16991 | { |
16992 | if (temp2) | |
16993 | delete arg2; | |
16994 | } | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | { | |
16998 | if (temp2) | |
16999 | delete arg2; | |
17000 | } | |
17001 | return NULL; | |
17002 | } | |
17003 | ||
17004 | ||
c32bde28 | 17005 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17006 | PyObject *resultobj; |
17007 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17008 | wxString *arg2 = 0 ; | |
17009 | bool result; | |
ae8162c8 | 17010 | bool temp2 = false ; |
d14a1e28 RD |
17011 | PyObject * obj0 = 0 ; |
17012 | PyObject * obj1 = 0 ; | |
17013 | char *kwnames[] = { | |
17014 | (char *) "self",(char *) "help", NULL | |
17015 | }; | |
17016 | ||
17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17020 | { |
17021 | arg2 = wxString_in_helper(obj1); | |
17022 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17023 | temp2 = true; |
d14a1e28 RD |
17024 | } |
17025 | { | |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
4f89f6a3 RD |
17032 | { |
17033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17034 | } | |
d14a1e28 RD |
17035 | { |
17036 | if (temp2) | |
17037 | delete arg2; | |
17038 | } | |
17039 | return resultobj; | |
17040 | fail: | |
17041 | { | |
17042 | if (temp2) | |
17043 | delete arg2; | |
17044 | } | |
17045 | return NULL; | |
17046 | } | |
17047 | ||
17048 | ||
c32bde28 | 17049 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17050 | PyObject *resultobj; |
17051 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17052 | wxBitmap *arg2 = 0 ; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | PyObject * obj1 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "self",(char *) "bmp", NULL | |
17057 | }; | |
17058 | ||
17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17063 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17064 | SWIG_fail; | |
d14a1e28 | 17065 | if (arg2 == NULL) { |
15afbcd0 RD |
17066 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17067 | SWIG_fail; | |
d14a1e28 RD |
17068 | } |
17069 | { | |
17070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17071 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
17072 | ||
17073 | wxPyEndAllowThreads(__tstate); | |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
17075 | } | |
17076 | Py_INCREF(Py_None); resultobj = Py_None; | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
c32bde28 | 17083 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17084 | PyObject *resultobj; |
17085 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17086 | wxBitmap *arg2 = 0 ; | |
17087 | PyObject * obj0 = 0 ; | |
17088 | PyObject * obj1 = 0 ; | |
17089 | char *kwnames[] = { | |
17090 | (char *) "self",(char *) "bmp", NULL | |
17091 | }; | |
17092 | ||
17093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
17097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17098 | SWIG_fail; | |
d14a1e28 | 17099 | if (arg2 == NULL) { |
15afbcd0 RD |
17100 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17101 | SWIG_fail; | |
d14a1e28 RD |
17102 | } |
17103 | { | |
17104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17105 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
17106 | ||
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | Py_INCREF(Py_None); resultobj = Py_None; | |
17111 | return resultobj; | |
17112 | fail: | |
17113 | return NULL; | |
17114 | } | |
17115 | ||
17116 | ||
c32bde28 | 17117 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17118 | PyObject *resultobj; |
17119 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17120 | wxString *arg2 = 0 ; | |
ae8162c8 | 17121 | bool temp2 = false ; |
d14a1e28 RD |
17122 | PyObject * obj0 = 0 ; |
17123 | PyObject * obj1 = 0 ; | |
17124 | char *kwnames[] = { | |
17125 | (char *) "self",(char *) "label", NULL | |
17126 | }; | |
17127 | ||
17128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17131 | { |
17132 | arg2 = wxString_in_helper(obj1); | |
17133 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17134 | temp2 = true; |
d14a1e28 RD |
17135 | } |
17136 | { | |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | (arg1)->SetLabel((wxString const &)*arg2); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | Py_INCREF(Py_None); resultobj = Py_None; | |
17144 | { | |
17145 | if (temp2) | |
17146 | delete arg2; | |
17147 | } | |
17148 | return resultobj; | |
17149 | fail: | |
17150 | { | |
17151 | if (temp2) | |
17152 | delete arg2; | |
17153 | } | |
17154 | return NULL; | |
17155 | } | |
17156 | ||
17157 | ||
c32bde28 | 17158 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17159 | PyObject *resultobj; |
17160 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17161 | PyObject * obj0 = 0 ; | |
17162 | char *kwnames[] = { | |
17163 | (char *) "self", NULL | |
17164 | }; | |
17165 | ||
17166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17169 | { |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | (arg1)->Detach(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | Py_INCREF(Py_None); resultobj = Py_None; | |
17177 | return resultobj; | |
17178 | fail: | |
17179 | return NULL; | |
17180 | } | |
17181 | ||
17182 | ||
c32bde28 | 17183 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17184 | PyObject *resultobj; |
17185 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17186 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
17187 | PyObject * obj0 = 0 ; | |
17188 | PyObject * obj1 = 0 ; | |
17189 | char *kwnames[] = { | |
17190 | (char *) "self",(char *) "tbar", NULL | |
17191 | }; | |
17192 | ||
17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
17197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17198 | { |
17199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17200 | (arg1)->Attach(arg2); | |
17201 | ||
17202 | wxPyEndAllowThreads(__tstate); | |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
17204 | } | |
17205 | Py_INCREF(Py_None); resultobj = Py_None; | |
17206 | return resultobj; | |
17207 | fail: | |
17208 | return NULL; | |
17209 | } | |
17210 | ||
17211 | ||
c32bde28 | 17212 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17213 | PyObject *resultobj; |
17214 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17215 | PyObject *result; | |
17216 | PyObject * obj0 = 0 ; | |
17217 | char *kwnames[] = { | |
17218 | (char *) "self", NULL | |
17219 | }; | |
17220 | ||
17221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17224 | { |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17226 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | resultobj = result; | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
c32bde28 | 17238 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17239 | PyObject *resultobj; |
17240 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
17241 | PyObject *arg2 = (PyObject *) 0 ; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "self",(char *) "clientData", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
17250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17251 | arg2 = obj1; |
17252 | { | |
17253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17254 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
17255 | ||
17256 | wxPyEndAllowThreads(__tstate); | |
17257 | if (PyErr_Occurred()) SWIG_fail; | |
17258 | } | |
17259 | Py_INCREF(Py_None); resultobj = Py_None; | |
17260 | return resultobj; | |
17261 | fail: | |
17262 | return NULL; | |
17263 | } | |
17264 | ||
17265 | ||
c32bde28 | 17266 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17267 | PyObject *obj; |
17268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17269 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
17270 | Py_INCREF(obj); | |
17271 | return Py_BuildValue((char *)""); | |
17272 | } | |
c32bde28 | 17273 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17274 | PyObject *resultobj; |
17275 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17276 | int arg2 ; | |
17277 | wxString *arg3 = 0 ; | |
17278 | wxBitmap *arg4 = 0 ; | |
17279 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
17280 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
17281 | int arg6 = (int) wxITEM_NORMAL ; | |
17282 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17283 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17284 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17285 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17286 | PyObject *arg9 = (PyObject *) NULL ; | |
17287 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17288 | bool temp3 = false ; |
17289 | bool temp7 = false ; | |
17290 | bool temp8 = false ; | |
d14a1e28 | 17291 | PyObject * obj0 = 0 ; |
994141e6 | 17292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17293 | PyObject * obj2 = 0 ; |
17294 | PyObject * obj3 = 0 ; | |
17295 | PyObject * obj4 = 0 ; | |
994141e6 | 17296 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17297 | PyObject * obj6 = 0 ; |
17298 | PyObject * obj7 = 0 ; | |
17299 | PyObject * obj8 = 0 ; | |
17300 | char *kwnames[] = { | |
17301 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17302 | }; | |
17303 | ||
994141e6 | 17304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
17305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17307 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17308 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17309 | { |
17310 | arg3 = wxString_in_helper(obj2); | |
17311 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17312 | temp3 = true; |
d14a1e28 | 17313 | } |
15afbcd0 RD |
17314 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
17315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17316 | SWIG_fail; | |
d14a1e28 | 17317 | if (arg4 == NULL) { |
15afbcd0 RD |
17318 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17319 | SWIG_fail; | |
d14a1e28 RD |
17320 | } |
17321 | if (obj4) { | |
15afbcd0 RD |
17322 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
17323 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17324 | SWIG_fail; | |
d14a1e28 | 17325 | if (arg5 == NULL) { |
15afbcd0 RD |
17326 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17327 | SWIG_fail; | |
d14a1e28 RD |
17328 | } |
17329 | } | |
994141e6 | 17330 | if (obj5) { |
c32bde28 | 17331 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 17332 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17333 | } |
d14a1e28 RD |
17334 | if (obj6) { |
17335 | { | |
17336 | arg7 = wxString_in_helper(obj6); | |
17337 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17338 | temp7 = true; |
d14a1e28 RD |
17339 | } |
17340 | } | |
17341 | if (obj7) { | |
17342 | { | |
17343 | arg8 = wxString_in_helper(obj7); | |
17344 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17345 | temp8 = true; |
d14a1e28 RD |
17346 | } |
17347 | } | |
17348 | if (obj8) { | |
17349 | arg9 = obj8; | |
17350 | } | |
17351 | { | |
17352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17353 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
17354 | ||
17355 | wxPyEndAllowThreads(__tstate); | |
17356 | if (PyErr_Occurred()) SWIG_fail; | |
17357 | } | |
17358 | { | |
412d302d | 17359 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17360 | } |
17361 | { | |
17362 | if (temp3) | |
17363 | delete arg3; | |
17364 | } | |
17365 | { | |
17366 | if (temp7) | |
17367 | delete arg7; | |
17368 | } | |
17369 | { | |
17370 | if (temp8) | |
17371 | delete arg8; | |
17372 | } | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | { | |
17376 | if (temp3) | |
17377 | delete arg3; | |
17378 | } | |
17379 | { | |
17380 | if (temp7) | |
17381 | delete arg7; | |
17382 | } | |
17383 | { | |
17384 | if (temp8) | |
17385 | delete arg8; | |
17386 | } | |
17387 | return NULL; | |
17388 | } | |
17389 | ||
17390 | ||
c32bde28 | 17391 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17392 | PyObject *resultobj; |
17393 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17394 | size_t arg2 ; | |
17395 | int arg3 ; | |
17396 | wxString *arg4 = 0 ; | |
17397 | wxBitmap *arg5 = 0 ; | |
17398 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17399 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17400 | int arg7 = (int) wxITEM_NORMAL ; | |
17401 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17402 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17403 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17404 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17405 | PyObject *arg10 = (PyObject *) NULL ; | |
17406 | wxToolBarToolBase *result; | |
ae8162c8 RD |
17407 | bool temp4 = false ; |
17408 | bool temp8 = false ; | |
17409 | bool temp9 = false ; | |
d14a1e28 RD |
17410 | PyObject * obj0 = 0 ; |
17411 | PyObject * obj1 = 0 ; | |
994141e6 | 17412 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17413 | PyObject * obj3 = 0 ; |
17414 | PyObject * obj4 = 0 ; | |
17415 | PyObject * obj5 = 0 ; | |
994141e6 | 17416 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
17417 | PyObject * obj7 = 0 ; |
17418 | PyObject * obj8 = 0 ; | |
17419 | PyObject * obj9 = 0 ; | |
17420 | char *kwnames[] = { | |
17421 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17422 | }; | |
17423 | ||
994141e6 | 17424 | 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 |
17425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17427 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17428 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17429 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 17430 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17431 | { |
17432 | arg4 = wxString_in_helper(obj3); | |
17433 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17434 | temp4 = true; |
d14a1e28 | 17435 | } |
15afbcd0 RD |
17436 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
17437 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17438 | SWIG_fail; | |
d14a1e28 | 17439 | if (arg5 == NULL) { |
15afbcd0 RD |
17440 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17441 | SWIG_fail; | |
d14a1e28 RD |
17442 | } |
17443 | if (obj5) { | |
15afbcd0 RD |
17444 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
17445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17446 | SWIG_fail; | |
d14a1e28 | 17447 | if (arg6 == NULL) { |
15afbcd0 RD |
17448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17449 | SWIG_fail; | |
d14a1e28 RD |
17450 | } |
17451 | } | |
994141e6 | 17452 | if (obj6) { |
c32bde28 | 17453 | arg7 = (int)SWIG_As_int(obj6); |
15afbcd0 | 17454 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 17455 | } |
d14a1e28 RD |
17456 | if (obj7) { |
17457 | { | |
17458 | arg8 = wxString_in_helper(obj7); | |
17459 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 17460 | temp8 = true; |
d14a1e28 RD |
17461 | } |
17462 | } | |
17463 | if (obj8) { | |
17464 | { | |
17465 | arg9 = wxString_in_helper(obj8); | |
17466 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 17467 | temp9 = true; |
d14a1e28 RD |
17468 | } |
17469 | } | |
17470 | if (obj9) { | |
17471 | arg10 = obj9; | |
17472 | } | |
17473 | { | |
17474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17475 | 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); | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | { | |
412d302d | 17481 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17482 | } |
17483 | { | |
17484 | if (temp4) | |
17485 | delete arg4; | |
17486 | } | |
17487 | { | |
17488 | if (temp8) | |
17489 | delete arg8; | |
17490 | } | |
17491 | { | |
17492 | if (temp9) | |
17493 | delete arg9; | |
17494 | } | |
17495 | return resultobj; | |
17496 | fail: | |
17497 | { | |
17498 | if (temp4) | |
17499 | delete arg4; | |
17500 | } | |
17501 | { | |
17502 | if (temp8) | |
17503 | delete arg8; | |
17504 | } | |
17505 | { | |
17506 | if (temp9) | |
17507 | delete arg9; | |
17508 | } | |
17509 | return NULL; | |
17510 | } | |
17511 | ||
17512 | ||
c32bde28 | 17513 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17514 | PyObject *resultobj; |
17515 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17516 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17517 | wxToolBarToolBase *result; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | PyObject * obj1 = 0 ; | |
17520 | char *kwnames[] = { | |
17521 | (char *) "self",(char *) "tool", NULL | |
17522 | }; | |
17523 | ||
17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17527 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17529 | { |
17530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17531 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17532 | ||
17533 | wxPyEndAllowThreads(__tstate); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | } | |
17536 | { | |
412d302d | 17537 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17538 | } |
17539 | return resultobj; | |
17540 | fail: | |
17541 | return NULL; | |
17542 | } | |
17543 | ||
17544 | ||
c32bde28 | 17545 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
17546 | PyObject *resultobj; |
17547 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17548 | size_t arg2 ; | |
17549 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17550 | wxToolBarToolBase *result; | |
17551 | PyObject * obj0 = 0 ; | |
17552 | PyObject * obj1 = 0 ; | |
17553 | PyObject * obj2 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17561 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17562 | if (PyErr_Occurred()) SWIG_fail; |
17563 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17565 | { |
17566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17567 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17568 | ||
17569 | wxPyEndAllowThreads(__tstate); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
17572 | { | |
412d302d | 17573 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17574 | } |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
c32bde28 | 17581 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17582 | PyObject *resultobj; |
17583 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17584 | wxControl *arg2 = (wxControl *) 0 ; | |
17585 | wxToolBarToolBase *result; | |
17586 | PyObject * obj0 = 0 ; | |
17587 | PyObject * obj1 = 0 ; | |
17588 | char *kwnames[] = { | |
17589 | (char *) "self",(char *) "control", NULL | |
17590 | }; | |
17591 | ||
17592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17597 | { |
17598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17599 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17600 | ||
17601 | wxPyEndAllowThreads(__tstate); | |
17602 | if (PyErr_Occurred()) SWIG_fail; | |
17603 | } | |
17604 | { | |
412d302d | 17605 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17606 | } |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
17610 | } | |
17611 | ||
17612 | ||
c32bde28 | 17613 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17614 | PyObject *resultobj; |
17615 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17616 | size_t arg2 ; | |
17617 | wxControl *arg3 = (wxControl *) 0 ; | |
17618 | wxToolBarToolBase *result; | |
17619 | PyObject * obj0 = 0 ; | |
17620 | PyObject * obj1 = 0 ; | |
17621 | PyObject * obj2 = 0 ; | |
17622 | char *kwnames[] = { | |
17623 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17624 | }; | |
17625 | ||
17626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17629 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 RD |
17630 | if (PyErr_Occurred()) SWIG_fail; |
17631 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17633 | { |
17634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17635 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17636 | ||
17637 | wxPyEndAllowThreads(__tstate); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
17640 | { | |
412d302d | 17641 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17642 | } |
17643 | return resultobj; | |
17644 | fail: | |
17645 | return NULL; | |
17646 | } | |
17647 | ||
17648 | ||
c32bde28 | 17649 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17650 | PyObject *resultobj; |
17651 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17652 | int arg2 ; | |
17653 | wxControl *result; | |
17654 | PyObject * obj0 = 0 ; | |
994141e6 | 17655 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17656 | char *kwnames[] = { |
17657 | (char *) "self",(char *) "id", NULL | |
17658 | }; | |
17659 | ||
994141e6 | 17660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17663 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17664 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17665 | { |
17666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17667 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17668 | ||
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | { | |
412d302d | 17673 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17674 | } |
17675 | return resultobj; | |
17676 | fail: | |
17677 | return NULL; | |
17678 | } | |
17679 | ||
17680 | ||
c32bde28 | 17681 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17682 | PyObject *resultobj; |
17683 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17684 | wxToolBarToolBase *result; | |
17685 | PyObject * obj0 = 0 ; | |
17686 | char *kwnames[] = { | |
17687 | (char *) "self", NULL | |
17688 | }; | |
17689 | ||
17690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17693 | { |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | { | |
412d302d | 17701 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17702 | } |
17703 | return resultobj; | |
17704 | fail: | |
17705 | return NULL; | |
17706 | } | |
17707 | ||
17708 | ||
c32bde28 | 17709 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17710 | PyObject *resultobj; |
17711 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17712 | size_t arg2 ; | |
17713 | wxToolBarToolBase *result; | |
17714 | PyObject * obj0 = 0 ; | |
17715 | PyObject * obj1 = 0 ; | |
17716 | char *kwnames[] = { | |
17717 | (char *) "self",(char *) "pos", NULL | |
17718 | }; | |
17719 | ||
17720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17723 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17724 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17725 | { |
17726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17727 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
17732 | { | |
412d302d | 17733 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17734 | } |
17735 | return resultobj; | |
17736 | fail: | |
17737 | return NULL; | |
17738 | } | |
17739 | ||
17740 | ||
c32bde28 | 17741 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17742 | PyObject *resultobj; |
17743 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17744 | int arg2 ; | |
17745 | wxToolBarToolBase *result; | |
17746 | PyObject * obj0 = 0 ; | |
994141e6 | 17747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17748 | char *kwnames[] = { |
17749 | (char *) "self",(char *) "id", NULL | |
17750 | }; | |
17751 | ||
994141e6 | 17752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17755 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17756 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17757 | { |
17758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17759 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17760 | ||
17761 | wxPyEndAllowThreads(__tstate); | |
17762 | if (PyErr_Occurred()) SWIG_fail; | |
17763 | } | |
17764 | { | |
412d302d | 17765 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17766 | } |
17767 | return resultobj; | |
17768 | fail: | |
17769 | return NULL; | |
17770 | } | |
17771 | ||
17772 | ||
c32bde28 | 17773 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17774 | PyObject *resultobj; |
17775 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17776 | size_t arg2 ; | |
17777 | bool result; | |
17778 | PyObject * obj0 = 0 ; | |
17779 | PyObject * obj1 = 0 ; | |
17780 | char *kwnames[] = { | |
17781 | (char *) "self",(char *) "pos", NULL | |
17782 | }; | |
17783 | ||
17784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17787 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
15afbcd0 | 17788 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17789 | { |
17790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17791 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17792 | ||
17793 | wxPyEndAllowThreads(__tstate); | |
17794 | if (PyErr_Occurred()) SWIG_fail; | |
17795 | } | |
4f89f6a3 RD |
17796 | { |
17797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17798 | } | |
d14a1e28 RD |
17799 | return resultobj; |
17800 | fail: | |
17801 | return NULL; | |
17802 | } | |
17803 | ||
17804 | ||
c32bde28 | 17805 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17806 | PyObject *resultobj; |
17807 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17808 | int arg2 ; | |
17809 | bool result; | |
17810 | PyObject * obj0 = 0 ; | |
994141e6 | 17811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17812 | char *kwnames[] = { |
17813 | (char *) "self",(char *) "id", NULL | |
17814 | }; | |
17815 | ||
994141e6 | 17816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17819 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17820 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17821 | { |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | result = (bool)(arg1)->DeleteTool(arg2); | |
17824 | ||
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
4f89f6a3 RD |
17828 | { |
17829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17830 | } | |
d14a1e28 RD |
17831 | return resultobj; |
17832 | fail: | |
17833 | return NULL; | |
17834 | } | |
17835 | ||
17836 | ||
c32bde28 | 17837 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17838 | PyObject *resultobj; |
17839 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17840 | PyObject * obj0 = 0 ; | |
17841 | char *kwnames[] = { | |
17842 | (char *) "self", NULL | |
17843 | }; | |
17844 | ||
17845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17848 | { |
17849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17850 | (arg1)->ClearTools(); | |
17851 | ||
17852 | wxPyEndAllowThreads(__tstate); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | } | |
17855 | Py_INCREF(Py_None); resultobj = Py_None; | |
17856 | return resultobj; | |
17857 | fail: | |
17858 | return NULL; | |
17859 | } | |
17860 | ||
17861 | ||
c32bde28 | 17862 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17863 | PyObject *resultobj; |
17864 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17865 | bool result; | |
17866 | PyObject * obj0 = 0 ; | |
17867 | char *kwnames[] = { | |
17868 | (char *) "self", NULL | |
17869 | }; | |
17870 | ||
17871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17874 | { |
17875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17876 | result = (bool)(arg1)->Realize(); | |
17877 | ||
17878 | wxPyEndAllowThreads(__tstate); | |
17879 | if (PyErr_Occurred()) SWIG_fail; | |
17880 | } | |
4f89f6a3 RD |
17881 | { |
17882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17883 | } | |
d14a1e28 RD |
17884 | return resultobj; |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
c32bde28 | 17890 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17891 | PyObject *resultobj; |
17892 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17893 | int arg2 ; | |
17894 | bool arg3 ; | |
17895 | PyObject * obj0 = 0 ; | |
994141e6 | 17896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17897 | PyObject * obj2 = 0 ; |
17898 | char *kwnames[] = { | |
17899 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17900 | }; | |
17901 | ||
994141e6 | 17902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17905 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17906 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17907 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17908 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17909 | { |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | (arg1)->EnableTool(arg2,arg3); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | Py_INCREF(Py_None); resultobj = Py_None; | |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
c32bde28 | 17923 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17924 | PyObject *resultobj; |
17925 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17926 | int arg2 ; | |
17927 | bool arg3 ; | |
17928 | PyObject * obj0 = 0 ; | |
994141e6 | 17929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17930 | PyObject * obj2 = 0 ; |
17931 | char *kwnames[] = { | |
17932 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17933 | }; | |
17934 | ||
994141e6 | 17935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17938 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17939 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17940 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17941 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17942 | { |
17943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17944 | (arg1)->ToggleTool(arg2,arg3); | |
17945 | ||
17946 | wxPyEndAllowThreads(__tstate); | |
17947 | if (PyErr_Occurred()) SWIG_fail; | |
17948 | } | |
17949 | Py_INCREF(Py_None); resultobj = Py_None; | |
17950 | return resultobj; | |
17951 | fail: | |
17952 | return NULL; | |
17953 | } | |
17954 | ||
17955 | ||
c32bde28 | 17956 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17957 | PyObject *resultobj; |
17958 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17959 | int arg2 ; | |
17960 | bool arg3 ; | |
17961 | PyObject * obj0 = 0 ; | |
994141e6 | 17962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17963 | PyObject * obj2 = 0 ; |
17964 | char *kwnames[] = { | |
17965 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17966 | }; | |
17967 | ||
994141e6 | 17968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17971 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 17972 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 17973 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 17974 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
17975 | { |
17976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17977 | (arg1)->SetToggle(arg2,arg3); | |
17978 | ||
17979 | wxPyEndAllowThreads(__tstate); | |
17980 | if (PyErr_Occurred()) SWIG_fail; | |
17981 | } | |
17982 | Py_INCREF(Py_None); resultobj = Py_None; | |
17983 | return resultobj; | |
17984 | fail: | |
17985 | return NULL; | |
17986 | } | |
17987 | ||
17988 | ||
c32bde28 | 17989 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17990 | PyObject *resultobj; |
17991 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17992 | int arg2 ; | |
17993 | PyObject *result; | |
17994 | PyObject * obj0 = 0 ; | |
994141e6 | 17995 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17996 | char *kwnames[] = { |
17997 | (char *) "self",(char *) "id", NULL | |
17998 | }; | |
17999 | ||
994141e6 | 18000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18003 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18004 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18005 | { |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | resultobj = result; | |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
c32bde28 | 18019 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18020 | PyObject *resultobj; |
18021 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18022 | int arg2 ; | |
18023 | PyObject *arg3 = (PyObject *) 0 ; | |
18024 | PyObject * obj0 = 0 ; | |
994141e6 | 18025 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18026 | PyObject * obj2 = 0 ; |
18027 | char *kwnames[] = { | |
18028 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
18029 | }; | |
18030 | ||
994141e6 | 18031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18034 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18036 | arg3 = obj2; |
18037 | { | |
18038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18039 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
18040 | ||
18041 | wxPyEndAllowThreads(__tstate); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
18043 | } | |
18044 | Py_INCREF(Py_None); resultobj = Py_None; | |
18045 | return resultobj; | |
18046 | fail: | |
18047 | return NULL; | |
18048 | } | |
18049 | ||
18050 | ||
c32bde28 | 18051 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18052 | PyObject *resultobj; |
18053 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18054 | int arg2 ; | |
18055 | int result; | |
18056 | PyObject * obj0 = 0 ; | |
994141e6 | 18057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18058 | char *kwnames[] = { |
18059 | (char *) "self",(char *) "id", NULL | |
18060 | }; | |
18061 | ||
994141e6 | 18062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18065 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18066 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18067 | { |
18068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18069 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
18070 | ||
18071 | wxPyEndAllowThreads(__tstate); | |
18072 | if (PyErr_Occurred()) SWIG_fail; | |
18073 | } | |
c32bde28 | 18074 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18075 | return resultobj; |
18076 | fail: | |
18077 | return NULL; | |
18078 | } | |
18079 | ||
18080 | ||
c32bde28 | 18081 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18082 | PyObject *resultobj; |
18083 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18084 | int arg2 ; | |
18085 | bool result; | |
18086 | PyObject * obj0 = 0 ; | |
994141e6 | 18087 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18088 | char *kwnames[] = { |
18089 | (char *) "self",(char *) "id", NULL | |
18090 | }; | |
18091 | ||
994141e6 | 18092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18095 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18096 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18097 | { |
18098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18099 | result = (bool)(arg1)->GetToolState(arg2); | |
18100 | ||
18101 | wxPyEndAllowThreads(__tstate); | |
18102 | if (PyErr_Occurred()) SWIG_fail; | |
18103 | } | |
4f89f6a3 RD |
18104 | { |
18105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18106 | } | |
d14a1e28 RD |
18107 | return resultobj; |
18108 | fail: | |
18109 | return NULL; | |
18110 | } | |
18111 | ||
18112 | ||
c32bde28 | 18113 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18114 | PyObject *resultobj; |
18115 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18116 | int arg2 ; | |
18117 | bool result; | |
18118 | PyObject * obj0 = 0 ; | |
994141e6 | 18119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18120 | char *kwnames[] = { |
18121 | (char *) "self",(char *) "id", NULL | |
18122 | }; | |
18123 | ||
994141e6 | 18124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18127 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18128 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18129 | { |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
4f89f6a3 RD |
18136 | { |
18137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18138 | } | |
d14a1e28 RD |
18139 | return resultobj; |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
c32bde28 | 18145 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18146 | PyObject *resultobj; |
18147 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18148 | int arg2 ; | |
18149 | wxString *arg3 = 0 ; | |
ae8162c8 | 18150 | bool temp3 = false ; |
d14a1e28 | 18151 | PyObject * obj0 = 0 ; |
994141e6 | 18152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18153 | PyObject * obj2 = 0 ; |
18154 | char *kwnames[] = { | |
18155 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18156 | }; | |
18157 | ||
994141e6 | 18158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18161 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18162 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18163 | { |
18164 | arg3 = wxString_in_helper(obj2); | |
18165 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18166 | temp3 = true; |
d14a1e28 RD |
18167 | } |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | Py_INCREF(Py_None); resultobj = Py_None; | |
18176 | { | |
18177 | if (temp3) | |
18178 | delete arg3; | |
18179 | } | |
18180 | return resultobj; | |
18181 | fail: | |
18182 | { | |
18183 | if (temp3) | |
18184 | delete arg3; | |
18185 | } | |
18186 | return NULL; | |
18187 | } | |
18188 | ||
18189 | ||
c32bde28 | 18190 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18191 | PyObject *resultobj; |
18192 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18193 | int arg2 ; | |
18194 | wxString result; | |
18195 | PyObject * obj0 = 0 ; | |
994141e6 | 18196 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18197 | char *kwnames[] = { |
18198 | (char *) "self",(char *) "id", NULL | |
18199 | }; | |
18200 | ||
994141e6 | 18201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18204 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18205 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18206 | { |
18207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18208 | result = (arg1)->GetToolShortHelp(arg2); | |
18209 | ||
18210 | wxPyEndAllowThreads(__tstate); | |
18211 | if (PyErr_Occurred()) SWIG_fail; | |
18212 | } | |
18213 | { | |
18214 | #if wxUSE_UNICODE | |
18215 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18216 | #else | |
18217 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18218 | #endif | |
18219 | } | |
18220 | return resultobj; | |
18221 | fail: | |
18222 | return NULL; | |
18223 | } | |
18224 | ||
18225 | ||
c32bde28 | 18226 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18227 | PyObject *resultobj; |
18228 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18229 | int arg2 ; | |
18230 | wxString *arg3 = 0 ; | |
ae8162c8 | 18231 | bool temp3 = false ; |
d14a1e28 | 18232 | PyObject * obj0 = 0 ; |
994141e6 | 18233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18234 | PyObject * obj2 = 0 ; |
18235 | char *kwnames[] = { | |
18236 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
18237 | }; | |
18238 | ||
994141e6 | 18239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18242 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18243 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18244 | { |
18245 | arg3 = wxString_in_helper(obj2); | |
18246 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 18247 | temp3 = true; |
d14a1e28 RD |
18248 | } |
18249 | { | |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
18252 | ||
18253 | wxPyEndAllowThreads(__tstate); | |
18254 | if (PyErr_Occurred()) SWIG_fail; | |
18255 | } | |
18256 | Py_INCREF(Py_None); resultobj = Py_None; | |
18257 | { | |
18258 | if (temp3) | |
18259 | delete arg3; | |
18260 | } | |
18261 | return resultobj; | |
18262 | fail: | |
18263 | { | |
18264 | if (temp3) | |
18265 | delete arg3; | |
18266 | } | |
18267 | return NULL; | |
18268 | } | |
18269 | ||
18270 | ||
c32bde28 | 18271 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18272 | PyObject *resultobj; |
18273 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18274 | int arg2 ; | |
18275 | wxString result; | |
18276 | PyObject * obj0 = 0 ; | |
994141e6 | 18277 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18278 | char *kwnames[] = { |
18279 | (char *) "self",(char *) "id", NULL | |
18280 | }; | |
18281 | ||
994141e6 | 18282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18285 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18286 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18287 | { |
18288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18289 | result = (arg1)->GetToolLongHelp(arg2); | |
18290 | ||
18291 | wxPyEndAllowThreads(__tstate); | |
18292 | if (PyErr_Occurred()) SWIG_fail; | |
18293 | } | |
18294 | { | |
18295 | #if wxUSE_UNICODE | |
18296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18297 | #else | |
18298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18299 | #endif | |
18300 | } | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
c32bde28 | 18307 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18308 | PyObject *resultobj; |
18309 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18310 | int arg2 ; | |
18311 | int arg3 ; | |
18312 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18313 | PyObject * obj1 = 0 ; |
18314 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18315 | char *kwnames[] = { |
18316 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18317 | }; | |
18318 | ||
994141e6 | 18319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18322 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18323 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18324 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18325 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18326 | { |
18327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18328 | (arg1)->SetMargins(arg2,arg3); | |
18329 | ||
18330 | wxPyEndAllowThreads(__tstate); | |
18331 | if (PyErr_Occurred()) SWIG_fail; | |
18332 | } | |
18333 | Py_INCREF(Py_None); resultobj = Py_None; | |
18334 | return resultobj; | |
18335 | fail: | |
18336 | return NULL; | |
18337 | } | |
18338 | ||
18339 | ||
c32bde28 | 18340 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18341 | PyObject *resultobj; |
18342 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18343 | wxSize *arg2 = 0 ; | |
18344 | wxSize temp2 ; | |
18345 | PyObject * obj0 = 0 ; | |
18346 | PyObject * obj1 = 0 ; | |
18347 | char *kwnames[] = { | |
18348 | (char *) "self",(char *) "size", NULL | |
18349 | }; | |
18350 | ||
18351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18354 | { |
18355 | arg2 = &temp2; | |
18356 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18357 | } | |
18358 | { | |
18359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18360 | (arg1)->SetMargins((wxSize const &)*arg2); | |
18361 | ||
18362 | wxPyEndAllowThreads(__tstate); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
18365 | Py_INCREF(Py_None); resultobj = Py_None; | |
18366 | return resultobj; | |
18367 | fail: | |
18368 | return NULL; | |
18369 | } | |
18370 | ||
18371 | ||
c32bde28 | 18372 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18373 | PyObject *resultobj; |
18374 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18375 | int arg2 ; | |
18376 | PyObject * obj0 = 0 ; | |
994141e6 | 18377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18378 | char *kwnames[] = { |
18379 | (char *) "self",(char *) "packing", NULL | |
18380 | }; | |
18381 | ||
994141e6 | 18382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18385 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18386 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18387 | { |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | (arg1)->SetToolPacking(arg2); | |
18390 | ||
18391 | wxPyEndAllowThreads(__tstate); | |
18392 | if (PyErr_Occurred()) SWIG_fail; | |
18393 | } | |
18394 | Py_INCREF(Py_None); resultobj = Py_None; | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
c32bde28 | 18401 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18402 | PyObject *resultobj; |
18403 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18404 | int arg2 ; | |
18405 | PyObject * obj0 = 0 ; | |
994141e6 | 18406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18407 | char *kwnames[] = { |
18408 | (char *) "self",(char *) "separation", NULL | |
18409 | }; | |
18410 | ||
994141e6 | 18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18414 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18415 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18416 | { |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | (arg1)->SetToolSeparation(arg2); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | Py_INCREF(Py_None); resultobj = Py_None; | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
c32bde28 | 18430 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18431 | PyObject *resultobj; |
18432 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18433 | wxSize result; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18442 | { |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = (arg1)->GetToolMargins(); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | wxSize * resultptr; | |
18451 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18453 | } |
18454 | return resultobj; | |
18455 | fail: | |
18456 | return NULL; | |
18457 | } | |
18458 | ||
18459 | ||
c32bde28 | 18460 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18461 | PyObject *resultobj; |
18462 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18463 | wxSize result; | |
18464 | PyObject * obj0 = 0 ; | |
18465 | char *kwnames[] = { | |
18466 | (char *) "self", NULL | |
18467 | }; | |
18468 | ||
18469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18472 | { |
18473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18474 | result = (arg1)->GetMargins(); | |
18475 | ||
18476 | wxPyEndAllowThreads(__tstate); | |
18477 | if (PyErr_Occurred()) SWIG_fail; | |
18478 | } | |
18479 | { | |
18480 | wxSize * resultptr; | |
18481 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18483 | } |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
c32bde28 | 18490 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18491 | PyObject *resultobj; |
18492 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18493 | int result; | |
18494 | PyObject * obj0 = 0 ; | |
18495 | char *kwnames[] = { | |
18496 | (char *) "self", NULL | |
18497 | }; | |
18498 | ||
18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18502 | { |
18503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18504 | result = (int)(arg1)->GetToolPacking(); | |
18505 | ||
18506 | wxPyEndAllowThreads(__tstate); | |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
18508 | } | |
c32bde28 | 18509 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18510 | return resultobj; |
18511 | fail: | |
18512 | return NULL; | |
18513 | } | |
18514 | ||
18515 | ||
c32bde28 | 18516 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18517 | PyObject *resultobj; |
18518 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18519 | int result; | |
18520 | PyObject * obj0 = 0 ; | |
18521 | char *kwnames[] = { | |
18522 | (char *) "self", NULL | |
18523 | }; | |
18524 | ||
18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18528 | { |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | result = (int)(arg1)->GetToolSeparation(); | |
18531 | ||
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
c32bde28 | 18535 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18536 | return resultobj; |
18537 | fail: | |
18538 | return NULL; | |
18539 | } | |
18540 | ||
18541 | ||
c32bde28 | 18542 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18543 | PyObject *resultobj; |
18544 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18545 | int arg2 ; | |
18546 | PyObject * obj0 = 0 ; | |
994141e6 | 18547 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18548 | char *kwnames[] = { |
18549 | (char *) "self",(char *) "nRows", NULL | |
18550 | }; | |
18551 | ||
994141e6 | 18552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18555 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18556 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18557 | { |
18558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18559 | (arg1)->SetRows(arg2); | |
18560 | ||
18561 | wxPyEndAllowThreads(__tstate); | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | } | |
18564 | Py_INCREF(Py_None); resultobj = Py_None; | |
18565 | return resultobj; | |
18566 | fail: | |
18567 | return NULL; | |
18568 | } | |
18569 | ||
18570 | ||
c32bde28 | 18571 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18572 | PyObject *resultobj; |
18573 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18574 | int arg2 ; | |
18575 | int arg3 ; | |
18576 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18577 | PyObject * obj1 = 0 ; |
18578 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18579 | char *kwnames[] = { |
18580 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18581 | }; | |
18582 | ||
994141e6 | 18583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18586 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18587 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18588 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18589 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18590 | { |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
18597 | Py_INCREF(Py_None); resultobj = Py_None; | |
18598 | return resultobj; | |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
c32bde28 | 18604 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18605 | PyObject *resultobj; |
18606 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18607 | int result; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18616 | { |
18617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18618 | result = (int)(arg1)->GetMaxRows(); | |
18619 | ||
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
c32bde28 | 18623 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18624 | return resultobj; |
18625 | fail: | |
18626 | return NULL; | |
18627 | } | |
18628 | ||
18629 | ||
c32bde28 | 18630 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18631 | PyObject *resultobj; |
18632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18633 | int result; | |
18634 | PyObject * obj0 = 0 ; | |
18635 | char *kwnames[] = { | |
18636 | (char *) "self", NULL | |
18637 | }; | |
18638 | ||
18639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18642 | { |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | result = (int)(arg1)->GetMaxCols(); | |
18645 | ||
18646 | wxPyEndAllowThreads(__tstate); | |
18647 | if (PyErr_Occurred()) SWIG_fail; | |
18648 | } | |
c32bde28 | 18649 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
18650 | return resultobj; |
18651 | fail: | |
18652 | return NULL; | |
18653 | } | |
18654 | ||
18655 | ||
c32bde28 | 18656 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18657 | PyObject *resultobj; |
18658 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18659 | wxSize *arg2 = 0 ; | |
18660 | wxSize temp2 ; | |
18661 | PyObject * obj0 = 0 ; | |
18662 | PyObject * obj1 = 0 ; | |
18663 | char *kwnames[] = { | |
18664 | (char *) "self",(char *) "size", NULL | |
18665 | }; | |
18666 | ||
18667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18670 | { |
18671 | arg2 = &temp2; | |
18672 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18673 | } | |
18674 | { | |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18677 | ||
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | Py_INCREF(Py_None); resultobj = Py_None; | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
c32bde28 | 18688 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18689 | PyObject *resultobj; |
18690 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18691 | wxSize result; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "self", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18700 | { |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = (arg1)->GetToolBitmapSize(); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
18707 | { | |
18708 | wxSize * resultptr; | |
18709 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18711 | } |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
c32bde28 | 18718 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18719 | PyObject *resultobj; |
18720 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18721 | wxSize result; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18730 | { |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | result = (arg1)->GetToolSize(); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | { | |
18738 | wxSize * resultptr; | |
18739 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18740 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18741 | } |
18742 | return resultobj; | |
18743 | fail: | |
18744 | return NULL; | |
18745 | } | |
18746 | ||
18747 | ||
c32bde28 | 18748 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18749 | PyObject *resultobj; |
18750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18751 | int arg2 ; |
18752 | int arg3 ; | |
d14a1e28 RD |
18753 | wxToolBarToolBase *result; |
18754 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18755 | PyObject * obj1 = 0 ; |
18756 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18757 | char *kwnames[] = { |
18758 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18759 | }; | |
18760 | ||
994141e6 | 18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18764 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18765 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 18766 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 18767 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
18768 | { |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18771 | ||
18772 | wxPyEndAllowThreads(__tstate); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
18775 | { | |
412d302d | 18776 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18777 | } |
18778 | return resultobj; | |
18779 | fail: | |
18780 | return NULL; | |
18781 | } | |
18782 | ||
18783 | ||
c32bde28 | 18784 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
18785 | PyObject *resultobj; |
18786 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18787 | int arg2 ; | |
18788 | wxToolBarToolBase *result; | |
18789 | PyObject * obj0 = 0 ; | |
994141e6 | 18790 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18791 | char *kwnames[] = { |
18792 | (char *) "self",(char *) "toolid", NULL | |
18793 | }; | |
18794 | ||
994141e6 | 18795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18798 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 18799 | if (PyErr_Occurred()) SWIG_fail; |
3a04f143 RD |
18800 | { |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18803 | ||
18804 | wxPyEndAllowThreads(__tstate); | |
18805 | if (PyErr_Occurred()) SWIG_fail; | |
18806 | } | |
18807 | { | |
412d302d | 18808 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
18809 | } |
18810 | return resultobj; | |
18811 | fail: | |
18812 | return NULL; | |
18813 | } | |
18814 | ||
18815 | ||
c32bde28 | 18816 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18817 | PyObject *resultobj; |
18818 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18819 | bool result; | |
18820 | PyObject * obj0 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18828 | { |
18829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18830 | result = (bool)(arg1)->IsVertical(); | |
18831 | ||
18832 | wxPyEndAllowThreads(__tstate); | |
18833 | if (PyErr_Occurred()) SWIG_fail; | |
18834 | } | |
4f89f6a3 RD |
18835 | { |
18836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18837 | } | |
d14a1e28 RD |
18838 | return resultobj; |
18839 | fail: | |
18840 | return NULL; | |
18841 | } | |
18842 | ||
18843 | ||
c32bde28 | 18844 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18845 | PyObject *obj; |
18846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18847 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18848 | Py_INCREF(obj); | |
18849 | return Py_BuildValue((char *)""); | |
18850 | } | |
c32bde28 | 18851 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18852 | PyObject *resultobj; |
18853 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18854 | int arg2 = (int) -1 ; |
d14a1e28 RD |
18855 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18856 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18857 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18858 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18859 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18860 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18861 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18862 | wxToolBar *result; | |
18863 | wxPoint temp3 ; | |
18864 | wxSize temp4 ; | |
ae8162c8 | 18865 | bool temp6 = false ; |
d14a1e28 | 18866 | PyObject * obj0 = 0 ; |
994141e6 | 18867 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18868 | PyObject * obj2 = 0 ; |
18869 | PyObject * obj3 = 0 ; | |
994141e6 | 18870 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18871 | PyObject * obj5 = 0 ; |
18872 | char *kwnames[] = { | |
18873 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18874 | }; | |
18875 | ||
248ed943 | 18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 18879 | if (obj1) { |
c32bde28 | 18880 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
18881 | if (PyErr_Occurred()) SWIG_fail; |
18882 | } | |
d14a1e28 RD |
18883 | if (obj2) { |
18884 | { | |
18885 | arg3 = &temp3; | |
18886 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18887 | } | |
18888 | } | |
18889 | if (obj3) { | |
18890 | { | |
18891 | arg4 = &temp4; | |
18892 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18893 | } | |
18894 | } | |
994141e6 | 18895 | if (obj4) { |
c32bde28 | 18896 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 18897 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 18898 | } |
d14a1e28 RD |
18899 | if (obj5) { |
18900 | { | |
18901 | arg6 = wxString_in_helper(obj5); | |
18902 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 18903 | temp6 = true; |
d14a1e28 RD |
18904 | } |
18905 | } | |
18906 | { | |
e3b71cb8 | 18907 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18909 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18910 | ||
18911 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18912 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18913 | } |
b0f7404b | 18914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18915 | { |
18916 | if (temp6) | |
18917 | delete arg6; | |
18918 | } | |
18919 | return resultobj; | |
18920 | fail: | |
18921 | { | |
18922 | if (temp6) | |
18923 | delete arg6; | |
18924 | } | |
18925 | return NULL; | |
18926 | } | |
18927 | ||
18928 | ||
c32bde28 | 18929 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18930 | PyObject *resultobj; |
18931 | wxToolBar *result; | |
18932 | char *kwnames[] = { | |
18933 | NULL | |
18934 | }; | |
18935 | ||
18936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18937 | { | |
e3b71cb8 | 18938 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18940 | result = (wxToolBar *)new wxToolBar(); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18943 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18944 | } |
b0f7404b | 18945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18946 | return resultobj; |
18947 | fail: | |
18948 | return NULL; | |
18949 | } | |
18950 | ||
18951 | ||
c32bde28 | 18952 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18953 | PyObject *resultobj; |
18954 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18955 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18956 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18957 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18958 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18959 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18960 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18961 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18962 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18963 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18964 | bool result; | |
18965 | wxPoint temp4 ; | |
18966 | wxSize temp5 ; | |
ae8162c8 | 18967 | bool temp7 = false ; |
d14a1e28 RD |
18968 | PyObject * obj0 = 0 ; |
18969 | PyObject * obj1 = 0 ; | |
994141e6 | 18970 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18971 | PyObject * obj3 = 0 ; |
18972 | PyObject * obj4 = 0 ; | |
994141e6 | 18973 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18974 | PyObject * obj6 = 0 ; |
18975 | char *kwnames[] = { | |
18976 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18977 | }; | |
18978 | ||
248ed943 | 18979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 18984 | if (obj2) { |
c32bde28 | 18985 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
18986 | if (PyErr_Occurred()) SWIG_fail; |
18987 | } | |
d14a1e28 RD |
18988 | if (obj3) { |
18989 | { | |
18990 | arg4 = &temp4; | |
18991 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18992 | } | |
18993 | } | |
18994 | if (obj4) { | |
18995 | { | |
18996 | arg5 = &temp5; | |
18997 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18998 | } | |
18999 | } | |
994141e6 | 19000 | if (obj5) { |
c32bde28 | 19001 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 19002 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 19003 | } |
d14a1e28 RD |
19004 | if (obj6) { |
19005 | { | |
19006 | arg7 = wxString_in_helper(obj6); | |
19007 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19008 | temp7 = true; |
d14a1e28 RD |
19009 | } |
19010 | } | |
19011 | { | |
19012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19013 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19014 | ||
19015 | wxPyEndAllowThreads(__tstate); | |
19016 | if (PyErr_Occurred()) SWIG_fail; | |
19017 | } | |
4f89f6a3 RD |
19018 | { |
19019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19020 | } | |
d14a1e28 RD |
19021 | { |
19022 | if (temp7) | |
19023 | delete arg7; | |
19024 | } | |
19025 | return resultobj; | |
19026 | fail: | |
19027 | { | |
19028 | if (temp7) | |
19029 | delete arg7; | |
19030 | } | |
19031 | return NULL; | |
19032 | } | |
19033 | ||
19034 | ||
c32bde28 | 19035 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19036 | PyObject *resultobj; |
19037 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
19038 | int arg2 ; |
19039 | int arg3 ; | |
d14a1e28 RD |
19040 | wxToolBarToolBase *result; |
19041 | PyObject * obj0 = 0 ; | |
994141e6 RD |
19042 | PyObject * obj1 = 0 ; |
19043 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19044 | char *kwnames[] = { |
19045 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19046 | }; | |
19047 | ||
994141e6 | 19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
19050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19051 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19052 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 19053 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 19054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19055 | { |
19056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19057 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
19058 | ||
19059 | wxPyEndAllowThreads(__tstate); | |
19060 | if (PyErr_Occurred()) SWIG_fail; | |
19061 | } | |
19062 | { | |
412d302d | 19063 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19064 | } |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
c32bde28 | 19071 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
19072 | PyObject *resultobj; |
19073 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
19074 | wxVisualAttributes result; | |
19075 | PyObject * obj0 = 0 ; | |
19076 | char *kwnames[] = { | |
19077 | (char *) "variant", NULL | |
19078 | }; | |
19079 | ||
19080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
19081 | if (obj0) { | |
c32bde28 | 19082 | arg1 = (int)SWIG_As_int(obj0); |
22bfe96c RD |
19083 | if (PyErr_Occurred()) SWIG_fail; |
19084 | } | |
19085 | { | |
110da5b0 | 19086 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
19087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19088 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
19089 | ||
19090 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 19091 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
19092 | } |
19093 | { | |
19094 | wxVisualAttributes * resultptr; | |
19095 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
19096 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
19097 | } | |
19098 | return resultobj; | |
19099 | fail: | |
19100 | return NULL; | |
19101 | } | |
19102 | ||
19103 | ||
c32bde28 | 19104 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19105 | PyObject *obj; |
19106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19107 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
19108 | Py_INCREF(obj); | |
19109 | return Py_BuildValue((char *)""); | |
19110 | } | |
c32bde28 | 19111 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
19112 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
19113 | return 1; | |
19114 | } | |
19115 | ||
19116 | ||
19117 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
19118 | PyObject *pyobj; | |
19119 | ||
19120 | { | |
19121 | #if wxUSE_UNICODE | |
19122 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19123 | #else | |
19124 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
19125 | #endif | |
19126 | } | |
19127 | return pyobj; | |
19128 | } | |
19129 | ||
19130 | ||
c32bde28 | 19131 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19132 | PyObject *resultobj; |
19133 | wxColour const &arg1_defvalue = wxNullColour ; | |
19134 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
19135 | wxColour const &arg2_defvalue = wxNullColour ; | |
19136 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
19137 | wxFont const &arg3_defvalue = wxNullFont ; | |
19138 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
19139 | wxListItemAttr *result; | |
19140 | wxColour temp1 ; | |
19141 | wxColour temp2 ; | |
19142 | PyObject * obj0 = 0 ; | |
19143 | PyObject * obj1 = 0 ; | |
19144 | PyObject * obj2 = 0 ; | |
19145 | char *kwnames[] = { | |
19146 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
19147 | }; | |
19148 | ||
19149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19150 | if (obj0) { | |
19151 | { | |
19152 | arg1 = &temp1; | |
19153 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
19154 | } | |
19155 | } | |
19156 | if (obj1) { | |
19157 | { | |
19158 | arg2 = &temp2; | |
19159 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19160 | } | |
19161 | } | |
19162 | if (obj2) { | |
15afbcd0 RD |
19163 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
19164 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19165 | SWIG_fail; | |
d14a1e28 | 19166 | if (arg3 == NULL) { |
15afbcd0 RD |
19167 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19168 | SWIG_fail; | |
d14a1e28 RD |
19169 | } |
19170 | } | |
19171 | { | |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
19174 | ||
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
15afbcd0 | 19178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
19179 | return resultobj; |
19180 | fail: | |
19181 | return NULL; | |
19182 | } | |
19183 | ||
19184 | ||
c32bde28 | 19185 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19186 | PyObject *resultobj; |
19187 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19188 | wxColour *arg2 = 0 ; | |
19189 | wxColour temp2 ; | |
19190 | PyObject * obj0 = 0 ; | |
19191 | PyObject * obj1 = 0 ; | |
19192 | char *kwnames[] = { | |
19193 | (char *) "self",(char *) "colText", NULL | |
19194 | }; | |
19195 | ||
19196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19199 | { |
19200 | arg2 = &temp2; | |
19201 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19202 | } | |
19203 | { | |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19206 | ||
19207 | wxPyEndAllowThreads(__tstate); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | } | |
19210 | Py_INCREF(Py_None); resultobj = Py_None; | |
19211 | return resultobj; | |
19212 | fail: | |
19213 | return NULL; | |
19214 | } | |
19215 | ||
19216 | ||
c32bde28 | 19217 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19218 | PyObject *resultobj; |
19219 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19220 | wxColour *arg2 = 0 ; | |
19221 | wxColour temp2 ; | |
19222 | PyObject * obj0 = 0 ; | |
19223 | PyObject * obj1 = 0 ; | |
19224 | char *kwnames[] = { | |
19225 | (char *) "self",(char *) "colBack", NULL | |
19226 | }; | |
19227 | ||
19228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19231 | { |
19232 | arg2 = &temp2; | |
19233 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19234 | } | |
19235 | { | |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
c32bde28 | 19249 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19250 | PyObject *resultobj; |
19251 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19252 | wxFont *arg2 = 0 ; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | PyObject * obj1 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self",(char *) "font", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19264 | SWIG_fail; | |
d14a1e28 | 19265 | if (arg2 == NULL) { |
15afbcd0 RD |
19266 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19267 | SWIG_fail; | |
d14a1e28 RD |
19268 | } |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | (arg1)->SetFont((wxFont const &)*arg2); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | Py_INCREF(Py_None); resultobj = Py_None; | |
19277 | return resultobj; | |
19278 | fail: | |
19279 | return NULL; | |
19280 | } | |
19281 | ||
19282 | ||
c32bde28 | 19283 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19284 | PyObject *resultobj; |
19285 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19286 | bool result; | |
19287 | PyObject * obj0 = 0 ; | |
19288 | char *kwnames[] = { | |
19289 | (char *) "self", NULL | |
19290 | }; | |
19291 | ||
19292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19295 | { |
19296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19297 | result = (bool)(arg1)->HasTextColour(); | |
19298 | ||
19299 | wxPyEndAllowThreads(__tstate); | |
19300 | if (PyErr_Occurred()) SWIG_fail; | |
19301 | } | |
4f89f6a3 RD |
19302 | { |
19303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19304 | } | |
d14a1e28 RD |
19305 | return resultobj; |
19306 | fail: | |
19307 | return NULL; | |
19308 | } | |
19309 | ||
19310 | ||
c32bde28 | 19311 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19312 | PyObject *resultobj; |
19313 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19314 | bool result; | |
19315 | PyObject * obj0 = 0 ; | |
19316 | char *kwnames[] = { | |
19317 | (char *) "self", NULL | |
19318 | }; | |
19319 | ||
19320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19323 | { |
19324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19325 | result = (bool)(arg1)->HasBackgroundColour(); | |
19326 | ||
19327 | wxPyEndAllowThreads(__tstate); | |
19328 | if (PyErr_Occurred()) SWIG_fail; | |
19329 | } | |
4f89f6a3 RD |
19330 | { |
19331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19332 | } | |
d14a1e28 RD |
19333 | return resultobj; |
19334 | fail: | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
c32bde28 | 19339 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19340 | PyObject *resultobj; |
19341 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19342 | bool result; | |
19343 | PyObject * obj0 = 0 ; | |
19344 | char *kwnames[] = { | |
19345 | (char *) "self", NULL | |
19346 | }; | |
19347 | ||
19348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19351 | { |
19352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19353 | result = (bool)(arg1)->HasFont(); | |
19354 | ||
19355 | wxPyEndAllowThreads(__tstate); | |
19356 | if (PyErr_Occurred()) SWIG_fail; | |
19357 | } | |
4f89f6a3 RD |
19358 | { |
19359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19360 | } | |
d14a1e28 RD |
19361 | return resultobj; |
19362 | fail: | |
19363 | return NULL; | |
19364 | } | |
19365 | ||
19366 | ||
c32bde28 | 19367 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19368 | PyObject *resultobj; |
19369 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19370 | wxColour result; | |
19371 | PyObject * obj0 = 0 ; | |
19372 | char *kwnames[] = { | |
19373 | (char *) "self", NULL | |
19374 | }; | |
19375 | ||
19376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19379 | { |
19380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19381 | result = (arg1)->GetTextColour(); | |
19382 | ||
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
19386 | { | |
19387 | wxColour * resultptr; | |
19388 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19390 | } |
19391 | return resultobj; | |
19392 | fail: | |
19393 | return NULL; | |
19394 | } | |
19395 | ||
19396 | ||
c32bde28 | 19397 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19398 | PyObject *resultobj; |
19399 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19400 | wxColour result; | |
19401 | PyObject * obj0 = 0 ; | |
19402 | char *kwnames[] = { | |
19403 | (char *) "self", NULL | |
19404 | }; | |
19405 | ||
19406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19409 | { |
19410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19411 | result = (arg1)->GetBackgroundColour(); | |
19412 | ||
19413 | wxPyEndAllowThreads(__tstate); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | } | |
19416 | { | |
19417 | wxColour * resultptr; | |
19418 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19420 | } |
19421 | return resultobj; | |
19422 | fail: | |
19423 | return NULL; | |
19424 | } | |
19425 | ||
19426 | ||
c32bde28 | 19427 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19428 | PyObject *resultobj; |
19429 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19430 | wxFont result; | |
19431 | PyObject * obj0 = 0 ; | |
19432 | char *kwnames[] = { | |
19433 | (char *) "self", NULL | |
19434 | }; | |
19435 | ||
19436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19439 | { |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | result = (arg1)->GetFont(); | |
19442 | ||
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | { | |
19447 | wxFont * resultptr; | |
19448 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19449 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19450 | } |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
c32bde28 | 19457 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19458 | PyObject *resultobj; |
19459 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | char *kwnames[] = { | |
19462 | (char *) "self", NULL | |
19463 | }; | |
19464 | ||
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19468 | { |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | wxListItemAttr_Destroy(arg1); | |
19471 | ||
19472 | wxPyEndAllowThreads(__tstate); | |
19473 | if (PyErr_Occurred()) SWIG_fail; | |
19474 | } | |
19475 | Py_INCREF(Py_None); resultobj = Py_None; | |
19476 | return resultobj; | |
19477 | fail: | |
19478 | return NULL; | |
19479 | } | |
19480 | ||
19481 | ||
c32bde28 | 19482 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19483 | PyObject *obj; |
19484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19485 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19486 | Py_INCREF(obj); | |
19487 | return Py_BuildValue((char *)""); | |
19488 | } | |
c32bde28 | 19489 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19490 | PyObject *resultobj; |
19491 | wxListItem *result; | |
19492 | char *kwnames[] = { | |
19493 | NULL | |
19494 | }; | |
19495 | ||
19496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19497 | { | |
19498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19499 | result = (wxListItem *)new wxListItem(); | |
19500 | ||
19501 | wxPyEndAllowThreads(__tstate); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | } | |
19504 | { | |
412d302d | 19505 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
19506 | } |
19507 | return resultobj; | |
19508 | fail: | |
19509 | return NULL; | |
19510 | } | |
19511 | ||
19512 | ||
c32bde28 | 19513 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19514 | PyObject *resultobj; |
19515 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19516 | PyObject * obj0 = 0 ; | |
19517 | char *kwnames[] = { | |
19518 | (char *) "self", NULL | |
19519 | }; | |
19520 | ||
19521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19524 | { |
19525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19526 | delete arg1; | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | Py_INCREF(Py_None); resultobj = Py_None; | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
c32bde28 | 19538 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19539 | PyObject *resultobj; |
19540 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19541 | PyObject * obj0 = 0 ; | |
19542 | char *kwnames[] = { | |
19543 | (char *) "self", NULL | |
19544 | }; | |
19545 | ||
19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19549 | { |
19550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19551 | (arg1)->Clear(); | |
19552 | ||
19553 | wxPyEndAllowThreads(__tstate); | |
19554 | if (PyErr_Occurred()) SWIG_fail; | |
19555 | } | |
19556 | Py_INCREF(Py_None); resultobj = Py_None; | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | return NULL; | |
19560 | } | |
19561 | ||
19562 | ||
c32bde28 | 19563 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19564 | PyObject *resultobj; |
19565 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19566 | PyObject * obj0 = 0 ; | |
19567 | char *kwnames[] = { | |
19568 | (char *) "self", NULL | |
19569 | }; | |
19570 | ||
19571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19574 | { |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19576 | (arg1)->ClearAttributes(); | |
19577 | ||
19578 | wxPyEndAllowThreads(__tstate); | |
19579 | if (PyErr_Occurred()) SWIG_fail; | |
19580 | } | |
19581 | Py_INCREF(Py_None); resultobj = Py_None; | |
19582 | return resultobj; | |
19583 | fail: | |
19584 | return NULL; | |
19585 | } | |
19586 | ||
19587 | ||
c32bde28 | 19588 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19589 | PyObject *resultobj; |
19590 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19591 | long arg2 ; | |
19592 | PyObject * obj0 = 0 ; | |
994141e6 | 19593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19594 | char *kwnames[] = { |
19595 | (char *) "self",(char *) "mask", NULL | |
19596 | }; | |
19597 | ||
994141e6 | 19598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19601 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19602 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19603 | { |
19604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19605 | (arg1)->SetMask(arg2); | |
19606 | ||
19607 | wxPyEndAllowThreads(__tstate); | |
19608 | if (PyErr_Occurred()) SWIG_fail; | |
19609 | } | |
19610 | Py_INCREF(Py_None); resultobj = Py_None; | |
19611 | return resultobj; | |
19612 | fail: | |
19613 | return NULL; | |
19614 | } | |
19615 | ||
19616 | ||
c32bde28 | 19617 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19618 | PyObject *resultobj; |
19619 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19620 | long arg2 ; | |
19621 | PyObject * obj0 = 0 ; | |
994141e6 | 19622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19623 | char *kwnames[] = { |
19624 | (char *) "self",(char *) "id", NULL | |
19625 | }; | |
19626 | ||
994141e6 | 19627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19630 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19631 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19632 | { |
19633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19634 | (arg1)->SetId(arg2); | |
19635 | ||
19636 | wxPyEndAllowThreads(__tstate); | |
19637 | if (PyErr_Occurred()) SWIG_fail; | |
19638 | } | |
19639 | Py_INCREF(Py_None); resultobj = Py_None; | |
19640 | return resultobj; | |
19641 | fail: | |
19642 | return NULL; | |
19643 | } | |
19644 | ||
19645 | ||
c32bde28 | 19646 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19647 | PyObject *resultobj; |
19648 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19649 | int arg2 ; | |
19650 | PyObject * obj0 = 0 ; | |
994141e6 | 19651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19652 | char *kwnames[] = { |
19653 | (char *) "self",(char *) "col", NULL | |
19654 | }; | |
19655 | ||
994141e6 | 19656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19659 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19660 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19661 | { |
19662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19663 | (arg1)->SetColumn(arg2); | |
19664 | ||
19665 | wxPyEndAllowThreads(__tstate); | |
19666 | if (PyErr_Occurred()) SWIG_fail; | |
19667 | } | |
19668 | Py_INCREF(Py_None); resultobj = Py_None; | |
19669 | return resultobj; | |
19670 | fail: | |
19671 | return NULL; | |
19672 | } | |
19673 | ||
19674 | ||
c32bde28 | 19675 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19676 | PyObject *resultobj; |
19677 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19678 | long arg2 ; | |
19679 | PyObject * obj0 = 0 ; | |
994141e6 | 19680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19681 | char *kwnames[] = { |
19682 | (char *) "self",(char *) "state", NULL | |
19683 | }; | |
19684 | ||
994141e6 | 19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19688 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19689 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19690 | { |
19691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19692 | (arg1)->SetState(arg2); | |
19693 | ||
19694 | wxPyEndAllowThreads(__tstate); | |
19695 | if (PyErr_Occurred()) SWIG_fail; | |
19696 | } | |
19697 | Py_INCREF(Py_None); resultobj = Py_None; | |
19698 | return resultobj; | |
19699 | fail: | |
19700 | return NULL; | |
19701 | } | |
19702 | ||
19703 | ||
c32bde28 | 19704 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19705 | PyObject *resultobj; |
19706 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19707 | long arg2 ; | |
19708 | PyObject * obj0 = 0 ; | |
994141e6 | 19709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19710 | char *kwnames[] = { |
19711 | (char *) "self",(char *) "stateMask", NULL | |
19712 | }; | |
19713 | ||
994141e6 | 19714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19717 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19718 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19719 | { |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | (arg1)->SetStateMask(arg2); | |
19722 | ||
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | Py_INCREF(Py_None); resultobj = Py_None; | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
c32bde28 | 19733 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19734 | PyObject *resultobj; |
19735 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19736 | wxString *arg2 = 0 ; | |
ae8162c8 | 19737 | bool temp2 = false ; |
d14a1e28 RD |
19738 | PyObject * obj0 = 0 ; |
19739 | PyObject * obj1 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self",(char *) "text", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19747 | { |
19748 | arg2 = wxString_in_helper(obj1); | |
19749 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19750 | temp2 = true; |
d14a1e28 RD |
19751 | } |
19752 | { | |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | (arg1)->SetText((wxString const &)*arg2); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | Py_INCREF(Py_None); resultobj = Py_None; | |
19760 | { | |
19761 | if (temp2) | |
19762 | delete arg2; | |
19763 | } | |
19764 | return resultobj; | |
19765 | fail: | |
19766 | { | |
19767 | if (temp2) | |
19768 | delete arg2; | |
19769 | } | |
19770 | return NULL; | |
19771 | } | |
19772 | ||
19773 | ||
c32bde28 | 19774 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19775 | PyObject *resultobj; |
19776 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19777 | int arg2 ; | |
19778 | PyObject * obj0 = 0 ; | |
994141e6 | 19779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19780 | char *kwnames[] = { |
19781 | (char *) "self",(char *) "image", NULL | |
19782 | }; | |
19783 | ||
994141e6 | 19784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19787 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19788 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19789 | { |
19790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19791 | (arg1)->SetImage(arg2); | |
19792 | ||
19793 | wxPyEndAllowThreads(__tstate); | |
19794 | if (PyErr_Occurred()) SWIG_fail; | |
19795 | } | |
19796 | Py_INCREF(Py_None); resultobj = Py_None; | |
19797 | return resultobj; | |
19798 | fail: | |
19799 | return NULL; | |
19800 | } | |
19801 | ||
19802 | ||
c32bde28 | 19803 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19804 | PyObject *resultobj; |
19805 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19806 | long arg2 ; | |
19807 | PyObject * obj0 = 0 ; | |
994141e6 | 19808 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19809 | char *kwnames[] = { |
19810 | (char *) "self",(char *) "data", NULL | |
19811 | }; | |
19812 | ||
994141e6 | 19813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19816 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 19817 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19818 | { |
19819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19820 | (arg1)->SetData(arg2); | |
19821 | ||
19822 | wxPyEndAllowThreads(__tstate); | |
19823 | if (PyErr_Occurred()) SWIG_fail; | |
19824 | } | |
19825 | Py_INCREF(Py_None); resultobj = Py_None; | |
19826 | return resultobj; | |
19827 | fail: | |
19828 | return NULL; | |
19829 | } | |
19830 | ||
19831 | ||
c32bde28 | 19832 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19833 | PyObject *resultobj; |
19834 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19835 | int arg2 ; | |
19836 | PyObject * obj0 = 0 ; | |
994141e6 | 19837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19838 | char *kwnames[] = { |
19839 | (char *) "self",(char *) "width", NULL | |
19840 | }; | |
19841 | ||
994141e6 | 19842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19845 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19846 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19847 | { |
19848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19849 | (arg1)->SetWidth(arg2); | |
19850 | ||
19851 | wxPyEndAllowThreads(__tstate); | |
19852 | if (PyErr_Occurred()) SWIG_fail; | |
19853 | } | |
19854 | Py_INCREF(Py_None); resultobj = Py_None; | |
19855 | return resultobj; | |
19856 | fail: | |
19857 | return NULL; | |
19858 | } | |
19859 | ||
19860 | ||
c32bde28 | 19861 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19862 | PyObject *resultobj; |
19863 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19864 | int arg2 ; | |
19865 | PyObject * obj0 = 0 ; | |
994141e6 | 19866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19867 | char *kwnames[] = { |
19868 | (char *) "self",(char *) "align", NULL | |
19869 | }; | |
19870 | ||
994141e6 | 19871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19874 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 19875 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
19876 | { |
19877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19878 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19879 | ||
19880 | wxPyEndAllowThreads(__tstate); | |
19881 | if (PyErr_Occurred()) SWIG_fail; | |
19882 | } | |
19883 | Py_INCREF(Py_None); resultobj = Py_None; | |
19884 | return resultobj; | |
19885 | fail: | |
19886 | return NULL; | |
19887 | } | |
19888 | ||
19889 | ||
c32bde28 | 19890 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19891 | PyObject *resultobj; |
19892 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19893 | wxColour *arg2 = 0 ; | |
19894 | wxColour temp2 ; | |
19895 | PyObject * obj0 = 0 ; | |
19896 | PyObject * obj1 = 0 ; | |
19897 | char *kwnames[] = { | |
19898 | (char *) "self",(char *) "colText", NULL | |
19899 | }; | |
19900 | ||
19901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",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; | |
d14a1e28 RD |
19904 | { |
19905 | arg2 = &temp2; | |
19906 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19907 | } | |
19908 | { | |
19909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19910 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19911 | ||
19912 | wxPyEndAllowThreads(__tstate); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
19915 | Py_INCREF(Py_None); resultobj = Py_None; | |
19916 | return resultobj; | |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
c32bde28 | 19922 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19923 | PyObject *resultobj; |
19924 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19925 | wxColour *arg2 = 0 ; | |
19926 | wxColour temp2 ; | |
19927 | PyObject * obj0 = 0 ; | |
19928 | PyObject * obj1 = 0 ; | |
19929 | char *kwnames[] = { | |
19930 | (char *) "self",(char *) "colBack", NULL | |
19931 | }; | |
19932 | ||
19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19936 | { |
19937 | arg2 = &temp2; | |
19938 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19939 | } | |
19940 | { | |
19941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19942 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19943 | ||
19944 | wxPyEndAllowThreads(__tstate); | |
19945 | if (PyErr_Occurred()) SWIG_fail; | |
19946 | } | |
19947 | Py_INCREF(Py_None); resultobj = Py_None; | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | return NULL; | |
19951 | } | |
19952 | ||
19953 | ||
c32bde28 | 19954 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19955 | PyObject *resultobj; |
19956 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19957 | wxFont *arg2 = 0 ; | |
19958 | PyObject * obj0 = 0 ; | |
19959 | PyObject * obj1 = 0 ; | |
19960 | char *kwnames[] = { | |
19961 | (char *) "self",(char *) "font", NULL | |
19962 | }; | |
19963 | ||
19964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19969 | SWIG_fail; | |
d14a1e28 | 19970 | if (arg2 == NULL) { |
15afbcd0 RD |
19971 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19972 | SWIG_fail; | |
d14a1e28 RD |
19973 | } |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19976 | (arg1)->SetFont((wxFont const &)*arg2); | |
19977 | ||
19978 | wxPyEndAllowThreads(__tstate); | |
19979 | if (PyErr_Occurred()) SWIG_fail; | |
19980 | } | |
19981 | Py_INCREF(Py_None); resultobj = Py_None; | |
19982 | return resultobj; | |
19983 | fail: | |
19984 | return NULL; | |
19985 | } | |
19986 | ||
19987 | ||
c32bde28 | 19988 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19989 | PyObject *resultobj; |
19990 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19991 | long result; | |
19992 | PyObject * obj0 = 0 ; | |
19993 | char *kwnames[] = { | |
19994 | (char *) "self", NULL | |
19995 | }; | |
19996 | ||
19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20000 | { |
20001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20002 | result = (long)(arg1)->GetMask(); | |
20003 | ||
20004 | wxPyEndAllowThreads(__tstate); | |
20005 | if (PyErr_Occurred()) SWIG_fail; | |
20006 | } | |
c32bde28 | 20007 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20008 | return resultobj; |
20009 | fail: | |
20010 | return NULL; | |
20011 | } | |
20012 | ||
20013 | ||
c32bde28 | 20014 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20015 | PyObject *resultobj; |
20016 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20017 | long result; | |
20018 | PyObject * obj0 = 0 ; | |
20019 | char *kwnames[] = { | |
20020 | (char *) "self", NULL | |
20021 | }; | |
20022 | ||
20023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20026 | { |
20027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20028 | result = (long)(arg1)->GetId(); | |
20029 | ||
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
c32bde28 | 20033 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20034 | return resultobj; |
20035 | fail: | |
20036 | return NULL; | |
20037 | } | |
20038 | ||
20039 | ||
c32bde28 | 20040 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20041 | PyObject *resultobj; |
20042 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20043 | int result; | |
20044 | PyObject * obj0 = 0 ; | |
20045 | char *kwnames[] = { | |
20046 | (char *) "self", NULL | |
20047 | }; | |
20048 | ||
20049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20052 | { |
20053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20054 | result = (int)(arg1)->GetColumn(); | |
20055 | ||
20056 | wxPyEndAllowThreads(__tstate); | |
20057 | if (PyErr_Occurred()) SWIG_fail; | |
20058 | } | |
c32bde28 | 20059 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20060 | return resultobj; |
20061 | fail: | |
20062 | return NULL; | |
20063 | } | |
20064 | ||
20065 | ||
c32bde28 | 20066 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20067 | PyObject *resultobj; |
20068 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20069 | long result; | |
20070 | PyObject * obj0 = 0 ; | |
20071 | char *kwnames[] = { | |
20072 | (char *) "self", NULL | |
20073 | }; | |
20074 | ||
20075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20078 | { |
20079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20080 | result = (long)(arg1)->GetState(); | |
20081 | ||
20082 | wxPyEndAllowThreads(__tstate); | |
20083 | if (PyErr_Occurred()) SWIG_fail; | |
20084 | } | |
c32bde28 | 20085 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20086 | return resultobj; |
20087 | fail: | |
20088 | return NULL; | |
20089 | } | |
20090 | ||
20091 | ||
c32bde28 | 20092 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20093 | PyObject *resultobj; |
20094 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20095 | wxString *result; | |
20096 | PyObject * obj0 = 0 ; | |
20097 | char *kwnames[] = { | |
20098 | (char *) "self", NULL | |
20099 | }; | |
20100 | ||
20101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20104 | { |
20105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20106 | { | |
20107 | wxString const &_result_ref = (arg1)->GetText(); | |
20108 | result = (wxString *) &_result_ref; | |
20109 | } | |
20110 | ||
20111 | wxPyEndAllowThreads(__tstate); | |
20112 | if (PyErr_Occurred()) SWIG_fail; | |
20113 | } | |
cc6dd355 RD |
20114 | { |
20115 | #if wxUSE_UNICODE | |
20116 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20117 | #else | |
20118 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20119 | #endif | |
20120 | } | |
d14a1e28 RD |
20121 | return resultobj; |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
c32bde28 | 20127 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20128 | PyObject *resultobj; |
20129 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20130 | int result; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "self", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20139 | { |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | result = (int)(arg1)->GetImage(); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
c32bde28 | 20146 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20147 | return resultobj; |
20148 | fail: | |
20149 | return NULL; | |
20150 | } | |
20151 | ||
20152 | ||
c32bde28 | 20153 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20154 | PyObject *resultobj; |
20155 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20156 | long result; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | char *kwnames[] = { | |
20159 | (char *) "self", NULL | |
20160 | }; | |
20161 | ||
20162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20165 | { |
20166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20167 | result = (long)(arg1)->GetData(); | |
20168 | ||
20169 | wxPyEndAllowThreads(__tstate); | |
20170 | if (PyErr_Occurred()) SWIG_fail; | |
20171 | } | |
c32bde28 | 20172 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20173 | return resultobj; |
20174 | fail: | |
20175 | return NULL; | |
20176 | } | |
20177 | ||
20178 | ||
c32bde28 | 20179 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20180 | PyObject *resultobj; |
20181 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20182 | int result; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20191 | { |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = (int)(arg1)->GetWidth(); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
c32bde28 | 20198 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20199 | return resultobj; |
20200 | fail: | |
20201 | return NULL; | |
20202 | } | |
20203 | ||
20204 | ||
c32bde28 | 20205 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20206 | PyObject *resultobj; |
20207 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20208 | int result; | |
20209 | PyObject * obj0 = 0 ; | |
20210 | char *kwnames[] = { | |
20211 | (char *) "self", NULL | |
20212 | }; | |
20213 | ||
20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20217 | { |
20218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20219 | result = (int)(arg1)->GetAlign(); | |
20220 | ||
20221 | wxPyEndAllowThreads(__tstate); | |
20222 | if (PyErr_Occurred()) SWIG_fail; | |
20223 | } | |
c32bde28 | 20224 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20225 | return resultobj; |
20226 | fail: | |
20227 | return NULL; | |
20228 | } | |
20229 | ||
20230 | ||
c32bde28 | 20231 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20232 | PyObject *resultobj; |
20233 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20234 | wxListItemAttr *result; | |
20235 | PyObject * obj0 = 0 ; | |
20236 | char *kwnames[] = { | |
20237 | (char *) "self", NULL | |
20238 | }; | |
20239 | ||
20240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20243 | { |
20244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20245 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
20246 | ||
20247 | wxPyEndAllowThreads(__tstate); | |
20248 | if (PyErr_Occurred()) SWIG_fail; | |
20249 | } | |
15afbcd0 | 20250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
20251 | return resultobj; |
20252 | fail: | |
20253 | return NULL; | |
20254 | } | |
20255 | ||
20256 | ||
c32bde28 | 20257 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20258 | PyObject *resultobj; |
20259 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20260 | bool result; | |
20261 | PyObject * obj0 = 0 ; | |
20262 | char *kwnames[] = { | |
20263 | (char *) "self", NULL | |
20264 | }; | |
20265 | ||
20266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20269 | { |
20270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20271 | result = (bool)(arg1)->HasAttributes(); | |
20272 | ||
20273 | wxPyEndAllowThreads(__tstate); | |
20274 | if (PyErr_Occurred()) SWIG_fail; | |
20275 | } | |
4f89f6a3 RD |
20276 | { |
20277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20278 | } | |
d14a1e28 RD |
20279 | return resultobj; |
20280 | fail: | |
20281 | return NULL; | |
20282 | } | |
20283 | ||
20284 | ||
c32bde28 | 20285 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20286 | PyObject *resultobj; |
20287 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20288 | wxColour result; | |
20289 | PyObject * obj0 = 0 ; | |
20290 | char *kwnames[] = { | |
20291 | (char *) "self", NULL | |
20292 | }; | |
20293 | ||
20294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20297 | { |
20298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20299 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
20300 | ||
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
20304 | { | |
20305 | wxColour * resultptr; | |
20306 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 20307 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20308 | } |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
c32bde28 | 20315 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20316 | PyObject *resultobj; |
20317 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20318 | wxColour result; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | char *kwnames[] = { | |
20321 | (char *) "self", NULL | |
20322 | }; | |
20323 | ||
20324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20327 | { |
20328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20329 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
20330 | ||
20331 | wxPyEndAllowThreads(__tstate); | |
20332 | if (PyErr_Occurred()) SWIG_fail; | |
20333 | } | |
20334 | { | |
20335 | wxColour * resultptr; | |
20336 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 20337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
20338 | } |
20339 | return resultobj; | |
20340 | fail: | |
20341 | return NULL; | |
20342 | } | |
20343 | ||
20344 | ||
c32bde28 | 20345 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20346 | PyObject *resultobj; |
20347 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20348 | wxFont result; | |
20349 | PyObject * obj0 = 0 ; | |
20350 | char *kwnames[] = { | |
20351 | (char *) "self", NULL | |
20352 | }; | |
20353 | ||
20354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20357 | { |
20358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20359 | result = ((wxListItem const *)arg1)->GetFont(); | |
20360 | ||
20361 | wxPyEndAllowThreads(__tstate); | |
20362 | if (PyErr_Occurred()) SWIG_fail; | |
20363 | } | |
20364 | { | |
20365 | wxFont * resultptr; | |
20366 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 20367 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
20368 | } |
20369 | return resultobj; | |
20370 | fail: | |
20371 | return NULL; | |
20372 | } | |
20373 | ||
20374 | ||
c32bde28 | 20375 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20376 | PyObject *resultobj; |
20377 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20378 | long arg2 ; | |
20379 | PyObject * obj0 = 0 ; | |
994141e6 | 20380 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20381 | char *kwnames[] = { |
20382 | (char *) "self",(char *) "m_mask", NULL | |
20383 | }; | |
20384 | ||
994141e6 | 20385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20388 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20389 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20390 | if (arg1) (arg1)->m_mask = arg2; |
20391 | ||
20392 | Py_INCREF(Py_None); resultobj = Py_None; | |
20393 | return resultobj; | |
20394 | fail: | |
20395 | return NULL; | |
20396 | } | |
20397 | ||
20398 | ||
c32bde28 | 20399 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20400 | PyObject *resultobj; |
20401 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20402 | long result; | |
20403 | PyObject * obj0 = 0 ; | |
20404 | char *kwnames[] = { | |
20405 | (char *) "self", NULL | |
20406 | }; | |
20407 | ||
20408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20411 | result = (long) ((arg1)->m_mask); |
20412 | ||
c32bde28 | 20413 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20414 | return resultobj; |
20415 | fail: | |
20416 | return NULL; | |
20417 | } | |
20418 | ||
20419 | ||
c32bde28 | 20420 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20421 | PyObject *resultobj; |
20422 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20423 | long arg2 ; | |
20424 | PyObject * obj0 = 0 ; | |
994141e6 | 20425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20426 | char *kwnames[] = { |
20427 | (char *) "self",(char *) "m_itemId", NULL | |
20428 | }; | |
20429 | ||
994141e6 | 20430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20433 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20434 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20435 | if (arg1) (arg1)->m_itemId = arg2; |
20436 | ||
20437 | Py_INCREF(Py_None); resultobj = Py_None; | |
20438 | return resultobj; | |
20439 | fail: | |
20440 | return NULL; | |
20441 | } | |
20442 | ||
20443 | ||
c32bde28 | 20444 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20445 | PyObject *resultobj; |
20446 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20447 | long result; | |
20448 | PyObject * obj0 = 0 ; | |
20449 | char *kwnames[] = { | |
20450 | (char *) "self", NULL | |
20451 | }; | |
20452 | ||
20453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20456 | result = (long) ((arg1)->m_itemId); |
20457 | ||
c32bde28 | 20458 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20459 | return resultobj; |
20460 | fail: | |
20461 | return NULL; | |
20462 | } | |
20463 | ||
20464 | ||
c32bde28 | 20465 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20466 | PyObject *resultobj; |
20467 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20468 | int arg2 ; | |
20469 | PyObject * obj0 = 0 ; | |
994141e6 | 20470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20471 | char *kwnames[] = { |
20472 | (char *) "self",(char *) "m_col", NULL | |
20473 | }; | |
20474 | ||
994141e6 | 20475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20478 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20479 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20480 | if (arg1) (arg1)->m_col = arg2; |
20481 | ||
20482 | Py_INCREF(Py_None); resultobj = Py_None; | |
20483 | return resultobj; | |
20484 | fail: | |
20485 | return NULL; | |
20486 | } | |
20487 | ||
20488 | ||
c32bde28 | 20489 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20490 | PyObject *resultobj; |
20491 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20492 | int result; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | char *kwnames[] = { | |
20495 | (char *) "self", NULL | |
20496 | }; | |
20497 | ||
20498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20501 | result = (int) ((arg1)->m_col); |
20502 | ||
c32bde28 | 20503 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20504 | return resultobj; |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
c32bde28 | 20510 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20511 | PyObject *resultobj; |
20512 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20513 | long arg2 ; | |
20514 | PyObject * obj0 = 0 ; | |
994141e6 | 20515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20516 | char *kwnames[] = { |
20517 | (char *) "self",(char *) "m_state", NULL | |
20518 | }; | |
20519 | ||
994141e6 | 20520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20523 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20524 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20525 | if (arg1) (arg1)->m_state = arg2; |
20526 | ||
20527 | Py_INCREF(Py_None); resultobj = Py_None; | |
20528 | return resultobj; | |
20529 | fail: | |
20530 | return NULL; | |
20531 | } | |
20532 | ||
20533 | ||
c32bde28 | 20534 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20535 | PyObject *resultobj; |
20536 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20537 | long result; | |
20538 | PyObject * obj0 = 0 ; | |
20539 | char *kwnames[] = { | |
20540 | (char *) "self", NULL | |
20541 | }; | |
20542 | ||
20543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20546 | result = (long) ((arg1)->m_state); |
20547 | ||
c32bde28 | 20548 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20549 | return resultobj; |
20550 | fail: | |
20551 | return NULL; | |
20552 | } | |
20553 | ||
20554 | ||
c32bde28 | 20555 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20556 | PyObject *resultobj; |
20557 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20558 | long arg2 ; | |
20559 | PyObject * obj0 = 0 ; | |
994141e6 | 20560 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20561 | char *kwnames[] = { |
20562 | (char *) "self",(char *) "m_stateMask", NULL | |
20563 | }; | |
20564 | ||
994141e6 | 20565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20568 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20569 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20570 | if (arg1) (arg1)->m_stateMask = arg2; |
20571 | ||
20572 | Py_INCREF(Py_None); resultobj = Py_None; | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
c32bde28 | 20579 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20580 | PyObject *resultobj; |
20581 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20582 | long result; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | char *kwnames[] = { | |
20585 | (char *) "self", NULL | |
20586 | }; | |
20587 | ||
20588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20591 | result = (long) ((arg1)->m_stateMask); |
20592 | ||
c32bde28 | 20593 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20594 | return resultobj; |
20595 | fail: | |
20596 | return NULL; | |
20597 | } | |
20598 | ||
20599 | ||
c32bde28 | 20600 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20601 | PyObject *resultobj; |
20602 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20603 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 20604 | bool temp2 = false ; |
d14a1e28 RD |
20605 | PyObject * obj0 = 0 ; |
20606 | PyObject * obj1 = 0 ; | |
20607 | char *kwnames[] = { | |
20608 | (char *) "self",(char *) "m_text", NULL | |
20609 | }; | |
20610 | ||
20611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
20614 | { |
20615 | arg2 = wxString_in_helper(obj1); | |
20616 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20617 | temp2 = true; |
7eae615b | 20618 | } |
196addbf | 20619 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20620 | |
20621 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20622 | { |
20623 | if (temp2) | |
20624 | delete arg2; | |
20625 | } | |
d14a1e28 RD |
20626 | return resultobj; |
20627 | fail: | |
7eae615b RD |
20628 | { |
20629 | if (temp2) | |
20630 | delete arg2; | |
20631 | } | |
d14a1e28 RD |
20632 | return NULL; |
20633 | } | |
20634 | ||
20635 | ||
c32bde28 | 20636 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20637 | PyObject *resultobj; |
20638 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20639 | wxString *result; |
d14a1e28 RD |
20640 | PyObject * obj0 = 0 ; |
20641 | char *kwnames[] = { | |
20642 | (char *) "self", NULL | |
20643 | }; | |
20644 | ||
20645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20648 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20649 | |
20650 | { | |
20651 | #if wxUSE_UNICODE | |
196addbf | 20652 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20653 | #else |
196addbf | 20654 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20655 | #endif |
20656 | } | |
20657 | return resultobj; | |
20658 | fail: | |
20659 | return NULL; | |
20660 | } | |
20661 | ||
20662 | ||
c32bde28 | 20663 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20664 | PyObject *resultobj; |
20665 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20666 | int arg2 ; | |
20667 | PyObject * obj0 = 0 ; | |
994141e6 | 20668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20669 | char *kwnames[] = { |
20670 | (char *) "self",(char *) "m_image", NULL | |
20671 | }; | |
20672 | ||
994141e6 | 20673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20676 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20677 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20678 | if (arg1) (arg1)->m_image = arg2; |
20679 | ||
20680 | Py_INCREF(Py_None); resultobj = Py_None; | |
20681 | return resultobj; | |
20682 | fail: | |
20683 | return NULL; | |
20684 | } | |
20685 | ||
20686 | ||
c32bde28 | 20687 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20688 | PyObject *resultobj; |
20689 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20690 | int result; | |
20691 | PyObject * obj0 = 0 ; | |
20692 | char *kwnames[] = { | |
20693 | (char *) "self", NULL | |
20694 | }; | |
20695 | ||
20696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20699 | result = (int) ((arg1)->m_image); |
20700 | ||
c32bde28 | 20701 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20702 | return resultobj; |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
c32bde28 | 20708 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20709 | PyObject *resultobj; |
20710 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20711 | long arg2 ; | |
20712 | PyObject * obj0 = 0 ; | |
994141e6 | 20713 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20714 | char *kwnames[] = { |
20715 | (char *) "self",(char *) "m_data", NULL | |
20716 | }; | |
20717 | ||
994141e6 | 20718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20721 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20722 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20723 | if (arg1) (arg1)->m_data = arg2; |
20724 | ||
20725 | Py_INCREF(Py_None); resultobj = Py_None; | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
c32bde28 | 20732 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20733 | PyObject *resultobj; |
20734 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20735 | long result; | |
20736 | PyObject * obj0 = 0 ; | |
20737 | char *kwnames[] = { | |
20738 | (char *) "self", NULL | |
20739 | }; | |
20740 | ||
20741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20744 | result = (long) ((arg1)->m_data); |
20745 | ||
c32bde28 | 20746 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20747 | return resultobj; |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
c32bde28 | 20753 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20754 | PyObject *resultobj; |
20755 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20756 | int arg2 ; | |
20757 | PyObject * obj0 = 0 ; | |
994141e6 | 20758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20759 | char *kwnames[] = { |
20760 | (char *) "self",(char *) "m_format", NULL | |
20761 | }; | |
20762 | ||
994141e6 | 20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20766 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20767 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20768 | if (arg1) (arg1)->m_format = arg2; |
20769 | ||
20770 | Py_INCREF(Py_None); resultobj = Py_None; | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
c32bde28 | 20777 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20778 | PyObject *resultobj; |
20779 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20780 | int result; | |
20781 | PyObject * obj0 = 0 ; | |
20782 | char *kwnames[] = { | |
20783 | (char *) "self", NULL | |
20784 | }; | |
20785 | ||
20786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20789 | result = (int) ((arg1)->m_format); |
20790 | ||
c32bde28 | 20791 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20792 | return resultobj; |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
c32bde28 | 20798 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20799 | PyObject *resultobj; |
20800 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20801 | int arg2 ; | |
20802 | PyObject * obj0 = 0 ; | |
994141e6 | 20803 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20804 | char *kwnames[] = { |
20805 | (char *) "self",(char *) "m_width", NULL | |
20806 | }; | |
20807 | ||
994141e6 | 20808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20811 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20812 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20813 | if (arg1) (arg1)->m_width = arg2; |
20814 | ||
20815 | Py_INCREF(Py_None); resultobj = Py_None; | |
20816 | return resultobj; | |
20817 | fail: | |
20818 | return NULL; | |
20819 | } | |
20820 | ||
20821 | ||
c32bde28 | 20822 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20823 | PyObject *resultobj; |
20824 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20825 | int result; | |
20826 | PyObject * obj0 = 0 ; | |
20827 | char *kwnames[] = { | |
20828 | (char *) "self", NULL | |
20829 | }; | |
20830 | ||
20831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20834 | result = (int) ((arg1)->m_width); |
20835 | ||
c32bde28 | 20836 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20837 | return resultobj; |
20838 | fail: | |
20839 | return NULL; | |
20840 | } | |
20841 | ||
20842 | ||
c32bde28 | 20843 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20844 | PyObject *obj; |
20845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20846 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20847 | Py_INCREF(obj); | |
20848 | return Py_BuildValue((char *)""); | |
20849 | } | |
c32bde28 | 20850 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20851 | PyObject *resultobj; |
20852 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20853 | int arg2 = (int) 0 ; | |
20854 | wxListEvent *result; | |
994141e6 RD |
20855 | PyObject * obj0 = 0 ; |
20856 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20857 | char *kwnames[] = { |
20858 | (char *) "commandType",(char *) "id", NULL | |
20859 | }; | |
20860 | ||
994141e6 RD |
20861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20862 | if (obj0) { | |
c32bde28 | 20863 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 20864 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
20865 | } |
20866 | if (obj1) { | |
c32bde28 | 20867 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20868 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 20869 | } |
d14a1e28 RD |
20870 | { |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
15afbcd0 | 20877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20878 | return resultobj; |
20879 | fail: | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
c32bde28 | 20884 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20885 | PyObject *resultobj; |
20886 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20887 | int arg2 ; | |
20888 | PyObject * obj0 = 0 ; | |
994141e6 | 20889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20890 | char *kwnames[] = { |
20891 | (char *) "self",(char *) "m_code", NULL | |
20892 | }; | |
20893 | ||
994141e6 | 20894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20897 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 20898 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20899 | if (arg1) (arg1)->m_code = arg2; |
20900 | ||
20901 | Py_INCREF(Py_None); resultobj = Py_None; | |
20902 | return resultobj; | |
20903 | fail: | |
20904 | return NULL; | |
20905 | } | |
20906 | ||
20907 | ||
c32bde28 | 20908 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20909 | PyObject *resultobj; |
20910 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20911 | int result; | |
20912 | PyObject * obj0 = 0 ; | |
20913 | char *kwnames[] = { | |
20914 | (char *) "self", NULL | |
20915 | }; | |
20916 | ||
20917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20920 | result = (int) ((arg1)->m_code); |
20921 | ||
c32bde28 | 20922 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
20923 | return resultobj; |
20924 | fail: | |
20925 | return NULL; | |
20926 | } | |
20927 | ||
20928 | ||
c32bde28 | 20929 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20930 | PyObject *resultobj; |
20931 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20932 | long arg2 ; | |
20933 | PyObject * obj0 = 0 ; | |
994141e6 | 20934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20935 | char *kwnames[] = { |
20936 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20937 | }; | |
20938 | ||
994141e6 | 20939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20942 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20943 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20944 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20945 | ||
20946 | Py_INCREF(Py_None); resultobj = Py_None; | |
20947 | return resultobj; | |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
c32bde28 | 20953 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20954 | PyObject *resultobj; |
20955 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20956 | long result; | |
20957 | PyObject * obj0 = 0 ; | |
20958 | char *kwnames[] = { | |
20959 | (char *) "self", NULL | |
20960 | }; | |
20961 | ||
20962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20965 | result = (long) ((arg1)->m_oldItemIndex); |
20966 | ||
c32bde28 | 20967 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
20968 | return resultobj; |
20969 | fail: | |
20970 | return NULL; | |
20971 | } | |
20972 | ||
20973 | ||
c32bde28 | 20974 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20975 | PyObject *resultobj; |
20976 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20977 | long arg2 ; | |
20978 | PyObject * obj0 = 0 ; | |
994141e6 | 20979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20980 | char *kwnames[] = { |
20981 | (char *) "self",(char *) "m_itemIndex", NULL | |
20982 | }; | |
20983 | ||
994141e6 | 20984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20987 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 20988 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
20989 | if (arg1) (arg1)->m_itemIndex = arg2; |
20990 | ||
20991 | Py_INCREF(Py_None); resultobj = Py_None; | |
20992 | return resultobj; | |
20993 | fail: | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
c32bde28 | 20998 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20999 | PyObject *resultobj; |
21000 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21001 | long result; | |
21002 | PyObject * obj0 = 0 ; | |
21003 | char *kwnames[] = { | |
21004 | (char *) "self", NULL | |
21005 | }; | |
21006 | ||
21007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21010 | result = (long) ((arg1)->m_itemIndex); |
21011 | ||
c32bde28 | 21012 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21013 | return resultobj; |
21014 | fail: | |
21015 | return NULL; | |
21016 | } | |
21017 | ||
21018 | ||
c32bde28 | 21019 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21020 | PyObject *resultobj; |
21021 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21022 | int arg2 ; | |
21023 | PyObject * obj0 = 0 ; | |
994141e6 | 21024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21025 | char *kwnames[] = { |
21026 | (char *) "self",(char *) "m_col", NULL | |
21027 | }; | |
21028 | ||
994141e6 | 21029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21032 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21033 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21034 | if (arg1) (arg1)->m_col = arg2; |
21035 | ||
21036 | Py_INCREF(Py_None); resultobj = Py_None; | |
21037 | return resultobj; | |
21038 | fail: | |
21039 | return NULL; | |
21040 | } | |
21041 | ||
21042 | ||
c32bde28 | 21043 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21044 | PyObject *resultobj; |
21045 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21046 | int result; | |
21047 | PyObject * obj0 = 0 ; | |
21048 | char *kwnames[] = { | |
21049 | (char *) "self", NULL | |
21050 | }; | |
21051 | ||
21052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21055 | result = (int) ((arg1)->m_col); |
21056 | ||
c32bde28 | 21057 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21058 | return resultobj; |
21059 | fail: | |
21060 | return NULL; | |
21061 | } | |
21062 | ||
21063 | ||
c32bde28 | 21064 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21065 | PyObject *resultobj; |
21066 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21067 | wxPoint *arg2 = (wxPoint *) 0 ; | |
21068 | PyObject * obj0 = 0 ; | |
21069 | PyObject * obj1 = 0 ; | |
21070 | char *kwnames[] = { | |
21071 | (char *) "self",(char *) "m_pointDrag", NULL | |
21072 | }; | |
21073 | ||
21074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
21078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21079 | if (arg1) (arg1)->m_pointDrag = *arg2; |
21080 | ||
21081 | Py_INCREF(Py_None); resultobj = Py_None; | |
21082 | return resultobj; | |
21083 | fail: | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
c32bde28 | 21088 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21089 | PyObject *resultobj; |
21090 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21091 | wxPoint *result; | |
21092 | PyObject * obj0 = 0 ; | |
21093 | char *kwnames[] = { | |
21094 | (char *) "self", NULL | |
21095 | }; | |
21096 | ||
21097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21100 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
21101 | ||
15afbcd0 | 21102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
21103 | return resultobj; |
21104 | fail: | |
21105 | return NULL; | |
21106 | } | |
21107 | ||
21108 | ||
c32bde28 | 21109 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21110 | PyObject *resultobj; |
21111 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21112 | wxListItem *result; | |
21113 | PyObject * obj0 = 0 ; | |
21114 | char *kwnames[] = { | |
21115 | (char *) "self", NULL | |
21116 | }; | |
21117 | ||
21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21121 | result = (wxListItem *)& ((arg1)->m_item); |
21122 | ||
21123 | { | |
412d302d | 21124 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21125 | } |
21126 | return resultobj; | |
21127 | fail: | |
21128 | return NULL; | |
21129 | } | |
21130 | ||
21131 | ||
c32bde28 | 21132 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21133 | PyObject *resultobj; |
21134 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21135 | int result; | |
21136 | PyObject * obj0 = 0 ; | |
21137 | char *kwnames[] = { | |
21138 | (char *) "self", NULL | |
21139 | }; | |
21140 | ||
21141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21144 | { |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | result = (int)(arg1)->GetKeyCode(); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
c32bde28 | 21151 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21152 | return resultobj; |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
c32bde28 | 21158 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21159 | PyObject *resultobj; |
21160 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21161 | long result; | |
21162 | PyObject * obj0 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "self", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21170 | { |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | result = (long)(arg1)->GetIndex(); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
c32bde28 | 21177 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21178 | return resultobj; |
21179 | fail: | |
21180 | return NULL; | |
21181 | } | |
21182 | ||
21183 | ||
c32bde28 | 21184 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21185 | PyObject *resultobj; |
21186 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21187 | int result; | |
21188 | PyObject * obj0 = 0 ; | |
21189 | char *kwnames[] = { | |
21190 | (char *) "self", NULL | |
21191 | }; | |
21192 | ||
21193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21196 | { |
21197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21198 | result = (int)(arg1)->GetColumn(); | |
21199 | ||
21200 | wxPyEndAllowThreads(__tstate); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | } | |
c32bde28 | 21203 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21204 | return resultobj; |
21205 | fail: | |
21206 | return NULL; | |
21207 | } | |
21208 | ||
21209 | ||
c32bde28 | 21210 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21211 | PyObject *resultobj; |
21212 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21213 | wxPoint result; | |
21214 | PyObject * obj0 = 0 ; | |
21215 | char *kwnames[] = { | |
21216 | (char *) "self", NULL | |
21217 | }; | |
21218 | ||
21219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21222 | { |
21223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21224 | result = (arg1)->GetPoint(); | |
21225 | ||
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
21229 | { | |
21230 | wxPoint * resultptr; | |
21231 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 21232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21233 | } |
21234 | return resultobj; | |
21235 | fail: | |
21236 | return NULL; | |
21237 | } | |
21238 | ||
21239 | ||
c32bde28 | 21240 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21241 | PyObject *resultobj; |
21242 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21243 | wxString *result; | |
21244 | PyObject * obj0 = 0 ; | |
21245 | char *kwnames[] = { | |
21246 | (char *) "self", NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21252 | { |
21253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21254 | { | |
21255 | wxString const &_result_ref = (arg1)->GetLabel(); | |
21256 | result = (wxString *) &_result_ref; | |
21257 | } | |
21258 | ||
21259 | wxPyEndAllowThreads(__tstate); | |
21260 | if (PyErr_Occurred()) SWIG_fail; | |
21261 | } | |
cc6dd355 RD |
21262 | { |
21263 | #if wxUSE_UNICODE | |
21264 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21265 | #else | |
21266 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21267 | #endif | |
21268 | } | |
d14a1e28 RD |
21269 | return resultobj; |
21270 | fail: | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
c32bde28 | 21275 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21276 | PyObject *resultobj; |
21277 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21278 | wxString *result; | |
21279 | PyObject * obj0 = 0 ; | |
21280 | char *kwnames[] = { | |
21281 | (char *) "self", NULL | |
21282 | }; | |
21283 | ||
21284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21287 | { |
21288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21289 | { | |
21290 | wxString const &_result_ref = (arg1)->GetText(); | |
21291 | result = (wxString *) &_result_ref; | |
21292 | } | |
21293 | ||
21294 | wxPyEndAllowThreads(__tstate); | |
21295 | if (PyErr_Occurred()) SWIG_fail; | |
21296 | } | |
cc6dd355 RD |
21297 | { |
21298 | #if wxUSE_UNICODE | |
21299 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21300 | #else | |
21301 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21302 | #endif | |
21303 | } | |
d14a1e28 RD |
21304 | return resultobj; |
21305 | fail: | |
21306 | return NULL; | |
21307 | } | |
21308 | ||
21309 | ||
c32bde28 | 21310 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21311 | PyObject *resultobj; |
21312 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21313 | int result; | |
21314 | PyObject * obj0 = 0 ; | |
21315 | char *kwnames[] = { | |
21316 | (char *) "self", NULL | |
21317 | }; | |
21318 | ||
21319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21322 | { |
21323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21324 | result = (int)(arg1)->GetImage(); | |
21325 | ||
21326 | wxPyEndAllowThreads(__tstate); | |
21327 | if (PyErr_Occurred()) SWIG_fail; | |
21328 | } | |
c32bde28 | 21329 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21330 | return resultobj; |
21331 | fail: | |
21332 | return NULL; | |
21333 | } | |
21334 | ||
21335 | ||
c32bde28 | 21336 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21337 | PyObject *resultobj; |
21338 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21339 | long result; | |
21340 | PyObject * obj0 = 0 ; | |
21341 | char *kwnames[] = { | |
21342 | (char *) "self", NULL | |
21343 | }; | |
21344 | ||
21345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21348 | { |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | result = (long)(arg1)->GetData(); | |
21351 | ||
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
c32bde28 | 21355 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21356 | return resultobj; |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
c32bde28 | 21362 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21363 | PyObject *resultobj; |
21364 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21365 | long result; | |
21366 | PyObject * obj0 = 0 ; | |
21367 | char *kwnames[] = { | |
21368 | (char *) "self", NULL | |
21369 | }; | |
21370 | ||
21371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",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 | { |
21375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21376 | result = (long)(arg1)->GetMask(); | |
21377 | ||
21378 | wxPyEndAllowThreads(__tstate); | |
21379 | if (PyErr_Occurred()) SWIG_fail; | |
21380 | } | |
c32bde28 | 21381 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21382 | return resultobj; |
21383 | fail: | |
21384 | return NULL; | |
21385 | } | |
21386 | ||
21387 | ||
c32bde28 | 21388 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21389 | PyObject *resultobj; |
21390 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21391 | wxListItem *result; | |
21392 | PyObject * obj0 = 0 ; | |
21393 | char *kwnames[] = { | |
21394 | (char *) "self", NULL | |
21395 | }; | |
21396 | ||
21397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21400 | { |
21401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21402 | { | |
21403 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21404 | result = (wxListItem *) &_result_ref; | |
21405 | } | |
21406 | ||
21407 | wxPyEndAllowThreads(__tstate); | |
21408 | if (PyErr_Occurred()) SWIG_fail; | |
21409 | } | |
15afbcd0 | 21410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
21411 | return resultobj; |
21412 | fail: | |
21413 | return NULL; | |
21414 | } | |
21415 | ||
21416 | ||
c32bde28 | 21417 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21418 | PyObject *resultobj; |
21419 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21420 | long result; | |
21421 | PyObject * obj0 = 0 ; | |
21422 | char *kwnames[] = { | |
21423 | (char *) "self", NULL | |
21424 | }; | |
21425 | ||
21426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21429 | { |
21430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21431 | result = (long)(arg1)->GetCacheFrom(); | |
21432 | ||
21433 | wxPyEndAllowThreads(__tstate); | |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
c32bde28 | 21436 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21437 | return resultobj; |
21438 | fail: | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
c32bde28 | 21443 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21444 | PyObject *resultobj; |
21445 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21446 | long result; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | char *kwnames[] = { | |
21449 | (char *) "self", NULL | |
21450 | }; | |
21451 | ||
21452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21455 | { |
21456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21457 | result = (long)(arg1)->GetCacheTo(); | |
21458 | ||
21459 | wxPyEndAllowThreads(__tstate); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | } | |
c32bde28 | 21462 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
21463 | return resultobj; |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
c32bde28 | 21469 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21470 | PyObject *resultobj; |
21471 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21472 | bool result; | |
21473 | PyObject * obj0 = 0 ; | |
21474 | char *kwnames[] = { | |
21475 | (char *) "self", NULL | |
21476 | }; | |
21477 | ||
21478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21481 | { |
21482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21483 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21484 | ||
21485 | wxPyEndAllowThreads(__tstate); | |
21486 | if (PyErr_Occurred()) SWIG_fail; | |
21487 | } | |
4f89f6a3 RD |
21488 | { |
21489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21490 | } | |
d14a1e28 RD |
21491 | return resultobj; |
21492 | fail: | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
c32bde28 | 21497 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21498 | PyObject *resultobj; |
21499 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21500 | bool arg2 ; | |
21501 | PyObject * obj0 = 0 ; | |
21502 | PyObject * obj1 = 0 ; | |
21503 | char *kwnames[] = { | |
21504 | (char *) "self",(char *) "editCancelled", NULL | |
21505 | }; | |
21506 | ||
21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21510 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 21511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21512 | { |
21513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21514 | (arg1)->SetEditCanceled(arg2); | |
21515 | ||
21516 | wxPyEndAllowThreads(__tstate); | |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
21518 | } | |
21519 | Py_INCREF(Py_None); resultobj = Py_None; | |
21520 | return resultobj; | |
21521 | fail: | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
c32bde28 | 21526 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21527 | PyObject *obj; |
21528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21529 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21530 | Py_INCREF(obj); | |
21531 | return Py_BuildValue((char *)""); | |
21532 | } | |
c32bde28 | 21533 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21534 | PyObject *resultobj; |
21535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21536 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21537 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21538 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21539 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21540 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21541 | long arg5 = (long) wxLC_ICON ; | |
21542 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21543 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21544 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21545 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21546 | wxPyListCtrl *result; | |
21547 | wxPoint temp3 ; | |
21548 | wxSize temp4 ; | |
ae8162c8 | 21549 | bool temp7 = false ; |
d14a1e28 | 21550 | PyObject * obj0 = 0 ; |
994141e6 | 21551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21552 | PyObject * obj2 = 0 ; |
21553 | PyObject * obj3 = 0 ; | |
994141e6 | 21554 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21555 | PyObject * obj5 = 0 ; |
21556 | PyObject * obj6 = 0 ; | |
21557 | char *kwnames[] = { | |
21558 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21559 | }; | |
21560 | ||
994141e6 | 21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21564 | if (obj1) { |
c32bde28 | 21565 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21566 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21567 | } |
d14a1e28 RD |
21568 | if (obj2) { |
21569 | { | |
21570 | arg3 = &temp3; | |
21571 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21572 | } | |
21573 | } | |
21574 | if (obj3) { | |
21575 | { | |
21576 | arg4 = &temp4; | |
21577 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21578 | } | |
21579 | } | |
994141e6 | 21580 | if (obj4) { |
c32bde28 | 21581 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 21582 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21583 | } |
d14a1e28 | 21584 | if (obj5) { |
15afbcd0 RD |
21585 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
21586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21587 | SWIG_fail; | |
d14a1e28 | 21588 | if (arg6 == NULL) { |
15afbcd0 RD |
21589 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21590 | SWIG_fail; | |
d14a1e28 RD |
21591 | } |
21592 | } | |
21593 | if (obj6) { | |
21594 | { | |
21595 | arg7 = wxString_in_helper(obj6); | |
21596 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21597 | temp7 = true; |
d14a1e28 RD |
21598 | } |
21599 | } | |
21600 | { | |
e3b71cb8 | 21601 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21603 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21604 | ||
21605 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21606 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21607 | } |
15afbcd0 | 21608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21609 | { |
21610 | if (temp7) | |
21611 | delete arg7; | |
21612 | } | |
21613 | return resultobj; | |
21614 | fail: | |
21615 | { | |
21616 | if (temp7) | |
21617 | delete arg7; | |
21618 | } | |
21619 | return NULL; | |
21620 | } | |
21621 | ||
21622 | ||
c32bde28 | 21623 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21624 | PyObject *resultobj; |
21625 | wxPyListCtrl *result; | |
21626 | char *kwnames[] = { | |
21627 | NULL | |
21628 | }; | |
21629 | ||
21630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21631 | { | |
e3b71cb8 | 21632 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21634 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21635 | ||
21636 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21637 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21638 | } |
15afbcd0 | 21639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21640 | return resultobj; |
21641 | fail: | |
21642 | return NULL; | |
21643 | } | |
21644 | ||
21645 | ||
c32bde28 | 21646 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21647 | PyObject *resultobj; |
21648 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21650 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21651 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21652 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21653 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21654 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21655 | long arg6 = (long) wxLC_ICON ; | |
21656 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21657 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21658 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21659 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21660 | bool result; | |
21661 | wxPoint temp4 ; | |
21662 | wxSize temp5 ; | |
ae8162c8 | 21663 | bool temp8 = false ; |
d14a1e28 RD |
21664 | PyObject * obj0 = 0 ; |
21665 | PyObject * obj1 = 0 ; | |
994141e6 | 21666 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21667 | PyObject * obj3 = 0 ; |
21668 | PyObject * obj4 = 0 ; | |
994141e6 | 21669 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21670 | PyObject * obj6 = 0 ; |
21671 | PyObject * obj7 = 0 ; | |
21672 | char *kwnames[] = { | |
21673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21674 | }; | |
21675 | ||
994141e6 | 21676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21681 | if (obj2) { |
c32bde28 | 21682 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21683 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21684 | } |
d14a1e28 RD |
21685 | if (obj3) { |
21686 | { | |
21687 | arg4 = &temp4; | |
21688 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21689 | } | |
21690 | } | |
21691 | if (obj4) { | |
21692 | { | |
21693 | arg5 = &temp5; | |
21694 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21695 | } | |
21696 | } | |
994141e6 | 21697 | if (obj5) { |
c32bde28 | 21698 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 21699 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 21700 | } |
d14a1e28 | 21701 | if (obj6) { |
15afbcd0 RD |
21702 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21703 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21704 | SWIG_fail; | |
d14a1e28 | 21705 | if (arg7 == NULL) { |
15afbcd0 RD |
21706 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21707 | SWIG_fail; | |
d14a1e28 RD |
21708 | } |
21709 | } | |
21710 | if (obj7) { | |
21711 | { | |
21712 | arg8 = wxString_in_helper(obj7); | |
21713 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 21714 | temp8 = true; |
d14a1e28 RD |
21715 | } |
21716 | } | |
21717 | { | |
21718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21719 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21720 | ||
21721 | wxPyEndAllowThreads(__tstate); | |
21722 | if (PyErr_Occurred()) SWIG_fail; | |
21723 | } | |
4f89f6a3 RD |
21724 | { |
21725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21726 | } | |
d14a1e28 RD |
21727 | { |
21728 | if (temp8) | |
21729 | delete arg8; | |
21730 | } | |
21731 | return resultobj; | |
21732 | fail: | |
21733 | { | |
21734 | if (temp8) | |
21735 | delete arg8; | |
21736 | } | |
21737 | return NULL; | |
21738 | } | |
21739 | ||
21740 | ||
c32bde28 | 21741 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21742 | PyObject *resultobj; |
21743 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21744 | PyObject *arg2 = (PyObject *) 0 ; | |
21745 | PyObject *arg3 = (PyObject *) 0 ; | |
21746 | PyObject * obj0 = 0 ; | |
21747 | PyObject * obj1 = 0 ; | |
21748 | PyObject * obj2 = 0 ; | |
21749 | char *kwnames[] = { | |
21750 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21751 | }; | |
21752 | ||
21753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21756 | arg2 = obj1; |
21757 | arg3 = obj2; | |
21758 | { | |
21759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21760 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21761 | ||
21762 | wxPyEndAllowThreads(__tstate); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
21765 | Py_INCREF(Py_None); resultobj = Py_None; | |
21766 | return resultobj; | |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
c32bde28 | 21772 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21773 | PyObject *resultobj; |
21774 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21775 | wxColour *arg2 = 0 ; | |
21776 | bool result; | |
21777 | wxColour temp2 ; | |
21778 | PyObject * obj0 = 0 ; | |
21779 | PyObject * obj1 = 0 ; | |
21780 | char *kwnames[] = { | |
21781 | (char *) "self",(char *) "col", NULL | |
21782 | }; | |
21783 | ||
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21787 | { |
21788 | arg2 = &temp2; | |
21789 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21790 | } | |
21791 | { | |
21792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21793 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21794 | ||
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
4f89f6a3 RD |
21798 | { |
21799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21800 | } | |
d14a1e28 RD |
21801 | return resultobj; |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
c32bde28 | 21807 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21808 | PyObject *resultobj; |
21809 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21810 | wxColour *arg2 = 0 ; | |
21811 | bool result; | |
21812 | wxColour temp2 ; | |
21813 | PyObject * obj0 = 0 ; | |
21814 | PyObject * obj1 = 0 ; | |
21815 | char *kwnames[] = { | |
21816 | (char *) "self",(char *) "col", NULL | |
21817 | }; | |
21818 | ||
21819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21822 | { |
21823 | arg2 = &temp2; | |
21824 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21825 | } | |
21826 | { | |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
4f89f6a3 RD |
21833 | { |
21834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21835 | } | |
d14a1e28 RD |
21836 | return resultobj; |
21837 | fail: | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
c32bde28 | 21842 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21843 | PyObject *resultobj; |
21844 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21845 | int arg2 ; | |
21846 | wxListItem *result; | |
21847 | PyObject * obj0 = 0 ; | |
994141e6 | 21848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21849 | char *kwnames[] = { |
21850 | (char *) "self",(char *) "col", NULL | |
21851 | }; | |
21852 | ||
994141e6 | 21853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21856 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21857 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21858 | { |
21859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21860 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21861 | ||
21862 | wxPyEndAllowThreads(__tstate); | |
21863 | if (PyErr_Occurred()) SWIG_fail; | |
21864 | } | |
21865 | { | |
412d302d | 21866 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21867 | } |
21868 | return resultobj; | |
21869 | fail: | |
21870 | return NULL; | |
21871 | } | |
21872 | ||
21873 | ||
c32bde28 | 21874 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21875 | PyObject *resultobj; |
21876 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21877 | int arg2 ; | |
21878 | wxListItem *arg3 = 0 ; | |
21879 | bool result; | |
21880 | PyObject * obj0 = 0 ; | |
994141e6 | 21881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21882 | PyObject * obj2 = 0 ; |
21883 | char *kwnames[] = { | |
21884 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21885 | }; | |
21886 | ||
994141e6 | 21887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21890 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 RD |
21891 | if (PyErr_Occurred()) SWIG_fail; |
21892 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21894 | SWIG_fail; | |
d14a1e28 | 21895 | if (arg3 == NULL) { |
15afbcd0 RD |
21896 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21897 | SWIG_fail; | |
d14a1e28 RD |
21898 | } |
21899 | { | |
21900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21901 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21902 | ||
21903 | wxPyEndAllowThreads(__tstate); | |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | } | |
4f89f6a3 RD |
21906 | { |
21907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21908 | } | |
d14a1e28 RD |
21909 | return resultobj; |
21910 | fail: | |
21911 | return NULL; | |
21912 | } | |
21913 | ||
21914 | ||
c32bde28 | 21915 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21916 | PyObject *resultobj; |
21917 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21918 | int arg2 ; | |
21919 | int result; | |
21920 | PyObject * obj0 = 0 ; | |
994141e6 | 21921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21922 | char *kwnames[] = { |
21923 | (char *) "self",(char *) "col", NULL | |
21924 | }; | |
21925 | ||
994141e6 | 21926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21929 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21930 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21931 | { |
21932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21933 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21934 | ||
21935 | wxPyEndAllowThreads(__tstate); | |
21936 | if (PyErr_Occurred()) SWIG_fail; | |
21937 | } | |
c32bde28 | 21938 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
21939 | return resultobj; |
21940 | fail: | |
21941 | return NULL; | |
21942 | } | |
21943 | ||
21944 | ||
c32bde28 | 21945 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21946 | PyObject *resultobj; |
21947 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21948 | int arg2 ; | |
21949 | int arg3 ; | |
21950 | bool result; | |
21951 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21952 | PyObject * obj1 = 0 ; |
21953 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21954 | char *kwnames[] = { |
21955 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21956 | }; | |
21957 | ||
994141e6 | 21958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21961 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 21962 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21963 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 21964 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21965 | { |
21966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21967 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21968 | ||
21969 | wxPyEndAllowThreads(__tstate); | |
21970 | if (PyErr_Occurred()) SWIG_fail; | |
21971 | } | |
4f89f6a3 RD |
21972 | { |
21973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21974 | } | |
d14a1e28 RD |
21975 | return resultobj; |
21976 | fail: | |
21977 | return NULL; | |
21978 | } | |
21979 | ||
21980 | ||
c32bde28 | 21981 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21982 | PyObject *resultobj; |
21983 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21984 | int result; | |
21985 | PyObject * obj0 = 0 ; | |
21986 | char *kwnames[] = { | |
21987 | (char *) "self", NULL | |
21988 | }; | |
21989 | ||
21990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21993 | { |
21994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21995 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21996 | ||
21997 | wxPyEndAllowThreads(__tstate); | |
21998 | if (PyErr_Occurred()) SWIG_fail; | |
21999 | } | |
c32bde28 | 22000 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22001 | return resultobj; |
22002 | fail: | |
22003 | return NULL; | |
22004 | } | |
22005 | ||
22006 | ||
c32bde28 | 22007 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22008 | PyObject *resultobj; |
22009 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22010 | wxRect result; | |
22011 | PyObject * obj0 = 0 ; | |
22012 | char *kwnames[] = { | |
22013 | (char *) "self", NULL | |
22014 | }; | |
22015 | ||
22016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22019 | { |
22020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22021 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
22022 | ||
22023 | wxPyEndAllowThreads(__tstate); | |
22024 | if (PyErr_Occurred()) SWIG_fail; | |
22025 | } | |
22026 | { | |
22027 | wxRect * resultptr; | |
22028 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22029 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22030 | } |
22031 | return resultobj; | |
22032 | fail: | |
22033 | return NULL; | |
22034 | } | |
22035 | ||
22036 | ||
c32bde28 | 22037 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22038 | PyObject *resultobj; |
22039 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22040 | long arg2 ; | |
22041 | int arg3 = (int) 0 ; | |
22042 | wxListItem *result; | |
22043 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22044 | PyObject * obj1 = 0 ; |
22045 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22046 | char *kwnames[] = { |
22047 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
22048 | }; | |
22049 | ||
994141e6 | 22050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22053 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22054 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22055 | if (obj2) { |
c32bde28 | 22056 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22057 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22058 | } |
d14a1e28 RD |
22059 | { |
22060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22061 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
22062 | ||
22063 | wxPyEndAllowThreads(__tstate); | |
22064 | if (PyErr_Occurred()) SWIG_fail; | |
22065 | } | |
22066 | { | |
412d302d | 22067 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22068 | } |
22069 | return resultobj; | |
22070 | fail: | |
22071 | return NULL; | |
22072 | } | |
22073 | ||
22074 | ||
c32bde28 | 22075 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22076 | PyObject *resultobj; |
22077 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22078 | wxListItem *arg2 = 0 ; | |
22079 | bool result; | |
22080 | PyObject * obj0 = 0 ; | |
22081 | PyObject * obj1 = 0 ; | |
22082 | char *kwnames[] = { | |
22083 | (char *) "self",(char *) "info", NULL | |
22084 | }; | |
22085 | ||
22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22091 | SWIG_fail; | |
d14a1e28 | 22092 | if (arg2 == NULL) { |
15afbcd0 RD |
22093 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22094 | SWIG_fail; | |
d14a1e28 RD |
22095 | } |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (bool)(arg1)->SetItem(*arg2); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
4f89f6a3 RD |
22103 | { |
22104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22105 | } | |
d14a1e28 RD |
22106 | return resultobj; |
22107 | fail: | |
22108 | return NULL; | |
22109 | } | |
22110 | ||
22111 | ||
c32bde28 | 22112 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22113 | PyObject *resultobj; |
22114 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22115 | long arg2 ; | |
22116 | int arg3 ; | |
22117 | wxString *arg4 = 0 ; | |
22118 | int arg5 = (int) -1 ; | |
22119 | long result; | |
ae8162c8 | 22120 | bool temp4 = false ; |
d14a1e28 | 22121 | PyObject * obj0 = 0 ; |
994141e6 RD |
22122 | PyObject * obj1 = 0 ; |
22123 | PyObject * obj2 = 0 ; | |
d14a1e28 | 22124 | PyObject * obj3 = 0 ; |
994141e6 | 22125 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22126 | char *kwnames[] = { |
22127 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
22128 | }; | |
22129 | ||
994141e6 | 22130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
22131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22133 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22134 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22135 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22136 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22137 | { |
22138 | arg4 = wxString_in_helper(obj3); | |
22139 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 22140 | temp4 = true; |
d14a1e28 | 22141 | } |
994141e6 | 22142 | if (obj4) { |
c32bde28 | 22143 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 22144 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22145 | } |
d14a1e28 RD |
22146 | { |
22147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22148 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
22149 | ||
22150 | wxPyEndAllowThreads(__tstate); | |
22151 | if (PyErr_Occurred()) SWIG_fail; | |
22152 | } | |
c32bde28 | 22153 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22154 | { |
22155 | if (temp4) | |
22156 | delete arg4; | |
22157 | } | |
22158 | return resultobj; | |
22159 | fail: | |
22160 | { | |
22161 | if (temp4) | |
22162 | delete arg4; | |
22163 | } | |
22164 | return NULL; | |
22165 | } | |
22166 | ||
22167 | ||
c32bde28 | 22168 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22169 | PyObject *resultobj; |
22170 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22171 | long arg2 ; | |
22172 | long arg3 ; | |
22173 | int result; | |
22174 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22175 | PyObject * obj1 = 0 ; |
22176 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22177 | char *kwnames[] = { |
22178 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
22179 | }; | |
22180 | ||
994141e6 | 22181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22184 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22185 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22186 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22187 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22188 | { |
22189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22190 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
22191 | ||
22192 | wxPyEndAllowThreads(__tstate); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
c32bde28 | 22195 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22196 | return resultobj; |
22197 | fail: | |
22198 | return NULL; | |
22199 | } | |
22200 | ||
22201 | ||
c32bde28 | 22202 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22203 | PyObject *resultobj; |
22204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22205 | long arg2 ; | |
22206 | long arg3 ; | |
22207 | long arg4 ; | |
22208 | bool result; | |
22209 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22210 | PyObject * obj1 = 0 ; |
22211 | PyObject * obj2 = 0 ; | |
22212 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22213 | char *kwnames[] = { |
22214 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
22215 | }; | |
22216 | ||
994141e6 | 22217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22220 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22221 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22222 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22223 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22224 | arg4 = (long)SWIG_As_long(obj3); |
15afbcd0 | 22225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22226 | { |
22227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22228 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
22229 | ||
22230 | wxPyEndAllowThreads(__tstate); | |
22231 | if (PyErr_Occurred()) SWIG_fail; | |
22232 | } | |
4f89f6a3 RD |
22233 | { |
22234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22235 | } | |
d14a1e28 RD |
22236 | return resultobj; |
22237 | fail: | |
22238 | return NULL; | |
22239 | } | |
22240 | ||
22241 | ||
c32bde28 | 22242 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22243 | PyObject *resultobj; |
22244 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22245 | long arg2 ; | |
22246 | int arg3 ; | |
22247 | int arg4 ; | |
22248 | bool result; | |
22249 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22250 | PyObject * obj1 = 0 ; |
22251 | PyObject * obj2 = 0 ; | |
22252 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22253 | char *kwnames[] = { |
22254 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
22255 | }; | |
22256 | ||
994141e6 | 22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22260 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22261 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22262 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22263 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22264 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 22265 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22266 | { |
22267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22268 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
22269 | ||
22270 | wxPyEndAllowThreads(__tstate); | |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
22272 | } | |
4f89f6a3 RD |
22273 | { |
22274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22275 | } | |
d14a1e28 RD |
22276 | return resultobj; |
22277 | fail: | |
22278 | return NULL; | |
22279 | } | |
22280 | ||
22281 | ||
c32bde28 | 22282 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22283 | PyObject *resultobj; |
22284 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22285 | long arg2 ; | |
22286 | wxString result; | |
22287 | PyObject * obj0 = 0 ; | |
994141e6 | 22288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22289 | char *kwnames[] = { |
22290 | (char *) "self",(char *) "item", NULL | |
22291 | }; | |
22292 | ||
994141e6 | 22293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22296 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22297 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22298 | { |
22299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22300 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
22301 | ||
22302 | wxPyEndAllowThreads(__tstate); | |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
22305 | { | |
22306 | #if wxUSE_UNICODE | |
22307 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22308 | #else | |
22309 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22310 | #endif | |
22311 | } | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | return NULL; | |
22315 | } | |
22316 | ||
22317 | ||
c32bde28 | 22318 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22319 | PyObject *resultobj; |
22320 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22321 | long arg2 ; | |
22322 | wxString *arg3 = 0 ; | |
ae8162c8 | 22323 | bool temp3 = false ; |
d14a1e28 | 22324 | PyObject * obj0 = 0 ; |
994141e6 | 22325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22326 | PyObject * obj2 = 0 ; |
22327 | char *kwnames[] = { | |
22328 | (char *) "self",(char *) "item",(char *) "str", NULL | |
22329 | }; | |
22330 | ||
994141e6 | 22331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22334 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22335 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22336 | { |
22337 | arg3 = wxString_in_helper(obj2); | |
22338 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 22339 | temp3 = true; |
d14a1e28 RD |
22340 | } |
22341 | { | |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
22344 | ||
22345 | wxPyEndAllowThreads(__tstate); | |
22346 | if (PyErr_Occurred()) SWIG_fail; | |
22347 | } | |
22348 | Py_INCREF(Py_None); resultobj = Py_None; | |
22349 | { | |
22350 | if (temp3) | |
22351 | delete arg3; | |
22352 | } | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | { | |
22356 | if (temp3) | |
22357 | delete arg3; | |
22358 | } | |
22359 | return NULL; | |
22360 | } | |
22361 | ||
22362 | ||
c32bde28 | 22363 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22364 | PyObject *resultobj; |
22365 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22366 | long arg2 ; | |
22367 | long result; | |
22368 | PyObject * obj0 = 0 ; | |
994141e6 | 22369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22370 | char *kwnames[] = { |
22371 | (char *) "self",(char *) "item", NULL | |
22372 | }; | |
22373 | ||
994141e6 | 22374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22377 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22378 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22379 | { |
22380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22381 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22382 | ||
22383 | wxPyEndAllowThreads(__tstate); | |
22384 | if (PyErr_Occurred()) SWIG_fail; | |
22385 | } | |
c32bde28 | 22386 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22387 | return resultobj; |
22388 | fail: | |
22389 | return NULL; | |
22390 | } | |
22391 | ||
22392 | ||
c32bde28 | 22393 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22394 | PyObject *resultobj; |
22395 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22396 | long arg2 ; | |
22397 | long arg3 ; | |
22398 | bool result; | |
22399 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22400 | PyObject * obj1 = 0 ; |
22401 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22402 | char *kwnames[] = { |
22403 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22404 | }; | |
22405 | ||
994141e6 | 22406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22409 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22410 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22411 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 22412 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22413 | { |
22414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22415 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22416 | ||
22417 | wxPyEndAllowThreads(__tstate); | |
22418 | if (PyErr_Occurred()) SWIG_fail; | |
22419 | } | |
4f89f6a3 RD |
22420 | { |
22421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22422 | } | |
d14a1e28 RD |
22423 | return resultobj; |
22424 | fail: | |
22425 | return NULL; | |
22426 | } | |
22427 | ||
22428 | ||
c32bde28 | 22429 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22430 | PyObject *resultobj; |
22431 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22432 | long arg2 ; | |
22433 | wxPoint result; | |
22434 | PyObject * obj0 = 0 ; | |
994141e6 | 22435 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22436 | char *kwnames[] = { |
22437 | (char *) "self",(char *) "item", NULL | |
22438 | }; | |
22439 | ||
994141e6 | 22440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22443 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22444 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22445 | { |
22446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22447 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22448 | ||
22449 | wxPyEndAllowThreads(__tstate); | |
22450 | if (PyErr_Occurred()) SWIG_fail; | |
22451 | } | |
22452 | { | |
22453 | wxPoint * resultptr; | |
22454 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22456 | } |
22457 | return resultobj; | |
22458 | fail: | |
22459 | return NULL; | |
22460 | } | |
22461 | ||
22462 | ||
c32bde28 | 22463 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22464 | PyObject *resultobj; |
22465 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22466 | long arg2 ; | |
22467 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22468 | wxRect result; | |
22469 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22470 | PyObject * obj1 = 0 ; |
22471 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22472 | char *kwnames[] = { |
22473 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22474 | }; | |
22475 | ||
994141e6 | 22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22479 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22480 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22481 | if (obj2) { |
c32bde28 | 22482 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22483 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22484 | } |
d14a1e28 RD |
22485 | { |
22486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22487 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22488 | ||
22489 | wxPyEndAllowThreads(__tstate); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | } | |
22492 | { | |
22493 | wxRect * resultptr; | |
22494 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22495 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22496 | } |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
c32bde28 | 22503 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22504 | PyObject *resultobj; |
22505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22506 | long arg2 ; | |
22507 | wxPoint *arg3 = 0 ; | |
22508 | bool result; | |
22509 | wxPoint temp3 ; | |
22510 | PyObject * obj0 = 0 ; | |
994141e6 | 22511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22512 | PyObject * obj2 = 0 ; |
22513 | char *kwnames[] = { | |
22514 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22515 | }; | |
22516 | ||
994141e6 | 22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22520 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22521 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22522 | { |
22523 | arg3 = &temp3; | |
22524 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22525 | } | |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22529 | ||
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
4f89f6a3 RD |
22533 | { |
22534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22535 | } | |
d14a1e28 RD |
22536 | return resultobj; |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
c32bde28 | 22542 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22543 | PyObject *resultobj; |
22544 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22545 | int result; | |
22546 | PyObject * obj0 = 0 ; | |
22547 | char *kwnames[] = { | |
22548 | (char *) "self", NULL | |
22549 | }; | |
22550 | ||
22551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22554 | { |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
c32bde28 | 22561 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22562 | return resultobj; |
22563 | fail: | |
22564 | return NULL; | |
22565 | } | |
22566 | ||
22567 | ||
c32bde28 | 22568 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22569 | PyObject *resultobj; |
22570 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22571 | int result; | |
22572 | PyObject * obj0 = 0 ; | |
22573 | char *kwnames[] = { | |
22574 | (char *) "self", NULL | |
22575 | }; | |
22576 | ||
22577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22580 | { |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
c32bde28 | 22587 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22588 | return resultobj; |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
c32bde28 | 22594 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22595 | PyObject *resultobj; |
22596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22597 | wxSize result; | |
22598 | PyObject * obj0 = 0 ; | |
22599 | char *kwnames[] = { | |
22600 | (char *) "self", NULL | |
22601 | }; | |
22602 | ||
22603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22606 | { |
22607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22608 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22609 | ||
22610 | wxPyEndAllowThreads(__tstate); | |
22611 | if (PyErr_Occurred()) SWIG_fail; | |
22612 | } | |
22613 | { | |
22614 | wxSize * resultptr; | |
22615 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22617 | } |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
c32bde28 | 22624 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22625 | PyObject *resultobj; |
22626 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22627 | int arg2 ; | |
ae8162c8 | 22628 | bool arg3 = (bool) false ; |
d14a1e28 | 22629 | PyObject * obj0 = 0 ; |
994141e6 | 22630 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22631 | PyObject * obj2 = 0 ; |
22632 | char *kwnames[] = { | |
22633 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22634 | }; | |
22635 | ||
994141e6 | 22636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22639 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22640 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22641 | if (obj2) { |
c32bde28 | 22642 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 22643 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22644 | } |
22645 | { | |
22646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22647 | (arg1)->SetItemSpacing(arg2,arg3); | |
22648 | ||
22649 | wxPyEndAllowThreads(__tstate); | |
22650 | if (PyErr_Occurred()) SWIG_fail; | |
22651 | } | |
22652 | Py_INCREF(Py_None); resultobj = Py_None; | |
22653 | return resultobj; | |
22654 | fail: | |
22655 | return NULL; | |
22656 | } | |
22657 | ||
22658 | ||
c32bde28 | 22659 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22660 | PyObject *resultobj; |
22661 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22662 | int result; | |
22663 | PyObject * obj0 = 0 ; | |
22664 | char *kwnames[] = { | |
22665 | (char *) "self", NULL | |
22666 | }; | |
22667 | ||
22668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22671 | { |
22672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22673 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22674 | ||
22675 | wxPyEndAllowThreads(__tstate); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
22677 | } | |
c32bde28 | 22678 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
22679 | return resultobj; |
22680 | fail: | |
22681 | return NULL; | |
22682 | } | |
22683 | ||
22684 | ||
c32bde28 | 22685 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22686 | PyObject *resultobj; |
22687 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22688 | wxColour result; | |
22689 | PyObject * obj0 = 0 ; | |
22690 | char *kwnames[] = { | |
22691 | (char *) "self", NULL | |
22692 | }; | |
22693 | ||
22694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22697 | { |
22698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22699 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22700 | ||
22701 | wxPyEndAllowThreads(__tstate); | |
22702 | if (PyErr_Occurred()) SWIG_fail; | |
22703 | } | |
22704 | { | |
22705 | wxColour * resultptr; | |
22706 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22708 | } |
22709 | return resultobj; | |
22710 | fail: | |
22711 | return NULL; | |
22712 | } | |
22713 | ||
22714 | ||
c32bde28 | 22715 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22716 | PyObject *resultobj; |
22717 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22718 | wxColour *arg2 = 0 ; | |
22719 | wxColour temp2 ; | |
22720 | PyObject * obj0 = 0 ; | |
22721 | PyObject * obj1 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self",(char *) "col", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22729 | { |
22730 | arg2 = &temp2; | |
22731 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22732 | } | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22736 | ||
22737 | wxPyEndAllowThreads(__tstate); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
22740 | Py_INCREF(Py_None); resultobj = Py_None; | |
22741 | return resultobj; | |
22742 | fail: | |
22743 | return NULL; | |
22744 | } | |
22745 | ||
22746 | ||
c32bde28 | 22747 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22748 | PyObject *resultobj; |
22749 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22750 | long result; | |
22751 | PyObject * obj0 = 0 ; | |
22752 | char *kwnames[] = { | |
22753 | (char *) "self", NULL | |
22754 | }; | |
22755 | ||
22756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22759 | { |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22762 | ||
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
c32bde28 | 22766 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22767 | return resultobj; |
22768 | fail: | |
22769 | return NULL; | |
22770 | } | |
22771 | ||
22772 | ||
c32bde28 | 22773 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22774 | PyObject *resultobj; |
22775 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22776 | long arg2 ; | |
ae8162c8 | 22777 | bool arg3 = (bool) true ; |
d14a1e28 | 22778 | PyObject * obj0 = 0 ; |
994141e6 | 22779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22780 | PyObject * obj2 = 0 ; |
22781 | char *kwnames[] = { | |
22782 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22783 | }; | |
22784 | ||
994141e6 | 22785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22788 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22789 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22790 | if (obj2) { |
c32bde28 | 22791 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 22792 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22793 | } |
22794 | { | |
22795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22796 | (arg1)->SetSingleStyle(arg2,arg3); | |
22797 | ||
22798 | wxPyEndAllowThreads(__tstate); | |
22799 | if (PyErr_Occurred()) SWIG_fail; | |
22800 | } | |
22801 | Py_INCREF(Py_None); resultobj = Py_None; | |
22802 | return resultobj; | |
22803 | fail: | |
22804 | return NULL; | |
22805 | } | |
22806 | ||
22807 | ||
c32bde28 | 22808 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22809 | PyObject *resultobj; |
22810 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22811 | long arg2 ; | |
22812 | PyObject * obj0 = 0 ; | |
994141e6 | 22813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22814 | char *kwnames[] = { |
22815 | (char *) "self",(char *) "style", NULL | |
22816 | }; | |
22817 | ||
994141e6 | 22818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22821 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22822 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22823 | { |
22824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22825 | (arg1)->SetWindowStyleFlag(arg2); | |
22826 | ||
22827 | wxPyEndAllowThreads(__tstate); | |
22828 | if (PyErr_Occurred()) SWIG_fail; | |
22829 | } | |
22830 | Py_INCREF(Py_None); resultobj = Py_None; | |
22831 | return resultobj; | |
22832 | fail: | |
22833 | return NULL; | |
22834 | } | |
22835 | ||
22836 | ||
c32bde28 | 22837 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22838 | PyObject *resultobj; |
22839 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22840 | long arg2 ; | |
22841 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22842 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22843 | long result; | |
22844 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22845 | PyObject * obj1 = 0 ; |
22846 | PyObject * obj2 = 0 ; | |
22847 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22848 | char *kwnames[] = { |
22849 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22850 | }; | |
22851 | ||
994141e6 | 22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22855 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 22856 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22857 | if (obj2) { |
c32bde28 | 22858 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22859 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
22860 | } |
22861 | if (obj3) { | |
c32bde28 | 22862 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 22863 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 22864 | } |
d14a1e28 RD |
22865 | { |
22866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22867 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22868 | ||
22869 | wxPyEndAllowThreads(__tstate); | |
22870 | if (PyErr_Occurred()) SWIG_fail; | |
22871 | } | |
c32bde28 | 22872 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
22873 | return resultobj; |
22874 | fail: | |
22875 | return NULL; | |
22876 | } | |
22877 | ||
22878 | ||
c32bde28 | 22879 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22880 | PyObject *resultobj; |
22881 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22882 | int arg2 ; | |
22883 | wxImageList *result; | |
22884 | PyObject * obj0 = 0 ; | |
994141e6 | 22885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22886 | char *kwnames[] = { |
22887 | (char *) "self",(char *) "which", NULL | |
22888 | }; | |
22889 | ||
994141e6 | 22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22893 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 22894 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22895 | { |
22896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22897 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22898 | ||
22899 | wxPyEndAllowThreads(__tstate); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
22902 | { | |
412d302d | 22903 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22904 | } |
22905 | return resultobj; | |
22906 | fail: | |
22907 | return NULL; | |
22908 | } | |
22909 | ||
22910 | ||
c32bde28 | 22911 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22912 | PyObject *resultobj; |
22913 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22914 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22915 | int arg3 ; | |
22916 | PyObject * obj0 = 0 ; | |
22917 | PyObject * obj1 = 0 ; | |
994141e6 | 22918 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22919 | char *kwnames[] = { |
22920 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22921 | }; | |
22922 | ||
994141e6 | 22923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22928 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22929 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22930 | { |
22931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22932 | (arg1)->SetImageList(arg2,arg3); | |
22933 | ||
22934 | wxPyEndAllowThreads(__tstate); | |
22935 | if (PyErr_Occurred()) SWIG_fail; | |
22936 | } | |
22937 | Py_INCREF(Py_None); resultobj = Py_None; | |
22938 | return resultobj; | |
22939 | fail: | |
22940 | return NULL; | |
22941 | } | |
22942 | ||
22943 | ||
c32bde28 | 22944 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22945 | PyObject *resultobj; |
22946 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22947 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22948 | int arg3 ; | |
22949 | PyObject * obj0 = 0 ; | |
22950 | PyObject * obj1 = 0 ; | |
994141e6 | 22951 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22952 | char *kwnames[] = { |
22953 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22954 | }; | |
22955 | ||
994141e6 | 22956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22960 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
c32bde28 | 22961 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 22962 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
22963 | { |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | (arg1)->AssignImageList(arg2,arg3); | |
22966 | ||
22967 | wxPyEndAllowThreads(__tstate); | |
22968 | if (PyErr_Occurred()) SWIG_fail; | |
22969 | } | |
22970 | Py_INCREF(Py_None); resultobj = Py_None; | |
22971 | return resultobj; | |
22972 | fail: | |
22973 | return NULL; | |
22974 | } | |
22975 | ||
22976 | ||
c32bde28 | 22977 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
22978 | PyObject *resultobj; |
22979 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22980 | bool result; | |
22981 | PyObject * obj0 = 0 ; | |
22982 | char *kwnames[] = { | |
22983 | (char *) "self", NULL | |
22984 | }; | |
22985 | ||
22986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22989 | { | |
22990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22991 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22992 | ||
22993 | wxPyEndAllowThreads(__tstate); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | } | |
4f89f6a3 RD |
22996 | { |
22997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22998 | } | |
4276dc52 RD |
22999 | return resultobj; |
23000 | fail: | |
23001 | return NULL; | |
23002 | } | |
23003 | ||
23004 | ||
c32bde28 | 23005 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23006 | PyObject *resultobj; |
23007 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23008 | bool result; | |
23009 | PyObject * obj0 = 0 ; | |
23010 | char *kwnames[] = { | |
23011 | (char *) "self", NULL | |
23012 | }; | |
23013 | ||
23014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23017 | { |
23018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23019 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
23020 | ||
23021 | wxPyEndAllowThreads(__tstate); | |
23022 | if (PyErr_Occurred()) SWIG_fail; | |
23023 | } | |
4f89f6a3 RD |
23024 | { |
23025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23026 | } | |
d14a1e28 RD |
23027 | return resultobj; |
23028 | fail: | |
23029 | return NULL; | |
23030 | } | |
23031 | ||
23032 | ||
c32bde28 | 23033 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23034 | PyObject *resultobj; |
23035 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23036 | long arg2 ; | |
23037 | PyObject * obj0 = 0 ; | |
994141e6 | 23038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23039 | char *kwnames[] = { |
23040 | (char *) "self",(char *) "item", NULL | |
23041 | }; | |
23042 | ||
994141e6 | 23043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23046 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23047 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23048 | { |
23049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23050 | (arg1)->RefreshItem(arg2); | |
23051 | ||
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | Py_INCREF(Py_None); resultobj = Py_None; | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
c32bde28 | 23062 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23063 | PyObject *resultobj; |
23064 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23065 | long arg2 ; | |
23066 | long arg3 ; | |
23067 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23068 | PyObject * obj1 = 0 ; |
23069 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23070 | char *kwnames[] = { |
23071 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
23072 | }; | |
23073 | ||
994141e6 | 23074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23077 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23078 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23079 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 23080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23081 | { |
23082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23083 | (arg1)->RefreshItems(arg2,arg3); | |
23084 | ||
23085 | wxPyEndAllowThreads(__tstate); | |
23086 | if (PyErr_Occurred()) SWIG_fail; | |
23087 | } | |
23088 | Py_INCREF(Py_None); resultobj = Py_None; | |
23089 | return resultobj; | |
23090 | fail: | |
23091 | return NULL; | |
23092 | } | |
23093 | ||
23094 | ||
c32bde28 | 23095 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23096 | PyObject *resultobj; |
23097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23098 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
23099 | bool result; | |
23100 | PyObject * obj0 = 0 ; | |
994141e6 | 23101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23102 | char *kwnames[] = { |
23103 | (char *) "self",(char *) "flag", NULL | |
23104 | }; | |
23105 | ||
994141e6 | 23106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23109 | if (obj1) { |
c32bde28 | 23110 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23111 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23112 | } |
d14a1e28 RD |
23113 | { |
23114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23115 | result = (bool)(arg1)->Arrange(arg2); | |
23116 | ||
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
4f89f6a3 RD |
23120 | { |
23121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23122 | } | |
d14a1e28 RD |
23123 | return resultobj; |
23124 | fail: | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
c32bde28 | 23129 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23130 | PyObject *resultobj; |
23131 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23132 | long arg2 ; | |
23133 | bool result; | |
23134 | PyObject * obj0 = 0 ; | |
994141e6 | 23135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23136 | char *kwnames[] = { |
23137 | (char *) "self",(char *) "item", NULL | |
23138 | }; | |
23139 | ||
994141e6 | 23140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23143 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23144 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23145 | { |
23146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23147 | result = (bool)(arg1)->DeleteItem(arg2); | |
23148 | ||
23149 | wxPyEndAllowThreads(__tstate); | |
23150 | if (PyErr_Occurred()) SWIG_fail; | |
23151 | } | |
4f89f6a3 RD |
23152 | { |
23153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23154 | } | |
d14a1e28 RD |
23155 | return resultobj; |
23156 | fail: | |
23157 | return NULL; | |
23158 | } | |
23159 | ||
23160 | ||
c32bde28 | 23161 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23162 | PyObject *resultobj; |
23163 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23164 | bool result; | |
23165 | PyObject * obj0 = 0 ; | |
23166 | char *kwnames[] = { | |
23167 | (char *) "self", NULL | |
23168 | }; | |
23169 | ||
23170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23173 | { |
23174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23175 | result = (bool)(arg1)->DeleteAllItems(); | |
23176 | ||
23177 | wxPyEndAllowThreads(__tstate); | |
23178 | if (PyErr_Occurred()) SWIG_fail; | |
23179 | } | |
4f89f6a3 RD |
23180 | { |
23181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23182 | } | |
d14a1e28 RD |
23183 | return resultobj; |
23184 | fail: | |
23185 | return NULL; | |
23186 | } | |
23187 | ||
23188 | ||
c32bde28 | 23189 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23190 | PyObject *resultobj; |
23191 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23192 | int arg2 ; | |
23193 | bool result; | |
23194 | PyObject * obj0 = 0 ; | |
994141e6 | 23195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23196 | char *kwnames[] = { |
23197 | (char *) "self",(char *) "col", NULL | |
23198 | }; | |
23199 | ||
994141e6 | 23200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23203 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23204 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23205 | { |
23206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23207 | result = (bool)(arg1)->DeleteColumn(arg2); | |
23208 | ||
23209 | wxPyEndAllowThreads(__tstate); | |
23210 | if (PyErr_Occurred()) SWIG_fail; | |
23211 | } | |
4f89f6a3 RD |
23212 | { |
23213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23214 | } | |
d14a1e28 RD |
23215 | return resultobj; |
23216 | fail: | |
23217 | return NULL; | |
23218 | } | |
23219 | ||
23220 | ||
c32bde28 | 23221 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23222 | PyObject *resultobj; |
23223 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23224 | bool result; | |
23225 | PyObject * obj0 = 0 ; | |
23226 | char *kwnames[] = { | |
23227 | (char *) "self", NULL | |
23228 | }; | |
23229 | ||
23230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23233 | { |
23234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23235 | result = (bool)(arg1)->DeleteAllColumns(); | |
23236 | ||
23237 | wxPyEndAllowThreads(__tstate); | |
23238 | if (PyErr_Occurred()) SWIG_fail; | |
23239 | } | |
4f89f6a3 RD |
23240 | { |
23241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23242 | } | |
d14a1e28 RD |
23243 | return resultobj; |
23244 | fail: | |
23245 | return NULL; | |
23246 | } | |
23247 | ||
23248 | ||
c32bde28 | 23249 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23250 | PyObject *resultobj; |
23251 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23252 | PyObject * obj0 = 0 ; | |
23253 | char *kwnames[] = { | |
23254 | (char *) "self", NULL | |
23255 | }; | |
23256 | ||
23257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23260 | { |
23261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23262 | (arg1)->ClearAll(); | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | Py_INCREF(Py_None); resultobj = Py_None; | |
23268 | return resultobj; | |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
c32bde28 | 23274 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23275 | PyObject *resultobj; |
23276 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23277 | long arg2 ; | |
23278 | PyObject * obj0 = 0 ; | |
994141e6 | 23279 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23280 | char *kwnames[] = { |
23281 | (char *) "self",(char *) "item", NULL | |
23282 | }; | |
23283 | ||
994141e6 | 23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23287 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23288 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23289 | { |
23290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23291 | (arg1)->EditLabel(arg2); | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | Py_INCREF(Py_None); resultobj = Py_None; | |
23297 | return resultobj; | |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
c32bde28 | 23303 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23304 | PyObject *resultobj; |
23305 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23306 | long arg2 ; | |
23307 | bool result; | |
23308 | PyObject * obj0 = 0 ; | |
994141e6 | 23309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23310 | char *kwnames[] = { |
23311 | (char *) "self",(char *) "item", NULL | |
23312 | }; | |
23313 | ||
994141e6 | 23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23317 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23319 | { |
23320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23321 | result = (bool)(arg1)->EnsureVisible(arg2); | |
23322 | ||
23323 | wxPyEndAllowThreads(__tstate); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | } | |
4f89f6a3 RD |
23326 | { |
23327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23328 | } | |
d14a1e28 RD |
23329 | return resultobj; |
23330 | fail: | |
23331 | return NULL; | |
23332 | } | |
23333 | ||
23334 | ||
c32bde28 | 23335 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23336 | PyObject *resultobj; |
23337 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23338 | long arg2 ; | |
23339 | wxString *arg3 = 0 ; | |
ae8162c8 | 23340 | bool arg4 = (bool) false ; |
d14a1e28 | 23341 | long result; |
ae8162c8 | 23342 | bool temp3 = false ; |
d14a1e28 | 23343 | PyObject * obj0 = 0 ; |
994141e6 | 23344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23345 | PyObject * obj2 = 0 ; |
23346 | PyObject * obj3 = 0 ; | |
23347 | char *kwnames[] = { | |
23348 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
23349 | }; | |
23350 | ||
994141e6 | 23351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23354 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23355 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23356 | { |
23357 | arg3 = wxString_in_helper(obj2); | |
23358 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23359 | temp3 = true; |
d14a1e28 RD |
23360 | } |
23361 | if (obj3) { | |
c32bde28 | 23362 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 23363 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23364 | } |
23365 | { | |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23368 | ||
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
c32bde28 | 23372 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23373 | { |
23374 | if (temp3) | |
23375 | delete arg3; | |
23376 | } | |
23377 | return resultobj; | |
23378 | fail: | |
23379 | { | |
23380 | if (temp3) | |
23381 | delete arg3; | |
23382 | } | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
c32bde28 | 23387 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23388 | PyObject *resultobj; |
23389 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23390 | long arg2 ; | |
23391 | long arg3 ; | |
23392 | long result; | |
23393 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23394 | PyObject * obj1 = 0 ; |
23395 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23396 | char *kwnames[] = { |
23397 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23398 | }; | |
23399 | ||
994141e6 | 23400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23403 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23404 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23405 | arg3 = (long)SWIG_As_long(obj2); |
15afbcd0 | 23406 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23407 | { |
23408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23409 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23410 | ||
23411 | wxPyEndAllowThreads(__tstate); | |
23412 | if (PyErr_Occurred()) SWIG_fail; | |
23413 | } | |
c32bde28 | 23414 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23415 | return resultobj; |
23416 | fail: | |
23417 | return NULL; | |
23418 | } | |
23419 | ||
23420 | ||
c32bde28 | 23421 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23422 | PyObject *resultobj; |
23423 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23424 | long arg2 ; | |
23425 | wxPoint *arg3 = 0 ; | |
23426 | int arg4 ; | |
23427 | long result; | |
23428 | wxPoint temp3 ; | |
23429 | PyObject * obj0 = 0 ; | |
994141e6 | 23430 | PyObject * obj1 = 0 ; |
d14a1e28 | 23431 | PyObject * obj2 = 0 ; |
994141e6 | 23432 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23433 | char *kwnames[] = { |
23434 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23435 | }; | |
23436 | ||
994141e6 | 23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23440 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23441 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23442 | { |
23443 | arg3 = &temp3; | |
23444 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23445 | } | |
c32bde28 | 23446 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23447 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23448 | { |
23449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23450 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23451 | ||
23452 | wxPyEndAllowThreads(__tstate); | |
23453 | if (PyErr_Occurred()) SWIG_fail; | |
23454 | } | |
c32bde28 | 23455 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23456 | return resultobj; |
23457 | fail: | |
23458 | return NULL; | |
23459 | } | |
23460 | ||
23461 | ||
c32bde28 | 23462 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23463 | PyObject *resultobj; |
23464 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23465 | wxPoint *arg2 = 0 ; | |
23466 | int *arg3 = 0 ; | |
23467 | long result; | |
23468 | wxPoint temp2 ; | |
23469 | int temp3 ; | |
c32bde28 | 23470 | int res3 = 0 ; |
d14a1e28 RD |
23471 | PyObject * obj0 = 0 ; |
23472 | PyObject * obj1 = 0 ; | |
23473 | char *kwnames[] = { | |
23474 | (char *) "self",(char *) "point", NULL | |
23475 | }; | |
23476 | ||
c32bde28 | 23477 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23481 | { |
23482 | arg2 = &temp2; | |
23483 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23484 | } | |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23488 | ||
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
c32bde28 RD |
23492 | resultobj = SWIG_From_long((long)result); |
23493 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23494 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
23495 | return resultobj; |
23496 | fail: | |
23497 | return NULL; | |
23498 | } | |
23499 | ||
23500 | ||
c32bde28 | 23501 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23502 | PyObject *resultobj; |
23503 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23504 | wxListItem *arg2 = 0 ; | |
23505 | long result; | |
23506 | PyObject * obj0 = 0 ; | |
23507 | PyObject * obj1 = 0 ; | |
23508 | char *kwnames[] = { | |
23509 | (char *) "self",(char *) "info", NULL | |
23510 | }; | |
23511 | ||
23512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23517 | SWIG_fail; | |
d14a1e28 | 23518 | if (arg2 == NULL) { |
15afbcd0 RD |
23519 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23520 | SWIG_fail; | |
d14a1e28 RD |
23521 | } |
23522 | { | |
23523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23524 | result = (long)(arg1)->InsertItem(*arg2); | |
23525 | ||
23526 | wxPyEndAllowThreads(__tstate); | |
23527 | if (PyErr_Occurred()) SWIG_fail; | |
23528 | } | |
c32bde28 | 23529 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23530 | return resultobj; |
23531 | fail: | |
23532 | return NULL; | |
23533 | } | |
23534 | ||
23535 | ||
c32bde28 | 23536 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23537 | PyObject *resultobj; |
23538 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23539 | long arg2 ; | |
23540 | wxString *arg3 = 0 ; | |
23541 | long result; | |
ae8162c8 | 23542 | bool temp3 = false ; |
d14a1e28 | 23543 | PyObject * obj0 = 0 ; |
994141e6 | 23544 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23545 | PyObject * obj2 = 0 ; |
23546 | char *kwnames[] = { | |
23547 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23548 | }; | |
23549 | ||
994141e6 | 23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23553 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23554 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23555 | { |
23556 | arg3 = wxString_in_helper(obj2); | |
23557 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23558 | temp3 = true; |
d14a1e28 RD |
23559 | } |
23560 | { | |
23561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23562 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23563 | ||
23564 | wxPyEndAllowThreads(__tstate); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | } | |
c32bde28 | 23567 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23568 | { |
23569 | if (temp3) | |
23570 | delete arg3; | |
23571 | } | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | { | |
23575 | if (temp3) | |
23576 | delete arg3; | |
23577 | } | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
c32bde28 | 23582 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23583 | PyObject *resultobj; |
23584 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23585 | long arg2 ; | |
23586 | int arg3 ; | |
23587 | long result; | |
23588 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23589 | PyObject * obj1 = 0 ; |
23590 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23591 | char *kwnames[] = { |
23592 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23593 | }; | |
23594 | ||
994141e6 | 23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23598 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23599 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23600 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23601 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23602 | { |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
c32bde28 | 23609 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23610 | return resultobj; |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
c32bde28 | 23616 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23617 | PyObject *resultobj; |
23618 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23619 | long arg2 ; | |
23620 | wxString *arg3 = 0 ; | |
23621 | int arg4 ; | |
23622 | long result; | |
ae8162c8 | 23623 | bool temp3 = false ; |
d14a1e28 | 23624 | PyObject * obj0 = 0 ; |
994141e6 | 23625 | PyObject * obj1 = 0 ; |
d14a1e28 | 23626 | PyObject * obj2 = 0 ; |
994141e6 | 23627 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23628 | char *kwnames[] = { |
23629 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23630 | }; | |
23631 | ||
994141e6 | 23632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23635 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23636 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23637 | { |
23638 | arg3 = wxString_in_helper(obj2); | |
23639 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23640 | temp3 = true; |
d14a1e28 | 23641 | } |
c32bde28 | 23642 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23643 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23644 | { |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
c32bde28 | 23651 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23652 | { |
23653 | if (temp3) | |
23654 | delete arg3; | |
23655 | } | |
23656 | return resultobj; | |
23657 | fail: | |
23658 | { | |
23659 | if (temp3) | |
23660 | delete arg3; | |
23661 | } | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
c32bde28 | 23666 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23667 | PyObject *resultobj; |
23668 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23669 | long arg2 ; | |
23670 | wxListItem *arg3 = 0 ; | |
23671 | long result; | |
23672 | PyObject * obj0 = 0 ; | |
994141e6 | 23673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23674 | PyObject * obj2 = 0 ; |
23675 | char *kwnames[] = { | |
23676 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23677 | }; | |
23678 | ||
994141e6 | 23679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23682 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 RD |
23683 | if (PyErr_Occurred()) SWIG_fail; |
23684 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23686 | SWIG_fail; | |
d14a1e28 | 23687 | if (arg3 == NULL) { |
15afbcd0 RD |
23688 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23689 | SWIG_fail; | |
d14a1e28 RD |
23690 | } |
23691 | { | |
23692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23693 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23694 | ||
23695 | wxPyEndAllowThreads(__tstate); | |
23696 | if (PyErr_Occurred()) SWIG_fail; | |
23697 | } | |
c32bde28 | 23698 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23699 | return resultobj; |
23700 | fail: | |
23701 | return NULL; | |
23702 | } | |
23703 | ||
23704 | ||
c32bde28 | 23705 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23706 | PyObject *resultobj; |
23707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23708 | long arg2 ; | |
23709 | wxString *arg3 = 0 ; | |
23710 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23711 | int arg5 = (int) -1 ; | |
23712 | long result; | |
ae8162c8 | 23713 | bool temp3 = false ; |
d14a1e28 | 23714 | PyObject * obj0 = 0 ; |
994141e6 | 23715 | PyObject * obj1 = 0 ; |
d14a1e28 | 23716 | PyObject * obj2 = 0 ; |
994141e6 RD |
23717 | PyObject * obj3 = 0 ; |
23718 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23719 | char *kwnames[] = { |
23720 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23721 | }; | |
23722 | ||
994141e6 | 23723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23726 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23727 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23728 | { |
23729 | arg3 = wxString_in_helper(obj2); | |
23730 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 23731 | temp3 = true; |
d14a1e28 | 23732 | } |
994141e6 | 23733 | if (obj3) { |
c32bde28 | 23734 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 23735 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
23736 | } |
23737 | if (obj4) { | |
c32bde28 | 23738 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 23739 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 23740 | } |
d14a1e28 RD |
23741 | { |
23742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23743 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23744 | ||
23745 | wxPyEndAllowThreads(__tstate); | |
23746 | if (PyErr_Occurred()) SWIG_fail; | |
23747 | } | |
c32bde28 | 23748 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
23749 | { |
23750 | if (temp3) | |
23751 | delete arg3; | |
23752 | } | |
23753 | return resultobj; | |
23754 | fail: | |
23755 | { | |
23756 | if (temp3) | |
23757 | delete arg3; | |
23758 | } | |
23759 | return NULL; | |
23760 | } | |
23761 | ||
23762 | ||
c32bde28 | 23763 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23764 | PyObject *resultobj; |
23765 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23766 | long arg2 ; | |
23767 | PyObject * obj0 = 0 ; | |
994141e6 | 23768 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23769 | char *kwnames[] = { |
23770 | (char *) "self",(char *) "count", NULL | |
23771 | }; | |
23772 | ||
994141e6 | 23773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23776 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23777 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23778 | { |
23779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23780 | (arg1)->SetItemCount(arg2); | |
23781 | ||
23782 | wxPyEndAllowThreads(__tstate); | |
23783 | if (PyErr_Occurred()) SWIG_fail; | |
23784 | } | |
23785 | Py_INCREF(Py_None); resultobj = Py_None; | |
23786 | return resultobj; | |
23787 | fail: | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
c32bde28 | 23792 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23793 | PyObject *resultobj; |
23794 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23795 | int arg2 ; | |
23796 | int arg3 ; | |
23797 | bool result; | |
23798 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23799 | PyObject * obj1 = 0 ; |
23800 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23801 | char *kwnames[] = { |
23802 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23803 | }; | |
23804 | ||
994141e6 | 23805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23808 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 23809 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23810 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 23811 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23812 | { |
23813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23814 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23815 | ||
23816 | wxPyEndAllowThreads(__tstate); | |
23817 | if (PyErr_Occurred()) SWIG_fail; | |
23818 | } | |
4f89f6a3 RD |
23819 | { |
23820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23821 | } | |
d14a1e28 RD |
23822 | return resultobj; |
23823 | fail: | |
23824 | return NULL; | |
23825 | } | |
23826 | ||
23827 | ||
c32bde28 | 23828 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23829 | PyObject *resultobj; |
23830 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23831 | long arg2 ; | |
23832 | wxColour *arg3 = 0 ; | |
23833 | wxColour temp3 ; | |
23834 | PyObject * obj0 = 0 ; | |
994141e6 | 23835 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23836 | PyObject * obj2 = 0 ; |
23837 | char *kwnames[] = { | |
23838 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23839 | }; | |
23840 | ||
994141e6 | 23841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23844 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23845 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23846 | { |
23847 | arg3 = &temp3; | |
23848 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23849 | } | |
23850 | { | |
23851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23852 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23853 | ||
23854 | wxPyEndAllowThreads(__tstate); | |
23855 | if (PyErr_Occurred()) SWIG_fail; | |
23856 | } | |
23857 | Py_INCREF(Py_None); resultobj = Py_None; | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | return NULL; | |
23861 | } | |
23862 | ||
23863 | ||
c32bde28 | 23864 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23865 | PyObject *resultobj; |
23866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23867 | long arg2 ; | |
23868 | wxColour result; | |
23869 | PyObject * obj0 = 0 ; | |
994141e6 | 23870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23871 | char *kwnames[] = { |
23872 | (char *) "self",(char *) "item", NULL | |
23873 | }; | |
23874 | ||
994141e6 | 23875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23878 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23879 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23880 | { |
23881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23882 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23883 | ||
23884 | wxPyEndAllowThreads(__tstate); | |
23885 | if (PyErr_Occurred()) SWIG_fail; | |
23886 | } | |
23887 | { | |
23888 | wxColour * resultptr; | |
23889 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23891 | } |
23892 | return resultobj; | |
23893 | fail: | |
23894 | return NULL; | |
23895 | } | |
23896 | ||
23897 | ||
c32bde28 | 23898 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23899 | PyObject *resultobj; |
23900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23901 | long arg2 ; | |
23902 | wxColour *arg3 = 0 ; | |
23903 | wxColour temp3 ; | |
23904 | PyObject * obj0 = 0 ; | |
994141e6 | 23905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23906 | PyObject * obj2 = 0 ; |
23907 | char *kwnames[] = { | |
23908 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23909 | }; | |
23910 | ||
994141e6 | 23911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23914 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23915 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23916 | { |
23917 | arg3 = &temp3; | |
23918 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23919 | } | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23923 | ||
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | Py_INCREF(Py_None); resultobj = Py_None; | |
23928 | return resultobj; | |
23929 | fail: | |
23930 | return NULL; | |
23931 | } | |
23932 | ||
23933 | ||
c32bde28 | 23934 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23935 | PyObject *resultobj; |
23936 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23937 | long arg2 ; | |
23938 | wxColour result; | |
23939 | PyObject * obj0 = 0 ; | |
994141e6 | 23940 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23941 | char *kwnames[] = { |
23942 | (char *) "self",(char *) "item", NULL | |
23943 | }; | |
23944 | ||
994141e6 | 23945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23948 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 23949 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
23950 | { |
23951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23952 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23953 | ||
23954 | wxPyEndAllowThreads(__tstate); | |
23955 | if (PyErr_Occurred()) SWIG_fail; | |
23956 | } | |
23957 | { | |
23958 | wxColour * resultptr; | |
23959 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23960 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23961 | } |
23962 | return resultobj; | |
23963 | fail: | |
23964 | return NULL; | |
23965 | } | |
23966 | ||
23967 | ||
c32bde28 | 23968 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23969 | PyObject *resultobj; |
23970 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23971 | PyObject *arg2 = (PyObject *) 0 ; | |
23972 | bool result; | |
23973 | PyObject * obj0 = 0 ; | |
23974 | PyObject * obj1 = 0 ; | |
23975 | char *kwnames[] = { | |
23976 | (char *) "self",(char *) "func", NULL | |
23977 | }; | |
23978 | ||
23979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23982 | arg2 = obj1; |
23983 | { | |
23984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23985 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23986 | ||
23987 | wxPyEndAllowThreads(__tstate); | |
23988 | if (PyErr_Occurred()) SWIG_fail; | |
23989 | } | |
4f89f6a3 RD |
23990 | { |
23991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23992 | } | |
d14a1e28 RD |
23993 | return resultobj; |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
c32bde28 | 23999 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24000 | PyObject *resultobj; |
24001 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24002 | wxWindow *result; | |
24003 | PyObject * obj0 = 0 ; | |
24004 | char *kwnames[] = { | |
24005 | (char *) "self", NULL | |
24006 | }; | |
24007 | ||
24008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
24010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24011 | { |
24012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24013 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
24014 | ||
24015 | wxPyEndAllowThreads(__tstate); | |
24016 | if (PyErr_Occurred()) SWIG_fail; | |
24017 | } | |
24018 | { | |
412d302d | 24019 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24020 | } |
24021 | return resultobj; | |
24022 | fail: | |
24023 | return NULL; | |
24024 | } | |
24025 | ||
24026 | ||
c32bde28 | 24027 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24028 | PyObject *resultobj; |
24029 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
24030 | wxVisualAttributes result; | |
24031 | PyObject * obj0 = 0 ; | |
24032 | char *kwnames[] = { | |
24033 | (char *) "variant", NULL | |
24034 | }; | |
24035 | ||
24036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
24037 | if (obj0) { | |
c32bde28 | 24038 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
24039 | if (PyErr_Occurred()) SWIG_fail; |
24040 | } | |
24041 | { | |
110da5b0 | 24042 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
24043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24044 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
24045 | ||
24046 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 24047 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
24048 | } |
24049 | { | |
24050 | wxVisualAttributes * resultptr; | |
24051 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
24052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
24053 | } | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
c32bde28 | 24060 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24061 | PyObject *obj; |
24062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24063 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
24064 | Py_INCREF(obj); | |
24065 | return Py_BuildValue((char *)""); | |
24066 | } | |
c32bde28 | 24067 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24068 | PyObject *resultobj; |
24069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24070 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24071 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24072 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24073 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24074 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24075 | long arg5 = (long) wxLC_REPORT ; | |
24076 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24077 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24078 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
24079 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24080 | wxListView *result; | |
24081 | wxPoint temp3 ; | |
24082 | wxSize temp4 ; | |
ae8162c8 | 24083 | bool temp7 = false ; |
d14a1e28 | 24084 | PyObject * obj0 = 0 ; |
994141e6 | 24085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24086 | PyObject * obj2 = 0 ; |
24087 | PyObject * obj3 = 0 ; | |
994141e6 | 24088 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24089 | PyObject * obj5 = 0 ; |
24090 | PyObject * obj6 = 0 ; | |
24091 | char *kwnames[] = { | |
24092 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24093 | }; | |
24094 | ||
994141e6 | 24095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24098 | if (obj1) { |
c32bde28 | 24099 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24100 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24101 | } |
d14a1e28 RD |
24102 | if (obj2) { |
24103 | { | |
24104 | arg3 = &temp3; | |
24105 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24106 | } | |
24107 | } | |
24108 | if (obj3) { | |
24109 | { | |
24110 | arg4 = &temp4; | |
24111 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24112 | } | |
24113 | } | |
994141e6 | 24114 | if (obj4) { |
c32bde28 | 24115 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 24116 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24117 | } |
d14a1e28 | 24118 | if (obj5) { |
15afbcd0 RD |
24119 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24121 | SWIG_fail; | |
d14a1e28 | 24122 | if (arg6 == NULL) { |
15afbcd0 RD |
24123 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24124 | SWIG_fail; | |
d14a1e28 RD |
24125 | } |
24126 | } | |
24127 | if (obj6) { | |
24128 | { | |
24129 | arg7 = wxString_in_helper(obj6); | |
24130 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 24131 | temp7 = true; |
d14a1e28 RD |
24132 | } |
24133 | } | |
24134 | { | |
e3b71cb8 | 24135 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24137 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24138 | ||
24139 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24140 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24141 | } |
15afbcd0 | 24142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
24143 | { |
24144 | if (temp7) | |
24145 | delete arg7; | |
24146 | } | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | { | |
24150 | if (temp7) | |
24151 | delete arg7; | |
24152 | } | |
24153 | return NULL; | |
24154 | } | |
24155 | ||
24156 | ||
c32bde28 | 24157 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24158 | PyObject *resultobj; |
24159 | wxListView *result; | |
24160 | char *kwnames[] = { | |
24161 | NULL | |
24162 | }; | |
24163 | ||
24164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
24165 | { | |
e3b71cb8 | 24166 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24168 | result = (wxListView *)new wxListView(); | |
24169 | ||
24170 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24171 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24172 | } |
15afbcd0 | 24173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
24174 | return resultobj; |
24175 | fail: | |
24176 | return NULL; | |
24177 | } | |
24178 | ||
24179 | ||
c32bde28 | 24180 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24181 | PyObject *resultobj; |
24182 | wxListView *arg1 = (wxListView *) 0 ; | |
24183 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 24184 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24185 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24186 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24187 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24188 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24189 | long arg6 = (long) wxLC_REPORT ; | |
24190 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24191 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
24192 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
24193 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24194 | bool result; | |
24195 | wxPoint temp4 ; | |
24196 | wxSize temp5 ; | |
ae8162c8 | 24197 | bool temp8 = false ; |
d14a1e28 RD |
24198 | PyObject * obj0 = 0 ; |
24199 | PyObject * obj1 = 0 ; | |
994141e6 | 24200 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24201 | PyObject * obj3 = 0 ; |
24202 | PyObject * obj4 = 0 ; | |
994141e6 | 24203 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24204 | PyObject * obj6 = 0 ; |
24205 | PyObject * obj7 = 0 ; | |
24206 | char *kwnames[] = { | |
24207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24208 | }; | |
24209 | ||
994141e6 | 24210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
24211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24215 | if (obj2) { |
c32bde28 | 24216 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24217 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24218 | } |
d14a1e28 RD |
24219 | if (obj3) { |
24220 | { | |
24221 | arg4 = &temp4; | |
24222 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24223 | } | |
24224 | } | |
24225 | if (obj4) { | |
24226 | { | |
24227 | arg5 = &temp5; | |
24228 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24229 | } | |
24230 | } | |
994141e6 | 24231 | if (obj5) { |
c32bde28 | 24232 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 24233 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24234 | } |
d14a1e28 | 24235 | if (obj6) { |
15afbcd0 RD |
24236 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24237 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24238 | SWIG_fail; | |
d14a1e28 | 24239 | if (arg7 == NULL) { |
15afbcd0 RD |
24240 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24241 | SWIG_fail; | |
d14a1e28 RD |
24242 | } |
24243 | } | |
24244 | if (obj7) { | |
24245 | { | |
24246 | arg8 = wxString_in_helper(obj7); | |
24247 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 24248 | temp8 = true; |
d14a1e28 RD |
24249 | } |
24250 | } | |
24251 | { | |
24252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24253 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24254 | ||
24255 | wxPyEndAllowThreads(__tstate); | |
24256 | if (PyErr_Occurred()) SWIG_fail; | |
24257 | } | |
4f89f6a3 RD |
24258 | { |
24259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24260 | } | |
d14a1e28 RD |
24261 | { |
24262 | if (temp8) | |
24263 | delete arg8; | |
24264 | } | |
24265 | return resultobj; | |
24266 | fail: | |
24267 | { | |
24268 | if (temp8) | |
24269 | delete arg8; | |
24270 | } | |
24271 | return NULL; | |
24272 | } | |
24273 | ||
24274 | ||
c32bde28 | 24275 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24276 | PyObject *resultobj; |
24277 | wxListView *arg1 = (wxListView *) 0 ; | |
24278 | long arg2 ; | |
ae8162c8 | 24279 | bool arg3 = (bool) true ; |
d14a1e28 | 24280 | PyObject * obj0 = 0 ; |
994141e6 | 24281 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24282 | PyObject * obj2 = 0 ; |
24283 | char *kwnames[] = { | |
24284 | (char *) "self",(char *) "n",(char *) "on", NULL | |
24285 | }; | |
24286 | ||
15afbcd0 RD |
24287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24290 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24291 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24292 | if (obj2) { |
c32bde28 | 24293 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 24294 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24295 | } |
24296 | { | |
24297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24298 | (arg1)->Select(arg2,arg3); | |
24299 | ||
24300 | wxPyEndAllowThreads(__tstate); | |
24301 | if (PyErr_Occurred()) SWIG_fail; | |
24302 | } | |
24303 | Py_INCREF(Py_None); resultobj = Py_None; | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
c32bde28 | 24310 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24311 | PyObject *resultobj; |
24312 | wxListView *arg1 = (wxListView *) 0 ; | |
24313 | long arg2 ; | |
24314 | PyObject * obj0 = 0 ; | |
994141e6 | 24315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24316 | char *kwnames[] = { |
24317 | (char *) "self",(char *) "index", NULL | |
24318 | }; | |
24319 | ||
994141e6 | 24320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24323 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24324 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24325 | { |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | (arg1)->Focus(arg2); | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | Py_INCREF(Py_None); resultobj = Py_None; | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
c32bde28 | 24339 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24340 | PyObject *resultobj; |
24341 | wxListView *arg1 = (wxListView *) 0 ; | |
24342 | long result; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | char *kwnames[] = { | |
24345 | (char *) "self", NULL | |
24346 | }; | |
24347 | ||
24348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24351 | { |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
c32bde28 | 24358 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24359 | return resultobj; |
24360 | fail: | |
24361 | return NULL; | |
24362 | } | |
24363 | ||
24364 | ||
c32bde28 | 24365 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24366 | PyObject *resultobj; |
24367 | wxListView *arg1 = (wxListView *) 0 ; | |
24368 | long arg2 ; | |
24369 | long result; | |
24370 | PyObject * obj0 = 0 ; | |
994141e6 | 24371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24372 | char *kwnames[] = { |
24373 | (char *) "self",(char *) "item", NULL | |
24374 | }; | |
24375 | ||
994141e6 | 24376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24379 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24380 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24381 | { |
24382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24383 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24384 | ||
24385 | wxPyEndAllowThreads(__tstate); | |
24386 | if (PyErr_Occurred()) SWIG_fail; | |
24387 | } | |
c32bde28 | 24388 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24389 | return resultobj; |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
c32bde28 | 24395 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24396 | PyObject *resultobj; |
24397 | wxListView *arg1 = (wxListView *) 0 ; | |
24398 | long result; | |
24399 | PyObject * obj0 = 0 ; | |
24400 | char *kwnames[] = { | |
24401 | (char *) "self", NULL | |
24402 | }; | |
24403 | ||
24404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24407 | { |
24408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24409 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24410 | ||
24411 | wxPyEndAllowThreads(__tstate); | |
24412 | if (PyErr_Occurred()) SWIG_fail; | |
24413 | } | |
c32bde28 | 24414 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
24415 | return resultobj; |
24416 | fail: | |
24417 | return NULL; | |
24418 | } | |
24419 | ||
24420 | ||
c32bde28 | 24421 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24422 | PyObject *resultobj; |
24423 | wxListView *arg1 = (wxListView *) 0 ; | |
24424 | long arg2 ; | |
24425 | bool result; | |
24426 | PyObject * obj0 = 0 ; | |
994141e6 | 24427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24428 | char *kwnames[] = { |
24429 | (char *) "self",(char *) "index", NULL | |
24430 | }; | |
24431 | ||
994141e6 | 24432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24435 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 24436 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24437 | { |
24438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24439 | result = (bool)(arg1)->IsSelected(arg2); | |
24440 | ||
24441 | wxPyEndAllowThreads(__tstate); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
4f89f6a3 RD |
24444 | { |
24445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24446 | } | |
d14a1e28 RD |
24447 | return resultobj; |
24448 | fail: | |
24449 | return NULL; | |
24450 | } | |
24451 | ||
24452 | ||
c32bde28 | 24453 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24454 | PyObject *resultobj; |
24455 | wxListView *arg1 = (wxListView *) 0 ; | |
24456 | int arg2 ; | |
24457 | int arg3 ; | |
24458 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24459 | PyObject * obj1 = 0 ; |
24460 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24461 | char *kwnames[] = { |
24462 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24463 | }; | |
24464 | ||
994141e6 | 24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24468 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24469 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24470 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 24471 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24472 | { |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | (arg1)->SetColumnImage(arg2,arg3); | |
24475 | ||
24476 | wxPyEndAllowThreads(__tstate); | |
24477 | if (PyErr_Occurred()) SWIG_fail; | |
24478 | } | |
24479 | Py_INCREF(Py_None); resultobj = Py_None; | |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
c32bde28 | 24486 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24487 | PyObject *resultobj; |
24488 | wxListView *arg1 = (wxListView *) 0 ; | |
24489 | int arg2 ; | |
24490 | PyObject * obj0 = 0 ; | |
994141e6 | 24491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24492 | char *kwnames[] = { |
24493 | (char *) "self",(char *) "col", NULL | |
24494 | }; | |
24495 | ||
994141e6 | 24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24499 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24500 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24501 | { |
24502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24503 | (arg1)->ClearColumnImage(arg2); | |
24504 | ||
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | Py_INCREF(Py_None); resultobj = Py_None; | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
c32bde28 | 24515 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24516 | PyObject *obj; |
24517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24518 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24519 | Py_INCREF(obj); | |
24520 | return Py_BuildValue((char *)""); | |
24521 | } | |
c32bde28 | 24522 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
24523 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
24524 | return 1; | |
24525 | } | |
24526 | ||
24527 | ||
24528 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24529 | PyObject *pyobj; | |
24530 | ||
24531 | { | |
24532 | #if wxUSE_UNICODE | |
24533 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24534 | #else | |
24535 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24536 | #endif | |
24537 | } | |
24538 | return pyobj; | |
24539 | } | |
24540 | ||
24541 | ||
c32bde28 | 24542 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24543 | PyObject *resultobj; |
24544 | wxTreeItemId *result; | |
24545 | char *kwnames[] = { | |
24546 | NULL | |
24547 | }; | |
24548 | ||
24549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24550 | { | |
24551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24552 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24553 | ||
24554 | wxPyEndAllowThreads(__tstate); | |
24555 | if (PyErr_Occurred()) SWIG_fail; | |
24556 | } | |
15afbcd0 | 24557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24558 | return resultobj; |
24559 | fail: | |
24560 | return NULL; | |
24561 | } | |
24562 | ||
24563 | ||
c32bde28 | 24564 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24565 | PyObject *resultobj; |
24566 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24567 | PyObject * obj0 = 0 ; | |
24568 | char *kwnames[] = { | |
24569 | (char *) "self", NULL | |
24570 | }; | |
24571 | ||
24572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24575 | { |
24576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24577 | delete arg1; | |
24578 | ||
24579 | wxPyEndAllowThreads(__tstate); | |
24580 | if (PyErr_Occurred()) SWIG_fail; | |
24581 | } | |
24582 | Py_INCREF(Py_None); resultobj = Py_None; | |
24583 | return resultobj; | |
24584 | fail: | |
24585 | return NULL; | |
24586 | } | |
24587 | ||
24588 | ||
c32bde28 | 24589 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24590 | PyObject *resultobj; |
24591 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24592 | bool result; | |
24593 | PyObject * obj0 = 0 ; | |
24594 | char *kwnames[] = { | |
24595 | (char *) "self", NULL | |
24596 | }; | |
24597 | ||
24598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24601 | { |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
4f89f6a3 RD |
24608 | { |
24609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24610 | } | |
d14a1e28 RD |
24611 | return resultobj; |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
c32bde28 | 24617 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24618 | PyObject *resultobj; |
24619 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24620 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24621 | bool result; | |
24622 | PyObject * obj0 = 0 ; | |
24623 | PyObject * obj1 = 0 ; | |
24624 | char *kwnames[] = { | |
24625 | (char *) "self",(char *) "other", NULL | |
24626 | }; | |
24627 | ||
24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24633 | { |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24635 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24636 | |
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
4f89f6a3 RD |
24640 | { |
24641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24642 | } | |
d14a1e28 RD |
24643 | return resultobj; |
24644 | fail: | |
24645 | return NULL; | |
24646 | } | |
24647 | ||
24648 | ||
c32bde28 | 24649 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24650 | PyObject *resultobj; |
24651 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24652 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24653 | bool result; | |
24654 | PyObject * obj0 = 0 ; | |
24655 | PyObject * obj1 = 0 ; | |
24656 | char *kwnames[] = { | |
24657 | (char *) "self",(char *) "other", NULL | |
24658 | }; | |
24659 | ||
24660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24665 | { |
24666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24667 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24668 | |
24669 | wxPyEndAllowThreads(__tstate); | |
24670 | if (PyErr_Occurred()) SWIG_fail; | |
24671 | } | |
4f89f6a3 RD |
24672 | { |
24673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24674 | } | |
d14a1e28 RD |
24675 | return resultobj; |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
c32bde28 | 24681 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24682 | PyObject *resultobj; |
24683 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24684 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24685 | PyObject * obj0 = 0 ; |
24686 | PyObject * obj1 = 0 ; | |
24687 | char *kwnames[] = { | |
24688 | (char *) "self",(char *) "m_pItem", NULL | |
24689 | }; | |
24690 | ||
24691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24694 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24695 | if (arg1) (arg1)->m_pItem = arg2; |
24696 | ||
24697 | Py_INCREF(Py_None); resultobj = Py_None; | |
24698 | return resultobj; | |
24699 | fail: | |
24700 | return NULL; | |
24701 | } | |
24702 | ||
24703 | ||
c32bde28 | 24704 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24705 | PyObject *resultobj; |
24706 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24707 | void *result; |
d14a1e28 RD |
24708 | PyObject * obj0 = 0 ; |
24709 | char *kwnames[] = { | |
24710 | (char *) "self", NULL | |
24711 | }; | |
24712 | ||
24713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24716 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24717 | |
15afbcd0 | 24718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24719 | return resultobj; |
24720 | fail: | |
24721 | return NULL; | |
24722 | } | |
24723 | ||
24724 | ||
c32bde28 | 24725 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24726 | PyObject *obj; |
24727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24728 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24729 | Py_INCREF(obj); | |
24730 | return Py_BuildValue((char *)""); | |
24731 | } | |
c32bde28 | 24732 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24733 | PyObject *resultobj; |
24734 | PyObject *arg1 = (PyObject *) NULL ; | |
24735 | wxPyTreeItemData *result; | |
24736 | PyObject * obj0 = 0 ; | |
24737 | char *kwnames[] = { | |
24738 | (char *) "obj", NULL | |
24739 | }; | |
24740 | ||
24741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24742 | if (obj0) { | |
24743 | arg1 = obj0; | |
24744 | } | |
24745 | { | |
24746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24747 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24748 | ||
24749 | wxPyEndAllowThreads(__tstate); | |
24750 | if (PyErr_Occurred()) SWIG_fail; | |
24751 | } | |
15afbcd0 | 24752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24753 | return resultobj; |
24754 | fail: | |
24755 | return NULL; | |
24756 | } | |
24757 | ||
24758 | ||
c32bde28 | 24759 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24760 | PyObject *resultobj; |
24761 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24762 | PyObject *result; | |
24763 | PyObject * obj0 = 0 ; | |
24764 | char *kwnames[] = { | |
24765 | (char *) "self", NULL | |
24766 | }; | |
24767 | ||
24768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24771 | { |
24772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24773 | result = (PyObject *)(arg1)->GetData(); | |
24774 | ||
24775 | wxPyEndAllowThreads(__tstate); | |
24776 | if (PyErr_Occurred()) SWIG_fail; | |
24777 | } | |
24778 | resultobj = result; | |
24779 | return resultobj; | |
24780 | fail: | |
24781 | return NULL; | |
24782 | } | |
24783 | ||
24784 | ||
c32bde28 | 24785 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24786 | PyObject *resultobj; |
24787 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24788 | PyObject *arg2 = (PyObject *) 0 ; | |
24789 | PyObject * obj0 = 0 ; | |
24790 | PyObject * obj1 = 0 ; | |
24791 | char *kwnames[] = { | |
24792 | (char *) "self",(char *) "obj", NULL | |
24793 | }; | |
24794 | ||
24795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24798 | arg2 = obj1; |
24799 | { | |
24800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24801 | (arg1)->SetData(arg2); | |
24802 | ||
24803 | wxPyEndAllowThreads(__tstate); | |
24804 | if (PyErr_Occurred()) SWIG_fail; | |
24805 | } | |
24806 | Py_INCREF(Py_None); resultobj = Py_None; | |
24807 | return resultobj; | |
24808 | fail: | |
24809 | return NULL; | |
24810 | } | |
24811 | ||
24812 | ||
c32bde28 | 24813 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24814 | PyObject *resultobj; |
24815 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24816 | wxTreeItemId *result; | |
24817 | PyObject * obj0 = 0 ; | |
24818 | char *kwnames[] = { | |
24819 | (char *) "self", NULL | |
24820 | }; | |
24821 | ||
24822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24825 | { |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | { | |
24828 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24829 | result = (wxTreeItemId *) &_result_ref; | |
24830 | } | |
24831 | ||
24832 | wxPyEndAllowThreads(__tstate); | |
24833 | if (PyErr_Occurred()) SWIG_fail; | |
24834 | } | |
15afbcd0 | 24835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24836 | return resultobj; |
24837 | fail: | |
24838 | return NULL; | |
24839 | } | |
24840 | ||
24841 | ||
c32bde28 | 24842 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24843 | PyObject *resultobj; |
24844 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24845 | wxTreeItemId *arg2 = 0 ; | |
24846 | PyObject * obj0 = 0 ; | |
24847 | PyObject * obj1 = 0 ; | |
24848 | char *kwnames[] = { | |
24849 | (char *) "self",(char *) "id", NULL | |
24850 | }; | |
24851 | ||
24852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24857 | SWIG_fail; | |
d14a1e28 | 24858 | if (arg2 == NULL) { |
15afbcd0 RD |
24859 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24860 | SWIG_fail; | |
d14a1e28 RD |
24861 | } |
24862 | { | |
24863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24864 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24865 | ||
24866 | wxPyEndAllowThreads(__tstate); | |
24867 | if (PyErr_Occurred()) SWIG_fail; | |
24868 | } | |
24869 | Py_INCREF(Py_None); resultobj = Py_None; | |
24870 | return resultobj; | |
24871 | fail: | |
24872 | return NULL; | |
24873 | } | |
24874 | ||
24875 | ||
c32bde28 | 24876 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24877 | PyObject *resultobj; |
24878 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24879 | PyObject * obj0 = 0 ; | |
24880 | char *kwnames[] = { | |
24881 | (char *) "self", NULL | |
24882 | }; | |
24883 | ||
24884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24887 | { |
24888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24889 | wxPyTreeItemData_Destroy(arg1); | |
24890 | ||
24891 | wxPyEndAllowThreads(__tstate); | |
24892 | if (PyErr_Occurred()) SWIG_fail; | |
24893 | } | |
24894 | Py_INCREF(Py_None); resultobj = Py_None; | |
24895 | return resultobj; | |
24896 | fail: | |
24897 | return NULL; | |
24898 | } | |
24899 | ||
24900 | ||
c32bde28 | 24901 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24902 | PyObject *obj; |
24903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24904 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24905 | Py_INCREF(obj); | |
24906 | return Py_BuildValue((char *)""); | |
24907 | } | |
c32bde28 | 24908 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24909 | PyObject *resultobj; |
24910 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24911 | int arg2 = (int) 0 ; | |
24912 | wxTreeEvent *result; | |
994141e6 RD |
24913 | PyObject * obj0 = 0 ; |
24914 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24915 | char *kwnames[] = { |
24916 | (char *) "commandType",(char *) "id", NULL | |
24917 | }; | |
24918 | ||
994141e6 RD |
24919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24920 | if (obj0) { | |
c32bde28 | 24921 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 24922 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
24923 | } |
24924 | if (obj1) { | |
c32bde28 | 24925 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 24926 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24927 | } |
d14a1e28 RD |
24928 | { |
24929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24930 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24931 | ||
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
15afbcd0 | 24935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24936 | return resultobj; |
24937 | fail: | |
24938 | return NULL; | |
24939 | } | |
24940 | ||
24941 | ||
c32bde28 | 24942 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24943 | PyObject *resultobj; |
24944 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24945 | wxTreeItemId result; | |
24946 | PyObject * obj0 = 0 ; | |
24947 | char *kwnames[] = { | |
24948 | (char *) "self", NULL | |
24949 | }; | |
24950 | ||
24951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24954 | { |
24955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24956 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24957 | ||
24958 | wxPyEndAllowThreads(__tstate); | |
24959 | if (PyErr_Occurred()) SWIG_fail; | |
24960 | } | |
24961 | { | |
24962 | wxTreeItemId * resultptr; | |
24963 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24965 | } |
24966 | return resultobj; | |
24967 | fail: | |
24968 | return NULL; | |
24969 | } | |
24970 | ||
24971 | ||
c32bde28 | 24972 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24973 | PyObject *resultobj; |
24974 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24975 | wxTreeItemId *arg2 = 0 ; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | PyObject * obj1 = 0 ; | |
24978 | char *kwnames[] = { | |
24979 | (char *) "self",(char *) "item", NULL | |
24980 | }; | |
24981 | ||
24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24987 | SWIG_fail; | |
d14a1e28 | 24988 | if (arg2 == NULL) { |
15afbcd0 RD |
24989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24990 | SWIG_fail; | |
d14a1e28 RD |
24991 | } |
24992 | { | |
24993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24994 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24995 | ||
24996 | wxPyEndAllowThreads(__tstate); | |
24997 | if (PyErr_Occurred()) SWIG_fail; | |
24998 | } | |
24999 | Py_INCREF(Py_None); resultobj = Py_None; | |
25000 | return resultobj; | |
25001 | fail: | |
25002 | return NULL; | |
25003 | } | |
25004 | ||
25005 | ||
c32bde28 | 25006 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25007 | PyObject *resultobj; |
25008 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25009 | wxTreeItemId result; | |
25010 | PyObject * obj0 = 0 ; | |
25011 | char *kwnames[] = { | |
25012 | (char *) "self", NULL | |
25013 | }; | |
25014 | ||
25015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25018 | { |
25019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25020 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
25021 | ||
25022 | wxPyEndAllowThreads(__tstate); | |
25023 | if (PyErr_Occurred()) SWIG_fail; | |
25024 | } | |
25025 | { | |
25026 | wxTreeItemId * resultptr; | |
25027 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 25028 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25029 | } |
25030 | return resultobj; | |
25031 | fail: | |
25032 | return NULL; | |
25033 | } | |
25034 | ||
25035 | ||
c32bde28 | 25036 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25037 | PyObject *resultobj; |
25038 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25039 | wxTreeItemId *arg2 = 0 ; | |
25040 | PyObject * obj0 = 0 ; | |
25041 | PyObject * obj1 = 0 ; | |
25042 | char *kwnames[] = { | |
25043 | (char *) "self",(char *) "item", NULL | |
25044 | }; | |
25045 | ||
25046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25051 | SWIG_fail; | |
d14a1e28 | 25052 | if (arg2 == NULL) { |
15afbcd0 RD |
25053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25054 | SWIG_fail; | |
d14a1e28 RD |
25055 | } |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | Py_INCREF(Py_None); resultobj = Py_None; | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
c32bde28 | 25070 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25071 | PyObject *resultobj; |
25072 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25073 | wxPoint result; | |
25074 | PyObject * obj0 = 0 ; | |
25075 | char *kwnames[] = { | |
25076 | (char *) "self", NULL | |
25077 | }; | |
25078 | ||
25079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25082 | { |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25084 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
25085 | ||
25086 | wxPyEndAllowThreads(__tstate); | |
25087 | if (PyErr_Occurred()) SWIG_fail; | |
25088 | } | |
25089 | { | |
25090 | wxPoint * resultptr; | |
25091 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25093 | } |
25094 | return resultobj; | |
25095 | fail: | |
25096 | return NULL; | |
25097 | } | |
25098 | ||
25099 | ||
c32bde28 | 25100 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25101 | PyObject *resultobj; |
25102 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25103 | wxPoint *arg2 = 0 ; | |
25104 | wxPoint temp2 ; | |
25105 | PyObject * obj0 = 0 ; | |
25106 | PyObject * obj1 = 0 ; | |
25107 | char *kwnames[] = { | |
25108 | (char *) "self",(char *) "pt", NULL | |
25109 | }; | |
25110 | ||
25111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25114 | { |
25115 | arg2 = &temp2; | |
25116 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25117 | } | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | Py_INCREF(Py_None); resultobj = Py_None; | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
c32bde28 | 25132 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25133 | PyObject *resultobj; |
25134 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25135 | wxKeyEvent *result; | |
25136 | PyObject * obj0 = 0 ; | |
25137 | char *kwnames[] = { | |
25138 | (char *) "self", NULL | |
25139 | }; | |
25140 | ||
25141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25144 | { |
25145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25146 | { | |
25147 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
25148 | result = (wxKeyEvent *) &_result_ref; | |
25149 | } | |
25150 | ||
25151 | wxPyEndAllowThreads(__tstate); | |
25152 | if (PyErr_Occurred()) SWIG_fail; | |
25153 | } | |
15afbcd0 | 25154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
25155 | return resultobj; |
25156 | fail: | |
25157 | return NULL; | |
25158 | } | |
25159 | ||
25160 | ||
c32bde28 | 25161 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25162 | PyObject *resultobj; |
25163 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25164 | int result; | |
25165 | PyObject * obj0 = 0 ; | |
25166 | char *kwnames[] = { | |
25167 | (char *) "self", NULL | |
25168 | }; | |
25169 | ||
25170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25173 | { |
25174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25175 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
25176 | ||
25177 | wxPyEndAllowThreads(__tstate); | |
25178 | if (PyErr_Occurred()) SWIG_fail; | |
25179 | } | |
c32bde28 | 25180 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
25181 | return resultobj; |
25182 | fail: | |
25183 | return NULL; | |
25184 | } | |
25185 | ||
25186 | ||
c32bde28 | 25187 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25188 | PyObject *resultobj; |
25189 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25190 | wxKeyEvent *arg2 = 0 ; | |
25191 | PyObject * obj0 = 0 ; | |
25192 | PyObject * obj1 = 0 ; | |
25193 | char *kwnames[] = { | |
25194 | (char *) "self",(char *) "evt", NULL | |
25195 | }; | |
25196 | ||
25197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
25201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25202 | SWIG_fail; | |
d14a1e28 | 25203 | if (arg2 == NULL) { |
15afbcd0 RD |
25204 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25205 | SWIG_fail; | |
d14a1e28 RD |
25206 | } |
25207 | { | |
25208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25209 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
25210 | ||
25211 | wxPyEndAllowThreads(__tstate); | |
25212 | if (PyErr_Occurred()) SWIG_fail; | |
25213 | } | |
25214 | Py_INCREF(Py_None); resultobj = Py_None; | |
25215 | return resultobj; | |
25216 | fail: | |
25217 | return NULL; | |
25218 | } | |
25219 | ||
25220 | ||
c32bde28 | 25221 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25222 | PyObject *resultobj; |
25223 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25224 | wxString *result; | |
25225 | PyObject * obj0 = 0 ; | |
25226 | char *kwnames[] = { | |
25227 | (char *) "self", NULL | |
25228 | }; | |
25229 | ||
25230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25233 | { |
25234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25235 | { | |
25236 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
25237 | result = (wxString *) &_result_ref; | |
25238 | } | |
25239 | ||
25240 | wxPyEndAllowThreads(__tstate); | |
25241 | if (PyErr_Occurred()) SWIG_fail; | |
25242 | } | |
cc6dd355 RD |
25243 | { |
25244 | #if wxUSE_UNICODE | |
25245 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25246 | #else | |
25247 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25248 | #endif | |
25249 | } | |
d14a1e28 RD |
25250 | return resultobj; |
25251 | fail: | |
25252 | return NULL; | |
25253 | } | |
25254 | ||
25255 | ||
c32bde28 | 25256 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25257 | PyObject *resultobj; |
25258 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25259 | wxString *arg2 = 0 ; | |
ae8162c8 | 25260 | bool temp2 = false ; |
d14a1e28 RD |
25261 | PyObject * obj0 = 0 ; |
25262 | PyObject * obj1 = 0 ; | |
25263 | char *kwnames[] = { | |
25264 | (char *) "self",(char *) "label", NULL | |
25265 | }; | |
25266 | ||
25267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25270 | { |
25271 | arg2 = wxString_in_helper(obj1); | |
25272 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25273 | temp2 = true; |
d14a1e28 RD |
25274 | } |
25275 | { | |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | (arg1)->SetLabel((wxString const &)*arg2); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | Py_INCREF(Py_None); resultobj = Py_None; | |
25283 | { | |
25284 | if (temp2) | |
25285 | delete arg2; | |
25286 | } | |
25287 | return resultobj; | |
25288 | fail: | |
25289 | { | |
25290 | if (temp2) | |
25291 | delete arg2; | |
25292 | } | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
c32bde28 | 25297 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25298 | PyObject *resultobj; |
25299 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25300 | bool result; | |
25301 | PyObject * obj0 = 0 ; | |
25302 | char *kwnames[] = { | |
25303 | (char *) "self", NULL | |
25304 | }; | |
25305 | ||
25306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25309 | { |
25310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25311 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
25312 | ||
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
4f89f6a3 RD |
25316 | { |
25317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25318 | } | |
d14a1e28 RD |
25319 | return resultobj; |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
c32bde28 | 25325 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25326 | PyObject *resultobj; |
25327 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25328 | bool arg2 ; | |
25329 | PyObject * obj0 = 0 ; | |
25330 | PyObject * obj1 = 0 ; | |
25331 | char *kwnames[] = { | |
25332 | (char *) "self",(char *) "editCancelled", NULL | |
25333 | }; | |
25334 | ||
25335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25338 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 25339 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25340 | { |
25341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25342 | (arg1)->SetEditCanceled(arg2); | |
25343 | ||
25344 | wxPyEndAllowThreads(__tstate); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | Py_INCREF(Py_None); resultobj = Py_None; | |
25348 | return resultobj; | |
25349 | fail: | |
25350 | return NULL; | |
25351 | } | |
25352 | ||
25353 | ||
c32bde28 | 25354 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
25355 | PyObject *resultobj; |
25356 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
25357 | wxString *arg2 = 0 ; | |
ae8162c8 | 25358 | bool temp2 = false ; |
c9c7117a RD |
25359 | PyObject * obj0 = 0 ; |
25360 | PyObject * obj1 = 0 ; | |
25361 | char *kwnames[] = { | |
25362 | (char *) "self",(char *) "toolTip", NULL | |
25363 | }; | |
25364 | ||
25365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
25367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
25368 | { |
25369 | arg2 = wxString_in_helper(obj1); | |
25370 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25371 | temp2 = true; |
c9c7117a RD |
25372 | } |
25373 | { | |
25374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25375 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25376 | ||
25377 | wxPyEndAllowThreads(__tstate); | |
25378 | if (PyErr_Occurred()) SWIG_fail; | |
25379 | } | |
25380 | Py_INCREF(Py_None); resultobj = Py_None; | |
25381 | { | |
25382 | if (temp2) | |
25383 | delete arg2; | |
25384 | } | |
25385 | return resultobj; | |
25386 | fail: | |
25387 | { | |
25388 | if (temp2) | |
25389 | delete arg2; | |
25390 | } | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
c32bde28 | 25395 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
25396 | PyObject *obj; |
25397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25398 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25399 | Py_INCREF(obj); | |
25400 | return Py_BuildValue((char *)""); | |
25401 | } | |
c32bde28 | 25402 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25403 | PyObject *resultobj; |
25404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25405 | int arg2 = (int) -1 ; |
d14a1e28 RD |
25406 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25407 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25408 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25409 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25410 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25411 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25412 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 25413 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25414 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
25415 | wxPyTreeCtrl *result; | |
25416 | wxPoint temp3 ; | |
25417 | wxSize temp4 ; | |
ae8162c8 | 25418 | bool temp7 = false ; |
d14a1e28 | 25419 | PyObject * obj0 = 0 ; |
994141e6 | 25420 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25421 | PyObject * obj2 = 0 ; |
25422 | PyObject * obj3 = 0 ; | |
994141e6 | 25423 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
25424 | PyObject * obj5 = 0 ; |
25425 | PyObject * obj6 = 0 ; | |
25426 | char *kwnames[] = { | |
25427 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25428 | }; | |
25429 | ||
994141e6 | 25430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
25431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25433 | if (obj1) { |
c32bde28 | 25434 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 25435 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25436 | } |
d14a1e28 RD |
25437 | if (obj2) { |
25438 | { | |
25439 | arg3 = &temp3; | |
25440 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25441 | } | |
25442 | } | |
25443 | if (obj3) { | |
25444 | { | |
994141e6 RD |
25445 | arg4 = &temp4; |
25446 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25447 | } | |
25448 | } | |
25449 | if (obj4) { | |
c32bde28 | 25450 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 25451 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25452 | } |
25453 | if (obj5) { | |
15afbcd0 RD |
25454 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
25455 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25456 | SWIG_fail; | |
d14a1e28 | 25457 | if (arg6 == NULL) { |
15afbcd0 RD |
25458 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25459 | SWIG_fail; | |
d14a1e28 RD |
25460 | } |
25461 | } | |
25462 | if (obj6) { | |
25463 | { | |
25464 | arg7 = wxString_in_helper(obj6); | |
25465 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25466 | temp7 = true; |
d14a1e28 RD |
25467 | } |
25468 | } | |
25469 | { | |
e3b71cb8 | 25470 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25472 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25473 | ||
25474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25475 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25476 | } |
b0f7404b | 25477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25478 | { |
25479 | if (temp7) | |
25480 | delete arg7; | |
25481 | } | |
25482 | return resultobj; | |
25483 | fail: | |
25484 | { | |
25485 | if (temp7) | |
25486 | delete arg7; | |
25487 | } | |
25488 | return NULL; | |
25489 | } | |
25490 | ||
25491 | ||
c32bde28 | 25492 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25493 | PyObject *resultobj; |
25494 | wxPyTreeCtrl *result; | |
25495 | char *kwnames[] = { | |
25496 | NULL | |
25497 | }; | |
25498 | ||
25499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25500 | { | |
e3b71cb8 | 25501 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25503 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25504 | ||
25505 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25506 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25507 | } |
b0f7404b | 25508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25509 | return resultobj; |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
c32bde28 | 25515 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25516 | PyObject *resultobj; |
25517 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25518 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25519 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25520 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25521 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25522 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25523 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25524 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25525 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25526 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 25527 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25528 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
25529 | bool result; | |
25530 | wxPoint temp4 ; | |
25531 | wxSize temp5 ; | |
ae8162c8 | 25532 | bool temp8 = false ; |
d14a1e28 RD |
25533 | PyObject * obj0 = 0 ; |
25534 | PyObject * obj1 = 0 ; | |
994141e6 | 25535 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25536 | PyObject * obj3 = 0 ; |
25537 | PyObject * obj4 = 0 ; | |
994141e6 | 25538 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25539 | PyObject * obj6 = 0 ; |
25540 | PyObject * obj7 = 0 ; | |
25541 | char *kwnames[] = { | |
25542 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25543 | }; | |
25544 | ||
994141e6 | 25545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
25546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25550 | if (obj2) { |
c32bde28 | 25551 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 25552 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25553 | } |
d14a1e28 RD |
25554 | if (obj3) { |
25555 | { | |
25556 | arg4 = &temp4; | |
25557 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25558 | } | |
25559 | } | |
25560 | if (obj4) { | |
25561 | { | |
25562 | arg5 = &temp5; | |
25563 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25564 | } | |
25565 | } | |
994141e6 | 25566 | if (obj5) { |
c32bde28 | 25567 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 25568 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25569 | } |
d14a1e28 | 25570 | if (obj6) { |
15afbcd0 RD |
25571 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
25572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25573 | SWIG_fail; | |
d14a1e28 | 25574 | if (arg7 == NULL) { |
15afbcd0 RD |
25575 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25576 | SWIG_fail; | |
d14a1e28 RD |
25577 | } |
25578 | } | |
25579 | if (obj7) { | |
25580 | { | |
25581 | arg8 = wxString_in_helper(obj7); | |
25582 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 25583 | temp8 = true; |
d14a1e28 RD |
25584 | } |
25585 | } | |
25586 | { | |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25589 | ||
25590 | wxPyEndAllowThreads(__tstate); | |
25591 | if (PyErr_Occurred()) SWIG_fail; | |
25592 | } | |
4f89f6a3 RD |
25593 | { |
25594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25595 | } | |
d14a1e28 RD |
25596 | { |
25597 | if (temp8) | |
25598 | delete arg8; | |
25599 | } | |
25600 | return resultobj; | |
25601 | fail: | |
25602 | { | |
25603 | if (temp8) | |
25604 | delete arg8; | |
25605 | } | |
25606 | return NULL; | |
25607 | } | |
25608 | ||
25609 | ||
c32bde28 | 25610 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25611 | PyObject *resultobj; |
25612 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25613 | PyObject *arg2 = (PyObject *) 0 ; | |
25614 | PyObject *arg3 = (PyObject *) 0 ; | |
25615 | PyObject * obj0 = 0 ; | |
25616 | PyObject * obj1 = 0 ; | |
25617 | PyObject * obj2 = 0 ; | |
25618 | char *kwnames[] = { | |
25619 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25620 | }; | |
25621 | ||
25622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25625 | arg2 = obj1; |
25626 | arg3 = obj2; | |
25627 | { | |
25628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25629 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25630 | ||
25631 | wxPyEndAllowThreads(__tstate); | |
25632 | if (PyErr_Occurred()) SWIG_fail; | |
25633 | } | |
25634 | Py_INCREF(Py_None); resultobj = Py_None; | |
25635 | return resultobj; | |
25636 | fail: | |
25637 | return NULL; | |
25638 | } | |
25639 | ||
25640 | ||
c32bde28 | 25641 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25642 | PyObject *resultobj; |
25643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25644 | size_t result; | |
25645 | PyObject * obj0 = 0 ; | |
25646 | char *kwnames[] = { | |
25647 | (char *) "self", NULL | |
25648 | }; | |
25649 | ||
25650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25653 | { |
25654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25655 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25656 | ||
25657 | wxPyEndAllowThreads(__tstate); | |
25658 | if (PyErr_Occurred()) SWIG_fail; | |
25659 | } | |
c32bde28 | 25660 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
25661 | return resultobj; |
25662 | fail: | |
25663 | return NULL; | |
25664 | } | |
25665 | ||
25666 | ||
c32bde28 | 25667 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25668 | PyObject *resultobj; |
25669 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25670 | unsigned int result; | |
25671 | PyObject * obj0 = 0 ; | |
25672 | char *kwnames[] = { | |
25673 | (char *) "self", NULL | |
25674 | }; | |
25675 | ||
25676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25679 | { |
25680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25681 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25682 | ||
25683 | wxPyEndAllowThreads(__tstate); | |
25684 | if (PyErr_Occurred()) SWIG_fail; | |
25685 | } | |
c32bde28 | 25686 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
25687 | return resultobj; |
25688 | fail: | |
25689 | return NULL; | |
25690 | } | |
25691 | ||
25692 | ||
c32bde28 | 25693 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25694 | PyObject *resultobj; |
25695 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25696 | unsigned int arg2 ; | |
25697 | PyObject * obj0 = 0 ; | |
25698 | PyObject * obj1 = 0 ; | |
25699 | char *kwnames[] = { | |
25700 | (char *) "self",(char *) "indent", NULL | |
25701 | }; | |
25702 | ||
25703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25706 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 25707 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25708 | { |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | (arg1)->SetIndent(arg2); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
25715 | Py_INCREF(Py_None); resultobj = Py_None; | |
25716 | return resultobj; | |
25717 | fail: | |
25718 | return NULL; | |
25719 | } | |
25720 | ||
25721 | ||
c32bde28 | 25722 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25723 | PyObject *resultobj; |
25724 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25725 | unsigned int result; | |
25726 | PyObject * obj0 = 0 ; | |
25727 | char *kwnames[] = { | |
25728 | (char *) "self", NULL | |
25729 | }; | |
25730 | ||
25731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25734 | { |
25735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25736 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25737 | ||
25738 | wxPyEndAllowThreads(__tstate); | |
25739 | if (PyErr_Occurred()) SWIG_fail; | |
25740 | } | |
c32bde28 | 25741 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d14a1e28 RD |
25742 | return resultobj; |
25743 | fail: | |
25744 | return NULL; | |
25745 | } | |
25746 | ||
25747 | ||
c32bde28 | 25748 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25749 | PyObject *resultobj; |
25750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25751 | unsigned int arg2 ; | |
25752 | PyObject * obj0 = 0 ; | |
25753 | PyObject * obj1 = 0 ; | |
25754 | char *kwnames[] = { | |
25755 | (char *) "self",(char *) "spacing", NULL | |
25756 | }; | |
25757 | ||
25758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25761 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
15afbcd0 | 25762 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25763 | { |
25764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25765 | (arg1)->SetSpacing(arg2); | |
25766 | ||
25767 | wxPyEndAllowThreads(__tstate); | |
25768 | if (PyErr_Occurred()) SWIG_fail; | |
25769 | } | |
25770 | Py_INCREF(Py_None); resultobj = Py_None; | |
25771 | return resultobj; | |
25772 | fail: | |
25773 | return NULL; | |
25774 | } | |
25775 | ||
25776 | ||
c32bde28 | 25777 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25778 | PyObject *resultobj; |
25779 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25780 | wxImageList *result; | |
25781 | PyObject * obj0 = 0 ; | |
25782 | char *kwnames[] = { | |
25783 | (char *) "self", NULL | |
25784 | }; | |
25785 | ||
25786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25789 | { |
25790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25791 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | { | |
412d302d | 25797 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25798 | } |
25799 | return resultobj; | |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
c32bde28 | 25805 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25806 | PyObject *resultobj; |
25807 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25808 | wxImageList *result; | |
25809 | PyObject * obj0 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25817 | { |
25818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25819 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25820 | ||
25821 | wxPyEndAllowThreads(__tstate); | |
25822 | if (PyErr_Occurred()) SWIG_fail; | |
25823 | } | |
25824 | { | |
412d302d | 25825 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25826 | } |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
c32bde28 | 25833 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25834 | PyObject *resultobj; |
25835 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25836 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25837 | PyObject * obj0 = 0 ; | |
25838 | PyObject * obj1 = 0 ; | |
25839 | char *kwnames[] = { | |
25840 | (char *) "self",(char *) "imageList", NULL | |
25841 | }; | |
25842 | ||
25843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25848 | { |
25849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25850 | (arg1)->SetImageList(arg2); | |
25851 | ||
25852 | wxPyEndAllowThreads(__tstate); | |
25853 | if (PyErr_Occurred()) SWIG_fail; | |
25854 | } | |
25855 | Py_INCREF(Py_None); resultobj = Py_None; | |
25856 | return resultobj; | |
25857 | fail: | |
25858 | return NULL; | |
25859 | } | |
25860 | ||
25861 | ||
c32bde28 | 25862 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25863 | PyObject *resultobj; |
25864 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25865 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25866 | PyObject * obj0 = 0 ; | |
25867 | PyObject * obj1 = 0 ; | |
25868 | char *kwnames[] = { | |
25869 | (char *) "self",(char *) "imageList", NULL | |
25870 | }; | |
25871 | ||
25872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25877 | { |
25878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25879 | (arg1)->SetStateImageList(arg2); | |
25880 | ||
25881 | wxPyEndAllowThreads(__tstate); | |
25882 | if (PyErr_Occurred()) SWIG_fail; | |
25883 | } | |
25884 | Py_INCREF(Py_None); resultobj = Py_None; | |
25885 | return resultobj; | |
25886 | fail: | |
25887 | return NULL; | |
25888 | } | |
25889 | ||
25890 | ||
c32bde28 | 25891 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25892 | PyObject *resultobj; |
25893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25894 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25895 | PyObject * obj0 = 0 ; | |
25896 | PyObject * obj1 = 0 ; | |
25897 | char *kwnames[] = { | |
25898 | (char *) "self",(char *) "imageList", NULL | |
25899 | }; | |
25900 | ||
25901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25905 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25906 | { |
25907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25908 | (arg1)->AssignImageList(arg2); | |
25909 | ||
25910 | wxPyEndAllowThreads(__tstate); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | } | |
25913 | Py_INCREF(Py_None); resultobj = Py_None; | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
c32bde28 | 25920 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25921 | PyObject *resultobj; |
25922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25923 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25924 | PyObject * obj0 = 0 ; | |
25925 | PyObject * obj1 = 0 ; | |
25926 | char *kwnames[] = { | |
25927 | (char *) "self",(char *) "imageList", NULL | |
25928 | }; | |
25929 | ||
25930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25934 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25935 | { |
25936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25937 | (arg1)->AssignStateImageList(arg2); | |
25938 | ||
25939 | wxPyEndAllowThreads(__tstate); | |
25940 | if (PyErr_Occurred()) SWIG_fail; | |
25941 | } | |
25942 | Py_INCREF(Py_None); resultobj = Py_None; | |
25943 | return resultobj; | |
25944 | fail: | |
25945 | return NULL; | |
25946 | } | |
25947 | ||
25948 | ||
c32bde28 | 25949 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25950 | PyObject *resultobj; |
25951 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25952 | wxTreeItemId *arg2 = 0 ; | |
25953 | wxString result; | |
25954 | PyObject * obj0 = 0 ; | |
25955 | PyObject * obj1 = 0 ; | |
25956 | char *kwnames[] = { | |
25957 | (char *) "self",(char *) "item", NULL | |
25958 | }; | |
25959 | ||
25960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25965 | SWIG_fail; | |
d14a1e28 | 25966 | if (arg2 == NULL) { |
15afbcd0 RD |
25967 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25968 | SWIG_fail; | |
d14a1e28 RD |
25969 | } |
25970 | { | |
25971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25972 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25973 | ||
25974 | wxPyEndAllowThreads(__tstate); | |
25975 | if (PyErr_Occurred()) SWIG_fail; | |
25976 | } | |
25977 | { | |
25978 | #if wxUSE_UNICODE | |
25979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25980 | #else | |
25981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25982 | #endif | |
25983 | } | |
25984 | return resultobj; | |
25985 | fail: | |
25986 | return NULL; | |
25987 | } | |
25988 | ||
25989 | ||
c32bde28 | 25990 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25991 | PyObject *resultobj; |
25992 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25993 | wxTreeItemId *arg2 = 0 ; | |
25994 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25995 | int result; | |
25996 | PyObject * obj0 = 0 ; | |
25997 | PyObject * obj1 = 0 ; | |
994141e6 | 25998 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25999 | char *kwnames[] = { |
26000 | (char *) "self",(char *) "item",(char *) "which", NULL | |
26001 | }; | |
26002 | ||
994141e6 | 26003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26008 | SWIG_fail; | |
d14a1e28 | 26009 | if (arg2 == NULL) { |
15afbcd0 RD |
26010 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26011 | SWIG_fail; | |
d14a1e28 | 26012 | } |
994141e6 | 26013 | if (obj2) { |
c32bde28 | 26014 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26015 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26016 | } |
d14a1e28 RD |
26017 | { |
26018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26019 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
26020 | ||
26021 | wxPyEndAllowThreads(__tstate); | |
26022 | if (PyErr_Occurred()) SWIG_fail; | |
26023 | } | |
c32bde28 | 26024 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
26025 | return resultobj; |
26026 | fail: | |
26027 | return NULL; | |
26028 | } | |
26029 | ||
26030 | ||
c32bde28 | 26031 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26032 | PyObject *resultobj; |
26033 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26034 | wxTreeItemId *arg2 = 0 ; | |
26035 | wxPyTreeItemData *result; | |
26036 | PyObject * obj0 = 0 ; | |
26037 | PyObject * obj1 = 0 ; | |
26038 | char *kwnames[] = { | |
26039 | (char *) "self",(char *) "item", NULL | |
26040 | }; | |
26041 | ||
26042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26047 | SWIG_fail; | |
d14a1e28 | 26048 | if (arg2 == NULL) { |
15afbcd0 RD |
26049 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26050 | SWIG_fail; | |
d14a1e28 RD |
26051 | } |
26052 | { | |
26053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26054 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
26055 | ||
26056 | wxPyEndAllowThreads(__tstate); | |
26057 | if (PyErr_Occurred()) SWIG_fail; | |
26058 | } | |
15afbcd0 | 26059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
26060 | return resultobj; |
26061 | fail: | |
26062 | return NULL; | |
26063 | } | |
26064 | ||
26065 | ||
c32bde28 | 26066 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26067 | PyObject *resultobj; |
26068 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26069 | wxTreeItemId *arg2 = 0 ; | |
26070 | PyObject *result; | |
26071 | PyObject * obj0 = 0 ; | |
26072 | PyObject * obj1 = 0 ; | |
26073 | char *kwnames[] = { | |
26074 | (char *) "self",(char *) "item", NULL | |
26075 | }; | |
26076 | ||
26077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26081 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26082 | SWIG_fail; | |
d14a1e28 | 26083 | if (arg2 == NULL) { |
15afbcd0 RD |
26084 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26085 | SWIG_fail; | |
d14a1e28 RD |
26086 | } |
26087 | { | |
26088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26089 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
26090 | ||
26091 | wxPyEndAllowThreads(__tstate); | |
26092 | if (PyErr_Occurred()) SWIG_fail; | |
26093 | } | |
26094 | resultobj = result; | |
26095 | return resultobj; | |
26096 | fail: | |
26097 | return NULL; | |
26098 | } | |
26099 | ||
26100 | ||
c32bde28 | 26101 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26102 | PyObject *resultobj; |
26103 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26104 | wxTreeItemId *arg2 = 0 ; | |
26105 | wxColour result; | |
26106 | PyObject * obj0 = 0 ; | |
26107 | PyObject * obj1 = 0 ; | |
26108 | char *kwnames[] = { | |
26109 | (char *) "self",(char *) "item", NULL | |
26110 | }; | |
26111 | ||
26112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26116 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26117 | SWIG_fail; | |
d14a1e28 | 26118 | if (arg2 == NULL) { |
15afbcd0 RD |
26119 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26120 | SWIG_fail; | |
d14a1e28 RD |
26121 | } |
26122 | { | |
26123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26124 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
26125 | ||
26126 | wxPyEndAllowThreads(__tstate); | |
26127 | if (PyErr_Occurred()) SWIG_fail; | |
26128 | } | |
26129 | { | |
26130 | wxColour * resultptr; | |
26131 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26132 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26133 | } |
26134 | return resultobj; | |
26135 | fail: | |
26136 | return NULL; | |
26137 | } | |
26138 | ||
26139 | ||
c32bde28 | 26140 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26141 | PyObject *resultobj; |
26142 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26143 | wxTreeItemId *arg2 = 0 ; | |
26144 | wxColour result; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | PyObject * obj1 = 0 ; | |
26147 | char *kwnames[] = { | |
26148 | (char *) "self",(char *) "item", NULL | |
26149 | }; | |
26150 | ||
26151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26155 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26156 | SWIG_fail; | |
d14a1e28 | 26157 | if (arg2 == NULL) { |
15afbcd0 RD |
26158 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26159 | SWIG_fail; | |
d14a1e28 RD |
26160 | } |
26161 | { | |
26162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26163 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
26164 | ||
26165 | wxPyEndAllowThreads(__tstate); | |
26166 | if (PyErr_Occurred()) SWIG_fail; | |
26167 | } | |
26168 | { | |
26169 | wxColour * resultptr; | |
26170 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26172 | } |
26173 | return resultobj; | |
26174 | fail: | |
26175 | return NULL; | |
26176 | } | |
26177 | ||
26178 | ||
c32bde28 | 26179 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26180 | PyObject *resultobj; |
26181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26182 | wxTreeItemId *arg2 = 0 ; | |
26183 | wxFont result; | |
26184 | PyObject * obj0 = 0 ; | |
26185 | PyObject * obj1 = 0 ; | |
26186 | char *kwnames[] = { | |
26187 | (char *) "self",(char *) "item", NULL | |
26188 | }; | |
26189 | ||
26190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26194 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26195 | SWIG_fail; | |
d14a1e28 | 26196 | if (arg2 == NULL) { |
15afbcd0 RD |
26197 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26198 | SWIG_fail; | |
d14a1e28 RD |
26199 | } |
26200 | { | |
26201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26202 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
26203 | ||
26204 | wxPyEndAllowThreads(__tstate); | |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
26206 | } | |
26207 | { | |
26208 | wxFont * resultptr; | |
26209 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 26210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
26211 | } |
26212 | return resultobj; | |
26213 | fail: | |
26214 | return NULL; | |
26215 | } | |
26216 | ||
26217 | ||
c32bde28 | 26218 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26219 | PyObject *resultobj; |
26220 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26221 | wxTreeItemId *arg2 = 0 ; | |
26222 | wxString *arg3 = 0 ; | |
ae8162c8 | 26223 | bool temp3 = false ; |
d14a1e28 RD |
26224 | PyObject * obj0 = 0 ; |
26225 | PyObject * obj1 = 0 ; | |
26226 | PyObject * obj2 = 0 ; | |
26227 | char *kwnames[] = { | |
26228 | (char *) "self",(char *) "item",(char *) "text", NULL | |
26229 | }; | |
26230 | ||
26231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26235 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26236 | SWIG_fail; | |
d14a1e28 | 26237 | if (arg2 == NULL) { |
15afbcd0 RD |
26238 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26239 | SWIG_fail; | |
d14a1e28 RD |
26240 | } |
26241 | { | |
26242 | arg3 = wxString_in_helper(obj2); | |
26243 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26244 | temp3 = true; |
d14a1e28 RD |
26245 | } |
26246 | { | |
26247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26248 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
26249 | ||
26250 | wxPyEndAllowThreads(__tstate); | |
26251 | if (PyErr_Occurred()) SWIG_fail; | |
26252 | } | |
26253 | Py_INCREF(Py_None); resultobj = Py_None; | |
26254 | { | |
26255 | if (temp3) | |
26256 | delete arg3; | |
26257 | } | |
26258 | return resultobj; | |
26259 | fail: | |
26260 | { | |
26261 | if (temp3) | |
26262 | delete arg3; | |
26263 | } | |
26264 | return NULL; | |
26265 | } | |
26266 | ||
26267 | ||
c32bde28 | 26268 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26269 | PyObject *resultobj; |
26270 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26271 | wxTreeItemId *arg2 = 0 ; | |
26272 | int arg3 ; | |
26273 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
26274 | PyObject * obj0 = 0 ; | |
26275 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26276 | PyObject * obj2 = 0 ; |
26277 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26278 | char *kwnames[] = { |
26279 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
26280 | }; | |
26281 | ||
994141e6 | 26282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26286 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26287 | SWIG_fail; | |
d14a1e28 | 26288 | if (arg2 == NULL) { |
15afbcd0 RD |
26289 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26290 | SWIG_fail; | |
994141e6 | 26291 | } |
c32bde28 | 26292 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 26293 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26294 | if (obj3) { |
c32bde28 | 26295 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 26296 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 26297 | } |
d14a1e28 RD |
26298 | { |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
26305 | Py_INCREF(Py_None); resultobj = Py_None; | |
26306 | return resultobj; | |
26307 | fail: | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
c32bde28 | 26312 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26313 | PyObject *resultobj; |
26314 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26315 | wxTreeItemId *arg2 = 0 ; | |
26316 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
26317 | PyObject * obj0 = 0 ; | |
26318 | PyObject * obj1 = 0 ; | |
26319 | PyObject * obj2 = 0 ; | |
26320 | char *kwnames[] = { | |
26321 | (char *) "self",(char *) "item",(char *) "data", NULL | |
26322 | }; | |
26323 | ||
26324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26329 | SWIG_fail; | |
d14a1e28 | 26330 | if (arg2 == NULL) { |
15afbcd0 RD |
26331 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26332 | SWIG_fail; | |
d14a1e28 | 26333 | } |
15afbcd0 RD |
26334 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
26335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26336 | { |
26337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26338 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26339 | ||
26340 | wxPyEndAllowThreads(__tstate); | |
26341 | if (PyErr_Occurred()) SWIG_fail; | |
26342 | } | |
26343 | Py_INCREF(Py_None); resultobj = Py_None; | |
26344 | return resultobj; | |
26345 | fail: | |
26346 | return NULL; | |
26347 | } | |
26348 | ||
26349 | ||
c32bde28 | 26350 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26351 | PyObject *resultobj; |
26352 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26353 | wxTreeItemId *arg2 = 0 ; | |
26354 | PyObject *arg3 = (PyObject *) 0 ; | |
26355 | PyObject * obj0 = 0 ; | |
26356 | PyObject * obj1 = 0 ; | |
26357 | PyObject * obj2 = 0 ; | |
26358 | char *kwnames[] = { | |
26359 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
26360 | }; | |
26361 | ||
26362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26366 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26367 | SWIG_fail; | |
d14a1e28 | 26368 | if (arg2 == NULL) { |
15afbcd0 RD |
26369 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26370 | SWIG_fail; | |
d14a1e28 RD |
26371 | } |
26372 | arg3 = obj2; | |
26373 | { | |
26374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26375 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26376 | ||
26377 | wxPyEndAllowThreads(__tstate); | |
26378 | if (PyErr_Occurred()) SWIG_fail; | |
26379 | } | |
26380 | Py_INCREF(Py_None); resultobj = Py_None; | |
26381 | return resultobj; | |
26382 | fail: | |
26383 | return NULL; | |
26384 | } | |
26385 | ||
26386 | ||
c32bde28 | 26387 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26388 | PyObject *resultobj; |
26389 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26390 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26391 | bool arg3 = (bool) true ; |
d14a1e28 RD |
26392 | PyObject * obj0 = 0 ; |
26393 | PyObject * obj1 = 0 ; | |
26394 | PyObject * obj2 = 0 ; | |
26395 | char *kwnames[] = { | |
26396 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26397 | }; | |
26398 | ||
26399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26403 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26404 | SWIG_fail; | |
d14a1e28 | 26405 | if (arg2 == NULL) { |
15afbcd0 RD |
26406 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26407 | SWIG_fail; | |
d14a1e28 RD |
26408 | } |
26409 | if (obj2) { | |
c32bde28 | 26410 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26411 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26412 | } |
26413 | { | |
26414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26415 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26416 | ||
26417 | wxPyEndAllowThreads(__tstate); | |
26418 | if (PyErr_Occurred()) SWIG_fail; | |
26419 | } | |
26420 | Py_INCREF(Py_None); resultobj = Py_None; | |
26421 | return resultobj; | |
26422 | fail: | |
26423 | return NULL; | |
26424 | } | |
26425 | ||
26426 | ||
c32bde28 | 26427 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26428 | PyObject *resultobj; |
26429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26430 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26431 | bool arg3 = (bool) true ; |
d14a1e28 RD |
26432 | PyObject * obj0 = 0 ; |
26433 | PyObject * obj1 = 0 ; | |
26434 | PyObject * obj2 = 0 ; | |
26435 | char *kwnames[] = { | |
26436 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26437 | }; | |
26438 | ||
26439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26443 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26444 | SWIG_fail; | |
d14a1e28 | 26445 | if (arg2 == NULL) { |
15afbcd0 RD |
26446 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26447 | SWIG_fail; | |
d14a1e28 RD |
26448 | } |
26449 | if (obj2) { | |
c32bde28 | 26450 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26451 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26452 | } |
26453 | { | |
26454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26455 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26456 | ||
26457 | wxPyEndAllowThreads(__tstate); | |
26458 | if (PyErr_Occurred()) SWIG_fail; | |
26459 | } | |
26460 | Py_INCREF(Py_None); resultobj = Py_None; | |
26461 | return resultobj; | |
26462 | fail: | |
26463 | return NULL; | |
26464 | } | |
26465 | ||
26466 | ||
c32bde28 | 26467 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26468 | PyObject *resultobj; |
26469 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26470 | wxTreeItemId *arg2 = 0 ; | |
26471 | wxColour *arg3 = 0 ; | |
26472 | wxColour temp3 ; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | PyObject * obj1 = 0 ; | |
26475 | PyObject * obj2 = 0 ; | |
26476 | char *kwnames[] = { | |
26477 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26478 | }; | |
26479 | ||
26480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26483 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26484 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26485 | SWIG_fail; | |
d14a1e28 | 26486 | if (arg2 == NULL) { |
15afbcd0 RD |
26487 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26488 | SWIG_fail; | |
d14a1e28 RD |
26489 | } |
26490 | { | |
26491 | arg3 = &temp3; | |
26492 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26493 | } | |
26494 | { | |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26497 | ||
26498 | wxPyEndAllowThreads(__tstate); | |
26499 | if (PyErr_Occurred()) SWIG_fail; | |
26500 | } | |
26501 | Py_INCREF(Py_None); resultobj = Py_None; | |
26502 | return resultobj; | |
26503 | fail: | |
26504 | return NULL; | |
26505 | } | |
26506 | ||
26507 | ||
c32bde28 | 26508 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26509 | PyObject *resultobj; |
26510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26511 | wxTreeItemId *arg2 = 0 ; | |
26512 | wxColour *arg3 = 0 ; | |
26513 | wxColour temp3 ; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | PyObject * obj1 = 0 ; | |
26516 | PyObject * obj2 = 0 ; | |
26517 | char *kwnames[] = { | |
26518 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26519 | }; | |
26520 | ||
26521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26525 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26526 | SWIG_fail; | |
d14a1e28 | 26527 | if (arg2 == NULL) { |
15afbcd0 RD |
26528 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26529 | SWIG_fail; | |
d14a1e28 RD |
26530 | } |
26531 | { | |
26532 | arg3 = &temp3; | |
26533 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26534 | } | |
26535 | { | |
26536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26537 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26538 | ||
26539 | wxPyEndAllowThreads(__tstate); | |
26540 | if (PyErr_Occurred()) SWIG_fail; | |
26541 | } | |
26542 | Py_INCREF(Py_None); resultobj = Py_None; | |
26543 | return resultobj; | |
26544 | fail: | |
26545 | return NULL; | |
26546 | } | |
26547 | ||
26548 | ||
c32bde28 | 26549 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26550 | PyObject *resultobj; |
26551 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26552 | wxTreeItemId *arg2 = 0 ; | |
26553 | wxFont *arg3 = 0 ; | |
26554 | PyObject * obj0 = 0 ; | |
26555 | PyObject * obj1 = 0 ; | |
26556 | PyObject * obj2 = 0 ; | |
26557 | char *kwnames[] = { | |
26558 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26559 | }; | |
26560 | ||
26561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26564 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26565 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26566 | SWIG_fail; | |
d14a1e28 | 26567 | if (arg2 == NULL) { |
15afbcd0 RD |
26568 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26569 | SWIG_fail; | |
d14a1e28 | 26570 | } |
15afbcd0 RD |
26571 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
26572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26573 | SWIG_fail; | |
d14a1e28 | 26574 | if (arg3 == NULL) { |
15afbcd0 RD |
26575 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26576 | SWIG_fail; | |
d14a1e28 RD |
26577 | } |
26578 | { | |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26580 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | } | |
26585 | Py_INCREF(Py_None); resultobj = Py_None; | |
26586 | return resultobj; | |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
c32bde28 | 26592 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26593 | PyObject *resultobj; |
26594 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26595 | wxTreeItemId *arg2 = 0 ; | |
26596 | bool result; | |
26597 | PyObject * obj0 = 0 ; | |
26598 | PyObject * obj1 = 0 ; | |
26599 | char *kwnames[] = { | |
26600 | (char *) "self",(char *) "item", NULL | |
26601 | }; | |
26602 | ||
26603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26608 | SWIG_fail; | |
d14a1e28 | 26609 | if (arg2 == NULL) { |
15afbcd0 RD |
26610 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26611 | SWIG_fail; | |
d14a1e28 RD |
26612 | } |
26613 | { | |
26614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26615 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26616 | ||
26617 | wxPyEndAllowThreads(__tstate); | |
26618 | if (PyErr_Occurred()) SWIG_fail; | |
26619 | } | |
4f89f6a3 RD |
26620 | { |
26621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26622 | } | |
d14a1e28 RD |
26623 | return resultobj; |
26624 | fail: | |
26625 | return NULL; | |
26626 | } | |
26627 | ||
26628 | ||
c32bde28 | 26629 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26630 | PyObject *resultobj; |
26631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26632 | wxTreeItemId *arg2 = 0 ; | |
26633 | bool result; | |
26634 | PyObject * obj0 = 0 ; | |
26635 | PyObject * obj1 = 0 ; | |
26636 | char *kwnames[] = { | |
26637 | (char *) "self",(char *) "item", NULL | |
26638 | }; | |
26639 | ||
26640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26645 | SWIG_fail; | |
d14a1e28 | 26646 | if (arg2 == NULL) { |
15afbcd0 RD |
26647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26648 | SWIG_fail; | |
d14a1e28 RD |
26649 | } |
26650 | { | |
26651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26652 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26653 | ||
26654 | wxPyEndAllowThreads(__tstate); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | } | |
4f89f6a3 RD |
26657 | { |
26658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26659 | } | |
d14a1e28 RD |
26660 | return resultobj; |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c32bde28 | 26666 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26667 | PyObject *resultobj; |
26668 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26669 | wxTreeItemId *arg2 = 0 ; | |
26670 | bool result; | |
26671 | PyObject * obj0 = 0 ; | |
26672 | PyObject * obj1 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self",(char *) "item", NULL | |
26675 | }; | |
26676 | ||
26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26681 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26682 | SWIG_fail; | |
d14a1e28 | 26683 | if (arg2 == NULL) { |
15afbcd0 RD |
26684 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26685 | SWIG_fail; | |
d14a1e28 RD |
26686 | } |
26687 | { | |
26688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26689 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26690 | ||
26691 | wxPyEndAllowThreads(__tstate); | |
26692 | if (PyErr_Occurred()) SWIG_fail; | |
26693 | } | |
4f89f6a3 RD |
26694 | { |
26695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26696 | } | |
d14a1e28 RD |
26697 | return resultobj; |
26698 | fail: | |
26699 | return NULL; | |
26700 | } | |
26701 | ||
26702 | ||
c32bde28 | 26703 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26704 | PyObject *resultobj; |
26705 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26706 | wxTreeItemId *arg2 = 0 ; | |
26707 | bool result; | |
26708 | PyObject * obj0 = 0 ; | |
26709 | PyObject * obj1 = 0 ; | |
26710 | char *kwnames[] = { | |
26711 | (char *) "self",(char *) "item", NULL | |
26712 | }; | |
26713 | ||
26714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26718 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26719 | SWIG_fail; | |
d14a1e28 | 26720 | if (arg2 == NULL) { |
15afbcd0 RD |
26721 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26722 | SWIG_fail; | |
d14a1e28 RD |
26723 | } |
26724 | { | |
26725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26726 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26727 | ||
26728 | wxPyEndAllowThreads(__tstate); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | } | |
4f89f6a3 RD |
26731 | { |
26732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26733 | } | |
d14a1e28 RD |
26734 | return resultobj; |
26735 | fail: | |
26736 | return NULL; | |
26737 | } | |
26738 | ||
26739 | ||
c32bde28 | 26740 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26741 | PyObject *resultobj; |
26742 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26743 | wxTreeItemId *arg2 = 0 ; | |
26744 | bool result; | |
26745 | PyObject * obj0 = 0 ; | |
26746 | PyObject * obj1 = 0 ; | |
26747 | char *kwnames[] = { | |
26748 | (char *) "self",(char *) "item", NULL | |
26749 | }; | |
26750 | ||
26751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26756 | SWIG_fail; | |
d14a1e28 | 26757 | if (arg2 == NULL) { |
15afbcd0 RD |
26758 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26759 | SWIG_fail; | |
d14a1e28 RD |
26760 | } |
26761 | { | |
26762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26763 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26764 | ||
26765 | wxPyEndAllowThreads(__tstate); | |
26766 | if (PyErr_Occurred()) SWIG_fail; | |
26767 | } | |
4f89f6a3 RD |
26768 | { |
26769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26770 | } | |
d14a1e28 RD |
26771 | return resultobj; |
26772 | fail: | |
26773 | return NULL; | |
26774 | } | |
26775 | ||
26776 | ||
c32bde28 | 26777 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26778 | PyObject *resultobj; |
26779 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26780 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 26781 | bool arg3 = (bool) true ; |
d14a1e28 RD |
26782 | size_t result; |
26783 | PyObject * obj0 = 0 ; | |
26784 | PyObject * obj1 = 0 ; | |
26785 | PyObject * obj2 = 0 ; | |
26786 | char *kwnames[] = { | |
26787 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26788 | }; | |
26789 | ||
26790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26794 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26795 | SWIG_fail; | |
d14a1e28 | 26796 | if (arg2 == NULL) { |
15afbcd0 RD |
26797 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26798 | SWIG_fail; | |
d14a1e28 RD |
26799 | } |
26800 | if (obj2) { | |
c32bde28 | 26801 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 26802 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
26803 | } |
26804 | { | |
26805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26806 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26807 | ||
26808 | wxPyEndAllowThreads(__tstate); | |
26809 | if (PyErr_Occurred()) SWIG_fail; | |
26810 | } | |
c32bde28 | 26811 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d14a1e28 RD |
26812 | return resultobj; |
26813 | fail: | |
26814 | return NULL; | |
26815 | } | |
26816 | ||
26817 | ||
c32bde28 | 26818 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26819 | PyObject *resultobj; |
26820 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26821 | wxTreeItemId result; | |
26822 | PyObject * obj0 = 0 ; | |
26823 | char *kwnames[] = { | |
26824 | (char *) "self", NULL | |
26825 | }; | |
26826 | ||
26827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26830 | { |
26831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26832 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26833 | ||
26834 | wxPyEndAllowThreads(__tstate); | |
26835 | if (PyErr_Occurred()) SWIG_fail; | |
26836 | } | |
26837 | { | |
26838 | wxTreeItemId * resultptr; | |
26839 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26841 | } |
26842 | return resultobj; | |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
c32bde28 | 26848 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26849 | PyObject *resultobj; |
26850 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26851 | wxTreeItemId result; | |
26852 | PyObject * obj0 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self", NULL | |
26855 | }; | |
26856 | ||
26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26860 | { |
26861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26862 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26863 | ||
26864 | wxPyEndAllowThreads(__tstate); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | { | |
26868 | wxTreeItemId * resultptr; | |
26869 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26871 | } |
26872 | return resultobj; | |
26873 | fail: | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
c32bde28 | 26878 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26879 | PyObject *resultobj; |
26880 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26881 | PyObject *result; | |
26882 | PyObject * obj0 = 0 ; | |
26883 | char *kwnames[] = { | |
26884 | (char *) "self", NULL | |
26885 | }; | |
26886 | ||
26887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26890 | { |
26891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26892 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26893 | ||
26894 | wxPyEndAllowThreads(__tstate); | |
26895 | if (PyErr_Occurred()) SWIG_fail; | |
26896 | } | |
26897 | resultobj = result; | |
26898 | return resultobj; | |
26899 | fail: | |
26900 | return NULL; | |
26901 | } | |
26902 | ||
26903 | ||
c32bde28 | 26904 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26905 | PyObject *resultobj; |
26906 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26907 | wxTreeItemId *arg2 = 0 ; | |
26908 | wxTreeItemId result; | |
26909 | PyObject * obj0 = 0 ; | |
26910 | PyObject * obj1 = 0 ; | |
26911 | char *kwnames[] = { | |
26912 | (char *) "self",(char *) "item", NULL | |
26913 | }; | |
26914 | ||
26915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26920 | SWIG_fail; | |
d14a1e28 | 26921 | if (arg2 == NULL) { |
15afbcd0 RD |
26922 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26923 | SWIG_fail; | |
d14a1e28 RD |
26924 | } |
26925 | { | |
26926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26927 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26928 | ||
26929 | wxPyEndAllowThreads(__tstate); | |
26930 | if (PyErr_Occurred()) SWIG_fail; | |
26931 | } | |
26932 | { | |
26933 | wxTreeItemId * resultptr; | |
26934 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26935 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26936 | } |
26937 | return resultobj; | |
26938 | fail: | |
26939 | return NULL; | |
26940 | } | |
26941 | ||
26942 | ||
c32bde28 | 26943 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26944 | PyObject *resultobj; |
26945 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26946 | wxTreeItemId *arg2 = 0 ; | |
26947 | PyObject *result; | |
26948 | PyObject * obj0 = 0 ; | |
26949 | PyObject * obj1 = 0 ; | |
26950 | char *kwnames[] = { | |
26951 | (char *) "self",(char *) "item", NULL | |
26952 | }; | |
26953 | ||
26954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26959 | SWIG_fail; | |
d14a1e28 | 26960 | if (arg2 == NULL) { |
15afbcd0 RD |
26961 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26962 | SWIG_fail; | |
d14a1e28 RD |
26963 | } |
26964 | { | |
26965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26966 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26967 | ||
26968 | wxPyEndAllowThreads(__tstate); | |
26969 | if (PyErr_Occurred()) SWIG_fail; | |
26970 | } | |
26971 | resultobj = result; | |
26972 | return resultobj; | |
26973 | fail: | |
26974 | return NULL; | |
26975 | } | |
26976 | ||
26977 | ||
c32bde28 | 26978 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26979 | PyObject *resultobj; |
26980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26981 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26982 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26983 | PyObject *result; |
26984 | PyObject * obj0 = 0 ; | |
26985 | PyObject * obj1 = 0 ; | |
26986 | PyObject * obj2 = 0 ; | |
26987 | char *kwnames[] = { | |
26988 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26989 | }; | |
26990 | ||
26991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26995 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26996 | SWIG_fail; | |
d14a1e28 | 26997 | if (arg2 == NULL) { |
15afbcd0 RD |
26998 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26999 | SWIG_fail; | |
d14a1e28 | 27000 | } |
15afbcd0 | 27001 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
27002 | { |
27003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 27004 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
27005 | |
27006 | wxPyEndAllowThreads(__tstate); | |
27007 | if (PyErr_Occurred()) SWIG_fail; | |
27008 | } | |
27009 | resultobj = result; | |
27010 | return resultobj; | |
27011 | fail: | |
27012 | return NULL; | |
27013 | } | |
27014 | ||
27015 | ||
c32bde28 | 27016 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27017 | PyObject *resultobj; |
27018 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27019 | wxTreeItemId *arg2 = 0 ; | |
27020 | wxTreeItemId 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_GetLastChild",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 = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
27040 | ||
27041 | wxPyEndAllowThreads(__tstate); | |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
27043 | } | |
27044 | { | |
27045 | wxTreeItemId * resultptr; | |
27046 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27047 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27048 | } |
27049 | return resultobj; | |
27050 | fail: | |
27051 | return NULL; | |
27052 | } | |
27053 | ||
27054 | ||
c32bde28 | 27055 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27056 | PyObject *resultobj; |
27057 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27058 | wxTreeItemId *arg2 = 0 ; | |
27059 | wxTreeItemId result; | |
27060 | PyObject * obj0 = 0 ; | |
27061 | PyObject * obj1 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "self",(char *) "item", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) 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 | { | |
27077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27078 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
27079 | ||
27080 | wxPyEndAllowThreads(__tstate); | |
27081 | if (PyErr_Occurred()) SWIG_fail; | |
27082 | } | |
27083 | { | |
27084 | wxTreeItemId * resultptr; | |
27085 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27086 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27087 | } |
27088 | return resultobj; | |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
c32bde28 | 27094 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27095 | PyObject *resultobj; |
27096 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27097 | wxTreeItemId *arg2 = 0 ; | |
27098 | wxTreeItemId result; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | PyObject * obj1 = 0 ; | |
27101 | char *kwnames[] = { | |
27102 | (char *) "self",(char *) "item", NULL | |
27103 | }; | |
27104 | ||
27105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27110 | SWIG_fail; | |
d14a1e28 | 27111 | if (arg2 == NULL) { |
15afbcd0 RD |
27112 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27113 | SWIG_fail; | |
d14a1e28 RD |
27114 | } |
27115 | { | |
27116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27117 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
27118 | ||
27119 | wxPyEndAllowThreads(__tstate); | |
27120 | if (PyErr_Occurred()) SWIG_fail; | |
27121 | } | |
27122 | { | |
27123 | wxTreeItemId * resultptr; | |
27124 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27125 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27126 | } |
27127 | return resultobj; | |
27128 | fail: | |
27129 | return NULL; | |
27130 | } | |
27131 | ||
27132 | ||
c32bde28 | 27133 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27134 | PyObject *resultobj; |
27135 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27136 | wxTreeItemId result; | |
27137 | PyObject * obj0 = 0 ; | |
27138 | char *kwnames[] = { | |
27139 | (char *) "self", NULL | |
27140 | }; | |
27141 | ||
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27145 | { |
27146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27147 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
27148 | ||
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | { | |
27153 | wxTreeItemId * resultptr; | |
27154 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27156 | } |
27157 | return resultobj; | |
27158 | fail: | |
27159 | return NULL; | |
27160 | } | |
27161 | ||
27162 | ||
c32bde28 | 27163 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27164 | PyObject *resultobj; |
27165 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27166 | wxTreeItemId *arg2 = 0 ; | |
27167 | wxTreeItemId result; | |
27168 | PyObject * obj0 = 0 ; | |
27169 | PyObject * obj1 = 0 ; | |
27170 | char *kwnames[] = { | |
27171 | (char *) "self",(char *) "item", NULL | |
27172 | }; | |
27173 | ||
27174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27179 | SWIG_fail; | |
d14a1e28 | 27180 | if (arg2 == NULL) { |
15afbcd0 RD |
27181 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27182 | SWIG_fail; | |
d14a1e28 RD |
27183 | } |
27184 | { | |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27186 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
27187 | ||
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
27191 | { | |
27192 | wxTreeItemId * resultptr; | |
27193 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27195 | } |
27196 | return resultobj; | |
27197 | fail: | |
27198 | return NULL; | |
27199 | } | |
27200 | ||
27201 | ||
c32bde28 | 27202 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27203 | PyObject *resultobj; |
27204 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27205 | wxTreeItemId *arg2 = 0 ; | |
27206 | wxTreeItemId result; | |
27207 | PyObject * obj0 = 0 ; | |
27208 | PyObject * obj1 = 0 ; | |
27209 | char *kwnames[] = { | |
27210 | (char *) "self",(char *) "item", NULL | |
27211 | }; | |
27212 | ||
27213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27216 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27217 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27218 | SWIG_fail; | |
d14a1e28 | 27219 | if (arg2 == NULL) { |
15afbcd0 RD |
27220 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27221 | SWIG_fail; | |
d14a1e28 RD |
27222 | } |
27223 | { | |
27224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27225 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
27226 | ||
27227 | wxPyEndAllowThreads(__tstate); | |
27228 | if (PyErr_Occurred()) SWIG_fail; | |
27229 | } | |
27230 | { | |
27231 | wxTreeItemId * resultptr; | |
27232 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27234 | } |
27235 | return resultobj; | |
27236 | fail: | |
27237 | return NULL; | |
27238 | } | |
27239 | ||
27240 | ||
c32bde28 | 27241 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27242 | PyObject *resultobj; |
27243 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27244 | wxString *arg2 = 0 ; | |
27245 | int arg3 = (int) -1 ; | |
27246 | int arg4 = (int) -1 ; | |
27247 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
27248 | wxTreeItemId result; | |
ae8162c8 | 27249 | bool temp2 = false ; |
d14a1e28 RD |
27250 | PyObject * obj0 = 0 ; |
27251 | PyObject * obj1 = 0 ; | |
994141e6 RD |
27252 | PyObject * obj2 = 0 ; |
27253 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
27254 | PyObject * obj4 = 0 ; |
27255 | char *kwnames[] = { | |
27256 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27257 | }; | |
27258 | ||
994141e6 | 27259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
27260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27262 | { |
27263 | arg2 = wxString_in_helper(obj1); | |
27264 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27265 | temp2 = true; |
d14a1e28 | 27266 | } |
994141e6 | 27267 | if (obj2) { |
c32bde28 | 27268 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 27269 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27270 | } |
27271 | if (obj3) { | |
c32bde28 | 27272 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27273 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27274 | } |
d14a1e28 | 27275 | if (obj4) { |
15afbcd0 RD |
27276 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
27277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27278 | } |
27279 | { | |
27280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27281 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
27282 | ||
27283 | wxPyEndAllowThreads(__tstate); | |
27284 | if (PyErr_Occurred()) SWIG_fail; | |
27285 | } | |
27286 | { | |
27287 | wxTreeItemId * resultptr; | |
27288 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27289 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27290 | } |
27291 | { | |
27292 | if (temp2) | |
27293 | delete arg2; | |
27294 | } | |
27295 | return resultobj; | |
27296 | fail: | |
27297 | { | |
27298 | if (temp2) | |
27299 | delete arg2; | |
27300 | } | |
27301 | return NULL; | |
27302 | } | |
27303 | ||
27304 | ||
c32bde28 | 27305 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27306 | PyObject *resultobj; |
27307 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27308 | wxTreeItemId *arg2 = 0 ; | |
27309 | wxString *arg3 = 0 ; | |
27310 | int arg4 = (int) -1 ; | |
27311 | int arg5 = (int) -1 ; | |
27312 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27313 | wxTreeItemId result; | |
ae8162c8 | 27314 | bool temp3 = false ; |
d14a1e28 RD |
27315 | PyObject * obj0 = 0 ; |
27316 | PyObject * obj1 = 0 ; | |
27317 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27318 | PyObject * obj3 = 0 ; |
27319 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27320 | PyObject * obj5 = 0 ; |
27321 | char *kwnames[] = { | |
27322 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27323 | }; | |
27324 | ||
994141e6 | 27325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27329 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27330 | SWIG_fail; | |
d14a1e28 | 27331 | if (arg2 == NULL) { |
15afbcd0 RD |
27332 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27333 | SWIG_fail; | |
d14a1e28 RD |
27334 | } |
27335 | { | |
27336 | arg3 = wxString_in_helper(obj2); | |
27337 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27338 | temp3 = true; |
d14a1e28 | 27339 | } |
994141e6 | 27340 | if (obj3) { |
c32bde28 | 27341 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27342 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27343 | } |
27344 | if (obj4) { | |
c32bde28 | 27345 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27346 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27347 | } |
d14a1e28 | 27348 | if (obj5) { |
15afbcd0 RD |
27349 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27351 | } |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
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 | { | |
27365 | if (temp3) | |
27366 | delete arg3; | |
27367 | } | |
27368 | return resultobj; | |
27369 | fail: | |
27370 | { | |
27371 | if (temp3) | |
27372 | delete arg3; | |
27373 | } | |
27374 | return NULL; | |
27375 | } | |
27376 | ||
27377 | ||
c32bde28 | 27378 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27379 | PyObject *resultobj; |
27380 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27381 | wxTreeItemId *arg2 = 0 ; | |
27382 | wxTreeItemId *arg3 = 0 ; | |
27383 | wxString *arg4 = 0 ; | |
27384 | int arg5 = (int) -1 ; | |
27385 | int arg6 = (int) -1 ; | |
27386 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27387 | wxTreeItemId result; | |
ae8162c8 | 27388 | bool temp4 = false ; |
d14a1e28 RD |
27389 | PyObject * obj0 = 0 ; |
27390 | PyObject * obj1 = 0 ; | |
27391 | PyObject * obj2 = 0 ; | |
27392 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27393 | PyObject * obj4 = 0 ; |
27394 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27395 | PyObject * obj6 = 0 ; |
27396 | char *kwnames[] = { | |
27397 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27398 | }; | |
27399 | ||
994141e6 | 27400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27405 | SWIG_fail; | |
d14a1e28 | 27406 | if (arg2 == NULL) { |
15afbcd0 RD |
27407 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27408 | SWIG_fail; | |
d14a1e28 | 27409 | } |
15afbcd0 RD |
27410 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
27411 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27412 | SWIG_fail; | |
d14a1e28 | 27413 | if (arg3 == NULL) { |
15afbcd0 RD |
27414 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27415 | SWIG_fail; | |
d14a1e28 RD |
27416 | } |
27417 | { | |
27418 | arg4 = wxString_in_helper(obj3); | |
27419 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27420 | temp4 = true; |
d14a1e28 | 27421 | } |
994141e6 | 27422 | if (obj4) { |
c32bde28 | 27423 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27424 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27425 | } |
27426 | if (obj5) { | |
c32bde28 | 27427 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27428 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27429 | } |
d14a1e28 | 27430 | if (obj6) { |
15afbcd0 RD |
27431 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27433 | } |
27434 | { | |
27435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27436 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27437 | ||
27438 | wxPyEndAllowThreads(__tstate); | |
27439 | if (PyErr_Occurred()) SWIG_fail; | |
27440 | } | |
27441 | { | |
27442 | wxTreeItemId * resultptr; | |
27443 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27445 | } |
27446 | { | |
27447 | if (temp4) | |
27448 | delete arg4; | |
27449 | } | |
27450 | return resultobj; | |
27451 | fail: | |
27452 | { | |
27453 | if (temp4) | |
27454 | delete arg4; | |
27455 | } | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
c32bde28 | 27460 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27461 | PyObject *resultobj; |
27462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27463 | wxTreeItemId *arg2 = 0 ; | |
27464 | size_t arg3 ; | |
27465 | wxString *arg4 = 0 ; | |
27466 | int arg5 = (int) -1 ; | |
27467 | int arg6 = (int) -1 ; | |
27468 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27469 | wxTreeItemId result; | |
ae8162c8 | 27470 | bool temp4 = false ; |
d14a1e28 RD |
27471 | PyObject * obj0 = 0 ; |
27472 | PyObject * obj1 = 0 ; | |
27473 | PyObject * obj2 = 0 ; | |
27474 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27475 | PyObject * obj4 = 0 ; |
27476 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27477 | PyObject * obj6 = 0 ; |
27478 | char *kwnames[] = { | |
27479 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27480 | }; | |
27481 | ||
994141e6 | 27482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27487 | SWIG_fail; | |
d14a1e28 | 27488 | if (arg2 == NULL) { |
15afbcd0 RD |
27489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27490 | SWIG_fail; | |
a41e16b6 | 27491 | } |
c32bde28 | 27492 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
15afbcd0 | 27493 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27494 | { |
27495 | arg4 = wxString_in_helper(obj3); | |
27496 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 27497 | temp4 = true; |
d14a1e28 | 27498 | } |
994141e6 | 27499 | if (obj4) { |
c32bde28 | 27500 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27501 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27502 | } |
27503 | if (obj5) { | |
c32bde28 | 27504 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 27505 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27506 | } |
d14a1e28 | 27507 | if (obj6) { |
15afbcd0 RD |
27508 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27510 | } |
27511 | { | |
27512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27513 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27514 | ||
27515 | wxPyEndAllowThreads(__tstate); | |
27516 | if (PyErr_Occurred()) SWIG_fail; | |
27517 | } | |
27518 | { | |
27519 | wxTreeItemId * resultptr; | |
27520 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27522 | } |
27523 | { | |
27524 | if (temp4) | |
27525 | delete arg4; | |
27526 | } | |
27527 | return resultobj; | |
27528 | fail: | |
27529 | { | |
27530 | if (temp4) | |
27531 | delete arg4; | |
27532 | } | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
c32bde28 | 27537 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27538 | PyObject *resultobj; |
27539 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27540 | wxTreeItemId *arg2 = 0 ; | |
27541 | wxString *arg3 = 0 ; | |
27542 | int arg4 = (int) -1 ; | |
27543 | int arg5 = (int) -1 ; | |
27544 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27545 | wxTreeItemId result; | |
ae8162c8 | 27546 | bool temp3 = false ; |
d14a1e28 RD |
27547 | PyObject * obj0 = 0 ; |
27548 | PyObject * obj1 = 0 ; | |
27549 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27550 | PyObject * obj3 = 0 ; |
27551 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27552 | PyObject * obj5 = 0 ; |
27553 | char *kwnames[] = { | |
27554 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27555 | }; | |
27556 | ||
994141e6 | 27557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27560 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27561 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27562 | SWIG_fail; | |
d14a1e28 | 27563 | if (arg2 == NULL) { |
15afbcd0 RD |
27564 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27565 | SWIG_fail; | |
d14a1e28 RD |
27566 | } |
27567 | { | |
27568 | arg3 = wxString_in_helper(obj2); | |
27569 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27570 | temp3 = true; |
d14a1e28 | 27571 | } |
994141e6 | 27572 | if (obj3) { |
c32bde28 | 27573 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 27574 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
27575 | } |
27576 | if (obj4) { | |
c32bde28 | 27577 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 27578 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 27579 | } |
d14a1e28 | 27580 | if (obj5) { |
15afbcd0 RD |
27581 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27583 | } |
27584 | { | |
27585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27586 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27587 | ||
27588 | wxPyEndAllowThreads(__tstate); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | } | |
27591 | { | |
27592 | wxTreeItemId * resultptr; | |
27593 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27595 | } |
27596 | { | |
27597 | if (temp3) | |
27598 | delete arg3; | |
27599 | } | |
27600 | return resultobj; | |
27601 | fail: | |
27602 | { | |
27603 | if (temp3) | |
27604 | delete arg3; | |
27605 | } | |
27606 | return NULL; | |
27607 | } | |
27608 | ||
27609 | ||
c32bde28 | 27610 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27611 | PyObject *resultobj; |
27612 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27613 | wxTreeItemId *arg2 = 0 ; | |
27614 | PyObject * obj0 = 0 ; | |
27615 | PyObject * obj1 = 0 ; | |
27616 | char *kwnames[] = { | |
27617 | (char *) "self",(char *) "item", NULL | |
27618 | }; | |
27619 | ||
27620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27624 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27625 | SWIG_fail; | |
d14a1e28 | 27626 | if (arg2 == NULL) { |
15afbcd0 RD |
27627 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27628 | SWIG_fail; | |
d14a1e28 RD |
27629 | } |
27630 | { | |
27631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27632 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27633 | ||
27634 | wxPyEndAllowThreads(__tstate); | |
27635 | if (PyErr_Occurred()) SWIG_fail; | |
27636 | } | |
27637 | Py_INCREF(Py_None); resultobj = Py_None; | |
27638 | return resultobj; | |
27639 | fail: | |
27640 | return NULL; | |
27641 | } | |
27642 | ||
27643 | ||
c32bde28 | 27644 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27645 | PyObject *resultobj; |
27646 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27647 | wxTreeItemId *arg2 = 0 ; | |
27648 | PyObject * obj0 = 0 ; | |
27649 | PyObject * obj1 = 0 ; | |
27650 | char *kwnames[] = { | |
27651 | (char *) "self",(char *) "item", NULL | |
27652 | }; | |
27653 | ||
27654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27658 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27659 | SWIG_fail; | |
d14a1e28 | 27660 | if (arg2 == NULL) { |
15afbcd0 RD |
27661 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27662 | SWIG_fail; | |
d14a1e28 RD |
27663 | } |
27664 | { | |
27665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27666 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27667 | ||
27668 | wxPyEndAllowThreads(__tstate); | |
27669 | if (PyErr_Occurred()) SWIG_fail; | |
27670 | } | |
27671 | Py_INCREF(Py_None); resultobj = Py_None; | |
27672 | return resultobj; | |
27673 | fail: | |
27674 | return NULL; | |
27675 | } | |
27676 | ||
27677 | ||
c32bde28 | 27678 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27679 | PyObject *resultobj; |
27680 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27681 | PyObject * obj0 = 0 ; | |
27682 | char *kwnames[] = { | |
27683 | (char *) "self", NULL | |
27684 | }; | |
27685 | ||
27686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27689 | { |
27690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27691 | (arg1)->DeleteAllItems(); | |
27692 | ||
27693 | wxPyEndAllowThreads(__tstate); | |
27694 | if (PyErr_Occurred()) SWIG_fail; | |
27695 | } | |
27696 | Py_INCREF(Py_None); resultobj = Py_None; | |
27697 | return resultobj; | |
27698 | fail: | |
27699 | return NULL; | |
27700 | } | |
27701 | ||
27702 | ||
c32bde28 | 27703 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27704 | PyObject *resultobj; |
27705 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27706 | wxTreeItemId *arg2 = 0 ; | |
27707 | PyObject * obj0 = 0 ; | |
27708 | PyObject * obj1 = 0 ; | |
27709 | char *kwnames[] = { | |
27710 | (char *) "self",(char *) "item", NULL | |
27711 | }; | |
27712 | ||
27713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27717 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27718 | SWIG_fail; | |
d14a1e28 | 27719 | if (arg2 == NULL) { |
15afbcd0 RD |
27720 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27721 | SWIG_fail; | |
d14a1e28 RD |
27722 | } |
27723 | { | |
27724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27725 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27726 | ||
27727 | wxPyEndAllowThreads(__tstate); | |
27728 | if (PyErr_Occurred()) SWIG_fail; | |
27729 | } | |
27730 | Py_INCREF(Py_None); resultobj = Py_None; | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
27734 | } | |
27735 | ||
27736 | ||
c32bde28 | 27737 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27738 | PyObject *resultobj; |
27739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27740 | wxTreeItemId *arg2 = 0 ; | |
27741 | PyObject * obj0 = 0 ; | |
27742 | PyObject * obj1 = 0 ; | |
27743 | char *kwnames[] = { | |
27744 | (char *) "self",(char *) "item", NULL | |
27745 | }; | |
27746 | ||
27747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27752 | SWIG_fail; | |
d14a1e28 | 27753 | if (arg2 == NULL) { |
15afbcd0 RD |
27754 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27755 | SWIG_fail; | |
d14a1e28 RD |
27756 | } |
27757 | { | |
27758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27759 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27760 | ||
27761 | wxPyEndAllowThreads(__tstate); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
27764 | Py_INCREF(Py_None); resultobj = Py_None; | |
27765 | return resultobj; | |
27766 | fail: | |
27767 | return NULL; | |
27768 | } | |
27769 | ||
27770 | ||
c32bde28 | 27771 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27772 | PyObject *resultobj; |
27773 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27774 | wxTreeItemId *arg2 = 0 ; | |
27775 | PyObject * obj0 = 0 ; | |
27776 | PyObject * obj1 = 0 ; | |
27777 | char *kwnames[] = { | |
27778 | (char *) "self",(char *) "item", NULL | |
27779 | }; | |
27780 | ||
27781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27785 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27786 | SWIG_fail; | |
d14a1e28 | 27787 | if (arg2 == NULL) { |
15afbcd0 RD |
27788 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27789 | SWIG_fail; | |
d14a1e28 RD |
27790 | } |
27791 | { | |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27793 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | Py_INCREF(Py_None); resultobj = Py_None; | |
27799 | return resultobj; | |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
c32bde28 | 27805 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27806 | PyObject *resultobj; |
27807 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27808 | wxTreeItemId *arg2 = 0 ; | |
27809 | PyObject * obj0 = 0 ; | |
27810 | PyObject * obj1 = 0 ; | |
27811 | char *kwnames[] = { | |
27812 | (char *) "self",(char *) "item", NULL | |
27813 | }; | |
27814 | ||
27815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27820 | SWIG_fail; | |
d14a1e28 | 27821 | if (arg2 == NULL) { |
15afbcd0 RD |
27822 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27823 | SWIG_fail; | |
d14a1e28 RD |
27824 | } |
27825 | { | |
27826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27827 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27828 | ||
27829 | wxPyEndAllowThreads(__tstate); | |
27830 | if (PyErr_Occurred()) SWIG_fail; | |
27831 | } | |
27832 | Py_INCREF(Py_None); resultobj = Py_None; | |
27833 | return resultobj; | |
27834 | fail: | |
27835 | return NULL; | |
27836 | } | |
27837 | ||
27838 | ||
c32bde28 | 27839 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27840 | PyObject *resultobj; |
27841 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27842 | PyObject * obj0 = 0 ; | |
27843 | char *kwnames[] = { | |
27844 | (char *) "self", NULL | |
27845 | }; | |
27846 | ||
27847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27850 | { |
27851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27852 | (arg1)->Unselect(); | |
27853 | ||
27854 | wxPyEndAllowThreads(__tstate); | |
27855 | if (PyErr_Occurred()) SWIG_fail; | |
27856 | } | |
27857 | Py_INCREF(Py_None); resultobj = Py_None; | |
27858 | return resultobj; | |
27859 | fail: | |
27860 | return NULL; | |
27861 | } | |
27862 | ||
27863 | ||
c32bde28 | 27864 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
27865 | PyObject *resultobj; |
27866 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27867 | wxTreeItemId *arg2 = 0 ; | |
27868 | PyObject * obj0 = 0 ; | |
27869 | PyObject * obj1 = 0 ; | |
27870 | char *kwnames[] = { | |
27871 | (char *) "self",(char *) "item", NULL | |
27872 | }; | |
27873 | ||
27874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27879 | SWIG_fail; | |
3adfb63b | 27880 | if (arg2 == NULL) { |
15afbcd0 RD |
27881 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27882 | SWIG_fail; | |
3adfb63b RD |
27883 | } |
27884 | { | |
27885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27886 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27887 | ||
27888 | wxPyEndAllowThreads(__tstate); | |
27889 | if (PyErr_Occurred()) SWIG_fail; | |
27890 | } | |
27891 | Py_INCREF(Py_None); resultobj = Py_None; | |
27892 | return resultobj; | |
27893 | fail: | |
27894 | return NULL; | |
27895 | } | |
27896 | ||
27897 | ||
c32bde28 | 27898 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27899 | PyObject *resultobj; |
27900 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27901 | PyObject * obj0 = 0 ; | |
27902 | char *kwnames[] = { | |
27903 | (char *) "self", NULL | |
27904 | }; | |
27905 | ||
27906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27909 | { |
27910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27911 | (arg1)->UnselectAll(); | |
27912 | ||
27913 | wxPyEndAllowThreads(__tstate); | |
27914 | if (PyErr_Occurred()) SWIG_fail; | |
27915 | } | |
27916 | Py_INCREF(Py_None); resultobj = Py_None; | |
27917 | return resultobj; | |
27918 | fail: | |
27919 | return NULL; | |
27920 | } | |
27921 | ||
27922 | ||
c32bde28 | 27923 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
27924 | PyObject *resultobj; |
27925 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27926 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 27927 | bool arg3 = (bool) true ; |
3adfb63b RD |
27928 | PyObject * obj0 = 0 ; |
27929 | PyObject * obj1 = 0 ; | |
27930 | PyObject * obj2 = 0 ; | |
27931 | char *kwnames[] = { | |
27932 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27933 | }; | |
27934 | ||
27935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27940 | SWIG_fail; | |
3adfb63b | 27941 | if (arg2 == NULL) { |
15afbcd0 RD |
27942 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27943 | SWIG_fail; | |
3adfb63b RD |
27944 | } |
27945 | if (obj2) { | |
c32bde28 | 27946 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 27947 | if (PyErr_Occurred()) SWIG_fail; |
3adfb63b RD |
27948 | } |
27949 | { | |
27950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27951 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27952 | ||
27953 | wxPyEndAllowThreads(__tstate); | |
27954 | if (PyErr_Occurred()) SWIG_fail; | |
27955 | } | |
27956 | Py_INCREF(Py_None); resultobj = Py_None; | |
27957 | return resultobj; | |
27958 | fail: | |
27959 | return NULL; | |
27960 | } | |
27961 | ||
27962 | ||
c32bde28 | 27963 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27964 | PyObject *resultobj; |
27965 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27966 | wxTreeItemId *arg2 = 0 ; | |
27967 | PyObject * obj0 = 0 ; | |
27968 | PyObject * obj1 = 0 ; | |
27969 | char *kwnames[] = { | |
27970 | (char *) "self",(char *) "item", NULL | |
27971 | }; | |
27972 | ||
3adfb63b | 27973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27977 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27978 | SWIG_fail; | |
d14a1e28 | 27979 | if (arg2 == NULL) { |
15afbcd0 RD |
27980 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27981 | SWIG_fail; | |
d14a1e28 RD |
27982 | } |
27983 | { | |
27984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27985 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27986 | |
27987 | wxPyEndAllowThreads(__tstate); | |
27988 | if (PyErr_Occurred()) SWIG_fail; | |
27989 | } | |
27990 | Py_INCREF(Py_None); resultobj = Py_None; | |
27991 | return resultobj; | |
27992 | fail: | |
27993 | return NULL; | |
27994 | } | |
27995 | ||
27996 | ||
c32bde28 | 27997 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27998 | PyObject *resultobj; |
27999 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28000 | wxTreeItemId *arg2 = 0 ; | |
28001 | PyObject * obj0 = 0 ; | |
28002 | PyObject * obj1 = 0 ; | |
28003 | char *kwnames[] = { | |
28004 | (char *) "self",(char *) "item", NULL | |
28005 | }; | |
28006 | ||
28007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28011 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28012 | SWIG_fail; | |
d14a1e28 | 28013 | if (arg2 == NULL) { |
15afbcd0 RD |
28014 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28015 | SWIG_fail; | |
d14a1e28 RD |
28016 | } |
28017 | { | |
28018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28019 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
28020 | ||
28021 | wxPyEndAllowThreads(__tstate); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | } | |
28024 | Py_INCREF(Py_None); resultobj = Py_None; | |
28025 | return resultobj; | |
28026 | fail: | |
28027 | return NULL; | |
28028 | } | |
28029 | ||
28030 | ||
c32bde28 | 28031 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28032 | PyObject *resultobj; |
28033 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28034 | wxTreeItemId *arg2 = 0 ; | |
28035 | PyObject * obj0 = 0 ; | |
28036 | PyObject * obj1 = 0 ; | |
28037 | char *kwnames[] = { | |
28038 | (char *) "self",(char *) "item", NULL | |
28039 | }; | |
28040 | ||
28041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28045 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28046 | SWIG_fail; | |
d14a1e28 | 28047 | if (arg2 == NULL) { |
15afbcd0 RD |
28048 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28049 | SWIG_fail; | |
d14a1e28 RD |
28050 | } |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
28054 | ||
28055 | wxPyEndAllowThreads(__tstate); | |
28056 | if (PyErr_Occurred()) SWIG_fail; | |
28057 | } | |
28058 | Py_INCREF(Py_None); resultobj = Py_None; | |
28059 | return resultobj; | |
28060 | fail: | |
28061 | return NULL; | |
28062 | } | |
28063 | ||
28064 | ||
c32bde28 | 28065 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28066 | PyObject *resultobj; |
28067 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28068 | wxTreeItemId *arg2 = 0 ; | |
28069 | PyObject * obj0 = 0 ; | |
28070 | PyObject * obj1 = 0 ; | |
28071 | char *kwnames[] = { | |
28072 | (char *) "self",(char *) "item", NULL | |
28073 | }; | |
28074 | ||
28075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28080 | SWIG_fail; | |
d14a1e28 | 28081 | if (arg2 == NULL) { |
15afbcd0 RD |
28082 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28083 | SWIG_fail; | |
d14a1e28 RD |
28084 | } |
28085 | { | |
28086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28087 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
28088 | ||
28089 | wxPyEndAllowThreads(__tstate); | |
28090 | if (PyErr_Occurred()) SWIG_fail; | |
28091 | } | |
28092 | Py_INCREF(Py_None); resultobj = Py_None; | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
c32bde28 | 28099 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28100 | PyObject *resultobj; |
28101 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28102 | wxTextCtrl *result; | |
28103 | PyObject * obj0 = 0 ; | |
28104 | char *kwnames[] = { | |
28105 | (char *) "self", NULL | |
28106 | }; | |
28107 | ||
28108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28111 | { |
28112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28113 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
28114 | ||
28115 | wxPyEndAllowThreads(__tstate); | |
28116 | if (PyErr_Occurred()) SWIG_fail; | |
28117 | } | |
28118 | { | |
412d302d | 28119 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28120 | } |
28121 | return resultobj; | |
28122 | fail: | |
28123 | return NULL; | |
28124 | } | |
28125 | ||
28126 | ||
c32bde28 | 28127 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28128 | PyObject *resultobj; |
28129 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28130 | wxTreeItemId *arg2 = 0 ; | |
28131 | PyObject * obj0 = 0 ; | |
28132 | PyObject * obj1 = 0 ; | |
28133 | char *kwnames[] = { | |
28134 | (char *) "self",(char *) "item", NULL | |
28135 | }; | |
28136 | ||
28137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28140 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28141 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28142 | SWIG_fail; | |
d14a1e28 | 28143 | if (arg2 == NULL) { |
15afbcd0 RD |
28144 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28145 | SWIG_fail; | |
d14a1e28 RD |
28146 | } |
28147 | { | |
28148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28149 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
28150 | ||
28151 | wxPyEndAllowThreads(__tstate); | |
28152 | if (PyErr_Occurred()) SWIG_fail; | |
28153 | } | |
28154 | Py_INCREF(Py_None); resultobj = Py_None; | |
28155 | return resultobj; | |
28156 | fail: | |
28157 | return NULL; | |
28158 | } | |
28159 | ||
28160 | ||
c32bde28 | 28161 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28162 | PyObject *resultobj; |
28163 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28164 | wxPoint *arg2 = 0 ; | |
28165 | int *arg3 = 0 ; | |
28166 | wxTreeItemId result; | |
28167 | wxPoint temp2 ; | |
28168 | int temp3 ; | |
c32bde28 | 28169 | int res3 = 0 ; |
d14a1e28 RD |
28170 | PyObject * obj0 = 0 ; |
28171 | PyObject * obj1 = 0 ; | |
28172 | char *kwnames[] = { | |
28173 | (char *) "self",(char *) "point", NULL | |
28174 | }; | |
28175 | ||
c32bde28 | 28176 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 28177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28180 | { |
28181 | arg2 = &temp2; | |
28182 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28183 | } | |
28184 | { | |
28185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28186 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
28187 | ||
28188 | wxPyEndAllowThreads(__tstate); | |
28189 | if (PyErr_Occurred()) SWIG_fail; | |
28190 | } | |
28191 | { | |
28192 | wxTreeItemId * resultptr; | |
28193 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 28195 | } |
c32bde28 RD |
28196 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
28197 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
28198 | return resultobj; |
28199 | fail: | |
28200 | return NULL; | |
28201 | } | |
28202 | ||
28203 | ||
c32bde28 | 28204 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28205 | PyObject *resultobj; |
28206 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28207 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28208 | bool arg3 = (bool) false ; |
d14a1e28 RD |
28209 | PyObject *result; |
28210 | PyObject * obj0 = 0 ; | |
28211 | PyObject * obj1 = 0 ; | |
28212 | PyObject * obj2 = 0 ; | |
28213 | char *kwnames[] = { | |
28214 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
28215 | }; | |
28216 | ||
28217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
28219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28222 | SWIG_fail; | |
d14a1e28 | 28223 | if (arg2 == NULL) { |
15afbcd0 RD |
28224 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28225 | SWIG_fail; | |
d14a1e28 RD |
28226 | } |
28227 | if (obj2) { | |
c32bde28 | 28228 | arg3 = (bool)SWIG_As_bool(obj2); |
15afbcd0 | 28229 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28230 | } |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | resultobj = result; | |
28239 | return resultobj; | |
28240 | fail: | |
28241 | return NULL; | |
28242 | } | |
28243 | ||
28244 | ||
c32bde28 | 28245 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28246 | PyObject *resultobj; |
28247 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
28248 | wxVisualAttributes result; | |
28249 | PyObject * obj0 = 0 ; | |
28250 | char *kwnames[] = { | |
28251 | (char *) "variant", NULL | |
28252 | }; | |
28253 | ||
28254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
28255 | if (obj0) { | |
c32bde28 | 28256 | arg1 = (int)SWIG_As_int(obj0); |
74a57fcd RD |
28257 | if (PyErr_Occurred()) SWIG_fail; |
28258 | } | |
28259 | { | |
110da5b0 | 28260 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
28261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28262 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
28263 | ||
28264 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 28265 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
28266 | } |
28267 | { | |
28268 | wxVisualAttributes * resultptr; | |
28269 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
28270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
28271 | } | |
28272 | return resultobj; | |
28273 | fail: | |
28274 | return NULL; | |
28275 | } | |
28276 | ||
28277 | ||
c32bde28 | 28278 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28279 | PyObject *obj; |
28280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28281 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
28282 | Py_INCREF(obj); | |
28283 | return Py_BuildValue((char *)""); | |
28284 | } | |
c32bde28 | 28285 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
28286 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
28287 | return 1; | |
28288 | } | |
28289 | ||
28290 | ||
28291 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
28292 | PyObject *pyobj; | |
28293 | ||
28294 | { | |
28295 | #if wxUSE_UNICODE | |
28296 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28297 | #else | |
28298 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28299 | #endif | |
28300 | } | |
28301 | return pyobj; | |
28302 | } | |
28303 | ||
28304 | ||
c32bde28 | 28305 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28306 | PyObject *resultobj; |
28307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 28308 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28309 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
28310 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28311 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28312 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28313 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28314 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28315 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28316 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
28317 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28318 | int arg8 = (int) 0 ; | |
b2dc1044 | 28319 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28320 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
28321 | wxGenericDirCtrl *result; | |
ae8162c8 | 28322 | bool temp3 = false ; |
d14a1e28 RD |
28323 | wxPoint temp4 ; |
28324 | wxSize temp5 ; | |
ae8162c8 RD |
28325 | bool temp7 = false ; |
28326 | bool temp9 = false ; | |
d14a1e28 | 28327 | PyObject * obj0 = 0 ; |
994141e6 | 28328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28329 | PyObject * obj2 = 0 ; |
28330 | PyObject * obj3 = 0 ; | |
28331 | PyObject * obj4 = 0 ; | |
994141e6 | 28332 | PyObject * obj5 = 0 ; |
d14a1e28 | 28333 | PyObject * obj6 = 0 ; |
994141e6 | 28334 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
28335 | PyObject * obj8 = 0 ; |
28336 | char *kwnames[] = { | |
28337 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28338 | }; | |
28339 | ||
994141e6 | 28340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
28341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28343 | if (obj1) { |
c32bde28 | 28344 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28345 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28346 | } |
d14a1e28 RD |
28347 | if (obj2) { |
28348 | { | |
28349 | arg3 = wxString_in_helper(obj2); | |
28350 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28351 | temp3 = true; |
d14a1e28 RD |
28352 | } |
28353 | } | |
28354 | if (obj3) { | |
28355 | { | |
28356 | arg4 = &temp4; | |
28357 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28358 | } | |
28359 | } | |
28360 | if (obj4) { | |
28361 | { | |
28362 | arg5 = &temp5; | |
28363 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28364 | } | |
28365 | } | |
994141e6 | 28366 | if (obj5) { |
c32bde28 | 28367 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 28368 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28369 | } |
d14a1e28 RD |
28370 | if (obj6) { |
28371 | { | |
28372 | arg7 = wxString_in_helper(obj6); | |
28373 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28374 | temp7 = true; |
d14a1e28 RD |
28375 | } |
28376 | } | |
994141e6 | 28377 | if (obj7) { |
c32bde28 | 28378 | arg8 = (int)SWIG_As_int(obj7); |
15afbcd0 | 28379 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28380 | } |
d14a1e28 RD |
28381 | if (obj8) { |
28382 | { | |
28383 | arg9 = wxString_in_helper(obj8); | |
28384 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 28385 | temp9 = true; |
d14a1e28 RD |
28386 | } |
28387 | } | |
28388 | { | |
e3b71cb8 | 28389 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28391 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28392 | ||
28393 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28394 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28395 | } |
15afbcd0 | 28396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28397 | { |
28398 | if (temp3) | |
28399 | delete arg3; | |
28400 | } | |
28401 | { | |
28402 | if (temp7) | |
28403 | delete arg7; | |
28404 | } | |
28405 | { | |
28406 | if (temp9) | |
28407 | delete arg9; | |
28408 | } | |
28409 | return resultobj; | |
28410 | fail: | |
28411 | { | |
28412 | if (temp3) | |
28413 | delete arg3; | |
28414 | } | |
28415 | { | |
28416 | if (temp7) | |
28417 | delete arg7; | |
28418 | } | |
28419 | { | |
28420 | if (temp9) | |
28421 | delete arg9; | |
28422 | } | |
28423 | return NULL; | |
28424 | } | |
28425 | ||
28426 | ||
c32bde28 | 28427 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28428 | PyObject *resultobj; |
28429 | wxGenericDirCtrl *result; | |
28430 | char *kwnames[] = { | |
28431 | NULL | |
28432 | }; | |
28433 | ||
28434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28435 | { | |
e3b71cb8 | 28436 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28438 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28439 | ||
28440 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28441 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28442 | } |
15afbcd0 | 28443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
28444 | return resultobj; |
28445 | fail: | |
28446 | return NULL; | |
28447 | } | |
28448 | ||
28449 | ||
c32bde28 | 28450 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28451 | PyObject *resultobj; |
28452 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28453 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28454 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28455 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
28456 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28457 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28458 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28459 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28460 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28461 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28462 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28463 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28464 | int arg9 = (int) 0 ; | |
b2dc1044 | 28465 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28466 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
28467 | bool result; | |
ae8162c8 | 28468 | bool temp4 = false ; |
d14a1e28 RD |
28469 | wxPoint temp5 ; |
28470 | wxSize temp6 ; | |
ae8162c8 RD |
28471 | bool temp8 = false ; |
28472 | bool temp10 = false ; | |
d14a1e28 RD |
28473 | PyObject * obj0 = 0 ; |
28474 | PyObject * obj1 = 0 ; | |
994141e6 | 28475 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28476 | PyObject * obj3 = 0 ; |
28477 | PyObject * obj4 = 0 ; | |
28478 | PyObject * obj5 = 0 ; | |
994141e6 | 28479 | PyObject * obj6 = 0 ; |
d14a1e28 | 28480 | PyObject * obj7 = 0 ; |
994141e6 | 28481 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
28482 | PyObject * obj9 = 0 ; |
28483 | char *kwnames[] = { | |
28484 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28485 | }; | |
28486 | ||
994141e6 | 28487 | 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 |
28488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28492 | if (obj2) { |
c32bde28 | 28493 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 28494 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28495 | } |
d14a1e28 RD |
28496 | if (obj3) { |
28497 | { | |
28498 | arg4 = wxString_in_helper(obj3); | |
28499 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 28500 | temp4 = true; |
d14a1e28 RD |
28501 | } |
28502 | } | |
28503 | if (obj4) { | |
28504 | { | |
28505 | arg5 = &temp5; | |
28506 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28507 | } | |
28508 | } | |
28509 | if (obj5) { | |
28510 | { | |
28511 | arg6 = &temp6; | |
28512 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28513 | } | |
28514 | } | |
994141e6 | 28515 | if (obj6) { |
c32bde28 | 28516 | arg7 = (long)SWIG_As_long(obj6); |
15afbcd0 | 28517 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28518 | } |
d14a1e28 RD |
28519 | if (obj7) { |
28520 | { | |
28521 | arg8 = wxString_in_helper(obj7); | |
28522 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28523 | temp8 = true; |
d14a1e28 RD |
28524 | } |
28525 | } | |
994141e6 | 28526 | if (obj8) { |
c32bde28 | 28527 | arg9 = (int)SWIG_As_int(obj8); |
15afbcd0 | 28528 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 28529 | } |
d14a1e28 RD |
28530 | if (obj9) { |
28531 | { | |
28532 | arg10 = wxString_in_helper(obj9); | |
28533 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 28534 | temp10 = true; |
d14a1e28 RD |
28535 | } |
28536 | } | |
28537 | { | |
28538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28539 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28540 | ||
28541 | wxPyEndAllowThreads(__tstate); | |
28542 | if (PyErr_Occurred()) SWIG_fail; | |
28543 | } | |
4f89f6a3 RD |
28544 | { |
28545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28546 | } | |
d14a1e28 RD |
28547 | { |
28548 | if (temp4) | |
28549 | delete arg4; | |
28550 | } | |
28551 | { | |
28552 | if (temp8) | |
28553 | delete arg8; | |
28554 | } | |
28555 | { | |
28556 | if (temp10) | |
28557 | delete arg10; | |
28558 | } | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | { | |
28562 | if (temp4) | |
28563 | delete arg4; | |
28564 | } | |
28565 | { | |
28566 | if (temp8) | |
28567 | delete arg8; | |
28568 | } | |
28569 | { | |
28570 | if (temp10) | |
28571 | delete arg10; | |
28572 | } | |
28573 | return NULL; | |
28574 | } | |
28575 | ||
28576 | ||
c32bde28 | 28577 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28578 | PyObject *resultobj; |
28579 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28580 | wxString *arg2 = 0 ; | |
28581 | bool result; | |
ae8162c8 | 28582 | bool temp2 = false ; |
d14a1e28 RD |
28583 | PyObject * obj0 = 0 ; |
28584 | PyObject * obj1 = 0 ; | |
28585 | char *kwnames[] = { | |
28586 | (char *) "self",(char *) "path", NULL | |
28587 | }; | |
28588 | ||
28589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28592 | { |
28593 | arg2 = wxString_in_helper(obj1); | |
28594 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28595 | temp2 = true; |
d14a1e28 RD |
28596 | } |
28597 | { | |
28598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28599 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28600 | ||
28601 | wxPyEndAllowThreads(__tstate); | |
28602 | if (PyErr_Occurred()) SWIG_fail; | |
28603 | } | |
4f89f6a3 RD |
28604 | { |
28605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28606 | } | |
d14a1e28 RD |
28607 | { |
28608 | if (temp2) | |
28609 | delete arg2; | |
28610 | } | |
28611 | return resultobj; | |
28612 | fail: | |
28613 | { | |
28614 | if (temp2) | |
28615 | delete arg2; | |
28616 | } | |
28617 | return NULL; | |
28618 | } | |
28619 | ||
28620 | ||
c32bde28 | 28621 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28622 | PyObject *resultobj; |
28623 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28624 | wxString result; | |
28625 | PyObject * obj0 = 0 ; | |
28626 | char *kwnames[] = { | |
28627 | (char *) "self", NULL | |
28628 | }; | |
28629 | ||
28630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28633 | { |
28634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28635 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28636 | ||
28637 | wxPyEndAllowThreads(__tstate); | |
28638 | if (PyErr_Occurred()) SWIG_fail; | |
28639 | } | |
28640 | { | |
28641 | #if wxUSE_UNICODE | |
28642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28643 | #else | |
28644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28645 | #endif | |
28646 | } | |
28647 | return resultobj; | |
28648 | fail: | |
28649 | return NULL; | |
28650 | } | |
28651 | ||
28652 | ||
c32bde28 | 28653 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28654 | PyObject *resultobj; |
28655 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28656 | wxString *arg2 = 0 ; | |
ae8162c8 | 28657 | bool temp2 = false ; |
d14a1e28 RD |
28658 | PyObject * obj0 = 0 ; |
28659 | PyObject * obj1 = 0 ; | |
28660 | char *kwnames[] = { | |
28661 | (char *) "self",(char *) "path", NULL | |
28662 | }; | |
28663 | ||
28664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28667 | { |
28668 | arg2 = wxString_in_helper(obj1); | |
28669 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28670 | temp2 = true; |
d14a1e28 RD |
28671 | } |
28672 | { | |
28673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28674 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28675 | ||
28676 | wxPyEndAllowThreads(__tstate); | |
28677 | if (PyErr_Occurred()) SWIG_fail; | |
28678 | } | |
28679 | Py_INCREF(Py_None); resultobj = Py_None; | |
28680 | { | |
28681 | if (temp2) | |
28682 | delete arg2; | |
28683 | } | |
28684 | return resultobj; | |
28685 | fail: | |
28686 | { | |
28687 | if (temp2) | |
28688 | delete arg2; | |
28689 | } | |
28690 | return NULL; | |
28691 | } | |
28692 | ||
28693 | ||
c32bde28 | 28694 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28695 | PyObject *resultobj; |
28696 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28697 | wxString result; | |
28698 | PyObject * obj0 = 0 ; | |
28699 | char *kwnames[] = { | |
28700 | (char *) "self", NULL | |
28701 | }; | |
28702 | ||
28703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28706 | { |
28707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28708 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28709 | ||
28710 | wxPyEndAllowThreads(__tstate); | |
28711 | if (PyErr_Occurred()) SWIG_fail; | |
28712 | } | |
28713 | { | |
28714 | #if wxUSE_UNICODE | |
28715 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28716 | #else | |
28717 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28718 | #endif | |
28719 | } | |
28720 | return resultobj; | |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
c32bde28 | 28726 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28727 | PyObject *resultobj; |
28728 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28729 | wxString result; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | char *kwnames[] = { | |
28732 | (char *) "self", NULL | |
28733 | }; | |
28734 | ||
28735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28738 | { |
28739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28740 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28741 | ||
28742 | wxPyEndAllowThreads(__tstate); | |
28743 | if (PyErr_Occurred()) SWIG_fail; | |
28744 | } | |
28745 | { | |
28746 | #if wxUSE_UNICODE | |
28747 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28748 | #else | |
28749 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28750 | #endif | |
28751 | } | |
28752 | return resultobj; | |
28753 | fail: | |
28754 | return NULL; | |
28755 | } | |
28756 | ||
28757 | ||
c32bde28 | 28758 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28759 | PyObject *resultobj; |
28760 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28761 | wxString *arg2 = 0 ; | |
ae8162c8 | 28762 | bool temp2 = false ; |
d14a1e28 RD |
28763 | PyObject * obj0 = 0 ; |
28764 | PyObject * obj1 = 0 ; | |
28765 | char *kwnames[] = { | |
28766 | (char *) "self",(char *) "path", NULL | |
28767 | }; | |
28768 | ||
28769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28772 | { |
28773 | arg2 = wxString_in_helper(obj1); | |
28774 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28775 | temp2 = true; |
d14a1e28 RD |
28776 | } |
28777 | { | |
28778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28779 | (arg1)->SetPath((wxString const &)*arg2); | |
28780 | ||
28781 | wxPyEndAllowThreads(__tstate); | |
28782 | if (PyErr_Occurred()) SWIG_fail; | |
28783 | } | |
28784 | Py_INCREF(Py_None); resultobj = Py_None; | |
28785 | { | |
28786 | if (temp2) | |
28787 | delete arg2; | |
28788 | } | |
28789 | return resultobj; | |
28790 | fail: | |
28791 | { | |
28792 | if (temp2) | |
28793 | delete arg2; | |
28794 | } | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
c32bde28 | 28799 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28800 | PyObject *resultobj; |
28801 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28802 | bool arg2 ; | |
28803 | PyObject * obj0 = 0 ; | |
28804 | PyObject * obj1 = 0 ; | |
28805 | char *kwnames[] = { | |
28806 | (char *) "self",(char *) "show", NULL | |
28807 | }; | |
28808 | ||
28809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28812 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 28813 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28814 | { |
28815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28816 | (arg1)->ShowHidden(arg2); | |
28817 | ||
28818 | wxPyEndAllowThreads(__tstate); | |
28819 | if (PyErr_Occurred()) SWIG_fail; | |
28820 | } | |
28821 | Py_INCREF(Py_None); resultobj = Py_None; | |
28822 | return resultobj; | |
28823 | fail: | |
28824 | return NULL; | |
28825 | } | |
28826 | ||
28827 | ||
c32bde28 | 28828 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28829 | PyObject *resultobj; |
28830 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28831 | bool result; | |
28832 | PyObject * obj0 = 0 ; | |
28833 | char *kwnames[] = { | |
28834 | (char *) "self", NULL | |
28835 | }; | |
28836 | ||
28837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28840 | { |
28841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28842 | result = (bool)(arg1)->GetShowHidden(); | |
28843 | ||
28844 | wxPyEndAllowThreads(__tstate); | |
28845 | if (PyErr_Occurred()) SWIG_fail; | |
28846 | } | |
4f89f6a3 RD |
28847 | { |
28848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28849 | } | |
d14a1e28 RD |
28850 | return resultobj; |
28851 | fail: | |
28852 | return NULL; | |
28853 | } | |
28854 | ||
28855 | ||
c32bde28 | 28856 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28857 | PyObject *resultobj; |
28858 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28859 | wxString result; | |
28860 | PyObject * obj0 = 0 ; | |
28861 | char *kwnames[] = { | |
28862 | (char *) "self", NULL | |
28863 | }; | |
28864 | ||
28865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28870 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28871 | ||
28872 | wxPyEndAllowThreads(__tstate); | |
28873 | if (PyErr_Occurred()) SWIG_fail; | |
28874 | } | |
28875 | { | |
28876 | #if wxUSE_UNICODE | |
28877 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28878 | #else | |
28879 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28880 | #endif | |
28881 | } | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | return NULL; | |
28885 | } | |
28886 | ||
28887 | ||
c32bde28 | 28888 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28889 | PyObject *resultobj; |
28890 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28891 | wxString *arg2 = 0 ; | |
ae8162c8 | 28892 | bool temp2 = false ; |
d14a1e28 RD |
28893 | PyObject * obj0 = 0 ; |
28894 | PyObject * obj1 = 0 ; | |
28895 | char *kwnames[] = { | |
28896 | (char *) "self",(char *) "filter", NULL | |
28897 | }; | |
28898 | ||
28899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28902 | { |
28903 | arg2 = wxString_in_helper(obj1); | |
28904 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28905 | temp2 = true; |
d14a1e28 RD |
28906 | } |
28907 | { | |
28908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28909 | (arg1)->SetFilter((wxString const &)*arg2); | |
28910 | ||
28911 | wxPyEndAllowThreads(__tstate); | |
28912 | if (PyErr_Occurred()) SWIG_fail; | |
28913 | } | |
28914 | Py_INCREF(Py_None); resultobj = Py_None; | |
28915 | { | |
28916 | if (temp2) | |
28917 | delete arg2; | |
28918 | } | |
28919 | return resultobj; | |
28920 | fail: | |
28921 | { | |
28922 | if (temp2) | |
28923 | delete arg2; | |
28924 | } | |
28925 | return NULL; | |
28926 | } | |
28927 | ||
28928 | ||
c32bde28 | 28929 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28930 | PyObject *resultobj; |
28931 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28932 | int result; | |
28933 | PyObject * obj0 = 0 ; | |
28934 | char *kwnames[] = { | |
28935 | (char *) "self", NULL | |
28936 | }; | |
28937 | ||
28938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28941 | { |
28942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28943 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28944 | ||
28945 | wxPyEndAllowThreads(__tstate); | |
28946 | if (PyErr_Occurred()) SWIG_fail; | |
28947 | } | |
c32bde28 | 28948 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
28949 | return resultobj; |
28950 | fail: | |
28951 | return NULL; | |
28952 | } | |
28953 | ||
28954 | ||
c32bde28 | 28955 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28956 | PyObject *resultobj; |
28957 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28958 | int arg2 ; | |
28959 | PyObject * obj0 = 0 ; | |
994141e6 | 28960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28961 | char *kwnames[] = { |
28962 | (char *) "self",(char *) "n", NULL | |
28963 | }; | |
28964 | ||
994141e6 | 28965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28968 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 28969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28970 | { |
28971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28972 | (arg1)->SetFilterIndex(arg2); | |
28973 | ||
28974 | wxPyEndAllowThreads(__tstate); | |
28975 | if (PyErr_Occurred()) SWIG_fail; | |
28976 | } | |
28977 | Py_INCREF(Py_None); resultobj = Py_None; | |
28978 | return resultobj; | |
28979 | fail: | |
28980 | return NULL; | |
28981 | } | |
28982 | ||
28983 | ||
c32bde28 | 28984 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28985 | PyObject *resultobj; |
28986 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28987 | wxTreeItemId result; | |
28988 | PyObject * obj0 = 0 ; | |
28989 | char *kwnames[] = { | |
28990 | (char *) "self", NULL | |
28991 | }; | |
28992 | ||
28993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28996 | { |
28997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28998 | result = (arg1)->GetRootId(); | |
28999 | ||
29000 | wxPyEndAllowThreads(__tstate); | |
29001 | if (PyErr_Occurred()) SWIG_fail; | |
29002 | } | |
29003 | { | |
29004 | wxTreeItemId * resultptr; | |
29005 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 29006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29007 | } |
29008 | return resultobj; | |
29009 | fail: | |
29010 | return NULL; | |
29011 | } | |
29012 | ||
29013 | ||
c32bde28 | 29014 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29015 | PyObject *resultobj; |
29016 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 29017 | wxPyTreeCtrl *result; |
d14a1e28 RD |
29018 | PyObject * obj0 = 0 ; |
29019 | char *kwnames[] = { | |
29020 | (char *) "self", NULL | |
29021 | }; | |
29022 | ||
29023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29026 | { |
29027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 29028 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
29029 | |
29030 | wxPyEndAllowThreads(__tstate); | |
29031 | if (PyErr_Occurred()) SWIG_fail; | |
29032 | } | |
29033 | { | |
412d302d | 29034 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29035 | } |
29036 | return resultobj; | |
29037 | fail: | |
29038 | return NULL; | |
29039 | } | |
29040 | ||
29041 | ||
c32bde28 | 29042 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29043 | PyObject *resultobj; |
29044 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29045 | wxDirFilterListCtrl *result; | |
29046 | PyObject * obj0 = 0 ; | |
29047 | char *kwnames[] = { | |
29048 | (char *) "self", NULL | |
29049 | }; | |
29050 | ||
29051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29054 | { |
29055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29056 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
29057 | ||
29058 | wxPyEndAllowThreads(__tstate); | |
29059 | if (PyErr_Occurred()) SWIG_fail; | |
29060 | } | |
15afbcd0 | 29061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
29062 | return resultobj; |
29063 | fail: | |
29064 | return NULL; | |
29065 | } | |
29066 | ||
29067 | ||
c32bde28 | 29068 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29069 | PyObject *resultobj; |
29070 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29071 | wxTreeItemId arg2 ; | |
29072 | wxString *arg3 = 0 ; | |
29073 | bool *arg4 = 0 ; | |
29074 | wxTreeItemId result; | |
29075 | wxTreeItemId *argp2 ; | |
ae8162c8 | 29076 | bool temp3 = false ; |
d14a1e28 | 29077 | bool temp4 ; |
c32bde28 | 29078 | int res4 = 0 ; |
d14a1e28 RD |
29079 | PyObject * obj0 = 0 ; |
29080 | PyObject * obj1 = 0 ; | |
29081 | PyObject * obj2 = 0 ; | |
29082 | char *kwnames[] = { | |
29083 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
29084 | }; | |
29085 | ||
c32bde28 | 29086 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 29087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29090 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
29091 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29092 | arg2 = *argp2; | |
d14a1e28 RD |
29093 | { |
29094 | arg3 = wxString_in_helper(obj2); | |
29095 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29096 | temp3 = true; |
d14a1e28 RD |
29097 | } |
29098 | { | |
29099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29100 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
29101 | ||
29102 | wxPyEndAllowThreads(__tstate); | |
29103 | if (PyErr_Occurred()) SWIG_fail; | |
29104 | } | |
29105 | { | |
29106 | wxTreeItemId * resultptr; | |
29107 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 29108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 29109 | } |
c32bde28 RD |
29110 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
29111 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
29112 | { |
29113 | if (temp3) | |
29114 | delete arg3; | |
29115 | } | |
29116 | return resultobj; | |
29117 | fail: | |
29118 | { | |
29119 | if (temp3) | |
29120 | delete arg3; | |
29121 | } | |
29122 | return NULL; | |
29123 | } | |
29124 | ||
29125 | ||
c32bde28 | 29126 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29127 | PyObject *resultobj; |
29128 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29129 | PyObject * obj0 = 0 ; | |
29130 | char *kwnames[] = { | |
29131 | (char *) "self", NULL | |
29132 | }; | |
29133 | ||
29134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29137 | { |
29138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29139 | (arg1)->DoResize(); | |
29140 | ||
29141 | wxPyEndAllowThreads(__tstate); | |
29142 | if (PyErr_Occurred()) SWIG_fail; | |
29143 | } | |
29144 | Py_INCREF(Py_None); resultobj = Py_None; | |
29145 | return resultobj; | |
29146 | fail: | |
29147 | return NULL; | |
29148 | } | |
29149 | ||
29150 | ||
c32bde28 | 29151 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29152 | PyObject *resultobj; |
29153 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
29154 | PyObject * obj0 = 0 ; | |
29155 | char *kwnames[] = { | |
29156 | (char *) "self", NULL | |
29157 | }; | |
29158 | ||
29159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29162 | { |
29163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29164 | (arg1)->ReCreateTree(); | |
29165 | ||
29166 | wxPyEndAllowThreads(__tstate); | |
29167 | if (PyErr_Occurred()) SWIG_fail; | |
29168 | } | |
29169 | Py_INCREF(Py_None); resultobj = Py_None; | |
29170 | return resultobj; | |
29171 | fail: | |
29172 | return NULL; | |
29173 | } | |
29174 | ||
29175 | ||
c32bde28 | 29176 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29177 | PyObject *obj; |
29178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29179 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
29180 | Py_INCREF(obj); | |
29181 | return Py_BuildValue((char *)""); | |
29182 | } | |
c32bde28 | 29183 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29184 | PyObject *resultobj; |
29185 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 29186 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
29187 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29188 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29189 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29190 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29191 | long arg5 = (long) 0 ; | |
29192 | wxDirFilterListCtrl *result; | |
29193 | wxPoint temp3 ; | |
29194 | wxSize temp4 ; | |
29195 | PyObject * obj0 = 0 ; | |
994141e6 | 29196 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29197 | PyObject * obj2 = 0 ; |
29198 | PyObject * obj3 = 0 ; | |
994141e6 | 29199 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29200 | char *kwnames[] = { |
29201 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29202 | }; | |
29203 | ||
994141e6 | 29204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
29206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 29207 | if (obj1) { |
c32bde28 | 29208 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29209 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29210 | } |
d14a1e28 RD |
29211 | if (obj2) { |
29212 | { | |
29213 | arg3 = &temp3; | |
29214 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29215 | } | |
29216 | } | |
29217 | if (obj3) { | |
29218 | { | |
29219 | arg4 = &temp4; | |
29220 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29221 | } | |
29222 | } | |
994141e6 | 29223 | if (obj4) { |
c32bde28 | 29224 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 29225 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29226 | } |
d14a1e28 | 29227 | { |
e3b71cb8 | 29228 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29230 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29231 | ||
29232 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29233 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29234 | } |
15afbcd0 | 29235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
29236 | return resultobj; |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
c32bde28 | 29242 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29243 | PyObject *resultobj; |
29244 | wxDirFilterListCtrl *result; | |
29245 | char *kwnames[] = { | |
29246 | NULL | |
29247 | }; | |
29248 | ||
29249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
29250 | { | |
e3b71cb8 | 29251 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29253 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29256 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29257 | } |
15afbcd0 | 29258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
29259 | return resultobj; |
29260 | fail: | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
c32bde28 | 29265 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29266 | PyObject *resultobj; |
29267 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29268 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 29269 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
29270 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
29271 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29272 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29273 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29274 | long arg6 = (long) 0 ; | |
29275 | bool result; | |
29276 | wxPoint temp4 ; | |
29277 | wxSize temp5 ; | |
29278 | PyObject * obj0 = 0 ; | |
29279 | PyObject * obj1 = 0 ; | |
994141e6 | 29280 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29281 | PyObject * obj3 = 0 ; |
29282 | PyObject * obj4 = 0 ; | |
994141e6 | 29283 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
29284 | char *kwnames[] = { |
29285 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29286 | }; | |
29287 | ||
994141e6 | 29288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
29290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
29292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 29293 | if (obj2) { |
c32bde28 | 29294 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29295 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29296 | } |
d14a1e28 RD |
29297 | if (obj3) { |
29298 | { | |
29299 | arg4 = &temp4; | |
29300 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29301 | } | |
29302 | } | |
29303 | if (obj4) { | |
29304 | { | |
29305 | arg5 = &temp5; | |
29306 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29307 | } | |
29308 | } | |
994141e6 | 29309 | if (obj5) { |
c32bde28 | 29310 | arg6 = (long)SWIG_As_long(obj5); |
15afbcd0 | 29311 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29312 | } |
d14a1e28 RD |
29313 | { |
29314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29315 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
29316 | ||
29317 | wxPyEndAllowThreads(__tstate); | |
29318 | if (PyErr_Occurred()) SWIG_fail; | |
29319 | } | |
4f89f6a3 RD |
29320 | { |
29321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29322 | } | |
d14a1e28 RD |
29323 | return resultobj; |
29324 | fail: | |
29325 | return NULL; | |
29326 | } | |
29327 | ||
29328 | ||
c32bde28 | 29329 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29330 | PyObject *resultobj; |
29331 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29332 | wxString *arg2 = 0 ; | |
29333 | int arg3 ; | |
ae8162c8 | 29334 | bool temp2 = false ; |
d14a1e28 RD |
29335 | PyObject * obj0 = 0 ; |
29336 | PyObject * obj1 = 0 ; | |
994141e6 | 29337 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29338 | char *kwnames[] = { |
29339 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29340 | }; | |
29341 | ||
994141e6 | 29342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
29344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29345 | { |
29346 | arg2 = wxString_in_helper(obj1); | |
29347 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29348 | temp2 = true; |
d14a1e28 | 29349 | } |
c32bde28 | 29350 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29351 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29352 | { |
29353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29354 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29355 | ||
29356 | wxPyEndAllowThreads(__tstate); | |
29357 | if (PyErr_Occurred()) SWIG_fail; | |
29358 | } | |
29359 | Py_INCREF(Py_None); resultobj = Py_None; | |
29360 | { | |
29361 | if (temp2) | |
29362 | delete arg2; | |
29363 | } | |
29364 | return resultobj; | |
29365 | fail: | |
29366 | { | |
29367 | if (temp2) | |
29368 | delete arg2; | |
29369 | } | |
29370 | return NULL; | |
29371 | } | |
29372 | ||
29373 | ||
c32bde28 | 29374 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29375 | PyObject *obj; |
29376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29377 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29378 | Py_INCREF(obj); | |
29379 | return Py_BuildValue((char *)""); | |
29380 | } | |
c32bde28 | 29381 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29382 | PyObject *resultobj; |
29383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29384 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
29385 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29386 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29387 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29388 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29389 | long arg5 = (long) 0 ; | |
29390 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29391 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29392 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29393 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29394 | wxPyControl *result; | |
29395 | wxPoint temp3 ; | |
29396 | wxSize temp4 ; | |
ae8162c8 | 29397 | bool temp7 = false ; |
d14a1e28 | 29398 | PyObject * obj0 = 0 ; |
994141e6 | 29399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29400 | PyObject * obj2 = 0 ; |
29401 | PyObject * obj3 = 0 ; | |
994141e6 | 29402 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29403 | PyObject * obj5 = 0 ; |
29404 | PyObject * obj6 = 0 ; | |
29405 | char *kwnames[] = { | |
29406 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29407 | }; | |
29408 | ||
248ed943 | 29409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
29410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 29412 | if (obj1) { |
c32bde28 | 29413 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
29414 | if (PyErr_Occurred()) SWIG_fail; |
29415 | } | |
d14a1e28 RD |
29416 | if (obj2) { |
29417 | { | |
29418 | arg3 = &temp3; | |
29419 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29420 | } | |
29421 | } | |
29422 | if (obj3) { | |
29423 | { | |
29424 | arg4 = &temp4; | |
29425 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29426 | } | |
29427 | } | |
994141e6 | 29428 | if (obj4) { |
c32bde28 | 29429 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 29430 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29431 | } |
d14a1e28 | 29432 | if (obj5) { |
15afbcd0 RD |
29433 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
29434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29435 | SWIG_fail; | |
d14a1e28 | 29436 | if (arg6 == NULL) { |
15afbcd0 RD |
29437 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29438 | SWIG_fail; | |
d14a1e28 RD |
29439 | } |
29440 | } | |
29441 | if (obj6) { | |
29442 | { | |
29443 | arg7 = wxString_in_helper(obj6); | |
29444 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 29445 | temp7 = true; |
d14a1e28 RD |
29446 | } |
29447 | } | |
29448 | { | |
e3b71cb8 | 29449 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29451 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29452 | ||
29453 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29454 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29455 | } |
15afbcd0 | 29456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
29457 | { |
29458 | if (temp7) | |
29459 | delete arg7; | |
29460 | } | |
29461 | return resultobj; | |
29462 | fail: | |
29463 | { | |
29464 | if (temp7) | |
29465 | delete arg7; | |
29466 | } | |
29467 | return NULL; | |
29468 | } | |
29469 | ||
29470 | ||
c32bde28 | 29471 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
29472 | PyObject *resultobj; |
29473 | wxPyControl *result; | |
29474 | char *kwnames[] = { | |
29475 | NULL | |
29476 | }; | |
29477 | ||
29478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29479 | { | |
e3b71cb8 | 29480 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
29481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29482 | result = (wxPyControl *)new wxPyControl(); | |
29483 | ||
29484 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29485 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
29486 | } |
29487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29488 | return resultobj; | |
29489 | fail: | |
29490 | return NULL; | |
29491 | } | |
29492 | ||
29493 | ||
c32bde28 | 29494 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29495 | PyObject *resultobj; |
29496 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29497 | PyObject *arg2 = (PyObject *) 0 ; | |
29498 | PyObject *arg3 = (PyObject *) 0 ; | |
29499 | PyObject * obj0 = 0 ; | |
29500 | PyObject * obj1 = 0 ; | |
29501 | PyObject * obj2 = 0 ; | |
29502 | char *kwnames[] = { | |
29503 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29504 | }; | |
29505 | ||
29506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29509 | arg2 = obj1; |
29510 | arg3 = obj2; | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29514 | ||
29515 | wxPyEndAllowThreads(__tstate); | |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
29518 | Py_INCREF(Py_None); resultobj = Py_None; | |
29519 | return resultobj; | |
29520 | fail: | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
c32bde28 | 29525 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
29526 | PyObject *resultobj; |
29527 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29528 | wxSize *arg2 = 0 ; | |
29529 | wxSize temp2 ; | |
29530 | PyObject * obj0 = 0 ; | |
29531 | PyObject * obj1 = 0 ; | |
29532 | char *kwnames[] = { | |
29533 | (char *) "self",(char *) "size", NULL | |
29534 | }; | |
29535 | ||
29536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29539 | { | |
29540 | arg2 = &temp2; | |
29541 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29542 | } | |
29543 | { | |
29544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29545 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29546 | ||
29547 | wxPyEndAllowThreads(__tstate); | |
29548 | if (PyErr_Occurred()) SWIG_fail; | |
29549 | } | |
29550 | Py_INCREF(Py_None); resultobj = Py_None; | |
29551 | return resultobj; | |
29552 | fail: | |
29553 | return NULL; | |
29554 | } | |
29555 | ||
29556 | ||
c32bde28 | 29557 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29558 | PyObject *resultobj; |
29559 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29560 | int arg2 ; | |
29561 | int arg3 ; | |
29562 | int arg4 ; | |
29563 | int arg5 ; | |
29564 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29565 | PyObject * obj1 = 0 ; |
29566 | PyObject * obj2 = 0 ; | |
29567 | PyObject * obj3 = 0 ; | |
29568 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29569 | char *kwnames[] = { |
29570 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29571 | }; | |
29572 | ||
994141e6 | 29573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29576 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29577 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29578 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29579 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29580 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29581 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29582 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29583 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29584 | { |
29585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29586 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29587 | ||
29588 | wxPyEndAllowThreads(__tstate); | |
29589 | if (PyErr_Occurred()) SWIG_fail; | |
29590 | } | |
29591 | Py_INCREF(Py_None); resultobj = Py_None; | |
29592 | return resultobj; | |
29593 | fail: | |
29594 | return NULL; | |
29595 | } | |
29596 | ||
29597 | ||
c32bde28 | 29598 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29599 | PyObject *resultobj; |
29600 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29601 | int arg2 ; | |
29602 | int arg3 ; | |
29603 | int arg4 ; | |
29604 | int arg5 ; | |
29605 | int arg6 = (int) wxSIZE_AUTO ; | |
29606 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29607 | PyObject * obj1 = 0 ; |
29608 | PyObject * obj2 = 0 ; | |
29609 | PyObject * obj3 = 0 ; | |
29610 | PyObject * obj4 = 0 ; | |
29611 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
29612 | char *kwnames[] = { |
29613 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29614 | }; | |
29615 | ||
994141e6 | 29616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29619 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29620 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29621 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29622 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29623 | arg4 = (int)SWIG_As_int(obj3); |
15afbcd0 | 29624 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29625 | arg5 = (int)SWIG_As_int(obj4); |
15afbcd0 | 29626 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29627 | if (obj5) { |
c32bde28 | 29628 | arg6 = (int)SWIG_As_int(obj5); |
15afbcd0 | 29629 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 29630 | } |
d14a1e28 RD |
29631 | { |
29632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29633 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29634 | ||
29635 | wxPyEndAllowThreads(__tstate); | |
29636 | if (PyErr_Occurred()) SWIG_fail; | |
29637 | } | |
29638 | Py_INCREF(Py_None); resultobj = Py_None; | |
29639 | return resultobj; | |
29640 | fail: | |
29641 | return NULL; | |
29642 | } | |
29643 | ||
29644 | ||
c32bde28 | 29645 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29646 | PyObject *resultobj; |
29647 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29648 | int arg2 ; | |
29649 | int arg3 ; | |
29650 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29651 | PyObject * obj1 = 0 ; |
29652 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29653 | char *kwnames[] = { |
29654 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29655 | }; | |
29656 | ||
994141e6 | 29657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29660 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29661 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29662 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29663 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29664 | { |
29665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29666 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29667 | ||
29668 | wxPyEndAllowThreads(__tstate); | |
29669 | if (PyErr_Occurred()) SWIG_fail; | |
29670 | } | |
29671 | Py_INCREF(Py_None); resultobj = Py_None; | |
29672 | return resultobj; | |
29673 | fail: | |
29674 | return NULL; | |
29675 | } | |
29676 | ||
29677 | ||
c32bde28 | 29678 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29679 | PyObject *resultobj; |
29680 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29681 | int arg2 ; | |
29682 | int arg3 ; | |
29683 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29684 | PyObject * obj1 = 0 ; |
29685 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29686 | char *kwnames[] = { |
29687 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29688 | }; | |
29689 | ||
994141e6 | 29690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29693 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 29694 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29695 | arg3 = (int)SWIG_As_int(obj2); |
15afbcd0 | 29696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29697 | { |
29698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29699 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29700 | ||
29701 | wxPyEndAllowThreads(__tstate); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
29703 | } | |
29704 | Py_INCREF(Py_None); resultobj = Py_None; | |
29705 | return resultobj; | |
29706 | fail: | |
29707 | return NULL; | |
29708 | } | |
29709 | ||
29710 | ||
c32bde28 | 29711 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29712 | PyObject *resultobj; |
29713 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29714 | int *arg2 = (int *) 0 ; | |
29715 | int *arg3 = (int *) 0 ; | |
29716 | int temp2 ; | |
c32bde28 | 29717 | int res2 = 0 ; |
d14a1e28 | 29718 | int temp3 ; |
c32bde28 | 29719 | int res3 = 0 ; |
d14a1e28 RD |
29720 | PyObject * obj0 = 0 ; |
29721 | char *kwnames[] = { | |
29722 | (char *) "self", NULL | |
29723 | }; | |
29724 | ||
c32bde28 RD |
29725 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29726 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29730 | { |
29731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29732 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29733 | ||
29734 | wxPyEndAllowThreads(__tstate); | |
29735 | if (PyErr_Occurred()) SWIG_fail; | |
29736 | } | |
29737 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29738 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29739 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29740 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29741 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29742 | return resultobj; |
29743 | fail: | |
29744 | return NULL; | |
29745 | } | |
29746 | ||
29747 | ||
c32bde28 | 29748 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29749 | PyObject *resultobj; |
29750 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29751 | int *arg2 = (int *) 0 ; | |
29752 | int *arg3 = (int *) 0 ; | |
29753 | int temp2 ; | |
c32bde28 | 29754 | int res2 = 0 ; |
d14a1e28 | 29755 | int temp3 ; |
c32bde28 | 29756 | int res3 = 0 ; |
d14a1e28 RD |
29757 | PyObject * obj0 = 0 ; |
29758 | char *kwnames[] = { | |
29759 | (char *) "self", NULL | |
29760 | }; | |
29761 | ||
c32bde28 RD |
29762 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29763 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29767 | { |
29768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29769 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29770 | ||
29771 | wxPyEndAllowThreads(__tstate); | |
29772 | if (PyErr_Occurred()) SWIG_fail; | |
29773 | } | |
29774 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29775 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29776 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29777 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29778 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29779 | return resultobj; |
29780 | fail: | |
29781 | return NULL; | |
29782 | } | |
29783 | ||
29784 | ||
c32bde28 | 29785 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29786 | PyObject *resultobj; |
29787 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29788 | int *arg2 = (int *) 0 ; | |
29789 | int *arg3 = (int *) 0 ; | |
29790 | int temp2 ; | |
c32bde28 | 29791 | int res2 = 0 ; |
d14a1e28 | 29792 | int temp3 ; |
c32bde28 | 29793 | int res3 = 0 ; |
d14a1e28 RD |
29794 | PyObject * obj0 = 0 ; |
29795 | char *kwnames[] = { | |
29796 | (char *) "self", NULL | |
29797 | }; | |
29798 | ||
c32bde28 RD |
29799 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
29800 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 29801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
29802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29804 | { |
29805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29806 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29807 | ||
29808 | wxPyEndAllowThreads(__tstate); | |
29809 | if (PyErr_Occurred()) SWIG_fail; | |
29810 | } | |
29811 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29812 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29813 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29814 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29815 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
29816 | return resultobj; |
29817 | fail: | |
29818 | return NULL; | |
29819 | } | |
29820 | ||
29821 | ||
c32bde28 | 29822 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29823 | PyObject *resultobj; |
29824 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29825 | wxSize result; | |
29826 | PyObject * obj0 = 0 ; | |
29827 | char *kwnames[] = { | |
29828 | (char *) "self", NULL | |
29829 | }; | |
29830 | ||
29831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29834 | { |
29835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29836 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29837 | ||
29838 | wxPyEndAllowThreads(__tstate); | |
29839 | if (PyErr_Occurred()) SWIG_fail; | |
29840 | } | |
29841 | { | |
29842 | wxSize * resultptr; | |
29843 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29845 | } |
29846 | return resultobj; | |
29847 | fail: | |
29848 | return NULL; | |
29849 | } | |
29850 | ||
29851 | ||
c32bde28 | 29852 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29853 | PyObject *resultobj; |
29854 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29855 | wxSize result; | |
29856 | PyObject * obj0 = 0 ; | |
29857 | char *kwnames[] = { | |
29858 | (char *) "self", NULL | |
29859 | }; | |
29860 | ||
29861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29864 | { |
29865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29866 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29867 | ||
29868 | wxPyEndAllowThreads(__tstate); | |
29869 | if (PyErr_Occurred()) SWIG_fail; | |
29870 | } | |
29871 | { | |
29872 | wxSize * resultptr; | |
29873 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29874 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29875 | } |
29876 | return resultobj; | |
29877 | fail: | |
29878 | return NULL; | |
29879 | } | |
29880 | ||
29881 | ||
c32bde28 | 29882 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29883 | PyObject *resultobj; |
29884 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29885 | PyObject * obj0 = 0 ; | |
29886 | char *kwnames[] = { | |
29887 | (char *) "self", NULL | |
29888 | }; | |
29889 | ||
29890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29893 | { |
29894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29895 | (arg1)->base_InitDialog(); | |
29896 | ||
29897 | wxPyEndAllowThreads(__tstate); | |
29898 | if (PyErr_Occurred()) SWIG_fail; | |
29899 | } | |
29900 | Py_INCREF(Py_None); resultobj = Py_None; | |
29901 | return resultobj; | |
29902 | fail: | |
29903 | return NULL; | |
29904 | } | |
29905 | ||
29906 | ||
c32bde28 | 29907 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29908 | PyObject *resultobj; |
29909 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29910 | bool result; | |
29911 | PyObject * obj0 = 0 ; | |
29912 | char *kwnames[] = { | |
29913 | (char *) "self", NULL | |
29914 | }; | |
29915 | ||
29916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29919 | { |
29920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29921 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29922 | ||
29923 | wxPyEndAllowThreads(__tstate); | |
29924 | if (PyErr_Occurred()) SWIG_fail; | |
29925 | } | |
4f89f6a3 RD |
29926 | { |
29927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29928 | } | |
d14a1e28 RD |
29929 | return resultobj; |
29930 | fail: | |
29931 | return NULL; | |
29932 | } | |
29933 | ||
29934 | ||
c32bde28 | 29935 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29936 | PyObject *resultobj; |
29937 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29938 | bool result; | |
29939 | PyObject * obj0 = 0 ; | |
29940 | char *kwnames[] = { | |
29941 | (char *) "self", NULL | |
29942 | }; | |
29943 | ||
29944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29947 | { |
29948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29949 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29950 | ||
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
4f89f6a3 RD |
29954 | { |
29955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29956 | } | |
d14a1e28 RD |
29957 | return resultobj; |
29958 | fail: | |
29959 | return NULL; | |
29960 | } | |
29961 | ||
29962 | ||
c32bde28 | 29963 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29964 | PyObject *resultobj; |
29965 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29966 | bool result; | |
29967 | PyObject * obj0 = 0 ; | |
29968 | char *kwnames[] = { | |
29969 | (char *) "self", NULL | |
29970 | }; | |
29971 | ||
29972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29975 | { |
29976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29977 | result = (bool)(arg1)->base_Validate(); | |
29978 | ||
29979 | wxPyEndAllowThreads(__tstate); | |
29980 | if (PyErr_Occurred()) SWIG_fail; | |
29981 | } | |
4f89f6a3 RD |
29982 | { |
29983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29984 | } | |
d14a1e28 RD |
29985 | return resultobj; |
29986 | fail: | |
29987 | return NULL; | |
29988 | } | |
29989 | ||
29990 | ||
c32bde28 | 29991 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29992 | PyObject *resultobj; |
29993 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29994 | bool result; | |
29995 | PyObject * obj0 = 0 ; | |
29996 | char *kwnames[] = { | |
29997 | (char *) "self", NULL | |
29998 | }; | |
29999 | ||
30000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30003 | { |
30004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30005 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
30006 | ||
30007 | wxPyEndAllowThreads(__tstate); | |
30008 | if (PyErr_Occurred()) SWIG_fail; | |
30009 | } | |
4f89f6a3 RD |
30010 | { |
30011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30012 | } | |
d14a1e28 RD |
30013 | return resultobj; |
30014 | fail: | |
30015 | return NULL; | |
30016 | } | |
30017 | ||
30018 | ||
c32bde28 | 30019 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30020 | PyObject *resultobj; |
30021 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30022 | bool result; | |
30023 | PyObject * obj0 = 0 ; | |
30024 | char *kwnames[] = { | |
30025 | (char *) "self", NULL | |
30026 | }; | |
30027 | ||
30028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30031 | { |
30032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30033 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
30034 | ||
30035 | wxPyEndAllowThreads(__tstate); | |
30036 | if (PyErr_Occurred()) SWIG_fail; | |
30037 | } | |
4f89f6a3 RD |
30038 | { |
30039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30040 | } | |
d14a1e28 RD |
30041 | return resultobj; |
30042 | fail: | |
30043 | return NULL; | |
30044 | } | |
30045 | ||
30046 | ||
c32bde28 | 30047 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30048 | PyObject *resultobj; |
30049 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30050 | wxSize result; | |
30051 | PyObject * obj0 = 0 ; | |
30052 | char *kwnames[] = { | |
30053 | (char *) "self", NULL | |
30054 | }; | |
30055 | ||
30056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30059 | { |
30060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30061 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
30062 | ||
30063 | wxPyEndAllowThreads(__tstate); | |
30064 | if (PyErr_Occurred()) SWIG_fail; | |
30065 | } | |
30066 | { | |
30067 | wxSize * resultptr; | |
30068 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 30069 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
30070 | } |
30071 | return resultobj; | |
30072 | fail: | |
30073 | return NULL; | |
30074 | } | |
30075 | ||
30076 | ||
c32bde28 | 30077 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30078 | PyObject *resultobj; |
30079 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30080 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30081 | PyObject * obj0 = 0 ; | |
30082 | PyObject * obj1 = 0 ; | |
30083 | char *kwnames[] = { | |
30084 | (char *) "self",(char *) "child", NULL | |
30085 | }; | |
30086 | ||
30087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30092 | { |
30093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30094 | (arg1)->base_AddChild(arg2); | |
30095 | ||
30096 | wxPyEndAllowThreads(__tstate); | |
30097 | if (PyErr_Occurred()) SWIG_fail; | |
30098 | } | |
30099 | Py_INCREF(Py_None); resultobj = Py_None; | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | return NULL; | |
30103 | } | |
30104 | ||
30105 | ||
c32bde28 | 30106 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30107 | PyObject *resultobj; |
30108 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30110 | PyObject * obj0 = 0 ; | |
30111 | PyObject * obj1 = 0 ; | |
30112 | char *kwnames[] = { | |
30113 | (char *) "self",(char *) "child", NULL | |
30114 | }; | |
30115 | ||
30116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
30118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30121 | { |
30122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30123 | (arg1)->base_RemoveChild(arg2); | |
30124 | ||
30125 | wxPyEndAllowThreads(__tstate); | |
30126 | if (PyErr_Occurred()) SWIG_fail; | |
30127 | } | |
30128 | Py_INCREF(Py_None); resultobj = Py_None; | |
30129 | return resultobj; | |
30130 | fail: | |
30131 | return NULL; | |
30132 | } | |
30133 | ||
30134 | ||
c32bde28 | 30135 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
30136 | PyObject *resultobj; |
30137 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30138 | bool result; | |
30139 | PyObject * obj0 = 0 ; | |
30140 | char *kwnames[] = { | |
30141 | (char *) "self", NULL | |
30142 | }; | |
30143 | ||
30144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
30145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30147 | { | |
30148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 30149 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
30150 | |
30151 | wxPyEndAllowThreads(__tstate); | |
30152 | if (PyErr_Occurred()) SWIG_fail; | |
30153 | } | |
30154 | { | |
30155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30156 | } | |
30157 | return resultobj; | |
30158 | fail: | |
30159 | return NULL; | |
30160 | } | |
30161 | ||
30162 | ||
c32bde28 | 30163 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
30164 | PyObject *resultobj; |
30165 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30166 | wxColour *arg2 = 0 ; | |
30167 | wxColour temp2 ; | |
30168 | PyObject * obj0 = 0 ; | |
30169 | PyObject * obj1 = 0 ; | |
30170 | char *kwnames[] = { | |
30171 | (char *) "self",(char *) "c", NULL | |
30172 | }; | |
30173 | ||
30174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
30175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30177 | { | |
30178 | arg2 = &temp2; | |
30179 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30180 | } | |
30181 | { | |
30182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30183 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
30184 | ||
30185 | wxPyEndAllowThreads(__tstate); | |
30186 | if (PyErr_Occurred()) SWIG_fail; | |
30187 | } | |
30188 | Py_INCREF(Py_None); resultobj = Py_None; | |
30189 | return resultobj; | |
30190 | fail: | |
30191 | return NULL; | |
30192 | } | |
30193 | ||
30194 | ||
c32bde28 | 30195 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
30196 | PyObject *resultobj; |
30197 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
30198 | wxVisualAttributes result; | |
30199 | PyObject * obj0 = 0 ; | |
30200 | char *kwnames[] = { | |
30201 | (char *) "self", NULL | |
30202 | }; | |
30203 | ||
30204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
30205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
30206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30207 | { | |
30208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30209 | result = (arg1)->base_GetDefaultAttributes(); | |
30210 | ||
30211 | wxPyEndAllowThreads(__tstate); | |
30212 | if (PyErr_Occurred()) SWIG_fail; | |
30213 | } | |
30214 | { | |
30215 | wxVisualAttributes * resultptr; | |
30216 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
30217 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
30218 | } | |
30219 | return resultobj; | |
30220 | fail: | |
30221 | return NULL; | |
30222 | } | |
30223 | ||
30224 | ||
c32bde28 | 30225 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30226 | PyObject *obj; |
30227 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30228 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
30229 | Py_INCREF(obj); | |
30230 | return Py_BuildValue((char *)""); | |
30231 | } | |
c32bde28 | 30232 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30233 | PyObject *resultobj; |
30234 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 30235 | int arg2 = (int) 0 ; |
d14a1e28 RD |
30236 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30237 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30238 | wxHelpEvent *result; | |
30239 | wxPoint temp3 ; | |
994141e6 RD |
30240 | PyObject * obj0 = 0 ; |
30241 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
30242 | PyObject * obj2 = 0 ; |
30243 | char *kwnames[] = { | |
30244 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
30245 | }; | |
30246 | ||
994141e6 RD |
30247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
30248 | if (obj0) { | |
c32bde28 | 30249 | arg1 = (wxEventType)SWIG_As_int(obj0); |
15afbcd0 | 30250 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 RD |
30251 | } |
30252 | if (obj1) { | |
c32bde28 | 30253 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30254 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30255 | } |
d14a1e28 RD |
30256 | if (obj2) { |
30257 | { | |
30258 | arg3 = &temp3; | |
30259 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30260 | } | |
30261 | } | |
30262 | { | |
30263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30264 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
30265 | ||
30266 | wxPyEndAllowThreads(__tstate); | |
30267 | if (PyErr_Occurred()) SWIG_fail; | |
30268 | } | |
15afbcd0 | 30269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
30270 | return resultobj; |
30271 | fail: | |
30272 | return NULL; | |
30273 | } | |
30274 | ||
30275 | ||
c32bde28 | 30276 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30277 | PyObject *resultobj; |
30278 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 30279 | wxPoint result; |
d14a1e28 RD |
30280 | PyObject * obj0 = 0 ; |
30281 | char *kwnames[] = { | |
30282 | (char *) "self", NULL | |
30283 | }; | |
30284 | ||
30285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30288 | { |
30289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 30290 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
30291 | |
30292 | wxPyEndAllowThreads(__tstate); | |
30293 | if (PyErr_Occurred()) SWIG_fail; | |
30294 | } | |
15afbcd0 RD |
30295 | { |
30296 | wxPoint * resultptr; | |
30297 | resultptr = new wxPoint((wxPoint &) result); | |
30298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
30299 | } | |
d14a1e28 RD |
30300 | return resultobj; |
30301 | fail: | |
30302 | return NULL; | |
30303 | } | |
30304 | ||
30305 | ||
c32bde28 | 30306 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30307 | PyObject *resultobj; |
30308 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30309 | wxPoint *arg2 = 0 ; | |
30310 | wxPoint temp2 ; | |
30311 | PyObject * obj0 = 0 ; | |
30312 | PyObject * obj1 = 0 ; | |
30313 | char *kwnames[] = { | |
30314 | (char *) "self",(char *) "pos", NULL | |
30315 | }; | |
30316 | ||
30317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30320 | { |
30321 | arg2 = &temp2; | |
30322 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30323 | } | |
30324 | { | |
30325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30326 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30327 | ||
30328 | wxPyEndAllowThreads(__tstate); | |
30329 | if (PyErr_Occurred()) SWIG_fail; | |
30330 | } | |
30331 | Py_INCREF(Py_None); resultobj = Py_None; | |
30332 | return resultobj; | |
30333 | fail: | |
30334 | return NULL; | |
30335 | } | |
30336 | ||
30337 | ||
c32bde28 | 30338 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30339 | PyObject *resultobj; |
30340 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30341 | wxString *result; | |
30342 | PyObject * obj0 = 0 ; | |
30343 | char *kwnames[] = { | |
30344 | (char *) "self", NULL | |
30345 | }; | |
30346 | ||
30347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30350 | { |
30351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30352 | { | |
30353 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30354 | result = (wxString *) &_result_ref; | |
30355 | } | |
30356 | ||
30357 | wxPyEndAllowThreads(__tstate); | |
30358 | if (PyErr_Occurred()) SWIG_fail; | |
30359 | } | |
cc6dd355 RD |
30360 | { |
30361 | #if wxUSE_UNICODE | |
30362 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30363 | #else | |
30364 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30365 | #endif | |
30366 | } | |
d14a1e28 RD |
30367 | return resultobj; |
30368 | fail: | |
30369 | return NULL; | |
30370 | } | |
30371 | ||
30372 | ||
c32bde28 | 30373 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30374 | PyObject *resultobj; |
30375 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30376 | wxString *arg2 = 0 ; | |
ae8162c8 | 30377 | bool temp2 = false ; |
d14a1e28 RD |
30378 | PyObject * obj0 = 0 ; |
30379 | PyObject * obj1 = 0 ; | |
30380 | char *kwnames[] = { | |
30381 | (char *) "self",(char *) "link", NULL | |
30382 | }; | |
30383 | ||
30384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30387 | { |
30388 | arg2 = wxString_in_helper(obj1); | |
30389 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30390 | temp2 = true; |
d14a1e28 RD |
30391 | } |
30392 | { | |
30393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30394 | (arg1)->SetLink((wxString const &)*arg2); | |
30395 | ||
30396 | wxPyEndAllowThreads(__tstate); | |
30397 | if (PyErr_Occurred()) SWIG_fail; | |
30398 | } | |
30399 | Py_INCREF(Py_None); resultobj = Py_None; | |
30400 | { | |
30401 | if (temp2) | |
30402 | delete arg2; | |
30403 | } | |
30404 | return resultobj; | |
30405 | fail: | |
30406 | { | |
30407 | if (temp2) | |
30408 | delete arg2; | |
30409 | } | |
30410 | return NULL; | |
30411 | } | |
30412 | ||
30413 | ||
c32bde28 | 30414 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30415 | PyObject *resultobj; |
30416 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30417 | wxString *result; | |
30418 | PyObject * obj0 = 0 ; | |
30419 | char *kwnames[] = { | |
30420 | (char *) "self", NULL | |
30421 | }; | |
30422 | ||
30423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30426 | { |
30427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30428 | { | |
30429 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30430 | result = (wxString *) &_result_ref; | |
30431 | } | |
30432 | ||
30433 | wxPyEndAllowThreads(__tstate); | |
30434 | if (PyErr_Occurred()) SWIG_fail; | |
30435 | } | |
cc6dd355 RD |
30436 | { |
30437 | #if wxUSE_UNICODE | |
30438 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30439 | #else | |
30440 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30441 | #endif | |
30442 | } | |
d14a1e28 RD |
30443 | return resultobj; |
30444 | fail: | |
30445 | return NULL; | |
30446 | } | |
30447 | ||
30448 | ||
c32bde28 | 30449 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30450 | PyObject *resultobj; |
30451 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30452 | wxString *arg2 = 0 ; | |
ae8162c8 | 30453 | bool temp2 = false ; |
d14a1e28 RD |
30454 | PyObject * obj0 = 0 ; |
30455 | PyObject * obj1 = 0 ; | |
30456 | char *kwnames[] = { | |
30457 | (char *) "self",(char *) "target", NULL | |
30458 | }; | |
30459 | ||
30460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30463 | { |
30464 | arg2 = wxString_in_helper(obj1); | |
30465 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30466 | temp2 = true; |
d14a1e28 RD |
30467 | } |
30468 | { | |
30469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30470 | (arg1)->SetTarget((wxString const &)*arg2); | |
30471 | ||
30472 | wxPyEndAllowThreads(__tstate); | |
30473 | if (PyErr_Occurred()) SWIG_fail; | |
30474 | } | |
30475 | Py_INCREF(Py_None); resultobj = Py_None; | |
30476 | { | |
30477 | if (temp2) | |
30478 | delete arg2; | |
30479 | } | |
30480 | return resultobj; | |
30481 | fail: | |
30482 | { | |
30483 | if (temp2) | |
30484 | delete arg2; | |
30485 | } | |
30486 | return NULL; | |
30487 | } | |
30488 | ||
30489 | ||
c32bde28 | 30490 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30491 | PyObject *obj; |
30492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30493 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30494 | Py_INCREF(obj); | |
30495 | return Py_BuildValue((char *)""); | |
30496 | } | |
c32bde28 | 30497 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30498 | PyObject *resultobj; |
30499 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 30500 | bool arg2 = (bool) true ; |
d14a1e28 RD |
30501 | wxContextHelp *result; |
30502 | PyObject * obj0 = 0 ; | |
30503 | PyObject * obj1 = 0 ; | |
30504 | char *kwnames[] = { | |
30505 | (char *) "window",(char *) "doNow", NULL | |
30506 | }; | |
30507 | ||
30508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30509 | if (obj0) { | |
15afbcd0 RD |
30510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30512 | } |
30513 | if (obj1) { | |
c32bde28 | 30514 | arg2 = (bool)SWIG_As_bool(obj1); |
15afbcd0 | 30515 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30516 | } |
30517 | { | |
e3b71cb8 | 30518 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30520 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30521 | ||
30522 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30523 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30524 | } |
15afbcd0 | 30525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
30526 | return resultobj; |
30527 | fail: | |
30528 | return NULL; | |
30529 | } | |
30530 | ||
30531 | ||
c32bde28 | 30532 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30533 | PyObject *resultobj; |
30534 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30535 | PyObject * obj0 = 0 ; | |
30536 | char *kwnames[] = { | |
30537 | (char *) "self", NULL | |
30538 | }; | |
30539 | ||
30540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30543 | { |
30544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30545 | delete arg1; | |
30546 | ||
30547 | wxPyEndAllowThreads(__tstate); | |
30548 | if (PyErr_Occurred()) SWIG_fail; | |
30549 | } | |
30550 | Py_INCREF(Py_None); resultobj = Py_None; | |
30551 | return resultobj; | |
30552 | fail: | |
30553 | return NULL; | |
30554 | } | |
30555 | ||
30556 | ||
c32bde28 | 30557 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30558 | PyObject *resultobj; |
30559 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30560 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30561 | bool result; | |
30562 | PyObject * obj0 = 0 ; | |
30563 | PyObject * obj1 = 0 ; | |
30564 | char *kwnames[] = { | |
30565 | (char *) "self",(char *) "window", NULL | |
30566 | }; | |
30567 | ||
30568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30571 | if (obj1) { |
15afbcd0 RD |
30572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
30573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30574 | } |
30575 | { | |
30576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30577 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30578 | ||
30579 | wxPyEndAllowThreads(__tstate); | |
30580 | if (PyErr_Occurred()) SWIG_fail; | |
30581 | } | |
4f89f6a3 RD |
30582 | { |
30583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30584 | } | |
d14a1e28 RD |
30585 | return resultobj; |
30586 | fail: | |
30587 | return NULL; | |
30588 | } | |
30589 | ||
30590 | ||
c32bde28 | 30591 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30592 | PyObject *resultobj; |
30593 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30594 | bool result; | |
30595 | PyObject * obj0 = 0 ; | |
30596 | char *kwnames[] = { | |
30597 | (char *) "self", NULL | |
30598 | }; | |
30599 | ||
30600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30603 | { |
30604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30605 | result = (bool)(arg1)->EndContextHelp(); | |
30606 | ||
30607 | wxPyEndAllowThreads(__tstate); | |
30608 | if (PyErr_Occurred()) SWIG_fail; | |
30609 | } | |
4f89f6a3 RD |
30610 | { |
30611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30612 | } | |
d14a1e28 RD |
30613 | return resultobj; |
30614 | fail: | |
30615 | return NULL; | |
30616 | } | |
30617 | ||
30618 | ||
c32bde28 | 30619 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30620 | PyObject *obj; |
30621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30622 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30623 | Py_INCREF(obj); | |
30624 | return Py_BuildValue((char *)""); | |
30625 | } | |
c32bde28 | 30626 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30627 | PyObject *resultobj; |
30628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30629 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30630 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30631 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30632 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30633 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30634 | long arg5 = (long) wxBU_AUTODRAW ; | |
30635 | wxContextHelpButton *result; | |
30636 | wxPoint temp3 ; | |
30637 | wxSize temp4 ; | |
30638 | PyObject * obj0 = 0 ; | |
994141e6 | 30639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30640 | PyObject * obj2 = 0 ; |
30641 | PyObject * obj3 = 0 ; | |
994141e6 | 30642 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30643 | char *kwnames[] = { |
30644 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30645 | }; | |
30646 | ||
994141e6 | 30647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30650 | if (obj1) { |
c32bde28 | 30651 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30652 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30653 | } |
d14a1e28 RD |
30654 | if (obj2) { |
30655 | { | |
30656 | arg3 = &temp3; | |
30657 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30658 | } | |
30659 | } | |
30660 | if (obj3) { | |
30661 | { | |
30662 | arg4 = &temp4; | |
30663 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30664 | } | |
30665 | } | |
994141e6 | 30666 | if (obj4) { |
c32bde28 | 30667 | arg5 = (long)SWIG_As_long(obj4); |
15afbcd0 | 30668 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 30669 | } |
d14a1e28 | 30670 | { |
e3b71cb8 | 30671 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30673 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30674 | ||
30675 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30676 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30677 | } |
15afbcd0 | 30678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30679 | return resultobj; |
30680 | fail: | |
30681 | return NULL; | |
30682 | } | |
30683 | ||
30684 | ||
c32bde28 | 30685 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30686 | PyObject *obj; |
30687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30688 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30689 | Py_INCREF(obj); | |
30690 | return Py_BuildValue((char *)""); | |
30691 | } | |
c32bde28 | 30692 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30693 | PyObject *resultobj; |
30694 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30695 | wxHelpProvider *result; | |
30696 | PyObject * obj0 = 0 ; | |
30697 | char *kwnames[] = { | |
30698 | (char *) "helpProvider", NULL | |
30699 | }; | |
30700 | ||
30701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30704 | { |
30705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30706 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30707 | ||
30708 | wxPyEndAllowThreads(__tstate); | |
30709 | if (PyErr_Occurred()) SWIG_fail; | |
30710 | } | |
15afbcd0 | 30711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30712 | return resultobj; |
30713 | fail: | |
30714 | return NULL; | |
30715 | } | |
30716 | ||
30717 | ||
c32bde28 | 30718 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30719 | PyObject *resultobj; |
30720 | wxHelpProvider *result; | |
30721 | char *kwnames[] = { | |
30722 | NULL | |
30723 | }; | |
30724 | ||
30725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30726 | { | |
30727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30728 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30729 | ||
30730 | wxPyEndAllowThreads(__tstate); | |
30731 | if (PyErr_Occurred()) SWIG_fail; | |
30732 | } | |
15afbcd0 | 30733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30734 | return resultobj; |
30735 | fail: | |
30736 | return NULL; | |
30737 | } | |
30738 | ||
30739 | ||
c32bde28 | 30740 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30741 | PyObject *resultobj; |
30742 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30743 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30744 | wxString result; | |
30745 | PyObject * obj0 = 0 ; | |
30746 | PyObject * obj1 = 0 ; | |
30747 | char *kwnames[] = { | |
30748 | (char *) "self",(char *) "window", NULL | |
30749 | }; | |
30750 | ||
30751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30756 | { |
30757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30758 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30759 | ||
30760 | wxPyEndAllowThreads(__tstate); | |
30761 | if (PyErr_Occurred()) SWIG_fail; | |
30762 | } | |
30763 | { | |
30764 | #if wxUSE_UNICODE | |
30765 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30766 | #else | |
30767 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30768 | #endif | |
30769 | } | |
30770 | return resultobj; | |
30771 | fail: | |
30772 | return NULL; | |
30773 | } | |
30774 | ||
30775 | ||
c32bde28 | 30776 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30777 | PyObject *resultobj; |
30778 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30779 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30780 | bool result; | |
30781 | PyObject * obj0 = 0 ; | |
30782 | PyObject * obj1 = 0 ; | |
30783 | char *kwnames[] = { | |
30784 | (char *) "self",(char *) "window", NULL | |
30785 | }; | |
30786 | ||
30787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30792 | { |
30793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30794 | result = (bool)(arg1)->ShowHelp(arg2); | |
30795 | ||
30796 | wxPyEndAllowThreads(__tstate); | |
30797 | if (PyErr_Occurred()) SWIG_fail; | |
30798 | } | |
4f89f6a3 RD |
30799 | { |
30800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30801 | } | |
d14a1e28 RD |
30802 | return resultobj; |
30803 | fail: | |
30804 | return NULL; | |
30805 | } | |
30806 | ||
30807 | ||
c32bde28 | 30808 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30809 | PyObject *resultobj; |
30810 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30811 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30812 | wxString *arg3 = 0 ; | |
ae8162c8 | 30813 | bool temp3 = false ; |
d14a1e28 RD |
30814 | PyObject * obj0 = 0 ; |
30815 | PyObject * obj1 = 0 ; | |
30816 | PyObject * obj2 = 0 ; | |
30817 | char *kwnames[] = { | |
30818 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30819 | }; | |
30820 | ||
30821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30826 | { |
30827 | arg3 = wxString_in_helper(obj2); | |
30828 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30829 | temp3 = true; |
d14a1e28 RD |
30830 | } |
30831 | { | |
30832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30833 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30834 | ||
30835 | wxPyEndAllowThreads(__tstate); | |
30836 | if (PyErr_Occurred()) SWIG_fail; | |
30837 | } | |
30838 | Py_INCREF(Py_None); resultobj = Py_None; | |
30839 | { | |
30840 | if (temp3) | |
30841 | delete arg3; | |
30842 | } | |
30843 | return resultobj; | |
30844 | fail: | |
30845 | { | |
30846 | if (temp3) | |
30847 | delete arg3; | |
30848 | } | |
30849 | return NULL; | |
30850 | } | |
30851 | ||
30852 | ||
c32bde28 | 30853 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30854 | PyObject *resultobj; |
30855 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30856 | int arg2 ; |
d14a1e28 | 30857 | wxString *arg3 = 0 ; |
ae8162c8 | 30858 | bool temp3 = false ; |
d14a1e28 | 30859 | PyObject * obj0 = 0 ; |
994141e6 | 30860 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30861 | PyObject * obj2 = 0 ; |
30862 | char *kwnames[] = { | |
30863 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30864 | }; | |
30865 | ||
994141e6 | 30866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30869 | arg2 = (int)SWIG_As_int(obj1); |
15afbcd0 | 30870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30871 | { |
30872 | arg3 = wxString_in_helper(obj2); | |
30873 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30874 | temp3 = true; |
d14a1e28 RD |
30875 | } |
30876 | { | |
30877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30878 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30879 | ||
30880 | wxPyEndAllowThreads(__tstate); | |
30881 | if (PyErr_Occurred()) SWIG_fail; | |
30882 | } | |
30883 | Py_INCREF(Py_None); resultobj = Py_None; | |
30884 | { | |
30885 | if (temp3) | |
30886 | delete arg3; | |
30887 | } | |
30888 | return resultobj; | |
30889 | fail: | |
30890 | { | |
30891 | if (temp3) | |
30892 | delete arg3; | |
30893 | } | |
30894 | return NULL; | |
30895 | } | |
30896 | ||
30897 | ||
c32bde28 | 30898 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
30899 | PyObject *resultobj; |
30900 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30901 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30902 | PyObject * obj0 = 0 ; | |
30903 | PyObject * obj1 = 0 ; | |
30904 | char *kwnames[] = { | |
30905 | (char *) "self",(char *) "window", NULL | |
30906 | }; | |
30907 | ||
30908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30913 | { | |
30914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30915 | (arg1)->RemoveHelp(arg2); | |
30916 | ||
30917 | wxPyEndAllowThreads(__tstate); | |
30918 | if (PyErr_Occurred()) SWIG_fail; | |
30919 | } | |
30920 | Py_INCREF(Py_None); resultobj = Py_None; | |
30921 | return resultobj; | |
30922 | fail: | |
30923 | return NULL; | |
30924 | } | |
30925 | ||
30926 | ||
c32bde28 | 30927 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30928 | PyObject *resultobj; |
30929 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30930 | PyObject * obj0 = 0 ; | |
30931 | char *kwnames[] = { | |
30932 | (char *) "self", NULL | |
30933 | }; | |
30934 | ||
30935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30938 | { |
30939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30940 | wxHelpProvider_Destroy(arg1); | |
30941 | ||
30942 | wxPyEndAllowThreads(__tstate); | |
30943 | if (PyErr_Occurred()) SWIG_fail; | |
30944 | } | |
30945 | Py_INCREF(Py_None); resultobj = Py_None; | |
30946 | return resultobj; | |
30947 | fail: | |
30948 | return NULL; | |
30949 | } | |
30950 | ||
30951 | ||
c32bde28 | 30952 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30953 | PyObject *obj; |
30954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30955 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30956 | Py_INCREF(obj); | |
30957 | return Py_BuildValue((char *)""); | |
30958 | } | |
c32bde28 | 30959 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30960 | PyObject *resultobj; |
30961 | wxSimpleHelpProvider *result; | |
30962 | char *kwnames[] = { | |
30963 | NULL | |
30964 | }; | |
30965 | ||
30966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30967 | { | |
30968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30969 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30970 | ||
30971 | wxPyEndAllowThreads(__tstate); | |
30972 | if (PyErr_Occurred()) SWIG_fail; | |
30973 | } | |
15afbcd0 | 30974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30975 | return resultobj; |
30976 | fail: | |
30977 | return NULL; | |
30978 | } | |
30979 | ||
30980 | ||
c32bde28 | 30981 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30982 | PyObject *obj; |
30983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30984 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30985 | Py_INCREF(obj); | |
30986 | return Py_BuildValue((char *)""); | |
30987 | } | |
c32bde28 | 30988 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
30989 | PyObject *resultobj; |
30990 | wxBitmap *arg1 = 0 ; | |
30991 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30992 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30993 | wxGenericDragImage *result; | |
30994 | PyObject * obj0 = 0 ; | |
30995 | PyObject * obj1 = 0 ; | |
30996 | char *kwnames[] = { | |
30997 | (char *) "image",(char *) "cursor", NULL | |
30998 | }; | |
30999 | ||
31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
31002 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31003 | SWIG_fail; | |
e811c8ce | 31004 | if (arg1 == NULL) { |
15afbcd0 RD |
31005 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31006 | SWIG_fail; | |
e811c8ce RD |
31007 | } |
31008 | if (obj1) { | |
15afbcd0 RD |
31009 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31011 | SWIG_fail; | |
e811c8ce | 31012 | if (arg2 == NULL) { |
15afbcd0 RD |
31013 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31014 | SWIG_fail; | |
e811c8ce RD |
31015 | } |
31016 | } | |
31017 | { | |
e3b71cb8 | 31018 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31020 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
31021 | ||
31022 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31023 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31024 | } |
15afbcd0 | 31025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31026 | return resultobj; |
31027 | fail: | |
31028 | return NULL; | |
31029 | } | |
31030 | ||
31031 | ||
c32bde28 | 31032 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31033 | PyObject *resultobj; |
31034 | wxIcon *arg1 = 0 ; | |
31035 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31036 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31037 | wxGenericDragImage *result; | |
31038 | PyObject * obj0 = 0 ; | |
31039 | PyObject * obj1 = 0 ; | |
31040 | char *kwnames[] = { | |
31041 | (char *) "image",(char *) "cursor", NULL | |
31042 | }; | |
31043 | ||
31044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
31046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31047 | SWIG_fail; | |
e811c8ce | 31048 | if (arg1 == NULL) { |
15afbcd0 RD |
31049 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31050 | SWIG_fail; | |
e811c8ce RD |
31051 | } |
31052 | if (obj1) { | |
15afbcd0 RD |
31053 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31054 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31055 | SWIG_fail; | |
e811c8ce | 31056 | if (arg2 == NULL) { |
15afbcd0 RD |
31057 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31058 | SWIG_fail; | |
e811c8ce RD |
31059 | } |
31060 | } | |
31061 | { | |
e3b71cb8 | 31062 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31064 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
31065 | ||
31066 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31067 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31068 | } |
15afbcd0 | 31069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31070 | return resultobj; |
31071 | fail: | |
31072 | return NULL; | |
31073 | } | |
31074 | ||
31075 | ||
c32bde28 | 31076 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31077 | PyObject *resultobj; |
31078 | wxString *arg1 = 0 ; | |
31079 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
31080 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
31081 | wxGenericDragImage *result; | |
ae8162c8 | 31082 | bool temp1 = false ; |
e811c8ce RD |
31083 | PyObject * obj0 = 0 ; |
31084 | PyObject * obj1 = 0 ; | |
31085 | char *kwnames[] = { | |
31086 | (char *) "str",(char *) "cursor", NULL | |
31087 | }; | |
31088 | ||
31089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
31090 | { | |
31091 | arg1 = wxString_in_helper(obj0); | |
31092 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31093 | temp1 = true; |
e811c8ce RD |
31094 | } |
31095 | if (obj1) { | |
15afbcd0 RD |
31096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
31097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31098 | SWIG_fail; | |
e811c8ce | 31099 | if (arg2 == NULL) { |
15afbcd0 RD |
31100 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31101 | SWIG_fail; | |
e811c8ce RD |
31102 | } |
31103 | } | |
31104 | { | |
e3b71cb8 | 31105 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31107 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
31108 | ||
31109 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31110 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31111 | } |
15afbcd0 | 31112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31113 | { |
31114 | if (temp1) | |
31115 | delete arg1; | |
31116 | } | |
31117 | return resultobj; | |
31118 | fail: | |
31119 | { | |
31120 | if (temp1) | |
31121 | delete arg1; | |
31122 | } | |
31123 | return NULL; | |
31124 | } | |
31125 | ||
31126 | ||
c32bde28 | 31127 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31128 | PyObject *resultobj; |
31129 | wxPyTreeCtrl *arg1 = 0 ; | |
31130 | wxTreeItemId *arg2 = 0 ; | |
31131 | wxGenericDragImage *result; | |
31132 | PyObject * obj0 = 0 ; | |
31133 | PyObject * obj1 = 0 ; | |
31134 | char *kwnames[] = { | |
31135 | (char *) "treeCtrl",(char *) "id", NULL | |
31136 | }; | |
31137 | ||
31138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
31140 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31141 | SWIG_fail; | |
e811c8ce | 31142 | if (arg1 == NULL) { |
15afbcd0 RD |
31143 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31144 | SWIG_fail; | |
e811c8ce | 31145 | } |
15afbcd0 RD |
31146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
31147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31148 | SWIG_fail; | |
e811c8ce | 31149 | if (arg2 == NULL) { |
15afbcd0 RD |
31150 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31151 | SWIG_fail; | |
e811c8ce RD |
31152 | } |
31153 | { | |
e3b71cb8 | 31154 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31156 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
31157 | ||
31158 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31159 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31160 | } |
15afbcd0 | 31161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31162 | return resultobj; |
31163 | fail: | |
31164 | return NULL; | |
31165 | } | |
31166 | ||
31167 | ||
c32bde28 | 31168 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31169 | PyObject *resultobj; |
31170 | wxPyListCtrl *arg1 = 0 ; | |
31171 | long arg2 ; | |
31172 | wxGenericDragImage *result; | |
31173 | PyObject * obj0 = 0 ; | |
994141e6 | 31174 | PyObject * obj1 = 0 ; |
e811c8ce RD |
31175 | char *kwnames[] = { |
31176 | (char *) "listCtrl",(char *) "id", NULL | |
31177 | }; | |
31178 | ||
994141e6 | 31179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
31181 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31182 | SWIG_fail; | |
e811c8ce | 31183 | if (arg1 == NULL) { |
15afbcd0 RD |
31184 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31185 | SWIG_fail; | |
994141e6 | 31186 | } |
c32bde28 | 31187 | arg2 = (long)SWIG_As_long(obj1); |
15afbcd0 | 31188 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31189 | { |
e3b71cb8 | 31190 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
31191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31192 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
31193 | ||
31194 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31195 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 31196 | } |
15afbcd0 | 31197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
31198 | return resultobj; |
31199 | fail: | |
31200 | return NULL; | |
31201 | } | |
31202 | ||
31203 | ||
c32bde28 | 31204 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31205 | PyObject *resultobj; |
31206 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31207 | PyObject * obj0 = 0 ; | |
31208 | char *kwnames[] = { | |
31209 | (char *) "self", NULL | |
31210 | }; | |
31211 | ||
31212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31215 | { |
31216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31217 | delete arg1; | |
31218 | ||
31219 | wxPyEndAllowThreads(__tstate); | |
31220 | if (PyErr_Occurred()) SWIG_fail; | |
31221 | } | |
31222 | Py_INCREF(Py_None); resultobj = Py_None; | |
31223 | return resultobj; | |
31224 | fail: | |
31225 | return NULL; | |
31226 | } | |
31227 | ||
31228 | ||
c32bde28 | 31229 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31230 | PyObject *resultobj; |
31231 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31232 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
31233 | PyObject * obj0 = 0 ; | |
31234 | PyObject * obj1 = 0 ; | |
31235 | char *kwnames[] = { | |
31236 | (char *) "self",(char *) "bitmap", NULL | |
31237 | }; | |
31238 | ||
31239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31244 | { |
31245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31246 | (arg1)->SetBackingBitmap(arg2); | |
31247 | ||
31248 | wxPyEndAllowThreads(__tstate); | |
31249 | if (PyErr_Occurred()) SWIG_fail; | |
31250 | } | |
31251 | Py_INCREF(Py_None); resultobj = Py_None; | |
31252 | return resultobj; | |
31253 | fail: | |
31254 | return NULL; | |
31255 | } | |
31256 | ||
31257 | ||
c32bde28 | 31258 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31259 | PyObject *resultobj; |
31260 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31261 | wxPoint *arg2 = 0 ; | |
31262 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 31263 | bool arg4 = (bool) false ; |
e811c8ce RD |
31264 | wxRect *arg5 = (wxRect *) NULL ; |
31265 | bool result; | |
31266 | wxPoint temp2 ; | |
31267 | PyObject * obj0 = 0 ; | |
31268 | PyObject * obj1 = 0 ; | |
31269 | PyObject * obj2 = 0 ; | |
31270 | PyObject * obj3 = 0 ; | |
31271 | PyObject * obj4 = 0 ; | |
31272 | char *kwnames[] = { | |
31273 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
31274 | }; | |
31275 | ||
31276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31279 | { |
31280 | arg2 = &temp2; | |
31281 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31282 | } | |
15afbcd0 RD |
31283 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
31284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 31285 | if (obj3) { |
c32bde28 | 31286 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 31287 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
31288 | } |
31289 | if (obj4) { | |
15afbcd0 RD |
31290 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
31291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31292 | } |
31293 | { | |
31294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31295 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
31296 | ||
31297 | wxPyEndAllowThreads(__tstate); | |
31298 | if (PyErr_Occurred()) SWIG_fail; | |
31299 | } | |
4f89f6a3 RD |
31300 | { |
31301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31302 | } | |
e811c8ce RD |
31303 | return resultobj; |
31304 | fail: | |
31305 | return NULL; | |
31306 | } | |
31307 | ||
31308 | ||
c32bde28 | 31309 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31310 | PyObject *resultobj; |
31311 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31312 | wxPoint *arg2 = 0 ; | |
31313 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31314 | wxWindow *arg4 = (wxWindow *) 0 ; | |
31315 | bool result; | |
31316 | wxPoint temp2 ; | |
31317 | PyObject * obj0 = 0 ; | |
31318 | PyObject * obj1 = 0 ; | |
31319 | PyObject * obj2 = 0 ; | |
31320 | PyObject * obj3 = 0 ; | |
31321 | char *kwnames[] = { | |
31322 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
31323 | }; | |
31324 | ||
31325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31328 | { |
31329 | arg2 = &temp2; | |
31330 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31331 | } | |
15afbcd0 RD |
31332 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
31333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31334 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31336 | { |
31337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31338 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31339 | ||
31340 | wxPyEndAllowThreads(__tstate); | |
31341 | if (PyErr_Occurred()) SWIG_fail; | |
31342 | } | |
4f89f6a3 RD |
31343 | { |
31344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31345 | } | |
e811c8ce RD |
31346 | return resultobj; |
31347 | fail: | |
31348 | return NULL; | |
31349 | } | |
31350 | ||
31351 | ||
c32bde28 | 31352 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31353 | PyObject *resultobj; |
31354 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31355 | bool result; | |
31356 | PyObject * obj0 = 0 ; | |
31357 | char *kwnames[] = { | |
31358 | (char *) "self", NULL | |
31359 | }; | |
31360 | ||
31361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31364 | { |
31365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31366 | result = (bool)(arg1)->EndDrag(); | |
31367 | ||
31368 | wxPyEndAllowThreads(__tstate); | |
31369 | if (PyErr_Occurred()) SWIG_fail; | |
31370 | } | |
4f89f6a3 RD |
31371 | { |
31372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31373 | } | |
e811c8ce RD |
31374 | return resultobj; |
31375 | fail: | |
31376 | return NULL; | |
31377 | } | |
31378 | ||
31379 | ||
c32bde28 | 31380 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31381 | PyObject *resultobj; |
31382 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31383 | wxPoint *arg2 = 0 ; | |
31384 | bool result; | |
31385 | wxPoint temp2 ; | |
31386 | PyObject * obj0 = 0 ; | |
31387 | PyObject * obj1 = 0 ; | |
31388 | char *kwnames[] = { | |
31389 | (char *) "self",(char *) "pt", NULL | |
31390 | }; | |
31391 | ||
31392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31395 | { |
31396 | arg2 = &temp2; | |
31397 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31398 | } | |
31399 | { | |
31400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31401 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31402 | ||
31403 | wxPyEndAllowThreads(__tstate); | |
31404 | if (PyErr_Occurred()) SWIG_fail; | |
31405 | } | |
4f89f6a3 RD |
31406 | { |
31407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31408 | } | |
e811c8ce RD |
31409 | return resultobj; |
31410 | fail: | |
31411 | return NULL; | |
31412 | } | |
31413 | ||
31414 | ||
c32bde28 | 31415 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31416 | PyObject *resultobj; |
31417 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31418 | bool result; | |
31419 | PyObject * obj0 = 0 ; | |
31420 | char *kwnames[] = { | |
31421 | (char *) "self", NULL | |
31422 | }; | |
31423 | ||
31424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31427 | { |
31428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31429 | result = (bool)(arg1)->Show(); | |
31430 | ||
31431 | wxPyEndAllowThreads(__tstate); | |
31432 | if (PyErr_Occurred()) SWIG_fail; | |
31433 | } | |
4f89f6a3 RD |
31434 | { |
31435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31436 | } | |
e811c8ce RD |
31437 | return resultobj; |
31438 | fail: | |
31439 | return NULL; | |
31440 | } | |
31441 | ||
31442 | ||
c32bde28 | 31443 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31444 | PyObject *resultobj; |
31445 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31446 | bool result; | |
31447 | PyObject * obj0 = 0 ; | |
31448 | char *kwnames[] = { | |
31449 | (char *) "self", NULL | |
31450 | }; | |
31451 | ||
31452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31455 | { |
31456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31457 | result = (bool)(arg1)->Hide(); | |
31458 | ||
31459 | wxPyEndAllowThreads(__tstate); | |
31460 | if (PyErr_Occurred()) SWIG_fail; | |
31461 | } | |
4f89f6a3 RD |
31462 | { |
31463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31464 | } | |
e811c8ce RD |
31465 | return resultobj; |
31466 | fail: | |
31467 | return NULL; | |
31468 | } | |
31469 | ||
31470 | ||
c32bde28 | 31471 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31472 | PyObject *resultobj; |
31473 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31474 | wxPoint *arg2 = 0 ; | |
31475 | wxRect result; | |
31476 | wxPoint temp2 ; | |
31477 | PyObject * obj0 = 0 ; | |
31478 | PyObject * obj1 = 0 ; | |
31479 | char *kwnames[] = { | |
31480 | (char *) "self",(char *) "pos", NULL | |
31481 | }; | |
31482 | ||
31483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31486 | { |
31487 | arg2 = &temp2; | |
31488 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31489 | } | |
31490 | { | |
31491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31492 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31493 | ||
31494 | wxPyEndAllowThreads(__tstate); | |
31495 | if (PyErr_Occurred()) SWIG_fail; | |
31496 | } | |
31497 | { | |
31498 | wxRect * resultptr; | |
31499 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 31500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
31501 | } |
31502 | return resultobj; | |
31503 | fail: | |
31504 | return NULL; | |
31505 | } | |
31506 | ||
31507 | ||
c32bde28 | 31508 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31509 | PyObject *resultobj; |
31510 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31511 | wxDC *arg2 = 0 ; | |
31512 | wxPoint *arg3 = 0 ; | |
31513 | bool result; | |
31514 | wxPoint temp3 ; | |
31515 | PyObject * obj0 = 0 ; | |
31516 | PyObject * obj1 = 0 ; | |
31517 | PyObject * obj2 = 0 ; | |
31518 | char *kwnames[] = { | |
31519 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31520 | }; | |
31521 | ||
31522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31527 | SWIG_fail; | |
e811c8ce | 31528 | if (arg2 == NULL) { |
15afbcd0 RD |
31529 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31530 | SWIG_fail; | |
e811c8ce RD |
31531 | } |
31532 | { | |
31533 | arg3 = &temp3; | |
31534 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31535 | } | |
31536 | { | |
31537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31538 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31539 | ||
31540 | wxPyEndAllowThreads(__tstate); | |
31541 | if (PyErr_Occurred()) SWIG_fail; | |
31542 | } | |
4f89f6a3 RD |
31543 | { |
31544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31545 | } | |
e811c8ce RD |
31546 | return resultobj; |
31547 | fail: | |
31548 | return NULL; | |
31549 | } | |
31550 | ||
31551 | ||
c32bde28 | 31552 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31553 | PyObject *resultobj; |
31554 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31555 | wxDC *arg2 = 0 ; | |
31556 | wxMemoryDC *arg3 = 0 ; | |
31557 | wxRect *arg4 = 0 ; | |
31558 | wxRect *arg5 = 0 ; | |
31559 | bool result; | |
31560 | wxRect temp4 ; | |
31561 | wxRect temp5 ; | |
31562 | PyObject * obj0 = 0 ; | |
31563 | PyObject * obj1 = 0 ; | |
31564 | PyObject * obj2 = 0 ; | |
31565 | PyObject * obj3 = 0 ; | |
31566 | PyObject * obj4 = 0 ; | |
31567 | char *kwnames[] = { | |
31568 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31569 | }; | |
31570 | ||
31571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31576 | SWIG_fail; | |
e811c8ce | 31577 | if (arg2 == NULL) { |
15afbcd0 RD |
31578 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31579 | SWIG_fail; | |
e811c8ce | 31580 | } |
15afbcd0 RD |
31581 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
31582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31583 | SWIG_fail; | |
e811c8ce | 31584 | if (arg3 == NULL) { |
15afbcd0 RD |
31585 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31586 | SWIG_fail; | |
e811c8ce RD |
31587 | } |
31588 | { | |
31589 | arg4 = &temp4; | |
31590 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31591 | } | |
31592 | { | |
31593 | arg5 = &temp5; | |
31594 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31595 | } | |
31596 | { | |
31597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31598 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31599 | ||
31600 | wxPyEndAllowThreads(__tstate); | |
31601 | if (PyErr_Occurred()) SWIG_fail; | |
31602 | } | |
4f89f6a3 RD |
31603 | { |
31604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31605 | } | |
e811c8ce RD |
31606 | return resultobj; |
31607 | fail: | |
31608 | return NULL; | |
31609 | } | |
31610 | ||
31611 | ||
c32bde28 | 31612 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
31613 | PyObject *resultobj; |
31614 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31615 | wxPoint *arg2 = 0 ; | |
31616 | wxPoint *arg3 = 0 ; | |
31617 | bool arg4 ; | |
31618 | bool arg5 ; | |
31619 | bool result; | |
31620 | wxPoint temp2 ; | |
31621 | wxPoint temp3 ; | |
31622 | PyObject * obj0 = 0 ; | |
31623 | PyObject * obj1 = 0 ; | |
31624 | PyObject * obj2 = 0 ; | |
31625 | PyObject * obj3 = 0 ; | |
31626 | PyObject * obj4 = 0 ; | |
31627 | char *kwnames[] = { | |
31628 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31629 | }; | |
31630 | ||
31631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31634 | { |
31635 | arg2 = &temp2; | |
31636 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31637 | } | |
31638 | { | |
31639 | arg3 = &temp3; | |
31640 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31641 | } | |
c32bde28 | 31642 | arg4 = (bool)SWIG_As_bool(obj3); |
15afbcd0 | 31643 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31644 | arg5 = (bool)SWIG_As_bool(obj4); |
15afbcd0 | 31645 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce RD |
31646 | { |
31647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31648 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31649 | ||
31650 | wxPyEndAllowThreads(__tstate); | |
31651 | if (PyErr_Occurred()) SWIG_fail; | |
31652 | } | |
4f89f6a3 RD |
31653 | { |
31654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31655 | } | |
e811c8ce RD |
31656 | return resultobj; |
31657 | fail: | |
31658 | return NULL; | |
31659 | } | |
31660 | ||
31661 | ||
c32bde28 | 31662 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
31663 | PyObject *obj; |
31664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31665 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31666 | Py_INCREF(obj); | |
31667 | return Py_BuildValue((char *)""); | |
31668 | } | |
31669 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
31670 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL }, |
31671 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31672 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31673 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31674 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31675 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31676 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL }, | |
31677 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31678 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31679 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31680 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31681 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31682 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31683 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31684 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31685 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31686 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31687 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31688 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31689 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31690 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31691 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL }, | |
31692 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31693 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31694 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31695 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31696 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31697 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31698 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31699 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31700 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31701 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31702 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31703 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL }, | |
31704 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31705 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31706 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31707 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31708 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31709 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31710 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31711 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL }, | |
31712 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31713 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31714 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31715 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31716 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31717 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31718 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31719 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31720 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31721 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31722 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31723 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31724 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31725 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31726 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31727 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31728 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31729 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31730 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31731 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31732 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL }, | |
31733 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31734 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31735 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31736 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31737 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31738 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31739 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31740 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31741 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31742 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31743 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31744 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31745 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31746 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL }, | |
31747 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31748 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31749 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31750 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31751 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL }, | |
31752 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31753 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31754 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31755 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31756 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31757 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31758 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL }, | |
31759 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31760 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31761 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31762 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31763 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL }, | |
31764 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31765 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31766 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31767 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31768 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31769 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31770 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31771 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL }, | |
31772 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31773 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31774 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31775 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31776 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31777 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31778 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31779 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31780 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31781 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31782 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31783 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31784 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31785 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31786 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31787 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31788 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31789 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31790 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31791 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31792 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31793 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31794 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL }, | |
31795 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31796 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31797 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31798 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31799 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31800 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31801 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31802 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31803 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL }, | |
31804 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31805 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31806 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31807 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31808 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31809 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31810 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31811 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31812 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31813 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31814 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31815 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31816 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31817 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31818 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31819 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31820 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31821 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31822 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31823 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31824 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31825 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31826 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31827 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31828 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31829 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31830 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31831 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31832 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31833 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31834 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL }, | |
31835 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31836 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31837 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31838 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31839 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31840 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31841 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31842 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31843 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31844 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31845 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31846 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31847 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31848 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31849 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31850 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31851 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31852 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31853 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31854 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31855 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31856 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31857 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31858 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31859 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31860 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31861 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31862 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31863 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31864 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31865 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31866 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31867 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31868 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31869 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31870 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31871 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31872 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31873 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31874 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31875 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31876 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31877 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31878 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31879 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31880 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31881 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31882 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31883 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31884 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31885 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31886 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31887 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31888 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31889 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31890 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL }, | |
31891 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31892 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31893 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31894 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31895 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL }, | |
31896 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31897 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31898 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31899 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31900 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31901 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31902 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31903 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31904 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31905 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31906 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31907 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL }, | |
31908 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31909 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31910 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31911 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31912 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31913 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31914 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31915 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31916 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31917 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31918 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31919 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31920 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL }, | |
31921 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31922 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31923 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31924 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31925 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31926 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31927 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31928 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31929 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31930 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31931 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31932 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL }, | |
31933 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31934 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31935 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31936 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL }, | |
31937 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31938 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31939 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31940 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31941 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31942 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31943 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31944 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31945 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31946 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31947 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31948 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31949 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31950 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31951 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31952 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31953 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31954 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL }, | |
31955 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31956 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31957 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31958 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31959 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31960 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31961 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL }, | |
31962 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31963 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31964 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31965 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31966 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31967 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31968 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31969 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31970 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31971 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31972 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31973 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31974 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31975 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31976 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31977 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31978 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31979 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31980 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31981 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31982 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31983 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31984 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31985 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31986 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31987 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL }, | |
31988 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31989 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31990 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31991 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31992 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31993 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31994 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31995 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL }, | |
31996 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31997 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31998 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
31999 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32000 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32001 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32002 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32003 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32004 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32005 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32006 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32007 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32008 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32009 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32010 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32011 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32012 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32013 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32014 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32015 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32016 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL }, | |
32017 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32018 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32019 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32020 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32021 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32022 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL }, | |
32023 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32024 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32025 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32026 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32027 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32028 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32029 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32030 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32031 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32032 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL }, | |
32033 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32034 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL }, | |
32035 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32036 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32037 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32038 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
1fbf26be | 32039 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
32040 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL }, |
32041 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32042 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL }, | |
2ef75293 RD |
32043 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL }, |
32044 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32045 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32046 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32047 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32048 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL }, | |
32049 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32050 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
32051 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL }, |
32052 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32053 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32054 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32055 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL }, | |
32056 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32057 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32058 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32059 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32060 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL }, | |
32061 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32062 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32063 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32064 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32065 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32066 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32067 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32068 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32069 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32070 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32071 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32072 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32073 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32074 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32075 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32076 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32077 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32078 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32079 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32080 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32081 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32082 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32083 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32084 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32085 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32086 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32087 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32088 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32089 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32090 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL }, | |
32091 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32092 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32093 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32094 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32095 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32096 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32097 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32098 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32099 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32100 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32101 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32102 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32103 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32104 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32105 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32106 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32107 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32108 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32109 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32110 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32111 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32112 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32113 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32114 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32115 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32116 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32117 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32118 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32119 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32120 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32121 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32122 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32123 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32124 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32125 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32126 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32127 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32128 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32129 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32130 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32131 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32132 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32133 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32134 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32135 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL }, | |
32136 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32137 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32138 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32139 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32140 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32141 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL }, | |
32142 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32143 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32144 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32145 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32146 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32147 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32148 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32149 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32150 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32151 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32152 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32153 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL }, | |
32154 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32155 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32156 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32157 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32158 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32159 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32160 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32161 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32162 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32163 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32164 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32165 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32166 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32167 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32168 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32169 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32170 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32171 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32172 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32173 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32174 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32175 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32176 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32177 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32178 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32179 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32180 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32181 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32182 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32183 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32184 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32185 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32186 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32187 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32188 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32189 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32190 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32191 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32192 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32193 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32194 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32195 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32196 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32197 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32198 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32199 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32200 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32201 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32202 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32203 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32204 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32205 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL }, | |
32206 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32207 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32208 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32209 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32210 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32211 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32212 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32213 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32214 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32215 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32216 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32217 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32218 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32219 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32220 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32221 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32222 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32223 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32224 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32225 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32226 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32227 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32228 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32229 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32230 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32231 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32232 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL }, | |
32233 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32234 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32235 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32236 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32237 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32238 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32239 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32240 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32241 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32242 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32243 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32244 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32245 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32246 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32247 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32248 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32249 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32250 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32251 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32252 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32253 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32254 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32255 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32256 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32257 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32258 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32259 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32260 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32261 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32262 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32263 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32264 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32265 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32266 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32267 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32268 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32269 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32270 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32271 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32272 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32273 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32274 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32275 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32276 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32277 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32278 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32279 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32280 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32281 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32282 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32283 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32284 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32285 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32286 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32287 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32288 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32289 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32290 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32291 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32292 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32293 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32294 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32295 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32296 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32297 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32298 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32299 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32300 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32301 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32302 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32303 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL }, | |
32304 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32305 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32306 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32307 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32308 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32309 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32310 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32311 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32312 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32313 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32314 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32315 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL }, | |
32316 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32317 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32318 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32319 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32320 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32321 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32322 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32323 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL }, | |
32324 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32325 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32326 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32327 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32328 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32329 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32330 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL }, | |
32331 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32332 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32333 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32334 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32335 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32336 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32337 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32338 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32339 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32340 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32341 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32342 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32343 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32344 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32345 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32346 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL }, | |
32347 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32348 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32349 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32350 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32351 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32352 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32353 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32354 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32355 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32356 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32357 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32358 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32359 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32360 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32361 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32362 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32363 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32364 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32365 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32366 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32367 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32368 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32369 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32370 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32371 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32372 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32373 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32374 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32375 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32376 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32377 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32378 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32379 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32380 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32381 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32382 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32383 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32384 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32385 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32386 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32387 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32388 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32389 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32390 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32391 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32392 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32393 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32394 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32395 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32396 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32397 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32398 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32399 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32400 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32401 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32402 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32403 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32404 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32405 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32406 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32407 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32408 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32409 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32410 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32411 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32412 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32413 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32414 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32415 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32416 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32417 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32418 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32419 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32420 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32421 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL }, | |
32422 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32423 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32424 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32425 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32426 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32427 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32428 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32429 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32430 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32431 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32432 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32433 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32434 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32435 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32436 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32437 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32438 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32439 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32440 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32441 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32442 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32443 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL }, | |
32444 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32445 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32446 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32447 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32448 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL }, | |
32449 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32450 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32451 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32452 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32453 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32454 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32455 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32456 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32457 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32458 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32459 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32460 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32461 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32462 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32463 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32464 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32465 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32466 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32467 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32468 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32469 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32470 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32471 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32472 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32473 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32474 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL }, | |
32475 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32476 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32477 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32478 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32479 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32480 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32481 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32482 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL }, | |
32483 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32484 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32485 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32486 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32487 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL }, | |
32488 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32489 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL }, | |
32490 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32491 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32492 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32493 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32494 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32495 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32496 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32497 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32498 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL }, | |
32499 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32500 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL }, | |
32501 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32502 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32503 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32504 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32505 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32506 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32507 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32508 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32509 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32510 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32511 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32512 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32513 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32514 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32515 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32516 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32517 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
32518 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL }, | |
32519 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
32520 | }; |
32521 | ||
32522 | ||
32523 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32524 | ||
32525 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32526 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32527 | } | |
32528 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32529 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32530 | } | |
2ef75293 RD |
32531 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlEvent(void *x) { |
32532 | return (void *)((wxBookCtrlEvent *) ((wxChoicebookEvent *) x)); | |
32533 | } | |
d14a1e28 RD |
32534 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { |
32535 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32536 | } | |
32537 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32538 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32539 | } | |
32540 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32541 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32542 | } | |
32543 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32544 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32545 | } | |
32546 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32547 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32548 | } | |
32549 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32550 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32551 | } | |
32552 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32553 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32554 | } | |
32555 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32556 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32557 | } | |
32558 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32559 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32560 | } | |
32561 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32562 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32563 | } | |
32564 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32565 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32566 | } | |
32567 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32568 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32569 | } | |
32570 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32571 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32572 | } | |
32573 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32574 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32575 | } | |
32576 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32577 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32578 | } | |
32579 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32580 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32581 | } | |
32582 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32583 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32584 | } | |
32585 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32586 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32587 | } | |
32588 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32589 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32590 | } | |
32591 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32592 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32593 | } | |
32594 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32595 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32596 | } | |
32597 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32598 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32599 | } | |
32600 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32601 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32602 | } | |
32603 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32604 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32605 | } | |
2ef75293 RD |
32606 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
32607 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x)); | |
32608 | } | |
d14a1e28 RD |
32609 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
32610 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32611 | } | |
32612 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32613 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32614 | } | |
32615 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32616 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32617 | } | |
32618 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32619 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32620 | } | |
32621 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32622 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32623 | } | |
32624 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32625 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32626 | } | |
32627 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32628 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32629 | } | |
32630 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32631 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32632 | } | |
32633 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32634 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32635 | } | |
32636 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32637 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32638 | } | |
32639 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32640 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32641 | } | |
32642 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32643 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32644 | } | |
32645 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32646 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32647 | } | |
32648 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32649 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32650 | } | |
32651 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32652 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32653 | } | |
32654 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32655 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32656 | } | |
32657 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32658 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32659 | } | |
32660 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32661 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32662 | } | |
32663 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32664 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32665 | } | |
32666 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32667 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32668 | } | |
32669 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32670 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32671 | } | |
32672 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32673 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32674 | } | |
32675 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32676 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32677 | } | |
32678 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32679 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32680 | } | |
32681 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32682 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32683 | } | |
32684 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32685 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32686 | } | |
d1e20054 RD |
32687 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32688 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32689 | } | |
d14a1e28 RD |
32690 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32691 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32692 | } | |
32693 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32694 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32695 | } | |
32696 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32697 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32698 | } | |
32699 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32700 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32701 | } | |
32702 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32703 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32704 | } | |
32705 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32706 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32707 | } | |
32708 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32709 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32710 | } | |
2ef75293 RD |
32711 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { |
32712 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
d14a1e28 RD |
32713 | } |
32714 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32715 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32716 | } | |
2ef75293 RD |
32717 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
32718 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 32719 | } |
2ef75293 RD |
32720 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
32721 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 32722 | } |
2ef75293 RD |
32723 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
32724 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d14a1e28 | 32725 | } |
2ef75293 RD |
32726 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
32727 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32728 | } | |
32729 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32730 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
32731 | } |
32732 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32733 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32734 | } | |
2ef75293 RD |
32735 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
32736 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 32737 | } |
2ef75293 RD |
32738 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
32739 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
32740 | } |
32741 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32742 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32743 | } | |
2ef75293 RD |
32744 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
32745 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
32746 | } |
32747 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32748 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32749 | } | |
2ef75293 RD |
32750 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
32751 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 32752 | } |
2ef75293 RD |
32753 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
32754 | return (void *)((wxControl *) (wxBookCtrl *) ((wxChoicebook *) x)); | |
d14a1e28 | 32755 | } |
2ef75293 RD |
32756 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
32757 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
d14a1e28 | 32758 | } |
2ef75293 RD |
32759 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
32760 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 32761 | } |
2ef75293 RD |
32762 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
32763 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
32764 | } |
32765 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32766 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32767 | } | |
2ef75293 RD |
32768 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
32769 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32770 | } | |
32771 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32772 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32773 | } | |
32774 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32775 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32776 | } | |
32777 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32778 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32779 | } | |
d14a1e28 RD |
32780 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
32781 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32782 | } | |
2ef75293 RD |
32783 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
32784 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 32785 | } |
2ef75293 RD |
32786 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
32787 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 32788 | } |
2ef75293 RD |
32789 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
32790 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 32791 | } |
2ef75293 RD |
32792 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
32793 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
32794 | } |
32795 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32796 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32797 | } | |
2ef75293 RD |
32798 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
32799 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d14a1e28 | 32800 | } |
2ef75293 RD |
32801 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
32802 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 32803 | } |
2ef75293 RD |
32804 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
32805 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 32806 | } |
2ef75293 RD |
32807 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
32808 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32809 | } | |
32810 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32811 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
32812 | } |
32813 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32814 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32815 | } | |
32816 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32817 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32818 | } | |
32819 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32820 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32821 | } | |
32822 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32823 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32824 | } | |
32825 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32826 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32827 | } | |
d1e20054 RD |
32828 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32829 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32830 | } | |
d14a1e28 RD |
32831 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32832 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32833 | } | |
32834 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32835 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32836 | } | |
2ef75293 RD |
32837 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
32838 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxChoicebookEvent *) x)); | |
32839 | } | |
d14a1e28 RD |
32840 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { |
32841 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32842 | } | |
32843 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32844 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32845 | } | |
32846 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32847 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32848 | } | |
32849 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32850 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32851 | } | |
32852 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32853 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32854 | } | |
32855 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32856 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32857 | } | |
32858 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32859 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32860 | } | |
32861 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32863 | } | |
32864 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32865 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32866 | } | |
32867 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32868 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32869 | } | |
32870 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32871 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32872 | } | |
d14a1e28 RD |
32873 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
32874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32875 | } | |
2ef75293 RD |
32876 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
32877 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32878 | } | |
d14a1e28 RD |
32879 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
32880 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32881 | } | |
32882 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32883 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32884 | } | |
32885 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32886 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32887 | } | |
32888 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32889 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32890 | } | |
32891 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32892 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32893 | } | |
32894 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32895 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32896 | } | |
32897 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32898 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32899 | } | |
32900 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32901 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32902 | } | |
2ef75293 RD |
32903 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
32904 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxChoicebook *) x)); | |
32905 | } | |
d14a1e28 RD |
32906 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
32907 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32908 | } | |
32909 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32910 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32911 | } | |
32912 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32913 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32914 | } | |
32915 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32916 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32917 | } | |
32918 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32919 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32920 | } | |
32921 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32922 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32923 | } | |
32924 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32925 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32926 | } | |
32927 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32928 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32929 | } | |
32930 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32931 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32932 | } | |
32933 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32934 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32935 | } | |
32936 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32937 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32938 | } | |
32939 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32940 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32941 | } | |
32942 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32943 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32944 | } | |
32945 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32947 | } | |
32948 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32950 | } | |
32951 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32952 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32953 | } | |
32954 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32955 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32956 | } | |
32957 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32959 | } | |
32960 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32961 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32962 | } | |
32963 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32964 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32965 | } | |
2ef75293 RD |
32966 | static void *_p_wxChoicebookTo_p_wxBookCtrl(void *x) { |
32967 | return (void *)((wxBookCtrl *) ((wxChoicebook *) x)); | |
32968 | } | |
d14a1e28 RD |
32969 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { |
32970 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32971 | } | |
32972 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32973 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32974 | } | |
32975 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32976 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32977 | } | |
32978 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32979 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32980 | } | |
32981 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32982 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32983 | } | |
32984 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32985 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32986 | } | |
32987 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32988 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32989 | } | |
32990 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32991 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32992 | } | |
32993 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32994 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32995 | } | |
32996 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32997 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32998 | } | |
32999 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
33000 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
33001 | } | |
33002 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
33003 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33004 | } | |
33005 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
33006 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33007 | } | |
33008 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
33009 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
33010 | } | |
33011 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
33012 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
33013 | } | |
33014 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
33015 | return (void *)((wxObject *) ((wxSizer *) x)); | |
33016 | } | |
33017 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
33018 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
33019 | } | |
33020 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
33021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
33022 | } | |
33023 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
33024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
33025 | } | |
33026 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
33027 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33028 | } | |
33029 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
33030 | return (void *)((wxObject *) ((wxEvent *) x)); | |
33031 | } | |
33032 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
33033 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
33034 | } | |
33035 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
33036 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
33037 | } | |
33038 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
33039 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
33040 | } | |
33041 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
33042 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
33043 | } | |
33044 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
33045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
33046 | } | |
33047 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
33048 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33049 | } | |
33050 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
33051 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
33052 | } | |
33053 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
33054 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
33055 | } | |
33056 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
33057 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
33058 | } | |
33059 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
33060 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
33061 | } | |
33062 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
33063 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
33064 | } | |
33065 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
33066 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
33067 | } | |
33068 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
33069 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
33070 | } | |
33071 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33072 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33073 | } | |
33074 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
33075 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
33076 | } | |
33077 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
33078 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
33079 | } | |
33080 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
33081 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
33082 | } | |
33083 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
33084 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
33085 | } | |
33086 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
33087 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
33088 | } | |
33089 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33090 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33091 | } | |
33092 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
33093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33094 | } | |
33095 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33096 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33097 | } | |
33098 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33099 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33100 | } | |
33101 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
33102 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33103 | } | |
33104 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
33105 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
33106 | } | |
33107 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
33108 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33109 | } | |
33110 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33111 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33112 | } | |
33113 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33114 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33115 | } | |
2ef75293 RD |
33116 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
33117 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxChoicebook *) x)); | |
33118 | } | |
d14a1e28 RD |
33119 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
33120 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33121 | } | |
33122 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33123 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33124 | } | |
33125 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
33126 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
33127 | } | |
33128 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
33129 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
33130 | } | |
33131 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33132 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33133 | } | |
33134 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
33135 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33136 | } | |
33137 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33138 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33139 | } | |
33140 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33141 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33142 | } | |
33143 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33144 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33145 | } | |
33146 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33147 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33148 | } | |
33149 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33150 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33151 | } | |
33152 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33153 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33154 | } | |
33155 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33156 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33157 | } | |
33158 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
33159 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
33160 | } | |
33161 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
33162 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
33163 | } | |
33164 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
33165 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33166 | } | |
33167 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
33168 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33169 | } | |
33170 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33171 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33172 | } | |
33173 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33174 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33175 | } | |
33176 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33177 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33178 | } | |
33179 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33180 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33181 | } | |
33182 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33183 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33184 | } | |
33185 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33186 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33187 | } | |
33188 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33189 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33190 | } | |
33191 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33192 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33193 | } | |
33194 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
33195 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33196 | } | |
33197 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
33198 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33199 | } | |
33200 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
33201 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33202 | } | |
33203 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
33204 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
33205 | } | |
33206 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
33207 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33208 | } | |
33209 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
33210 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33211 | } | |
33212 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
33213 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
33214 | } | |
d14a1e28 RD |
33215 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
33216 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
33217 | } | |
1e0c8722 RD |
33218 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
33219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33220 | } | |
d14a1e28 RD |
33221 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
33222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
33223 | } | |
33224 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
33225 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33226 | } | |
1e0c8722 RD |
33227 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
33228 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33229 | } | |
d14a1e28 RD |
33230 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
33231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33232 | } | |
33233 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
33234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33235 | } | |
33236 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
33237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
33238 | } | |
33239 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
33240 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
33241 | } | |
33242 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
33243 | return (void *)((wxObject *) ((wxListItem *) x)); | |
33244 | } | |
33245 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33246 | return (void *)((wxObject *) ((wxImage *) x)); | |
33247 | } | |
33248 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
33249 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
33250 | } | |
33251 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33252 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33253 | } | |
d1e20054 RD |
33254 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
33255 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33256 | } | |
e811c8ce RD |
33257 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
33258 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
33259 | } | |
d14a1e28 RD |
33260 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
33261 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33262 | } | |
33263 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
33264 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33265 | } | |
33266 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
33267 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33268 | } | |
2ef75293 RD |
33269 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
33270 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x)); | |
33271 | } | |
d14a1e28 RD |
33272 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
33273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33274 | } | |
33275 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33276 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33277 | } | |
33278 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33279 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33280 | } | |
33281 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
33282 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33283 | } | |
33284 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33285 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33286 | } | |
33287 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33288 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33289 | } | |
33290 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33291 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33292 | } | |
33293 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33294 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33295 | } | |
33296 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33297 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33298 | } | |
33299 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33300 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33301 | } | |
33302 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33303 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33304 | } | |
33305 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33306 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33307 | } | |
33308 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33309 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33310 | } | |
33311 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
33312 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33313 | } | |
33314 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33315 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33316 | } | |
33317 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33318 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33319 | } | |
33320 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
33321 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33322 | } | |
33323 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33324 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33325 | } | |
33326 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33327 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33328 | } | |
33329 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33330 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33331 | } | |
33332 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33333 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33334 | } | |
33335 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
33336 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
33337 | } | |
33338 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
33339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33340 | } | |
33341 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33342 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33343 | } | |
33344 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33345 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33346 | } | |
33347 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
33348 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
33349 | } | |
33350 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
33351 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
33352 | } | |
33353 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33354 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33355 | } | |
33356 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
33357 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33358 | } | |
33359 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33360 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33361 | } | |
33362 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33363 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33364 | } | |
d14a1e28 RD |
33365 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33366 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33367 | } | |
33368 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33369 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33370 | } | |
33371 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33372 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33373 | } | |
33374 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33375 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33376 | } | |
33377 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33378 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
33379 | } | |
2ef75293 RD |
33380 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
33381 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33382 | } | |
d14a1e28 RD |
33383 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
33384 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33385 | } | |
33386 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33387 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33388 | } | |
33389 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33390 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33391 | } | |
33392 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33393 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33394 | } | |
33395 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33396 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33397 | } | |
2ef75293 RD |
33398 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
33399 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxChoicebook *) x)); | |
33400 | } | |
d14a1e28 RD |
33401 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
33402 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33403 | } | |
33404 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33405 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33406 | } | |
33407 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33408 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33409 | } | |
33410 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33411 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33412 | } | |
33413 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33414 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33415 | } | |
33416 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33417 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33418 | } | |
33419 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33420 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33421 | } | |
33422 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33423 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33424 | } | |
33425 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
33426 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33427 | } | |
33428 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33429 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33430 | } | |
33431 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33432 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33433 | } | |
33434 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33435 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33436 | } | |
33437 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33438 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33439 | } | |
33440 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33441 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33442 | } | |
33443 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33444 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33445 | } | |
33446 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33447 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33448 | } | |
33449 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33450 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33451 | } | |
33452 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33453 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33454 | } | |
33455 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33456 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33457 | } | |
33458 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33459 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33460 | } | |
33461 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
33462 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33463 | } | |
33464 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
33465 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33466 | } | |
33467 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33468 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33469 | } | |
33470 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33471 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33472 | } | |
33473 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33474 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33475 | } | |
33476 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33477 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33478 | } | |
2ef75293 RD |
33479 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
33480 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x)); | |
33481 | } | |
d14a1e28 RD |
33482 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
33483 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33484 | } | |
33485 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33486 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33487 | } | |
d14a1e28 RD |
33488 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
33489 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33490 | } | |
2ef75293 RD |
33491 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
33492 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33493 | } | |
d14a1e28 RD |
33494 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
33495 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33496 | } | |
d1e20054 RD |
33497 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
33498 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33499 | } | |
d14a1e28 RD |
33500 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
33501 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33502 | } | |
33503 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33504 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33505 | } | |
33506 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33507 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33508 | } | |
33509 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33510 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33511 | } | |
33512 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33513 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33514 | } | |
33515 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33516 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33517 | } | |
33518 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33519 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33520 | } | |
33521 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33522 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33523 | } | |
15afbcd0 | 33524 | 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}}; |
2ef75293 | 33525 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33526 | 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}}; |
33527 | 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}}; | |
33528 | 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}}; | |
2ef75293 | 33529 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_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 |
33530 | 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}}; |
33531 | 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}}; | |
33532 | 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}}; | |
33533 | 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 | 33534 | 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 | 33535 | 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 | 33536 | 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}}; |
2ef75293 | 33537 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_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 |
33538 | 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}}; |
33539 | 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}}; | |
33540 | 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}}; | |
33541 | 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}}; | |
33542 | 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}}; | |
33543 | 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}}; | |
33544 | 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}}; | |
33545 | 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}}; | |
33546 | 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}}; | |
33547 | 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}}; | |
33548 | 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}}; | |
33549 | 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}}; | |
33550 | 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}}; | |
33551 | 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}}; | |
33552 | 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 | 33553 | 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 |
33554 | 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}}; |
33555 | 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 RD |
33556 | 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}}; |
33557 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_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 |
33558 | 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}}; |
33559 | 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}}; | |
33560 | 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}}; | |
33561 | 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}}; | |
33562 | 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}}; | |
33563 | 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}}; | |
33564 | 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}}; | |
33565 | 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}}; | |
2ef75293 | 33566 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_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 | 33567 | 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 | 33568 | 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 | 33569 | 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}}; |
2ef75293 | 33570 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33571 | 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}}; |
33572 | 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}}; | |
33573 | 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}}; | |
33574 | 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}}; | |
33575 | 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}}; | |
33576 | 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}}; | |
33577 | 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}}; | |
33578 | 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}}; | |
33579 | 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}}; | |
33580 | 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}}; | |
33581 | 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}}; | |
33582 | 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}}; | |
33583 | 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}}; | |
33584 | 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}}; | |
33585 | 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}}; | |
33586 | 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}}; | |
33587 | 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}}; | |
33588 | 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}}; | |
33589 | 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}}; | |
33590 | 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}}; | |
33591 | 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 | 33592 | 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 |
33593 | 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}}; |
33594 | 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}}; | |
2ef75293 | 33595 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33596 | 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}}; |
33597 | 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}}; | |
2ef75293 | 33598 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_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 |
33599 | 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}}; |
33600 | 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}}; | |
33601 | 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}}; | |
33602 | 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}}; | |
2ef75293 | 33603 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_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_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 |
33604 | 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}}; |
33605 | 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}}; | |
33606 | 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}}; | |
33607 | 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}}; | |
33608 | 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}}; | |
33609 | 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}}; | |
33610 | 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 |
33611 | |
33612 | static swig_type_info *swig_types_initial[] = { | |
33613 | _swigt__p_wxTextUrlEvent, | |
33614 | _swigt__p_wxBookCtrlEvent, | |
33615 | _swigt__p_wxSizer, | |
d14a1e28 RD |
33616 | _swigt__p_wxCheckBox, |
33617 | _swigt__p_wxPyTreeCtrl, | |
33618 | _swigt__p_wxEvent, | |
33619 | _swigt__p_wxGenericDirCtrl, | |
33620 | _swigt__p_bool, | |
33621 | _swigt__p_wxPyTreeItemData, | |
33622 | _swigt__p_wxItemContainer, | |
d14a1e28 | 33623 | _swigt__p_wxPyListCtrl, |
74a57fcd | 33624 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
33625 | _swigt__p_wxStaticLine, |
33626 | _swigt__p_wxControl, | |
33627 | _swigt__p_wxPyControl, | |
33628 | _swigt__p_wxGauge, | |
33629 | _swigt__p_wxToolBarBase, | |
33630 | _swigt__p_wxFont, | |
33631 | _swigt__p_wxToggleButton, | |
33632 | _swigt__p_wxRadioButton, | |
33633 | _swigt__p_wxChoice, | |
e811c8ce | 33634 | _swigt__p_wxMemoryDC, |
d14a1e28 | 33635 | _swigt__p_wxListItemAttr, |
58203fa6 | 33636 | _swigt__p_void, |
d14a1e28 RD |
33637 | _swigt__p_int, |
33638 | _swigt__p_wxSize, | |
e811c8ce | 33639 | _swigt__p_wxDC, |
d14a1e28 RD |
33640 | _swigt__p_wxListView, |
33641 | _swigt__p_wxIcon, | |
74a57fcd | 33642 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
33643 | _swigt__p_wxTextCtrl, |
33644 | _swigt__p_wxNotebook, | |
2ef75293 | 33645 | _swigt__p_wxChoicebook, |
d14a1e28 RD |
33646 | _swigt__p_wxNotifyEvent, |
33647 | _swigt__p_wxArrayString, | |
33648 | _swigt__p_wxListbook, | |
33649 | _swigt__p_wxStaticBitmap, | |
33650 | _swigt__p_wxSlider, | |
33651 | _swigt__p_wxStaticBox, | |
33652 | _swigt__p_wxArrayInt, | |
33653 | _swigt__p_wxContextHelp, | |
33654 | _swigt__p_long, | |
33655 | _swigt__p_wxEvtHandler, | |
33656 | _swigt__p_wxListEvent, | |
d14a1e28 | 33657 | _swigt__p_wxCheckListBox, |
74a57fcd | 33658 | _swigt__p_wxListBox, |
d14a1e28 RD |
33659 | _swigt__p_wxBookCtrl, |
33660 | _swigt__p_wxSpinButton, | |
33661 | _swigt__p_wxButton, | |
33662 | _swigt__p_wxBitmapButton, | |
33663 | _swigt__p_wxRect, | |
33664 | _swigt__p_wxContextHelpButton, | |
33665 | _swigt__p_wxRadioBox, | |
33666 | _swigt__p_wxScrollBar, | |
994141e6 | 33667 | _swigt__p_char, |
d14a1e28 RD |
33668 | _swigt__p_wxTreeItemId, |
33669 | _swigt__p_wxComboBox, | |
33670 | _swigt__p_wxHelpEvent, | |
33671 | _swigt__p_wxListItem, | |
33672 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33673 | _swigt__p_wxSpinEvent, |
e811c8ce | 33674 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33675 | _swigt__p_wxSpinCtrl, |
33676 | _swigt__p_wxImageList, | |
33677 | _swigt__p_wxHelpProvider, | |
33678 | _swigt__p_wxTextAttr, | |
33679 | _swigt__p_wxSimpleHelpProvider, | |
33680 | _swigt__p_wxPoint, | |
2ef75293 | 33681 | _swigt__p_wxChoicebookEvent, |
d14a1e28 RD |
33682 | _swigt__p_wxListbookEvent, |
33683 | _swigt__p_wxNotebookEvent, | |
33684 | _swigt__p_wxObject, | |
e811c8ce | 33685 | _swigt__p_wxCursor, |
d14a1e28 RD |
33686 | _swigt__p_wxKeyEvent, |
33687 | _swigt__p_wxWindow, | |
33688 | _swigt__p_wxString, | |
33689 | _swigt__p_wxBitmap, | |
33690 | _swigt__p_wxTreeEvent, | |
33691 | _swigt__p_wxMouseEvent, | |
33692 | _swigt__p_wxCommandEvent, | |
33693 | _swigt__p_wxStaticText, | |
33694 | _swigt__p_wxControlWithItems, | |
33695 | _swigt__p_wxToolBarToolBase, | |
33696 | _swigt__p_wxColour, | |
33697 | _swigt__p_wxToolBar, | |
33698 | _swigt__p_wxBookCtrlSizer, | |
33699 | _swigt__p_wxValidator, | |
33700 | 0 | |
33701 | }; | |
33702 | ||
33703 | ||
33704 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33705 | ||
33706 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 33707 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
33708 | |
33709 | #ifdef __cplusplus | |
33710 | } | |
33711 | #endif | |
33712 | ||
33713 | #ifdef __cplusplus | |
33714 | extern "C" | |
33715 | #endif | |
33716 | SWIGEXPORT(void) SWIG_init(void) { | |
33717 | static PyObject *SWIG_globals = 0; | |
33718 | static int typeinit = 0; | |
33719 | PyObject *m, *d; | |
33720 | int i; | |
33721 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33722 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33723 | d = PyModule_GetDict(m); | |
33724 | ||
33725 | if (!typeinit) { | |
33726 | for (i = 0; swig_types_initial[i]; i++) { | |
33727 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33728 | } | |
33729 | typeinit = 1; | |
33730 | } | |
33731 | SWIG_InstallConstants(d,swig_const_table); | |
33732 | ||
b2dc1044 RD |
33733 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33734 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
c32bde28 RD |
33735 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT)); |
33736 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP)); | |
33737 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT)); | |
33738 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM)); | |
33739 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT)); | |
33740 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33741 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
c32bde28 RD |
33742 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE)); |
33743 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE)); | |
33744 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33745 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED)); | |
33746 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED)); | |
33747 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33748 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33749 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33750 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
c32bde28 RD |
33751 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL)); |
33752 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL)); | |
33753 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH)); | |
33754 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33755 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33756 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33757 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33758 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33759 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
c32bde28 RD |
33760 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL)); |
33761 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL)); | |
33762 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY)); | |
33763 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE)); | |
33764 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB)); | |
33765 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT)); | |
33766 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER)); | |
33767 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT)); | |
33768 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE)); | |
33769 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH)); | |
33770 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER)); | |
33771 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD)); | |
33772 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL)); | |
33773 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL)); | |
33774 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP)); | |
33775 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP)); | |
33776 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP)); | |
33777 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2)); | |
33778 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33779 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT)); | |
33780 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33781 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER)); | |
33782 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33783 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33784 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33785 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33786 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE)); | |
33787 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE)); | |
33788 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33789 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33790 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33791 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT)); | |
33792 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT)); | |
33793 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33794 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33795 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS)); | |
33796 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN)); | |
33797 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE)); | |
33798 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT)); | |
33799 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW)); | |
33800 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33801 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33802 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33803 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33804 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33805 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33806 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33807 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
c32bde28 RD |
33808 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL)); |
33809 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL)); | |
33810 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS)); | |
33811 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP)); | |
d14a1e28 | 33812 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33813 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33814 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33815 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33816 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33817 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33818 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
c32bde28 RD |
33819 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH)); |
33820 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP)); | |
33821 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT)); | |
33822 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT)); | |
33823 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM)); | |
33824 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE)); | |
33825 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE)); | |
33826 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON)); | |
33827 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL)); | |
33828 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33829 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33830 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
33831 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT)); |
33832 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP)); | |
33833 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM)); | |
33834 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT)); | |
33835 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT)); | |
33836 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33837 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33838 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
2ef75293 RD |
33839 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT)); |
33840 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP)); | |
33841 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM)); | |
33842 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT)); | |
33843 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT)); | |
33844 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK)); | |
33845 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
33846 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
c32bde28 RD |
33847 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON)); |
33848 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR)); | |
33849 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL)); | |
33850 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL)); | |
33851 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL)); | |
33852 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS)); | |
33853 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT)); | |
33854 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE)); | |
33855 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS)); | |
33856 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT)); | |
33857 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER)); | |
33858 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN)); | |
33859 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT)); | |
33860 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33861 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
c32bde28 RD |
33862 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES)); |
33863 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES)); | |
33864 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON)); | |
33865 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON)); | |
33866 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST)); | |
33867 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT)); | |
33868 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP)); | |
33869 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT)); | |
33870 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE)); | |
33871 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL)); | |
33872 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS)); | |
33873 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER)); | |
33874 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER)); | |
33875 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL)); | |
33876 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING)); | |
33877 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING)); | |
33878 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE)); | |
33879 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN)); | |
33880 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT)); | |
33881 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE)); | |
33882 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT)); | |
33883 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE)); | |
33884 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA)); | |
33885 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM)); | |
33886 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH)); | |
33887 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT)); | |
33888 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE)); | |
33889 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED)); | |
33890 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED)); | |
33891 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED)); | |
33892 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT)); | |
33893 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED)); | |
33894 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED)); | |
33895 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE)); | |
33896 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED)); | |
33897 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE)); | |
33898 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE)); | |
33899 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW)); | |
33900 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE)); | |
33901 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON)); | |
33902 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33903 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33904 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33905 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT)); | |
33906 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT)); | |
33907 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM)); | |
33908 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE)); | |
33909 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL)); | |
33910 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW)); | |
33911 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT)); | |
33912 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT)); | |
33913 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT)); | |
33914 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT)); | |
33915 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP)); | |
33916 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33917 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT)); | |
33918 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT)); | |
33919 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE)); | |
33920 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER)); | |
33921 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE)); | |
33922 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33923 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS)); | |
33924 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON)); | |
33925 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL)); | |
33926 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP)); | |
33927 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN)); | |
33928 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT)); | |
33929 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33930 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33931 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33932 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33933 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33934 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33935 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33936 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33937 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33938 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33939 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33940 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33941 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33942 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33943 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33944 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33945 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33946 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33947 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33948 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33949 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33950 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33951 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33952 | ||
33953 | // Map renamed classes back to their common name for OOR | |
33954 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33955 | ||
b2dc1044 | 33956 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
c32bde28 RD |
33957 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS)); |
33958 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS)); | |
33959 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES)); | |
33960 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT)); | |
33961 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE)); | |
33962 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE)); | |
33963 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED)); | |
33964 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33965 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS)); | |
33966 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT)); | |
33967 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES)); | |
33968 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33969 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE)); | |
33970 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS)); | |
33971 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS)); | |
33972 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS)); | |
33973 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal)); | |
33974 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected)); | |
33975 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded)); | |
33976 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded)); | |
33977 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max)); | |
33978 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE)); | |
33979 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW)); | |
33980 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE)); | |
33981 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33982 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON)); | |
33983 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33984 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33985 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33986 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33987 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT)); | |
33988 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT)); | |
33989 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33990 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33991 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33992 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33993 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33994 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33995 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33996 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33997 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33998 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33999 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
34000 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
34001 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
34002 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
34003 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
34004 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
34005 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
34006 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
34007 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
34008 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
34009 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
34010 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 34011 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
34012 | |
34013 | // Map renamed classes back to their common name for OOR | |
34014 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
34015 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
34016 | ||
b2dc1044 | 34017 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
c32bde28 RD |
34018 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY)); |
34019 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST)); | |
34020 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS)); | |
34021 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL)); | |
34022 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS)); | |
34023 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP)); | |
34024 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
34025 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
34026 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
34027 | |
34028 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
34029 | ||
d14a1e28 RD |
34030 | } |
34031 |